]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
[grub2.git] / ChangeLog
1 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
4 (read_sblock): Don't attempt to read superblocks outside the disk size.
5
6 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9 first superblock to find the second one when possible.
10
11 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * util/grub-install.in: Fix an ARC bug.
14 Print a warning if no platform-specific setup is available.
15
16 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17
18 Use static allocation rather than scratch pointer in reed_solomon.
19 It decreases its size significantly and avoids a variable in .text.
20
21 * grub-core/lib/reed_solomon.c (scratch): Removed.
22 (chosenstat): New const or static array.
23 (sigma): Likewise.
24 (errpot): Likewise.
25 (errpos): Likewise.
26 (sy): Likewise.
27 (mstat): Likewise.
28 (errvals): Likewise.
29 (eqstat): Likewise.
30 (pol_evaluate): Replace x with log_x argument. All users updated.
31 (syndroms): Removed.
32 (gauss_solve): Use statically allocated arrays.
33 (rs_recover): Likewise.
34 Calculate syndroms directly.
35 (decode_block): Use statically allocated arrays.
36 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
37 (main) [TEST]: Allow -DTEST -DSTANDALONE.
38
39 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Eliminate fixed limit on reed solomon decoder length.
42
43 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
44 rather than hardcoding the address.
45 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
46 no_reed_solomon_length.
47 Move gate_a20 to no-reed-solomon part.
48 Don't force a particular size of no reed-solomon part.
49 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
50 Removed.
51 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
52 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
53
54 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/commands/wildcard.c (match_files): Handle filenames
57 without explicit device.
58 (wildcard_expand): Don't add explicit device if not already present.
59 * tests/grub_script_echo1.in: Add a new expansion test.
60
61 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
62
63 Replace single-linked with double-linked lists. It results in more
64 compact and more efficient code.
65
66 * grub-core/kern/list.c (grub_list_push): Moved from here ...
67 * include/grub/list.h (grub_list_push): ... to here. Set prev.
68 (grub_list_remove): Moved from here ...
69 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
70 (grub_prio_list_insert): Set prev.
71 * include/grub/list.h (grub_list): Add prev. All users updated.
72
73 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
74
75 Handle newer autotools. Add some missing quotes while on it.
76
77 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
78 (pkglib_DATA): Move grub-mkconfig_lib from here ...
79 (pkgdata_DATA): ... here.
80 * Makefile.util.def (update-grub_lib): Removed.
81 * conf/Makefile.common (pkglib_DATA): Removed.
82 (pkglib_SCRIPTS): Likewise.
83 (pkgdata_DATA): New variable.
84 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
85 needed.
86 Add missing quotes.
87 Remove unused variable while on it.
88 * tests/util/grub-shell.in: Likewise.
89 * util/grub-install.in: Likewise.
90 * util/grub-mkconfig.in: Likewise.
91 * util/grub-mknetdir.in: Likewise.
92 * util/grub-mkrescue.in: Likewise.
93 * util/grub-mkstandalone.in: Likewise.
94 * util/grub.d/00_header.in: Likewise.
95 * util/grub.d/10_hurd.in: Likewise.
96 * util/grub.d/10_illumos.in: Likewise.
97 * util/grub.d/10_kfreebsd.in: Likewise.
98 * util/grub.d/10_linux.in: Likewise.
99 * util/grub.d/10_netbsd.in: Likewise.
100 * util/grub.d/10_windows.in: Likewise.
101 * util/grub.d/20_linux_xen.in: Likewise.
102 * util/grub.d/30_os-prober.in: Likewise.
103 * util/update-grub_lib.in: Removed.
104
105 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
106
107 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
108 a workaround for intel problem.
109
110 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
111 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
112 2012-01-23 pfsmorigo
113
114 * util/grub-install.in: Support dd'in into PreP partition.
115 * util/grub-probe.c (probe): Support discovering partition type.
116 (main): Support -t msdos_parttype.
117
118 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
121 infinite recursion using counter.
122 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
123 init to skip it if the magic check fails.
124 (dec_stream_header): Init s->crc32.
125
126 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
127 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
128 2012-01-22 Richard Laager <rlaager@wiktel.com>
129
130 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
131 All users updated.
132 (find_bestub): Determine correct size.
133 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
134 (scan_disk): Align the size down.
135 Call check pool before find_bestub to have ashift.
136
137 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
138
139 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
140 dprintf in no-malloc zone.
141
142 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
143
144 * configure.ac: Add back in test for limits.h.
145
146 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
147
148 Support 4K-sector NTFS.
149
150 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
151 (grub_ntfs_data): Remove blocksize.
152 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
153 Remove data argument. All users updated.
154
155 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
158 being in .text to avoid dprel references.
159 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
160 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
161 (grub_arch_highmemsize): Likewise.
162 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
163 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
164 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
165
166 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
167
168 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
169
170 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
171 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
172
173 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
176 GRUB_UTIL.
177 (grub_set_datetime_cmos): Likewise.
178
179 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
180
181 Make XZ compression parameters dependent on target and not host CPU.
182
183 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
184 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
185
186 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
189 set but not used variable.
190
191 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
194 created when no uuid support is compiled into mkfs.reiser.
195
196 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
197
198 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
199 (utf8_to_macroman): Do the opposite.
200 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
201
202 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * configure.ac: Refise build qemu_mips w/o unifont.
205
206 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
207
208 Eliminate grub_min/grub_max prone to overflow usage.
209
210 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
211 (poll_nonroot_hub): Likewise.
212 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
213 (grub_affs_label): Likewise.
214 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
215 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
216 (grub_hfs_label): Likewise.
217 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
218 * grub-core/fs/zfs/zfs.c (MIN): Remove.
219 (zap_leaf_array_equal): Use grub_size. Remove MIN.
220 (zap_leaf_array_get): Likewise.
221 (dnode_get_path): Likewise.
222 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
223 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
224 * grub-core/script/execute.c (grub_script_break): Likewise.
225 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
226 grub_max.
227 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
228 * include/grub/misc.h (grub_min): Removed.
229 (grub_max): Likewise.
230
231 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
232
233 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
234 direct.inode = 0.
235
236 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
239
240 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
243
244 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
247 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
248
249 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
252 rather than a hack for grub_strncasemap.
253
254 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
255
256 Support multiple initrds
257 Note: part of this was accidently committed in r3739.
258
259 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
260 initrd.
261 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
262 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
263 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
264 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
265 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
266
267 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
270 disks with unknown size.
271 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
272
273 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Remove defines pertaining to arbitrary limits not affecting GRUB
276 anymore.
277
278 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
279 (EXT2_MAX_SYMLINKCNT): Likewise.
280 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
281 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
282 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
283 (GRUB_PXE_MAX_BLKSIZE): Likewise.
284 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
285 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
286 (DN_MAX_OBJECT_SHIFT): Likewise.
287 (DN_MAX_OFFSET_SHIFT): Likewise.
288 (DN_MAX_OBJECT): Likewise.
289 (DNODES_PER_LEVEL_SHIFT): Likewise.
290 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
291 (SPA_MAXBLOCKSIZE): Likewise.
292 (SPA_BLOCKSIZES): Likewise.
293 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
294 (MZAP_MAX_BLKSZ): Likewise.
295
296 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
299 handle NULL appropriately.
300 Remove MIN.
301
302 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
303
304 Fix efiemu.
305
306 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
307 cpu/types.h.
308 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
309 * configure.ac: Fix efiemu check.
310
311 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
312
313 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
314 grub_probe.
315 Reported by: adamwill
316
317 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
318
319 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
320
321 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
322
323 Fix handling of wide characters in gfxterm.
324
325 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
326 (clear_char): Likewise.
327 (paint_char): Skip code == NULL chars.
328 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
329
330 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/normal/charset.c: Move comment to right place.
333
334 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
337 (GRUB_AFFS_FLAG_FFS): Put back where it was.
338 (grub_affs_mount): Revert the correct version checking.
339
340 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
341
342 * docs/grub.texi (Unicode): Mention several other unsupported features.
343
344 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
347 case statements as compile-time one.
348 (direct_read): Prevent spurious warnings.
349 (grub_squash_read_data): Likewise.
350
351 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
352
353 Various squash4 fixes and LZO and XZ support.
354
355 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
356 Add xzembed source files.
357 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
358 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
359 (grub_squash_inode): New subtype long_dir.
360 (SQUASH_TYPE_LONG_DIR): New inode type.
361 (COMPRESSION): New enum.
362 (XZBUFSIZ): New const.
363 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
364 (read_chunk): Use data->decompress.
365 (zlib_decompress): New function.
366 (lzo_decompress): Likewise.
367 (xz_decompress): Likewise.
368 (squash_mount): Set new data fields.
369 (grub_squash_iterate_dir): Handle long dir.
370 (squash_unmount): Free xzdec and xzbuf.
371 (grub_squash_open): Check ino type.
372 (direct_read): Stylistic fixes. Use data->decompress.
373 (grub_squash_read_data): Likewise.
374 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
375 (get_byte): Likewise.
376 (grub_zlib_disk_read): Removed.
377 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
378 (GRUB_POSIX_BOOL_DEFINED): New define.
379 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
380 * grub-core/lib/xzembed/xz.h: Addmissing includes.
381 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
382 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
383
384 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
385
386 Don't override more informative errors.
387
388 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
389 * grub-core/font/font.c (open_section): Likewise.
390 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
391 filename. Don't override errors.
392 (grub_cmd_openbsd_ramdisk): Don't override errors.
393 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
394 (grub_cmd_initrd): Likewise.
395 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
396 (grub_cmd_initrd): Likewise.
397 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
398 (grub_cmd_linux): Likewise.
399 (grub_cmd_initrd): Likewise.
400 (grub_cmd_payload): Likewise.
401 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
402 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
403 (grub_cmd_module): Likewise.
404 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
405 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
406 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
407 (grub_cmd_xnu_mkext): Likewise.
408 (grub_cmd_xnu_ramdisk): Likewise.
409 (grub_xnu_check_os_bundle_required): Likewise.
410 (grub_xnu_load_kext_from_dir): Likewise.
411 (grub_cmd_xnu_kextdir): Likewise.
412 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
413
414 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
417 as 1024 in block size field. Found on one of my test images.
418 Small optimisation while on it.
419
420 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
423 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
424 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
425 performance fixes while on it.
426 (grub_sfs_close): Fix memory leak while on it.
427 (grub_sfs_label): Convert Latin1 to UTF-8.
428
429 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
432 space to avoid overflows.
433 (grub_hfs_label): Convert from macroman to UTF-8.
434
435 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
438
439 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
442
443 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * unicode: Import Unicode 6.0 data.
446
447 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
450 outside of range.
451
452 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
453
454 Avoid cutting in the middle of UTF-8 character.
455
456 * include/grub/charset.h (grub_getend): New function.
457 * grub-core/script/function.c (grub_script_function_find): Use
458 grub_getend.
459 * grub-core/normal/completion.c (add_completion): Likewise.
460
461 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
464 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
465 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
466 (GRUB_UNICODE_TAG_END): Likewise.
467 (GRUB_UNICODE_LAST_VALID): Likewise.
468
469 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
472 len and make it smaller. All users updated.
473 * util/import_unicode.py: Put length and not end character.
474 Check length.
475
476 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
477
478 Make better Unicode-compliant and unify some UTF-8 code pathes.
479
480 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
481 valid character.
482 (grub_is_valid_utf8): Use grub_utf8_process.
483 Check resulting code range.
484 (grub_utf8_to_ucs4): Use grub_utf8_process.
485 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
486 valid character.
487
488 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
491
492 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * docs/grub.texi (Filesystems): Mention AFS.
495
496 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * docs/grub.texi (Filesystems): Clarify restrictions.
499 (Regexp): Mention non-Unicode regexp behaviour.
500 (Other): Mention non-Unicode matching behaviour.
501
502 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
503
504 Make HFS implementation use MacRoman.
505
506 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
507 (macroman): New const array.
508 (macroman_to_utf8): New function.
509 (utf8_to_macroman): Likewise.
510 (grub_hfs_find_dir): Use utf8_to_macroman.
511 (grub_hfs_dir): Use macroman_to_utf8.
512 Set case_insensitive.
513
514 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
517
518 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
519
520 Integrate hints into autogeneration scripts.
521
522 * docs/grub.texi (Filesystems): Add a hostdisk example.
523 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
524 (grub-probe): Add ofpath.
525 * gentpl.py: Remove group nosparc64.
526 * grub-core/commands/search.c (cache_entry): New struct.
527 (cache): New var.
528 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
529 * grub-core/commands/search_wrap.c (options): Add platform-specific
530 hint options.
531 (grub_cmd_search): Handle platform-specific hints.
532 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
533 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
534 (grub_util_biosdisk_data): Likewise.
535 (grub_util_biosdisk_open): Set device_map.
536 (read_device_map): Handle "" as indication of no map.
537 Set device_map.
538 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
539 (grub_util_biosdisk_get_compatibility_hint): New function.
540 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
541 * include/grub/emu/hostdisk.h
542 (grub_util_biosdisk_get_compatibility_hint): New proto.
543 * util/grub-install.in: Don't call grub-mkdevicemap.
544 Add platform-specific hint to load.cfg.
545 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
546 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
547 hints. Set root preliminary to compatibility hint, not to OS name.
548 * util/grub-probe.c (PRINT_*): Add hints.
549 (print): Make static.
550 (escape_of_path): New function.
551 (guess_bios_drive): Likewise.
552 (guess_efi_drive): Likewise.
553 (guess_baremetal_drive): Likewise.
554 (print_full_name): Likewise.
555 (probe): Handle hints.
556 (main): Likewise.
557 * util/ieee1275/devicemap.c: Removed.
558 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
559 updated.
560 (grub_util_devname_to_ofpath): Return NULL on failure.
561
562 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
563 resource leak.
564 * util/getroot.c (grub_util_pull_device): Fix memory leak.
565
566 * po/POTFILES.in: Regenerated.
567
568 Allow purely long options
569
570 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
571 (SHORT_ARG_USAGE): Likewise.
572 (grub_arg_show_help): Compare opt with help_options.
573 (parse_option): Receive opt as argument. If makes big simplificatons.
574 All users updated
575
576 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
579 Restructure to avoid warning.
580
581 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * util/grub-install.in: Account for possible escaped comma in device
584 name.
585
586 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
589 channel.
590
591 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
594 allocation and zero-setting.
595 (grub_ieee1275_get_devname): Check that alias is complete.
596
597 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
600 unaligned segments.
601
602 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
605 prefix.
606 (grub_ofdisk_open): Check and discard ieee1275 prefix.
607 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
608 Add ieee1275 prefix.
609
610 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * docs/grub.texi (Filesystems): Update.
613
614 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
615
616 Support odc, newc and bigendian cpio formats.
617
618 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
619 * grub-core/Makefile.core.def (newc): New module.
620 (odc): Likewise.
621 (cpio_be): Likewise.
622 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
623 (MAGIC): Likewise.
624 (MAGIC2): Likewise.
625 (head) [MODE_ODC]: Adapt for the format.
626 (head) [MODE_NEWC]: Likewise.
627 (head) [!MODE_*]: Write fields of interest as arrays.
628 (MAGIC_USTAR): Removed.
629 (read_number) [MODE_NEWC]: Change to hex.
630 (read_number) [!MODE_*]: Parse binary arrays.
631 (grub_cpio_find_file): Factor out the code for better structure and
632 always use read_number.
633 (grub_cpio_mount): Use MAGIC and MAGIC2.
634 (grub_cpio_dir): Exit on first hook non-0 return.
635 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
636 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
637 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
638 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
639 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
640 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
641 * grub-core/fs/newc.c: New file.
642 * grub-core/fs/odc.c: Likewise.
643 * grub-core/fs/cpio_be.c: Likewise.
644
645 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Fix handling of tar numbers occupying the whole field.
648
649 * grub-core/fs/cpio.c (read_number): New function.
650 (grub_cpio_find_file): Use read_number instead of strtoull.
651
652 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
655 occupying the whole field size.
656
657 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
658
659 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
660
661 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
664
665 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
666
667 * grub-core/Makefile.core.def (lzma_decompress): Add missing
668 TARGET_IMG_LDFLAGS.
669
670 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * util/getroot.c (ESCAPED_PATH_MAX): New define.
673 (mountinfo_entry): Increase the field size to take escaping into
674 account.
675 (find_root_device_from_libzfs): Add one byte to size of strings for
676 security.
677
678 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
681 an assert.
682 * util/grub-setup.c (setup): Likewise.
683
684 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
685
686 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
687 _LzmaDecodeA.
688
689 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
690
691 * docs/grub.texi (Internationalisation): New section.
692
693 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * docs/grub.texi (Loopback booting): New section.
696
697 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
698
699 * util/grub-mkstandalone.in: Fix minor typo errors.
700
701 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
702
703 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
704
705 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
706 net/icmp.c and net/icmp6.c.
707 (http): New module.
708 (priority_queue): Likewise.
709 * grub-core/io/bufio.c: Rewritten.
710 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
711 TYPE_WITH_CONFIGFILE_OPTION.
712 (legacy_commands): Add bootp and dhcp.
713 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
714 (grub_legacy_parse): Likewise.
715 * grub-core/lib/priority_queue.c: New file.
716 * grub-core/net/arp.c: Add missing license header.
717 (arp_find_entry): Removed.
718 (arp_find_entry): Likewise.
719 (grub_net_arp_resolve): Rename to ...
720 (grub_net_arp_send_request): ...this.
721 (grub_net_arp_receive): New card argument.
722 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
723 Set router and DNS server.
724 (grub_net_configure_by_dhcp_ack): Handle routing information.
725 (grub_cmd_bootp): Set checksum.
726 (grub_bootp_init): Remove net_dhcp.
727 * grub-core/net/dns.c: New file.
728 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
729 completion.
730 (get_card_packet): Handle allocation.
731 (grub_efinet_findcards): Set mtu.
732 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
733 (get_card_packet): Handle allocation.
734 (emucard): Set mtu.
735 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
736 (GRUB_MOD_INIT): Set mtu.
737 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
738 mtu.
739 (get_card_packet): Handle allocation.
740 (grub_ofnet_findcards): Set mtu.
741 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
742 assert.
743 (grub_net_recv_ethernet_packet): Handle IPv6.
744 * grub-core/net/http.c: New file.
745 * grub-core/net/icmp.c: Likewise.
746 * grub-core/net/icmp6.c: Likewise.
747 * grub-core/net/ip.c (ip6addr): New type.
748 (ip6hdr): Likewise.
749 (reassemble): Likewise.
750 (cmp): New function.
751 (reassembles): New variable.
752 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
753 (id): New variable.
754 (send_fragmented): New function.
755 (grub_net_send_ip_packet): Rename to ...
756 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
757 Handle non-UDP.
758 (grub_net_recv_ip_packets): Rename to ...
759 (handle_dgram): ... this. Check checksum. Handle non-UDP.
760 (free_rsm): New function.
761 (free_old_fragments): Likewise.
762 (grub_net_recv_ip4_packets): New function.
763 (grub_net_send_ip6_packet): Likewise.
764 (grub_net_send_ip_packet): Likewise.
765 (grub_net_recv_ip6_packets): Likewise.
766 (grub_net_recv_ip_packets): Likewise.
767 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
768 (LINK_LAYER_CACHE_SIZE): New const.
769 (link_layer_find_entry): New function.
770 (grub_net_link_layer_add_address): Likewise.
771 (grub_net_link_layer_resolve_check): Likewise.
772 (grub_net_link_layer_resolve): Likewise.
773 (grub_net_ipv6_get_slaac): Likewise.
774 (grub_net_ipv6_get_link_local): Likewise.
775 (grub_cmd_ipv6_autoconf): Likewise.
776 (parse_ip): Handle one number representation.
777 (parse_ip6): New functoion.
778 (match_net): Handle IPv6.
779 (grub_net_resolve_address): Handle IPv6 and DNS.
780 (grub_net_resolve_net_address): Handle IPv6.
781 (route_cmp): New function.
782 (grub_net_route_address): Find best route.
783 (grub_net_addr_to_str): Handle IPv6.
784 (grub_net_addr_cmp): New function.
785 (grub_net_add_addr): Register local route.
786 (print_net_address): Handle net address.
787 (grub_net_poll_cards): Retransmit TCP.
788 (grub_net_poll_cards_idle_real): Likewise.
789 (have_ahead): New function.
790 (grub_net_seek_real): Use underlying seek.
791 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
792 * grub-core/net/tcp.c: New file.
793 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
794 (cmp): New function.
795 (ack): Likewise.
796 (tftp_receive): Handle unordered input.
797 (destroy_pq): New function.
798 (tftp_close): Close pq.
799 * grub-core/net/udp.c: Put missing license header.
800 (grub_net_udp_socket): New function.
801 (udp_socket_register): Likewise.
802 (grub_net_udp_close): Likewise.
803 (grub_net_recv_udp_packet): Check checksum.
804 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
805 * include/grub/misc.h (grub_memchr): New function.
806 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
807 (grub_net_card_driver): Return buf in recv.
808 (grub_net_slaac_mac_list): New struct.
809 (grub_network_level_protocol_id): Add ipv6.
810 (grub_net_network_level_addr): Likewise.
811 (grub_net_network_level_net_addr): Likewise.
812 (grub_net_app_protocol): Add seek.
813 (grub_net_socket): Removed.
814 (grub_net_sockets): Likewise.
815 (grub_net_socket_register): Likewise.
816 (grub_net_socket_unregister): Likewise.
817 (FOR_NET_SOCKETS): Likewise.
818 (grub_net_add_addr): Add const.
819 (GRUB_NET_BOOTP_*): New enum.
820 (grub_net_addr_cmp): New proto.
821 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
822 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
823 (grub_net_hwaddr_to_str): NEw proto.
824 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
825 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
826 (grub_dns_init): New proto.
827 (grub_dns_fini): Likewise.
828 (grub_net_tcp_retransmit): Likewise.
829 (grub_net_link_layer_add_address): Likewise.
830 (grub_net_link_layer_resolve_check): Likewise.
831 (grub_net_link_layer_resolve): Likewise.
832 (grub_net_dns_lookup): Likewise.
833 (grub_net_add_dns_server): Likewise.
834 (grub_net_remove_dns_server): Likewise.
835 (GRUB_NET_TRIES): New const.
836 (GRUB_NET_INTERVAL): Likewise.
837 * include/grub/net/arp.h: Mostly rewritten.
838 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
839 * include/grub/net/ip.h: Mostly rewritten.
840 * include/grub/net/netbuff.h: Indent.
841 * include/grub/net/tcp.h: New file.
842 * include/grub/net/udp.h: Mostly rewritten.
843 * include/grub/priority_queue.h: New file.
844 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
845 (grub_swap_bytes64_compile_time): Likewise.
846 (grub_cpu_to_be16_compile_time): Likewise.
847 (grub_cpu_to_be32_compile_time): Likewise.
848 (grub_cpu_to_be64_compile_time): Likewise.
849 (grub_be_to_cpu64_compile_time): Likewise.
850
851 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
852
853 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
854 UINT_TO_PTR with cast.
855
856 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
859 don't use them.
860
861 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
864 already there.
865
866 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
867
868 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
869 confusing ipxe.
870
871 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
874 Add missing const attribute.
875 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
876 Likewise.
877 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
878 Likewise.
879
880 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
883 misaligned access.
884 (serpent_setkey): Likewise.
885 (serpent_encrypt_internal): Likewise.
886 (serpent_decrypt_internal): Likewise.
887 (serpent_encrypt): Don't put an alignment-increasing cast.
888 (serpent_decrypt): Likewise.
889 (serpent_test): Likewise.
890
891 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
894
895 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
896
897 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
898
899 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
900 grub_addr_t casts.
901 (PTR_TO_UINT64): Likewise.
902 (PTR_TO_UINT32): Likewise.
903
904 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * util/grub-mkimage.c (generate_image): Decrease the higher limit
907 because of stack.
908 * util/grub-setup.c (setup): Don't add redundancy past the higher load
909 limit.
910
911 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
914 text_width > available width a bit more gracefully.
915
916 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
919 current address calculation.
920
921 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
924 stack.
925 (encode_block): Likewise.
926
927 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
928
929 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
930 certainety.
931
932 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
935 non-RS part to avoid RS messing with GDT.
936 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
937 Increase to suit in realmode routines.
938
939 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * grub-core/kern/i386/realmode.S: Increase alignment.
942 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
943
944 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
947 be deterministic.
948 (syndroms): Compute 0 syndrom.
949 (rs_recover): Use 0 syndrom.
950
951 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
954
955 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
958 brackets.
959
960 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
963 account.
964 (get_top_pad): Likewise.
965 (get_right_pad): Likewise.
966 (get_bottom_pad): Likewise.
967
968 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
971
972 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
975 attribute as the structure isn't guaranteed to be properly aligned.
976 (grub_efi_pci_device_path): Likewise.
977 (grub_efi_pccard_device_path): Likewise.
978 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
979 specify the size of `memory_type'.
980 (grub_efi_vendor_device_path): Likewise.
981 (grub_efi_controller_device_path): Likewise.
982 (grub_efi_acpi_device_path): Likewise.
983 (grub_efi_expanded_acpi_device_path): Likewise.
984 (grub_efi_atapi_device_path): Likewise.
985 (grub_efi_scsi_device_path): Likewise.
986 (grub_efi_fibre_channel_device_path): Likewise.
987 (grub_efi_1394_device_path): Likewise.
988 (grub_efi_usb_device_path): Likewise.
989 (grub_efi_usb_class_device_path): Likewise.
990 (grub_efi_i2o_device_path): Likewise.
991 (grub_efi_mac_address_device_path): Likewise.
992 (grub_efi_ipv4_device_path): Likewise.
993 (grub_efi_ipv6_device_path): Likewise.
994 (grub_efi_infiniband_device_path): Likewise.
995 (grub_efi_uart_device_path): Likewise.
996 (grub_efi_vendor_messaging_device_path): Likewise.
997 (grub_efi_hard_drive_device_path): Likewise.
998 (grub_efi_cdrom_device_path): Likewise.
999 (grub_efi_vendor_media_device_path): Likewise.
1000 (grub_efi_file_path_device_path): Likewise.
1001 (grub_efi_protocol_device_path): Likewise.
1002 (grub_efi_piwg_device_path): Likewise.
1003 (grub_efi_bios_device_path): Likewise.
1004
1005 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
1008 (grub_ucs4_to_utf8_alloc): Likewise.
1009 (grub_ucs4_to_utf8): Likewise.
1010 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
1011 (grub_ucs4_to_utf8_alloc): Likewise.
1012
1013 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 AFFS never uses unicode.
1016
1017 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
1018 (grub_latin1_to_utf8): New inline function.
1019 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
1020
1021 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
1024 overflow.
1025
1026 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
1029 (grub_squash_dirent_header): Likewise.
1030 (read_chunk): Don't double swap.
1031 (grub_squash_iterate_dir): Fix swap sizes.
1032
1033 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
1036
1037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
1040 (grub_hfs_iterate_dir): Likewise.
1041
1042 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 Fix video on platforms where unaligned access is forbidden.
1045 Make several optimisations while on it.
1046
1047 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
1048 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1049 (grub_video_fbblit_replace_32bit_1bit): Likewise.
1050 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1051 Disable.
1052 (grub_video_fbblit_replace_16bit_1bit):
1053 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1054 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1055 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
1056 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
1057 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1058 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1059 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
1060 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
1061 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
1062 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
1063 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
1064 (grub_video_fbblit_replace_index_RGB888): Likewise.
1065 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
1066 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
1067 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
1068 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1069 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
1070 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1071 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1072 Disable.
1073 (grub_video_fbblit_blend_XXX565_1bit):
1074 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1075 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
1076 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
1077 void *.
1078 * grub-core/video/fb/video_fb.c (common_blitter)
1079 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
1080 (grub_video_fb_create_render_target_from_pointer)
1081 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1082 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
1083 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
1084 definition.
1085 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
1086
1087 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
1090 HH22 and HM10 relocations.
1091
1092 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
1095
1096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
1099 allocation succeeded.
1100
1101 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
1104 argument a u8 pointer. All users updated.
1105 Handle unaligned buffers.
1106
1107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
1110 add_part to workaround compiler bug.
1111
1112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
1115
1116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
1119 Reserve alignment invariants.
1120 (grub_multiboot_load): Likewise.
1121 (retrieve_video_parameters): Likewise.
1122 (grub_multiboot_make_mbi): Likewise.
1123
1124 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
1127 incorrect pointer.
1128
1129 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
1132 (grub_pata_pio_write): Likewise.
1133
1134 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Add noreturn attributes and remove unreachable code.
1137
1138 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
1139 code.
1140 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
1141 code. Mark as noreturn.
1142 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
1143 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
1144 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
1145 unreachable code.
1146 * grub-core/kern/main.c (grub_main): Mark as noreturn.
1147 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
1148 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
1149 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
1150 * include/grub/kernel.h (grub_main): Mark as noreturn.
1151 * include/grub/reader.h (grub_rescue_run): Likewise.
1152
1153 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
1156 redundant declaration.
1157
1158 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * include/grub/net.h (grub_net_network_level_interfaces): Remove
1161 redundant declaration.
1162 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
1163
1164 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
1167 to ensure alignment.
1168 (grub_hdparm_print_identify): Make argument uint16 * to ensure
1169 alignment. Ensure tmp alignment.
1170 (grub_cmd_hdparm): Ensure buf alignment.
1171 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
1172 to ensure alignment.
1173 (grub_ata_dumpinfo): Ensure text alignment.
1174 (grub_atapi_identify): Preserve alignment invariant.
1175 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
1176
1177 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
1180 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
1181 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
1182 * include/grub/misc.h (grub_reboot)
1183 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
1184 (grub_halt) [__mips__]: Likewise.
1185
1186 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
1189 Remove redundant declaration.
1190 (grub_mmap_get_post64): Likewise.
1191 (grub_mmap_get_upper): Likewise.
1192 (grub_mmap_get_lower): Likewise.
1193
1194 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
1197 uint32_t * to ensure alignment.
1198 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
1199
1200 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
1203 uint16_t * to ensure alignment.
1204 (sun_pc_partition_map_iterate): Make `block' a union to ensure
1205 alignment.
1206
1207 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
1210 to ensure alignment.
1211 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
1212
1213 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * grub-core/fs/ntfs.c (u16at): Make into inline function.
1216 Handle unaligned pointers.
1217 (u32at): Likewise.
1218 (u64at): Likewise.
1219 (fixup): Use byte access instead of v16at.
1220 (find_attr): Fix imporper usage of v32at.
1221 (read_data): Likewise.
1222 (list_file): Handle byte-swapping and unaligned strings.
1223 (grub_ntfs_label): Likewise.
1224
1225 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
1228 as it's not necessarily aligned.
1229
1230 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
1233 redundant declaration.
1234 (grub_serial_init): Likewise.
1235 (grub_terminfo_init): Likewise.
1236
1237 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
1240 function.
1241 (ZAP_HASH_IDX): Likewise.
1242 (ZAP_LEAF_HASH_SHIFT): Likewise.
1243 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
1244 (LEAF_HASH): Likewise.
1245 (ZAP_LEAF_NUMCHUNKS): Likewise.
1246 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
1247 alignment invariants. Return pointer. All users updated.
1248 (ZAP_LEAF_ENTRY): Make into inline function.
1249 (NBBY): Removed.
1250 (xor): LIkewise.
1251 (xor_out): Use grub_crypto_xor.
1252 (dnode_get_path): Use grub_get_unaligned.
1253 (nvlist_find_value): Likewise.
1254 (grub_zfs_nvlist_lookup_uint64): Likewise.
1255 (grub_zfs_nvlist_lookup_string): Likewise.
1256 (get_nvlist_size): Likewise.
1257 (grub_zfs_open): Likewise.
1258 (fill_fs_info): Likewise.
1259 (grub_zfs_dir): Likewise.
1260 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
1261 alignment invariants.
1262 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
1263 necessarily aligned.
1264
1265 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
1268
1269 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
1272 arithmetic to conserve alignment invariants.
1273
1274 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
1277 redundant declaration.
1278 (grub_efiemu_mm_obtain_request): Likewise.
1279 (grub_efiemu_prepare): Likewise.
1280
1281 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
1284 to match types.
1285
1286 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
1289 case of aunaligned recptr.
1290 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
1291 alignment.
1292 (grub_hfsplus_btree_search): Handle unaligned index.
1293
1294 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
1297 to get freetag and skip.
1298
1299 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
1302 array.
1303 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
1304 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
1305
1306 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
1309 name for checksum and fix allocation algorithm.
1310
1311 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * include/grub/types.h (grub_properly_aligned_t): New type.
1314 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
1315 (grub_get_unaligned16): Add explicit casts.
1316 (grub_get_unaligned32): Likewise.
1317 (grub_get_unaligned64): Likewise.
1318 (grub_set_unaligned16): New function.
1319 (grub_set_unaligned32): Likewise.
1320
1321 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1324
1325 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1328 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1329 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1330
1331 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1334 conditionals.
1335
1336 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1339 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1340
1341 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 Unify and improve RAID and crypto xor.
1344
1345 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1346 changed to grub_crypto_xor
1347 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1348 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1349 Use bigger types when possible.
1350
1351 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * grub-core/disk/raid.c (scan_devices): Fix condition.
1354
1355 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1358 Make name a const ptr.
1359
1360 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1363 first argument a const pointer.
1364 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1366 proto.
1367 (grub_children_iterate): Likewise.
1368 (grub_machine_mmap_iterate): Remove redundant declaration.
1369
1370 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1373 (grub_cmd_acpi) [!x86]: Disable EBDA.
1374
1375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 Enable UTF8 in gnulib regexp.
1378
1379 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1380 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1381 (isupper): Use grub_isupper.
1382 (isascii): New inline function.
1383 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1384 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1385 * grub-core/normal/charset.c (grub_utf8_process): New function.
1386 (grub_utf8_to_utf16): Use grub_utf8_process.
1387 (grub_encode_utf8_character): New function.
1388 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1389 * include/grub/charset.h (grub_utf8_process): New declaration.
1390 (grub_encode_utf8_character): Likewise.
1391 * include/grub/misc.h (grub_islower): New inline function.
1392 (grub_isupper): Likewise.
1393 (grub_strchrsub): Moved down to fix the definitions.
1394
1395 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1398 specification.
1399
1400 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * include/grub/loader.h (grub_loader_register_preboot_hook):
1403 Use struct preboot * and not void * for handle. All users updated.
1404 (grub_loader_unregister_preboot_hook): Likewise.
1405
1406 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1409 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1410 UTF-16-BE. All users updated.
1411 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1412 (grub_hfsplus_iterate_dir): Likewise.
1413 (grub_hfsplus_label): Likewise.
1414
1415 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1418
1419 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 Add missing const qualifiers.
1422
1423 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1424 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1425 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1426 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1427 (grub_lvm_check_flag): Likewise.
1428 * grub-core/efiemu/i386/coredetect.c
1429 (grub_efiemu_get_default_core_name): Likewise
1430 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1431 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1432 * grub-core/fs/ntfs.c (fixup): Likewise.
1433 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1434 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1435 (fzap_lookup): Likewise.
1436 (zap_lookup): Likewise.
1437 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1438 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1439 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1440 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1441 (grub_freebsd_add_meta_module): Likewise.
1442 (grub_cmd_freebsd_module): Likewise.
1443 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1444 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1445 (grub_xnu_writetree_get_size): Likewise.
1446 (grub_xnu_writetree_toheap_real): Likewise.
1447 (grub_xnu_find_key): Likewise.
1448 (grub_xnu_create_key): Likewise.
1449 (grub_xnu_create_value): Likewise.
1450 (grub_xnu_register_memory): Likewise.
1451 (grub_xnu_check_os_bundle_required): Likewise.
1452 (grub_xnu_scan_dir_for_kexts): Likewise.
1453 (grub_xnu_load_kext_from_dir): Likewise.
1454 * grub-core/normal/color.c (color_list): Likewise.
1455 * grub-core/normal/completion.c (current_word): Likewise.
1456 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1457 * grub-core/term/serial.c (grub_serial_find): Likewise.
1458 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1459 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1460 Likewise.
1461 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1462 (grub_freebsd_add_meta_module): Likewise.
1463 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1464 * include/grub/net.h (grub_net_card_driver): Likewise.
1465 (grub_net_card): Likewise.
1466 (grub_net_app_protocol): Likewise.
1467 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1468 * include/grub/serial.h (grub_serial_find): Likewise.
1469 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1470 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1471 (grub_xnu_create_value): Likewise.
1472 (grub_xnu_find_key): Likewise.
1473 (grub_xnu_scan_dir_for_kexts): Likewise.
1474 (grub_xnu_load_kext_from_dir): Likewise.
1475
1476 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1477 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1478 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1479 Moved from here ...
1480 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1481
1482 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1483
1484 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1485
1486 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1489 (read_device): Fix size calculation.
1490
1491 2011-11-25 Robert Millan <rmh@gnu.org>
1492
1493 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1494 (find_root_device_from_libzfs): Add zpool output parser to be used
1495 as fallback when libzfs isn't available.
1496
1497 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1498
1499 * po/Makefile.in.in: Add missing escape-continuation.
1500
1501 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1504
1505 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1508
1509 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1512
1513 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1516
1517 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/lib/adler32.c: Add missing license specification.
1520 * grub-core/lib/crc64.c: Likewise.
1521 * grub-core/loader/i386/pc/plan9.c: Likewise.
1522 * grub-core/partmap/plan.c: Likewise.
1523
1524 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1525
1526 Add facility to debug GRUB with gdb under qemu.
1527
1528 * grub-core/gdb_grub.in: New file.
1529 * grub-core/gmodule.pl.in: Likewise.
1530 * grub-core/Makefile.core.def (gmodule.pl): New script.
1531 (gdb_grub): Likewise.
1532
1533 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * util/grub-mount.c (argp_parser): Accept relative pathes.
1536 * util/grub-fstest.c (argp_parser): Likewise.
1537
1538 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 Plan9 support.
1541
1542 * Makefile.util.def (libgrubmods): Add
1543 grub-core/partmap/plan.c.
1544 * docs/grub.texi: Notice Plan9 support.
1545 * grub-core/Makefile.core.def (plan9): New module.
1546 (part_plan): Likewise.
1547 * grub-core/loader/i386/pc/plan9.c: New file.
1548 * grub-core/partmap/plan.c: Likewise.
1549 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1550 define.
1551 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1552 * include/grub/mm.h (grub_extend_alloc): New inline function.
1553
1554 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 Make Reed-Solomon faster by using power of generator representation of
1557 GF(256)*.
1558
1559 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1560 (gf_double_t): Likewise.
1561 (gf_invert): Removed.
1562 (gf_powx): New array.
1563 (gf_powx_inv): Likewise.
1564 (scratch): Move higher.
1565 (gf_reduce): Removed.
1566 (gf_mul): Use powx.
1567 (gf_invert): Likewise.
1568 (init_inverts): Replaced with ...
1569 (init_powx): ...this. All users updated.
1570 (pol_evaluate): Replace multiplications with additions.
1571 (rs_encode): Likewise.
1572 (gauss_eliminate): Call gf_invert.
1573 (grub_reed_solomon_add_redundancy): Call init_powx.
1574 (grub_reed_solomon_recover): Call init_powx unconditionally.
1575
1576 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1579
1580 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1583 disk->partiton for safety.
1584
1585 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1588 Fix a memory leak.
1589 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1590
1591 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1594
1595 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1598
1599 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 Fix spaces handling in proc/self/mountinfo.
1602
1603 * util/getroot.c (unescape): New function.
1604 (grub_find_root_device_from_mountinfo): Use unescape.
1605
1606 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 Support ZFS embedding.
1609
1610 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1611 (grub_zfs_fs): Register grub_zfs_embed.
1612
1613 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 Fix MIPS compilation.
1616
1617 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1618 * include/grub/offsets.h: Rename decompressor fields from
1619 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1620 * util/grub-mkimage.c (image_targets): Use new names.
1621
1622 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 Defer multiboot device parsing until we're in compressed part.
1625
1626 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1627 bsd_part. setdevice has fallen into disuse.
1628 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1629 (bsd_part): Likewise.
1630 (boot_dev): New variable.
1631 (multiboot_trampoline): Don't parse multiboot device.
1632 Pass multiboot device in %edx.
1633 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1634 grub_boot_device.
1635 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1636 Likewise.
1637 * grub-core/kern/i386/pc/startup.S: Save edx.
1638 (grub_boot_drive): Removed.
1639 (grub_install_dos_part): Likewise.
1640 (grub_install_bsd_part): Likewise.
1641 (grub_boot_device): New variable.
1642 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1643 (grub_install_bsd_part): Likewise.
1644 (grub_boot_drive): Likewise.
1645 (grub_boot_device): New variable.
1646 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
1647 Removed.
1648 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1649 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
1650 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
1651 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
1652 * util/grub-install.in: Remove redundant condition.
1653
1654 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Fix bug introduced by previous commit.
1657
1658 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1659
1660 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 Use decompressors framework on i386-pc. It increases core size
1663 by 46 bytes but improves compatibility and maintainability.
1664
1665 * grub-core/Makefile.core.def (lzma_decompress): New image.
1666 (kernel): Add i386_pc_ldflags.
1667 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
1668 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
1669 to real_to_prot, prot_to_real and device info.
1670 * include/grub/offsets.h: Renamed decompressor offsets.
1671 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
1672 (image_target_desc): Remove raw_size and rename decompressor fields.
1673 (compress_kernel): Handle lzma.
1674 (generate_image): Handle decompressors on i386-pc.
1675
1676 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1677
1678 * configure.ac: Add -fno-asynchronous-unwind-tables.
1679
1680 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 Move assembly code to C by using intwrap. It increases core size
1683 by 88 bytes but improves compatibility and maintainability.
1684
1685 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
1686 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
1687 ... here. Translated to C.
1688 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
1689 * grub-core/term/i386/pc/console.c (grub_console_getkey):
1690 ... here. Translated to C.
1691 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
1692 * grub-core/term/i386/pc/console.c (grub_console_getxy):
1693 ... here. Translated to C.
1694 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
1695 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
1696 ... here. Translated to C.
1697 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
1698 * grub-core/term/i386/pc/console.c (grub_console_cls):
1699 ... here. Translated to C.
1700 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
1701 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
1702 ... here. Translated to C.
1703 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
1704 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
1705 Translated to C.
1706 * grub-core/term/i386/pc/console.c (int10_9): New function.
1707 (grub_console_putchar): Likewise.
1708 * include/grub/i386/pc/console.h: Removed the not anymore shared
1709 functions.
1710
1711 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 Move grub_chainloader_real_boot out of the kernel.
1714
1715 * grub-core/Makefile.am: Remove machine/loader.h.
1716 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1717 Removed.
1718 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
1719 variable.
1720 (grub_relocator16_keep_a20_enabled): Likewise.
1721 (grub_relocator16_boot): Fill new variables.
1722 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
1723 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
1724 relocator.
1725 (grub_chainloader_unload): Likewise.
1726 (grub_chainloader_cmd): Likewise.
1727 * include/grub/i386/pc/loader.h: Removed.
1728 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
1729 and esi. All initialisers updated.
1730
1731 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1732 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
1733
1734 * Makefile.util.def (grub-mount): New util.
1735 * .bzrignore: Add grub-mount.
1736 * configure.ac: Check for fuse and enable grub-mount if available.
1737 * docs/man/grub-mount.h2m: New file.
1738 * util/grub-mount.c: Likewise.
1739
1740 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/commands/efi/fixvideo.c: Gettextize.
1743 * grub-core/commands/hashsum.c: Likewise.
1744 * grub-core/commands/i386/cmostest.c: Likewise.
1745 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1746 * grub-core/commands/i386/pc/lsapm.c: Likewise.
1747 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1748 * grub-core/commands/lsmmap.c: Likewise.
1749 * grub-core/commands/menuentry.c: Likewise.
1750 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
1751 * grub-core/commands/setpci.c: Likewise.
1752 * grub-core/loader/i386/bsd.c: Likewise.
1753 * grub-core/loader/i386/linux.c: Likewise.
1754 * util/getroot.c: Likewise.
1755 * util/grub-editenv.c: Likewise.
1756 * util/grub-fstest.c: Likewise.
1757 * util/grub-mkfont.c: Likewise.
1758 * util/grub-mkimage.c: Likewise.
1759 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1760 * util/grub-pe2elf.c: Likewise.
1761 * util/grub-probe.c: Likewise.
1762 * util/grub-setup.c: Likewise.
1763 * util/ieee1275/ofpath.c: Likewise.
1764 * util/misc.c: Likewise.
1765 * util/raid.c: Likewise.
1766
1767 2011-11-11 Robert Millan <rmh@gnu.org>
1768
1769 * util/getroot.c (grub_util_get_geom_abstraction): Remove
1770 __attribute__((unused)) from `os_dev', which *is* being used.
1771
1772 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
1775 forgotten define.
1776 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
1777 GRUB_IA64_DL_GOT_ALIGN.
1778 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
1779 GRUB_IA64_DL_TRAMP_ALIGN.
1780
1781 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 Replace grub_fatal with normal errors in i386 linux loader.
1784
1785 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
1786 (allocate_pages): Check find_efi_mmap_size return value.
1787 (grub_e820_add_region): Return error.
1788 (grub_linux_boot): Check mmap return value.
1789
1790 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/commands/acpihalt.c: Gettextized.
1793 * grub-core/commands/cacheinfo.c: Likewise.
1794 * grub-core/commands/cmp.c: Likewise.
1795 * grub-core/commands/efi/loadbios.c: Likewise.
1796 * grub-core/commands/gptsync.c: Likewise.
1797 * grub-core/commands/ieee1275/suspend.c: Likewise.
1798 * grub-core/commands/legacycfg.c: Likewise.
1799 * grub-core/commands/memrw.c: Likewise.
1800 * grub-core/commands/minicmd.c: Likewise.
1801 * grub-core/commands/parttool.c: Likewise.
1802 * grub-core/commands/time.c: Likewise.
1803 * grub-core/commands/videoinfo.c: Likewise.
1804 * grub-core/disk/geli.c: Likewise.
1805 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
1806 * grub-core/disk/luks.c: Likewise.
1807 * grub-core/disk/lvm.c: Likewise.
1808 * grub-core/font/font_cmd.c: Likewise.
1809 * grub-core/fs/zfs/zfscrypt.c: Likewise.
1810 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1811 * grub-core/gfxmenu/view.c: Likewise.
1812 * grub-core/kern/emu/hostdisk.c: Likewise.
1813 * grub-core/kern/emu/main.c: Likewise.
1814 * grub-core/kern/emu/misc.c: Likewise.
1815 * grub-core/kern/emu/mm.c: Likewise.
1816 * grub-core/kern/mips/arc/init.c: Likewise.
1817 * grub-core/kern/mips/loongson/init.c: Likewise.
1818 * grub-core/kern/partition.c: Likewise.
1819 * grub-core/lib/i386/halt.c: Likewise.
1820 * grub-core/lib/mips/arc/reboot.c: Likewise.
1821 * grub-core/lib/mips/loongson/reboot.c: Likewise.
1822 * grub-core/loader/i386/pc/chainloader.c: Likewise.
1823 * grub-core/loader/i386/xnu.c: Likewise.
1824 * grub-core/loader/multiboot.c: Likewise.
1825 * grub-core/net/bootp.c: Likewise.
1826 * grub-core/net/net.c: Likewise.
1827 * grub-core/normal/term.c: Likewise.
1828 * grub-core/partmap/bsdlabel.c: Likewise.
1829 * grub-core/parttool/msdospart.c: Likewise.
1830 * grub-core/term/gfxterm.c: Likewise.
1831 * grub-core/term/terminfo.c: Likewise.
1832 * grub-core/video/i386/pc/vbe.c: Likewise.
1833 * util/grub-menulst2cfg.c: Likewise.
1834 * util/grub-mkdevicemap.c: Likewise.
1835 * util/grub-mklayout.c: Likewise.
1836 * util/grub-mkrelpath.c: Likewise.
1837 * util/grub-script-check.c: Likewise.
1838 * util/ieee1275/grub-ofpathname.c: Likewise.
1839 * util/resolve.c: Likewise.
1840
1841 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 Support %1$d syntax.
1844
1845 * tests/printf_unit_test.c: New file.
1846 * Makefile.util.def (printf_test): New test.
1847 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
1848
1849 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
1852 fix.
1853
1854 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
1857 dprintf.
1858 * grub-core/font/font.c (grub_font_load): Likewise.
1859
1860 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * util/grub-macho2img.c: Add comment concerning gettext.
1863 * grub-core/lib/legacy_parse.c: Likewise.
1864
1865 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
1868 (grub_xvasprintf): Likewise.
1869
1870 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 Add const keyword to grub_env_get and gettextize week days.
1873
1874 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
1875 (grub_read_hook_datetime): Return const char *.
1876 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
1877 updated.
1878 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1879 Mark for gettext.
1880 (grub_get_weekday_name): Return const char *. Call gettext.
1881 * grub-core/script/argv.c (grub_script_argv_append): Receive const
1882 char * and len as the argument. All users updated.
1883 (grub_script_argv_split_append): Receive const char *.
1884 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
1885 * include/grub/env.h (grub_env_get): Likewise.
1886 (grub_env_read_hook_t): Return const char *.
1887 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
1888 (grub_script_argv_split_append): Likewise.
1889
1890 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
1893
1894 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
1897 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
1898
1899 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
1902 Fix prototype.
1903
1904 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 Fix mips compilation.
1907
1908 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
1909 normal decoder.
1910 (hashes): Use in embed decoder as well (for sizes).
1911 (dec_stream_header): Fix embed decompressor logic.
1912 (dec_stream_footer): Likewise.
1913
1914 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
1917 an error and not a fatal on unrecognised relocation types.
1918
1919 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1922 Issue error rather than printf on unknown arguments.
1923
1924 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1927 Make buf a const.
1928
1929 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1932 Fix module name.
1933
1934 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1937 leftover debug printf.
1938
1939 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1942
1943 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1946 A stylistic fix.
1947
1948 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1951
1952 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1953
1954 Allow all modules to perform serial IO
1955
1956 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
1957 * include/grub/serial.h (grub_serial_port_configure): New inline
1958 function.
1959 (grub_serial_port_fetch): Likewise.
1960 (grub_serial_port_put): Likewise.
1961 (grub_serial_port_fini): Likewise.
1962 (grub_serial_find): New proto.
1963
1964 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 Put symlink at the end of the node and fix a potential
1967 memory corruption.
1968
1969 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
1970 Make symlink into an array.
1971 (set_rockridge): Set have_symlink and alloc_dirents.
1972 (grub_iso9660_read_symlink): Use new layout.
1973 (grub_iso9660_iterate_dir): Fix memory corruption.
1974 Use new layout.
1975 (grub_iso9660_dir): Set have_symlink.
1976 (grub_iso9660_open): Likewise.
1977
1978 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1979
1980 Remove local keyword.
1981
1982 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
1983 (version_test_gt): Likewise.
1984 (version_find_latest): Likewise.
1985 (gettext_printf): Likewise.
1986 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
1987
1988 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
1991
1992 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 Fix ZFS memory and resource leaks.
1995
1996 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
1997 All users updated.
1998 Free type on exit.
1999 (fill_vdev_info): New parameter inserted. All users updated.
2000 (check_pool_label): Likewise.
2001 (scan_disk): Likewise.
2002 (scan_devices): Close non-inserted disks.
2003 (fzap_iterate): Free l.
2004 (unmount_device): Free children descripto memory.
2005
2006 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
2009 argument (access out of bounds).
2010
2011 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
2014 >= 6 drives.
2015
2016 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
2019 Fix declaration.
2020
2021 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 Fix several memory leaks.
2024
2025 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
2026 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
2027 (grub_cpio_dir): Likewise.
2028 * grub-core/fs/fat.c (grub_fat_label): Likewise.
2029 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
2030 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
2031 (grub_romfs_label): Likewise.
2032 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
2033 (squash_unmount): New function.
2034 (grub_squash_dir): Fix memory leak.
2035 (grub_squash_open): Likewise.
2036 (grub_squash_read): Likewise.
2037 (grub_squash_mtime): Likewise.
2038 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
2039 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
2040 * util/grub-fstest.c (fstest): Likewise.
2041
2042 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
2045 avoid accessing beyond the array.
2046
2047 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
2050
2051 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 Several AFFS fixes.
2054
2055 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
2056 (GRUB_AFFS_FLAG_FFS): Removed.
2057 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
2058 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
2059 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
2060 (grub_fshelp_node): Make block 32-bit.
2061 Add block_cache and last_block_cache.
2062 (grub_affs_read_block): Fill and use block cache.
2063 (grub_affs_read_file): Removed.
2064 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
2065 boot block.
2066 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
2067 safety.
2068 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
2069 space.
2070 (grub_affs_close): Free block cache.
2071 (grub_affs_read): Use grub_fshelp_read_file directly.
2072
2073 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
2076 with no error set.
2077
2078 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
2081 used variable.
2082 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2083 Likewise.
2084
2085 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
2088
2089 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
2090 byteswap when needed.
2091
2092 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 Fix FreeBSD compilation.
2095
2096 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
2097 to avoid circular dependency.
2098 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
2099 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
2100 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
2101
2102 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 Fix ZFS crypto error types.
2105
2106 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
2107 (grub_gcm_decrypt): Likewise.
2108 (grub_zfs_load_key_real): Fix error code type. Handle possible error
2109 from PBKDF2.
2110
2111 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 Illumos support.
2114
2115 * Makefile.util.def (10_illumos): New script.
2116 * configure.ac: Set COND_HOST_ILLUMOS.
2117 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
2118 Support Illumos calls.
2119 (find_partition_start) [__sun__]: Likewise.
2120 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
2121 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
2122 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
2123 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
2124 device.
2125 * util/grub-probe.c (probe) [__sun__]: Do character check.
2126 * util/grub.d/10_illumos.in: New file.
2127
2128 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 Support escaped commas in hostdisk.
2131
2132 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
2133 (find_grub_drive): Use unescape_cmp.
2134 (make_device_name): Escape commas.
2135
2136 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
2139
2140 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
2143 variable.
2144
2145 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 Support trampoline jumps on powerpc.
2148
2149 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
2150 __ia64__ path.
2151 (grub_dl_load_segments): Set mod->sz.
2152 (grub_dl_flush_cache): Flush whole space occupied by module, not just
2153 segments.
2154 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
2155 (jump): Likewise.
2156 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
2157 function.
2158 (trampoline): New struct.
2159 (trampoline_template): New const.
2160 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
2161 * include/grub/dl.h (grub_dl): Add sz element.
2162 [__powerpc__]: Follow __ia64__.
2163 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
2164 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
2165 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
2166 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
2167
2168 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 ZFS crypto support.
2171
2172 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
2173 * grub-core/Makefile.core.def (zfscrypt): New module.
2174 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
2175 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
2176 it. All users updated.
2177 (grub_zfs_decrypt): New var.
2178 (grub_zfs_load_key): Likewise.
2179 (zio_checksum_functions): Add SHA256+MAC.
2180 (zio_checksum_verify): Handle incomplete comparison due to MAC.
2181 (zio_read): Handle encrypted blocks.
2182 (zap_verify): Remove incorrect check.
2183 (fzap_iterate): Handle non-standard fzap.
2184 (zap_iterate): Likewise.
2185 (zap_iterate_u64): New function.
2186 (dnode_get_fullpath): Load keys.
2187 * grub-core/fs/zfs/zfscrypt.c: New file.
2188 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
2189 (grub_crypto_ecb_encrypt): Make input const.
2190 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
2191 (grub_crypto_ecb_encrypt): Make input const.
2192 (GRUB_CIPHER_AES): New macro.
2193 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
2194 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
2195 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
2196 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
2197 prefix. All users updated.
2198 (grub_zfs_add_key): New proto.
2199 (grub_zfs_decrypt): Likewise.
2200 (grub_zfs_load_key): Likewise.
2201 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
2202 * util/grub-fstest.c (options): Add -K option.
2203 (argp_parser): Likewise.
2204
2205 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 Support zle compression on ZFS.
2208
2209 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
2210 (decomp_table): Add zle.
2211 * include/grub/zfs/zio.h (zio_compress): Add zle.
2212
2213 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 Support BtrFS embedding.
2216
2217 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
2218 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
2219 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
2220 * util/grub-setup.c (setup): Use fs embedding if available.
2221 Add additional sanity check.
2222
2223 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * util/grub-install.in: Fix condition for config_opt.
2226
2227 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 Support third redundancy strip on raidz3.
2230
2231 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
2232 Return error on singularity. All users updated.
2233 (read_device): Don't stop on 3rd failure on raidz3.
2234
2235 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 Support case-insensitive ZFS subvolumes.
2238
2239 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
2240 All users updated.
2241 (zap_hash): Likewise.
2242 (name_cmp): New function.
2243 (zap_leaf_array_equal): New parameter case_insensitive.
2244 All users updated.
2245 (zap_leaf_lookup): Likewise.
2246 (fzap_lookup): Likewise.
2247 (zap_lookup): Likewise.
2248 (dnode_get_path): New parameter case_insensitive. Retrieve case
2249 sensitiviness of a volume. All users updated.
2250 (dnode_get_fullpath): New parameter case_insensitive.
2251 All users updated.
2252 (grub_zfs_dir): Set info.case_insensitiveness.
2253
2254 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 Support second redundancy strip on raidz(2,3).
2257
2258 * grub-core/fs/zfs/zfs.c (powx): New array.
2259 (powx_inv): Likewise.
2260 (poly): New const.
2261 (xor_out): New function.
2262 (gf_mul): Likewise.
2263 (recovery): Likewise.
2264 (read_device): Use second redundancy strip.
2265
2266 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 Use a power of generator representation of GF(256) multiplication group
2269 to save space time and complexity.
2270
2271 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
2272 (raid6_table2): Likewise.
2273 (powx): New array.
2274 (powx_inv): Likewise.
2275 (poly): New const.
2276 (grub_raid_block_mul): Replace with ...
2277 (grub_raid_block_mulx): ...this.
2278 (grub_raid6_init_table): Rewritten.
2279 (grub_raid6_recover): Use power of generator representation.
2280
2281 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
2284 for the right device.
2285
2286 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
2289 expected by grub-mkimage and it's more clear since there is no implicit
2290 padding.
2291
2292 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
2295 disk.
2296 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2297
2298 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
2299
2300 * util/grub-mkrescue.in: Fix handling xorriso option.
2301
2302 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
2305 NULL.
2306
2307 2011-11-03 crocket <crockabiscuit@gmail.com>
2308
2309 * util/grub.d/10_linux.in: Add Slackware initrd naming.
2310
2311 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 XZ CRC64 and SHA256 support.
2314
2315 * Makefile.util.def (libgrubmods): Add crc64.c.
2316 * grub-core/Makefile.core.def (crc64): New module.
2317 * grub-core/lib/crc64.c: New file.
2318 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
2319 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2320 Fix the type.
2321 (MAX_HASH_SIZE): New define.
2322 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2323 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2324 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2325 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2326 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2327 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2328 Handle non-crc32 hashes.
2329 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2330 (dec_stream_header): Handle non-crc32 hashes.
2331 (dec_stream_footer): Likewise.
2332 (dec_block_header): Likewise.
2333 (dec_main): Likewise.
2334 (xz_dec_init): Likewise.
2335 (xz_dec_reset): Likewise.
2336 (xz_dec_end): Likewise.
2337 * util/import_gcry.py: Add CRC64 line.
2338
2339 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2342 as well.
2343
2344 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 Make reiserfs label retrieval similar to other *_label functions.
2347
2348 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2349 (REISERFS_MAX_LABEL_LENGTH): Removed.
2350 (REISERFS_LABEL_OFFSET): Likewise.
2351 (grub_reiserfs_label): Rewritten.
2352
2353 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2356 field.
2357
2358 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2361
2362 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2365 drive failure on both raidz and raidz2.
2366
2367 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 Fix RAIDZ(2) for >= 5 devices.
2370
2371 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2372 asize argument. All users updated.
2373
2374 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 Fix RAIDZ(2).
2377
2378 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2379 (fill_vdev_info_real): Set ashift.
2380 (read_device): Rewrite RAIDZ part based on reverse engineering.
2381
2382 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2385 don't report potentially unavialiable fields in debug output.
2386 (find_path): Fix double-free and memory leak.
2387
2388 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 Read label on UFS1.
2391
2392 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2393 (grub_ufs_fs): Always set .label.
2394
2395 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 Use shifts in UFS.
2398
2399 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2400 (grub_ufs_data): New field log2_blksz.
2401 (grub_ufs_read_file): Use shifts.
2402 (grub_ufs_mount): Check block size and logarithm it.
2403
2404 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2407 long symlinks.
2408
2409 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 Handle symlinks and long names on tar and cpio.
2412
2413 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2414 (ATTR_FILE): Likewise.
2415 (ATTR_DIR): Likewise.
2416 (ATTR_LNK): Likewise.
2417 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2418 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2419 L and K entries.
2420 (grub_cpio_mount): Zero-fill data.
2421 (handle_symlink): New function.
2422 (grub_cpio_dir): Handle symlinks.
2423 (grub_cpio_open): Likewise.
2424 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2425
2426 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 Fix iso9660 filename limitations and fix memory leaks.
2429
2430 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2431 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2432
2433 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 Fix JFS file name length limitations.
2436
2437 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2438 (grub_jfs_diropen): Fix maximum filename length.
2439 (grub_jfs_getent): Fix filename length.
2440 (grub_jfs_lookup_symlink): Fix size checks.
2441
2442 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2445 string.
2446
2447 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 Leverage BFS implementation to read AFS.
2450
2451 * Makefile.util.def (libgrubmods): Add afs.c.
2452 * grub-core/Makefile.core.def (afs): New module
2453 * grub-core/fs/afs.c: New file.
2454 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2455
2456 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2459
2460 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/fs/bfs.c: Run indent.
2463
2464 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 BFS implementation based on the specification.
2467
2468 * grub-core/fs/bfs.c: New file.
2469 * Makefile.util.def (libgrubmods): Add bfs.c.
2470 * grub-core/Makefile.core.def (bfs): New module.
2471
2472 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * util/grub-fstest.c (cmd_cp): Clarify error message.
2475 (cmd_cmp): Likewise.
2476
2477 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2478
2479 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2480 and befs_be.
2481
2482 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 Remove afs and befs because of copyright problem.
2485
2486 * grub-core/fs/afs.c: Removed.
2487 * grub-core/fs/afs_be.c: Removed.
2488 * grub-core/fs/befs.c: Removed.
2489 * grub-core/fs/befs_be.c: Removed.
2490 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2491 * grub-core/Makefile.core.def (afs): Removed.
2492 (afs_be): Likewise.
2493 (befs): Likewise.
2494 (befs_be): Likewise.
2495
2496 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 Prefer rockridge over Joliet.
2499
2500 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2501 to ...
2502 (set_rockridge): ... here.
2503 (grub_iso9660_mount): Check rockridge on the primary label when
2504 discovering. Ignore Joliet if Rockridge is present.
2505
2506 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 Use shifts in nilfs2.
2509
2510 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2511 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2512 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2513 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2514 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2515 (grub_nilfs2_entries_per_block): Replaced with ...
2516 (grub_nilfs2_log_entries_per_block_log): ... this.
2517 (grub_nilfs2_blocks_per_group): Replaced with ...
2518 (grub_nilfs2_blocks_per_group_log): ... this.
2519 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2520 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2521 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2522 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2523 (grub_nilfs2_palloc_entry_offset): Replaced ...
2524 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2525 (grub_nilfs2_dat_translate): Use shifts.
2526 (grub_nilfs2_read_inode): Likewise.
2527 (GRUB_MOD_INIT): Ensure that logs are correct.
2528
2529 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 Use shifts in minix filesystem.
2532
2533 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2534 (GRUB_MINIX_ZONE2SECT): Likewise.
2535 (grub_minix_data): Replace block_size with log_block_size.
2536 (grub_minix_read_file): Use shifts.
2537 (grub_minix_mount): Check block size and take a logarithm.
2538
2539 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Use shifts in squash4.
2542
2543 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2544 (squash_mount): Check block size and take logarithm.
2545 (direct_read): Use shifts.
2546
2547 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 Correct befs block counting logic.
2550
2551 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2552 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2553 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2554 (grub_afs_read_inode): Use block_shift.
2555 (RANGE_SHIFT): New definition.
2556 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2557 unexpected conditions, use shifts and appropriate types.
2558 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2559
2560 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * grub-core/disk/raid.c (scan_devices): Check partition.
2563 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2564
2565 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 Support BFS (befs) UUID.
2568
2569 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2570 (grub_afs_small_data_element_header): New struct.
2571 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2572 (grub_afs_read_attribute) [MODE_BFS]: New function.
2573 (grub_afs_iterate_dir): Allocate for complete inode.
2574 (grub_afs_mount): Likewise.
2575 (grub_afs_uuid) [MODE_BFS]: New function.
2576 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2577
2578 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2581 (zfs_unmount): Fix memory leak.
2582
2583 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 Support NTFS reparse points.
2586
2587 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2588 (symlink_descriptor): New struct.
2589 (grub_ntfs_read_symlink): New function.
2590 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2591 (grub_ntfs_open): Likewise.
2592
2593 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2596
2597 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 fstest xnu_uuid subcommand.
2600
2601 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2602 grub-core/commands/xnu_uuid.c.
2603 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2604 (fstest): Handle xnu_uuid.
2605 (options): Document xnu_uuid.
2606 (argp_parser): Parse xnu_uuid.
2607
2608 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2611 -l argument. Add newline at the end if printing.
2612 (GRUB_MOD_INIT): Document -l.
2613
2614 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2617
2618 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 ZFS multi-device and version 33 support.
2621
2622 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2623 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2624 (grub_zfs_data): Add multidev-ice-related fields.
2625 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2626 (dva_get_offset): Make dva const.
2627 (zfs_fetch_nvlist): New function.
2628 (fill_vdev_info_real): Likewise.
2629 (fill_vdev_info): Likewise.
2630 (check_pool_label): Likewise.
2631 (scan_disk): Likewise.
2632 (scan_devices): Likewise.
2633 (read_device): Likewise.
2634 (read_dva): Likewise.
2635 (zio_read_gang): Use read_dva.
2636 (zio_read_data): Likewise.
2637 (zap_leaf_lookup): Add missing endian conversion.
2638 (zap_verify): Add missing endian conversion. All users updated.
2639 (fzap_lookup): Likewise.
2640 (fzap_iterate): Likewise.
2641 (dnode_get_path): Handle SA bonus.
2642 (nvlist_find_value): Make input const. All users updated.
2643 (unmount_device): New function.
2644 (zfs_unmount): Use unmount_device.
2645 (zfs_mount): Use scan_disk.
2646 (zfs_mtime): New function.
2647 (grub_zfs_open): Handle system attributes.
2648 (fill_fs_info): Likewise.
2649 (grub_zfs_dir): Likewise.
2650 (grub_zfs_fs): Add mtime.
2651 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
2652 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
2653 (SA_MTIME_OFFSET): Likewise.
2654 (SA_SYMLINK_OFFSET): Likewise.
2655 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
2656 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
2657 (fstest): Support zfsinfo.
2658 (argp_parser): Likewise.
2659
2660 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2663 error.
2664
2665 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 ZFS fixes.
2668
2669 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
2670 sharing the same block. Iterate over correct number of indices.
2671 (dnode_get_path): Handle symlinks correctly.
2672
2673 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2676
2677 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 Read label on HFS+.
2680
2681 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
2682 (grub_hfsplus_btree_search): Fix types.
2683 (grub_hfsplus_label): Implement.
2684
2685 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2688
2689 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2692
2693 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 Fix symlink handling on iso9660.
2696
2697 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2698 All users updated.
2699 (grub_iso9660_susp_iterate): Accept zero-size iterate.
2700 (grub_iso9660_read_symlink): Moved most of code ...
2701 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
2702
2703 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2706 Use union to avoid breaking strict-aliasing rules.
2707
2708 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 Support multi-extent iso files.
2711
2712 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
2713 Add node.
2714 (grub_fshelp_node): Revamp. All users updated.
2715 (FLAG_*): New enum.
2716 (read_node): New function.
2717 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
2718 All users updated.
2719 (grub_iso9660_mount): Don't attempt to read sua when there is none.
2720 (get_node_size): New function.
2721 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
2722 entries.
2723 Fix memory leak on . and ..
2724 (grub_iso9660_read): Use read_node.
2725 (grub_iso9660_close): Free node.
2726
2727 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 Fix tar 4G limit and handle paths containing dot.
2730
2731 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
2732 (canonicalize): New function.
2733 (grub_cpio_find_file): Use canonicalize. Store offs in
2734 grub_disk_addr_t.
2735 (grub_cpio_dir): Use grub_disk_addr_t.
2736 (grub_cpio_open): Likewise.
2737
2738 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 Fix handling of uncompressed blocks on squashfs and break 4G limit.
2741
2742 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
2743 unused flags.
2744 (grub_squash_inode): Add long_file and block_size.
2745 (grub_squash_cache_inode): New struct.
2746 (grub_squash_dirent): Make types into enum.
2747 (SQUASH_TYPE_LONG_REGULAR): New type.
2748 (grub_squash_frag_desc): Add field size.
2749 (SQUASH_BLOCK_FLAGS): New enum.
2750 (grub_squash_data): Use grub_squash_cache_inode.
2751 (grub_fshelp_node): Make ino_chunk 64-bit.
2752 (read_chunk): Minor argument change. All users updated.
2753 (squash_mount): Use correct le_to_cpu.
2754 (grub_squash_open): Handle LONG_REGULAR.
2755 (direct_read): New function.
2756 (grub_squash_read_data): Handle blocks correctly.
2757
2758 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
2761
2762 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
2765
2766 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 Fix 2G limit on ZFS.
2769
2770 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
2771 types.
2772 (uberblock_verify): Likewise.
2773 (dmu_read): Likewise.
2774 (grub_zfs_read): Likewise. Remove invalid cast.
2775
2776 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
2779 (grub_jfs_blkno): Fix incorrect shift.
2780 (grub_jfs_read_file): Use more appropriate types.
2781
2782 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 Support triple indirect on minix2 and minix3.
2785
2786 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
2787 Declare triple_indir_zone.
2788 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
2789 indirect.
2790
2791 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 Minix FS fixes.
2794
2795 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
2796 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
2797 Rename ctime to mtime. All users updated.
2798 (grub_minix_get_file_block): Fix types and double indirect computations.
2799
2800 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
2803 if no label is found.
2804 (grub_fat_iterate_dir): Fix file size type.
2805 (grub_fat_iterate_dir): Likewise.
2806
2807 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
2810 save some space.
2811 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2812 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2813
2814 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
2817
2818 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * util/import_gcry.py: Accept space between # and include.
2821
2822 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
2825
2826 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 Fine grainely disable warnings on lexer. Remove Wno-error on it.
2829
2830 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
2831 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
2832 yylex_strncpy.
2833 * grub-core/script/yylex.l: Add fine-grained #pragma.
2834
2835 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
2838 New inline function.
2839 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
2840 Likewise.
2841 (memset) [GRUB_UTIL]: Likewise.
2842 (memcmp) [GRUB_UTIL]: Likewise.
2843
2844 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
2847 inline function rather than a define.
2848
2849 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * util/grub-setup.c: Add missing include.
2852
2853 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * util/ieee1275/grub-ofpathname.c: Add missing include.
2856
2857 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
2860 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
2861 Likewise.
2862
2863 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
2866 grub_memcmp usage.
2867
2868 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * util/grub-install.in: Add datarootdir as per automake manual
2871 suggestion.
2872 * util/grub-mknetdir.in: Likewise.
2873
2874 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
2877 suggestion.
2878 * util/grub.d/10_kfreebsd.in: Likewise.
2879 * util/grub.d/10_linux.in: Likewise.
2880 * util/grub.d/10_netbsd.in: Likewise.
2881 * util/grub.d/10_windows.in: Likewise.
2882 * util/grub.d/20_linux_xen.in: Likewise.
2883
2884 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2885
2886 Remove redundant grub_kernel_image_size.
2887
2888 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
2889 _edata and _start.
2890 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
2891 the small code. It moves it only by few bytes but simplifies the code.
2892 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
2893 _start.
2894 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
2895 (grub_kernel_image_size): Removed.
2896 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
2897 (grub_kernel_image_size): Removed.
2898 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
2899 compiled with Apple toolchain.
2900 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
2901 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
2902 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
2903 (grub_total_module_size): Likewise.
2904 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
2905 Removed.
2906 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
2907 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
2908 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2909 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
2910 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
2911 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
2912 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
2913 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
2914 Removed.
2915 (grub_total_module_size): Removed.
2916 * util/grub-mkimage.c (image_target_desc): Remove image_size.
2917 (image_targets): Likewise.
2918 Set .compressed_size to no field on sparc.
2919 (generate_image): Remove kernel_image_size handling.
2920
2921 2011-10-19 Szymon Janc <szymon@janc.net.pl>
2922
2923 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
2924 NULL pointer dereference.
2925
2926 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2929 done with a dedicated section.
2930
2931 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
2932 Ensure the correct position of boot_path.
2933 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
2934 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
2935 other fields.
2936 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
2937 * include/grub/boot.h: Removed. All references removed.
2938 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2939 Removed.
2940 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2941
2942 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2945 name.
2946
2947 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2950
2951 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2954 Don't add the bogus brackets.
2955
2956 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 ExFAT support.
2959
2960 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
2961 * grub-core/Makefile.core.def (exfat): New module.
2962 * grub-core/fs/exfat.c: New file.
2963 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
2964 (GRUB_FAT_ATTR_*): Make into an enum.
2965 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
2966 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
2967 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
2968 (GRUB_FAT_MAXFILE): Removed.
2969 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
2970 (grub_current_fat_bpb_t): New type.
2971 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
2972 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
2973 (grub_fat_dir_node_t): New type.
2974 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
2975 (fat_log2) [MODE_EXFAT]: Removed.
2976 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
2977 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
2978 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
2979 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
2980 (grub_fat_label) [MODE_EXFAT]: New function.
2981 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
2982 reserved_first_sector to 0.
2983
2984 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 Move grub_reboot out of the kernel.
2987
2988 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
2989 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
2990 * grub-core/lib/efi/reboot.c: ... here.
2991 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
2992 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2993 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
2994 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
2995 * grub-core/lib/i386/reboot_trampoline.S: ... here.
2996 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
2997 * grub-core/lib/ieee1275/reboot.c: ... here.
2998 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
2999 * grub-core/lib/mips/arc/reboot.c: ... here.
3000 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
3001 * grub-core/lib/mips/loongson/reboot.c: ...here.
3002 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
3003 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
3004 * include/grub/emu/misc.h (grub_reboot): New function declaration.
3005 * include/grub/i386/reboot.h: New file.
3006 * include/grub/mips/loongson/ec.h: Fix includes.
3007 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
3008 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
3009 * grub-core/lib/i386/reboot.c: New file.
3010
3011 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 Make grub_prefix into module to fix the arbitrary limit and save
3014 some space.
3015
3016 * grub-core/kern/emu/main.c (grub_prefix): Removed.
3017 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
3018 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
3019 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
3020 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
3021 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
3022 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
3023 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
3024 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3025 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
3026 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
3027 * include/grub/ia64/efi/kernel.h: Removed.
3028 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
3029 (grub_prefix): Removed.
3030 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
3031 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
3032 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
3033 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
3034 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
3035 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
3036 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
3037 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
3038 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
3039 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
3040 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3041 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3042 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3043 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3044 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
3045 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
3046 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
3047 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3048 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
3049 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
3050 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
3051 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
3052 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
3053 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
3054 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
3055 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
3056 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
3057 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
3058 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
3059 from module.
3060 * util/grub-mkimage.c (image_target_desc): Removed prefix and
3061 prefix_end.
3062 (image_targets): Likewise.
3063 (generate_image): Put prefix as a module.
3064
3065 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 Replace grub_module_iterate with FOR_MODULES.
3068
3069 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
3070 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
3071 (grub_efi_modules_addr): ...this.
3072 * grub-core/kern/efi/init.c (grub_modbase): New variable.
3073 (grub_efi_init): Set grub_modbase.
3074 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
3075 (grub_modbase): New variable.
3076 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
3077 (grub_modbase): New variable.
3078 (grub_machine_init): Set grub_modbase.
3079 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
3080 (grub_modbase): New variable.
3081 (grub_machine_init): Set grub_modbase.
3082 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
3083 (grub_modbase): New variable.
3084 (grub_machine_init): Set grub_modbase.
3085 * grub-core/kern/main.c (grub_module_iterate): Remove.
3086 (grub_modules_get_end): Use grub_modbase.
3087 (grub_load_modules): Use FOR_MODULES.
3088 (grub_load_config): Likewise.
3089 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
3090 (grub_modbase): New variable.
3091 (grub_machine_init): Set grub_modbase.
3092 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
3093 (grub_modbase): New variable.
3094 (grub_machine_init): Set grub_modbase.
3095 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
3096 Removed.
3097 (grub_modbase): New variable.
3098 (grub_machine_init): Set grub_modbase.
3099 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
3100 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
3101 (grub_module_iterate): Likewise.
3102 (grub_modbase): New variable declaration.
3103 (FOR_MODULES): New macro.
3104
3105 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * configure.ac: Check for __ctzdi2 and __ctzsi2.
3108 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
3109
3110 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 Fix few obvious type discrepancies.
3113
3114 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
3115 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
3116 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
3117 variable.
3118 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
3119 and connected types.
3120 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
3121 offset.
3122 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
3123 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
3124 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
3125 and connected types.
3126
3127 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 Fix python 3.x incompatibilities.
3130
3131 * gentpl.py: Put brackets around print strings.
3132 * util/import_gcry.py: Open explicitly as utf-8.
3133 Use in instead of has_key.
3134
3135 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
3138 (GRUB_XFS_INO_AGBITS): Make into inline function.
3139 (GRUB_XFS_INO_INOINAG): Likewise.
3140 (GRUB_XFS_INO_AG): Likewise.
3141 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
3142 (GRUB_XFS_EXTENT_OFFSET): Likewise.
3143 (GRUB_XFS_EXTENT_BLOCK): Likewise.
3144 (GRUB_XFS_EXTENT_SIZE): Likewise.
3145 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
3146 (GRUB_XFS_NEXT_DIRENT): Likewise.
3147 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
3148 (grub_xfs_read_file): Fix offset type.
3149
3150 2011-10-15 Robert Millan <rmh@gnu.org>
3151
3152 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
3153
3154 2011-10-15 Robert Millan <rmh@gnu.org>
3155
3156 Fix build problem on FreeBSD and GNU/kFreeBSD.
3157
3158 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
3159
3160 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
3163
3164 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
3165 types.
3166 (grub_hfsplus_btree_recoffset): Likewise.
3167 (grub_hfsplus_btree_recptr): Likewise.
3168 (grub_hfsplus_find_block): Likewise.
3169 (grub_hfsplus_btree_search): Likewise.
3170 (grub_hfsplus_read_block): Likewise.
3171 (grub_hfsplus_read_file): Likewise.
3172 (grub_hfsplus_mount): Likewise.
3173 (grub_hfsplus_btree_iterate_node): Likewise.
3174 (grub_hfsplus_btree_search): Likewise.
3175 (grub_hfsplus_iterate_dir): Likewise.
3176 (grub_hfsplus_read): A small code simplification.
3177
3178 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/kern/emu/hostdisk.c
3181 (convert_system_partition_to_system_disk): Don't assume that children
3182 of mapper nodes are mapper nodes.
3183
3184 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
3187 * include/grub/misc.h (grub_isxdigit): New function.
3188 * grub-core/video/colors.c (my_isxdigit): Removed. All users
3189 switched to grub_isxdigit.
3190 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
3191 number starting with a letter.
3192
3193 2011-10-09 Robert Millan <rmh@gnu.org>
3194
3195 LVM support for FreeBSD and GNU/kFreeBSD.
3196
3197 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
3198 GNU/kFreeBSD.
3199 (LVM_DEV_MAPPER_STRING): Move from here ...
3200 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
3201 * util/getroot.c: Include `<grub/util/lvm.h>'.
3202 (grub_util_get_dev_abstraction): Enable
3203 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
3204 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
3205 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
3206 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
3207 support it.
3208 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
3209 GNU/kFreeBSD.
3210 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
3211 when LVM abstraction is required for ${GRUB_DEVICE}.
3212
3213 2011-10-06 Szymon Janc <szymon@janc.net.pl>
3214
3215 Add support for LZO compression in GRUB:
3216 - import of minilzo library,
3217 - LZO decompression for btrfs,
3218 - lzop files decompression.
3219
3220 * grub-core/io/lzopio.c: New file.
3221 * grub-core/lib/adler32.c: Likewise.
3222 * grub-core/lib/minilzo/lzoconf.h: Likewise.
3223 * grub-core/lib/minilzo/lzodefs.h: Likewise.
3224 * grub-core/lib/minilzo/minilzo.c: Likewise.
3225 * grub-core/lib/minilzo/minilzo.h: Likewise.
3226 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
3227 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
3228 grub-core/lib/minilzo/minilzo.c to common.
3229 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
3230 cflags in cppflags.
3231 * grub-core/Makefile.core.def (btrfs): Likewise.
3232 * grub-core/Makefile.core.def (lzopio): New module.
3233 (adler32): Likewise.
3234 * grub-core/fs/btrfs.c: Include minilzo.h.
3235 (GRUB_BTRFS_COMPRESSION_LZO): New define.
3236 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
3237 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
3238 (grub_btrfs_lzo_decompress): New function.
3239 (grub_btrfs_extent_read): Add support for LZO compression type.
3240 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
3241 (GRUB_USHRT_MAX): Likewise.
3242 (GRUB_UINT_MAX): Likewise.
3243 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
3244 (UINT_MAX): Likewise.
3245 (CHAR_BIT): Likewise.
3246 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
3247 grub-core/lib/posix_wrap/limits.h
3248 (UCHAR_MAX): Likewise.
3249 * include/grub/file.h (grub_file_filter_id): New compression filter
3250 GRUB_FILE_FILTER_LZOPIO.
3251 * include/grub/file.h (grub_file_filter_id): Set
3252 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
3253 * include/grub/types.h (grub_get_unaligned16): New function.
3254 (grub_get_unaligned32): Likewise.
3255 (grub_get_unaligned64): Likewise.
3256 * util/import_gcry.py (cryptolist): Add adler32.
3257
3258 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
3261 in perspective decreases the complexity of build system and fixes
3262 compilation right now.
3263
3264 2011-10-01 Ales Nesrsta <starous@volny.cz>
3265
3266 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
3267 (fixed problem related to using UHCI with coreboot).
3268
3269 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3270
3271 * gentpl.py: Use Autogen macros so that the output template file
3272 (Makefile.tpl) size is reduced.
3273
3274 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
3275
3276 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
3277 extra_dist.
3278
3279 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3280
3281 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
3282 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
3283
3284 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3285
3286 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
3287 _fullpath.
3288
3289 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3290
3291 Remove extra declaration of sleep for mingw32.
3292
3293 * util/misc.c (sleep) [__MINGW32__]: Removed.
3294 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
3295
3296 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3297
3298 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
3299 type and packname.
3300 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
3301 Resurrected.
3302 (NETBSD_BTINFO_BOOTWEDGE): New definition.
3303 (grub_netbsd_btinfo_bootwedge): New struct.
3304 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3305 New function.
3306 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
3307
3308 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
3309
3310 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
3311 loader.
3312
3313 2011-09-28 Andreas Born <futur.andy@googlemail.com>
3314
3315 Fix incorrect identifiers in bash-completion.
3316
3317 * util/bash-completion.d/grub-completion.bash.in
3318 (_grub_mkpasswd-pbkdf2): Rename to ...
3319 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3320 (_grub_script-check): Rename to ...
3321 (_grub_script_check): ... this. All users updated.
3322
3323 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3326 Return 0 if disk isn't biosdisk.
3327
3328 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3329
3330 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3331 on NetBSD.
3332 * Makefile.util.def (grub-fstest): Likewise.
3333
3334 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3335
3336 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3337 Get sector size from disk label.
3338
3339 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3340
3341 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3342 */README* as well as README*.
3343 Reported by: Axel Beckert.
3344
3345 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3348 case of less than 256 MiB of RAM.
3349
3350 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * grub-core/commands/wildcard.c (make_regex): Handle @.
3353
3354 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3357
3358 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3359
3360 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3361 AC_LANG_CONFTEST macros.
3362
3363 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3364
3365 Add grub-fstest option to uncompress data for commands.
3366
3367 * util/grub-fstest.c (uncompress): New var.
3368 (options): New option -u.
3369
3370 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3371
3372 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3373 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3374
3375 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3376
3377 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3378 file type was not recognized correctly (not gzip or corrupted).
3379
3380 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3383 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3384
3385 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3388 loongson.
3389 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3390 video_radeon_fuloong2e.
3391 * grub-core/video/radeon_fuloong2e.c: New file.
3392 * include/grub/video.h (grub_video_id_t): Add new ID
3393 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3394
3395 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3398 define.
3399 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3400 that PRID matches the detected subplatform and reset the subplatform
3401 if it doesn't.
3402
3403 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3406
3407 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 Fix PCI iterating on functions >= 4.
3410
3411 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3412 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3413 Removed.
3414 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3415 (grub_pci_read): Fix bitmask.
3416 (grub_pci_read_word): Likewise.
3417 (grub_pci_read_byte): Likewise.
3418 (grub_pci_write): Likewise.
3419 (grub_pci_write_word): Likewise.
3420 (grub_pci_write_byte): Likewise.
3421
3422 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3425 can still be specified in TARGET_CFLAGS)
3426
3427 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3430
3431 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3432 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3433 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3434 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3435 (FULOONG): Rename to ...
3436 (FULOONG2F): ... this. All users updated.
3437 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3438 (machtype_fuloong2f_str): ... this.
3439 (machtype_fuloong2e_str): New string.
3440 Check for machtype_fuloong2e_str.
3441 * grub-core/loader/mips/linux.c (loongson_machtypes)
3442 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3443 * grub-core/term/serial.c (loongson_defserial)
3444 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3445 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3446 loongson_defserial.
3447 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3448 Rename to ...
3449 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3450 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3451 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3452 to IMAGE_FULOONG2F_FLASH. All users updated.
3453 (image_targets): Rename images.
3454 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3455
3456 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3457
3458 Make enable of disk cache statistics code configurable.
3459
3460 * configure.ac: --enable-cache-stats added.
3461 * config.h.in (DISK_CACHE_STATS): New define.
3462 * grub-core/Makefile.core.def (cacheinfo): New command.
3463 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3464 * grub-core/commands/cacheinfo.c: New file.
3465 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3466 moved to cacheinfo.c.
3467 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3468 debug code.
3469 * include/grub/disk.h: Likewise.
3470
3471 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3472
3473 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3474 * grub-core/Makefile.am: Likewise.
3475
3476 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3479 non-zero pull.
3480
3481 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3484 All users updated.
3485 (grub_jfs_lookup_symlink): Use correct starting inode.
3486
3487 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * util/grub-setup.c (main): Add missing gcry initialisation.
3490
3491 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 Don't accept text modes on EFI when booting Linux.
3494
3495 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3496 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3497
3498 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3499 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3500
3501 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3502 use of "/path/.." as in grub-install for EFI as well as handling
3503 symlinks correctly.
3504 Fixes Debian bug #637768.
3505
3506 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3507
3508 * util/grub-probe.c: Remove duplicate #include.
3509
3510 2011-08-10 Robert Millan <rmh@gnu.org>
3511
3512 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3513
3514 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3515 function.
3516 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3517 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3518
3519 2011-08-03 Robert Millan <rmh@gnu.org>
3520
3521 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3522 la_array as packed.
3523 Reported by: Zachary Bedell
3524
3525 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3526
3527 * configure.ac: The Loongson port requires grub-mkfont due to its
3528 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3529 be built.
3530
3531 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3532
3533 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3534 processing arguments (otherwise help2man fails when GRUB has not yet
3535 been installed).
3536
3537 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 New script grub-mkstandalone.
3540
3541 * Makefile.util.def (grub-mkstandalone): New script.
3542 * docs/man/grub-mkstandalone.h2m: New file.
3543 * util/grub-mkstandalone.in: Likewise.
3544
3545 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 Support ATA disks with 4K sectors.
3548
3549 * include/grub/ata.h (grub_ata): New member log_sector_size.
3550 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3551 (grub_ata_identify): Read sector size.
3552 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3553
3554 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * util/grub-install.in: Don't use uhci outside of x86.
3557
3558 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * util/grub-mkrescue.in: Add missing quotes.
3561
3562 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3565 dereference.
3566
3567 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3570
3571 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * include/grub/video.h: add missing EXPORT_FUND on
3574 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3575
3576 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * include/grub/mips/kernel.h: Fix define conflict.
3579
3580 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3583 all four ways.
3584
3585 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3586
3587 Preferred resolution detection for VBE.
3588
3589 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3590 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3591 the Flat Panel extension, in line with the X.org VESA driver.
3592 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3593 New function.
3594 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3595 (grub_vbe_bios_read_edid): Likewise.
3596 (grub_vbe_get_preferred_mode): Likewise.
3597 (grub_video_vbe_setup): When the mode is "auto", try to get the
3598 preferred mode from VBE, and use the largest mode that is no larger
3599 than the preferred mode (some BIOSes expose a preferred mode that is
3600 not in their mode list!). If this fails, fall back to 640x480 as a
3601 safe conservative choice.
3602 (grub_video_vbe_get_edid): New function.
3603 (grub_video_vbe_adapter): Add get_edid.
3604 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3605 (struct grub_video_adapter): Add get_edid.
3606 (grub_video_edid_checksum): Add prototype.
3607 (grub_video_edid_preferred_mode): Likewise.
3608 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3609 structure.
3610
3611 * grub-core/commands/videoinfo.c (print_edid): New function.
3612 (grub_cmd_videoinfo): Print EDID if available.
3613
3614 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3615 is more appropriate on a wider range of platforms than 640x480.
3616 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3617 documentation.
3618
3619 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3622
3623 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * po/POTFILES.in: Regenerate.
3626
3627 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3630 incorrect memory usage.
3631
3632 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * util/grub-install.in: Source grub-mkconfig_lib.
3635
3636 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 Remove getroot.c from core on emu platform.
3639
3640 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3641 kern/emu/raid.c.
3642 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3643 useless.
3644 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3645 * util/getroot.c (get_win32_path): ... here.
3646 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
3647 * util/getroot.c (fini_libzfs): ... here.
3648 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
3649 * util/getroot.c (grub_get_libzfs_handle): ... here.
3650 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
3651 Moved from here...
3652 * util/getroot.c (grub_find_zpool_from_dir): ... here.
3653 * grub-core/kern/emu/misc.c
3654 (grub_make_system_path_relative_to_its_root): Moved from here...
3655 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
3656 * grub-core/kern/emu/getroot.c: Moved from here ...
3657 * util/getroot.c: ... here. All users updated.
3658 * grub-core/kern/emu/raid.c: Moved from here ...
3659 * util/raid.c: ... here. All users updated.
3660
3661 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * po/POTFILES.in: Regenerate.
3664
3665 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 Fix compilation on GNU/Linux.
3668
3669 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3670 Disable geli.
3671 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
3672 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
3673 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
3674
3675 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3676 2011-07-07 Michael Gorven <michael@gorven.za.net>
3677 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
3678
3679 LUKS and GELI support.
3680
3681 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
3682 grub-core/disk/luks.c, grub-core/disk/geli.c,
3683 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
3684 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
3685 grub-core/lib/arg.c.
3686 (libgrubmods.a): Remove gcrypts cflags and cppflags.
3687 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
3688 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
3689 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
3690 (grub-bin2h): Add libgcry.a.
3691 (grub-mkimage): Likewise.
3692 (grub-mkrelpath): Likewise.
3693 (grub-script-check): Likewise.
3694 (grub-editenv): Likewise.
3695 (grub-mkpasswd-pbkdf2): Likewise.
3696 (grub-pe2elf): Likewise.
3697 (grub-fstest): Likewise.
3698 (grub-mkfont): Likewise.
3699 (grub-mkdevicemap): Likewise.
3700 (grub-probe): Likewise.
3701 (grub-ofpath): Likewise.
3702 (grub-mklayout): Likewise.
3703 (example_unit_test): Likewise.
3704 (grub-menulst2cfg): Likewise.
3705 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
3706 * grub-core/Makefile.core.def (cryptodisk): New module.
3707 (luks): Likewise.
3708 (geli): Likewise.
3709 * grub-core/disk/AFSplitter.c: New file.
3710 * grub-core/disk/cryptodisk.c: Likewise.
3711 * grub-core/disk/geli.c: Likewise.
3712 * grub-core/disk/luks.c: Likewise.
3713 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
3714 grub_util_is_lvm.
3715 (grub_util_get_dm_abstraction): New function.
3716 (grub_util_follow_gpart_up): Likewise.
3717 (grub_util_get_geom_abstraction): Likewise.
3718 (grub_util_get_dev_abstraction): Use new functions.
3719 (grub_util_pull_device): Pull GELI and LUKS.
3720 (grub_util_get_grub_dev): Handle LUKS and GELI.
3721 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
3722 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
3723 (follow_geom_up): Removed.
3724 (grub_util_fd_seek): New function.
3725 (open_device): Use grub_util_fd_seek.
3726 (nread): Rename to ..
3727 (grub_util_fd_read): ... this. All users updated.
3728 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
3729 (grub_crypto_cbc_decrypt): Likewise.
3730 (grub_crypto_hmac_write): Likewise.
3731 (grub_crypto_hmac_buffer): Likewise.
3732 (grub_password_get): Extend to util.
3733 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
3734 New member modname.
3735 (gcry_md_spec) [GRUB_UTIL]: Likewise.
3736 * include/grub/cryptodisk.h: New file.
3737 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
3738 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
3739 LUKS and GELI.
3740 (grub_util_follow_gpart_up): New proto.
3741 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
3742 (grub_util_fd_read): Likewise.
3743 (grub_cryptodisk_cheat_mount): Likewise.
3744 (grub_util_cryptodisk_print_uuid): Likewise.
3745 (grub_util_get_fd_sectors): Likewise.
3746 * util/grub-fstest.c (mount_crypt): New var.
3747 (fstest): Mount crypto if requested.
3748 (options): New option -C.
3749 (argp_parser): Parse -C.
3750 (main): Init and fini gcry.
3751 * util/grub-install.in: Support cryptodisk install.
3752 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
3753 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
3754 cryptodisk.
3755 (prepare_grub_to_access_device): Likewise.
3756 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
3757 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
3758 (probe_cryptodisk_uuid): New function.
3759 (probe_abstraction): Likewise.
3760 (probe): Use new functions.
3761 * util/import_gcry.py: Create Makefile.utilgcry.def.
3762 Add modname member.
3763
3764 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 Lazy device scanning.
3767
3768 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
3769 (grub-setup): Remove util/raid.c.
3770 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
3771 * grub-core/disk/lvm.c (scan_depth): New variable.
3772 (grub_lvm_iterate): Rescan if necessary.
3773 (find_lv): New function based on grub_lvm_open.
3774 (grub_lvm_open): Use find_lv. Rescan on error.
3775 (is_node_readable): New function.
3776 (is_lv_readable): Likewise.
3777 (grub_lvm_scan_device): Skip already found disks.
3778 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
3779 Stop if searched device is found and readable.
3780 * grub-core/disk/raid.c (inscnt): New variable.
3781 (scan_depth): Likewise.
3782 (scan_devices): New function based on grub_raid_register. Abort if
3783 looked for device is found.
3784 (grub_raid_iterate): Rescan if needed.
3785 (find_array): NEw function based on -grub_raid_open.
3786 (grub_raid_open): Use find_array and rescan.
3787 (insert_array): Set became_readable_at.
3788 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
3789 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
3790 New function.
3791 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
3792 (grub_util_pull_device): New function.
3793 (grub_util_get_grub_dev): Call grub_util_pull_device.
3794 * util/raid.c: Moved to ..
3795 * grub-core/kern/emu/raid.c: ... here.
3796 (grub_util_raid_getmembers): New parameter "bootable".
3797 All users updated. Support 1.x.
3798 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
3799 All users updated.
3800 * include/grub/disk.h (grub_disk_pull_t): New enum.
3801 (grub_disk_dev): Change iterate prototype.
3802 All users updated.
3803 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
3804 New proto.
3805 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
3806 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
3807 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
3808 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
3809 All users updated.
3810 * include/grub/util/raid.h: Removed.
3811
3812 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * po/POTFILES.in: Regenerate.
3815
3816 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 Unify sparc init with other ieee1275.
3819
3820 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
3821 instead of kern/sparc64/ieee1275/init.c.
3822 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
3823 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
3824 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
3825 grub/machine/kernel.h.
3826 (grub_ieee1275_original_stack) [__sparc__]: New variable.
3827 (grub_claim_heap) [__sparc__]: Use sparc version.
3828 (grub_machine_init): Moved args parsing to
3829 (grub_parse_cmdline): ...this.
3830 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
3831 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
3832 New definition.
3833 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
3834
3835 Move BOOTP to separate file.
3836
3837 * grub-core/Makefile.core.def (net): Add net/bootp.c.
3838 * grub-core/net/net.c: Move all BOOTP functions to
3839 * grub-core/net/bootp.c: ... here.
3840
3841 Use frame interface on PXE.
3842
3843 * grub-core/Makefile.core.def (pxecmd): Removed.
3844 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
3845 * grub-core/commands/i386/pc/pxecmd.c: Removed.
3846 * grub-core/i386/pc/pxe.c: Moved from here ...
3847 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
3848 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
3849 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
3850
3851 EFI network support.
3852
3853 * grub-core/Makefile.core.def (efinet): New module.
3854 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
3855 here...
3856 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
3857 All users updated.
3858 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
3859 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
3860 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
3861 * grub-core/net/drivers/efi/efinet.c: New file.
3862 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
3863 (grub_efi_net_config): New extern var.
3864
3865 Various cleanups and bugfixes.
3866
3867 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
3868 error.
3869 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
3870 disk declared as partition.
3871 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
3872 leak on failure.
3873 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
3874 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
3875 (grub_debug_zalloc): Likewise.
3876 (grub_debug_realloc): Likewise.
3877 (grub_debug_memalign): Likewise.
3878 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
3879 Check that target is IPv4.
3880 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
3881 local-mac-address as fallback.
3882 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
3883 memory leak.
3884 * grub-core/net/ip.c (ipchksum): Rename to ...
3885 (grub_net_ip_chksum): ... this. All users updated.
3886 (grub_net_recv_ip_packets): Special handling for DHCP.
3887 * util/grub-mkimage.c (generate_image): Zero-out aout header.
3888
3889 Unify prefix handling
3890
3891 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
3892 (grub_machine_get_bootlocation): ... this.
3893 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
3894 (grub_machine_get_bootlocation): ... this.
3895 (grub_prefix): New variable.
3896 (prefix): Removed.
3897 (root_dev): New variable.
3898 (dir): Likewise.
3899 (main): Use new variables.
3900 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
3901 Revamped into ...
3902 (grub_machine_get_bootlocation): ... this.
3903 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
3904 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
3905 (grub_machine_get_bootlocation): ... this.
3906 (grub_machine_set_prefix): Removed.
3907 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
3908 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
3909 Revamped into ...
3910 (grub_machine_get_bootlocation): ... this.
3911 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
3912 (grub_set_prefix_and_root): ... this. All users updated.
3913 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
3914 Revamped into ...
3915 (grub_machine_get_bootlocation): ... this.
3916 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
3917 (grub_machine_get_bootlocation): New proto.
3918 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
3919
3920 Less intrusive and more reliable seek on network implementation.
3921
3922 * grub-core/kern/file.c (grub_file_net_seek): Removed.
3923 (grub_file_seek): Don't call grub_file_net_seek.
3924 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
3925 (grub_net_fs_read_real): .. this.
3926 (grub_net_seek_real): Use net->offset.
3927 (grub_net_fs_read): Seek if necessary.
3928
3929 Unify IEEE1275 netwotk config with the other platforms.
3930
3931 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3932 New variable.
3933 (grub_machine_get_bootlocation): Support network.
3934 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3935 Support type and device parsing.
3936 (grub_ieee1275_get_device_type): New function.
3937 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
3938 into ...
3939 (grub_ieee1275_net_config_real): ... this.
3940 (grub_ofnet_probecards): Removed.
3941 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
3942 * include/grub/ieee1275/ofnet.h: Removed.
3943 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
3944 extern var.
3945 (grub_ieee1275_get_device_type): New function.
3946
3947 Unify network device closing across platforms and make more robust.
3948
3949 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3950 grub_grubnet_fini.
3951 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3952 already.
3953 * grub-core/net/net.c (grub_net_network_level_interface_register):
3954 Update num_ifaces.
3955 (grub_net_card_unregister): Close all interfaces.
3956 (receive_packets): Don't poll if no iterfaces are registered.
3957 Open if necessary.
3958 (grub_net_fini_hw): New function.
3959 (grub_net_restore_hw): Likewise.
3960 (fini_hnd): New variable.
3961 (GRUB_MOD_INIT): Register preboot hook.
3962 (GRUB_MOD_FINI): Run and unregister preboot hook.
3963
3964 Poll network cards when idle.
3965
3966 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
3967 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
3968 * grub-core/net/net.c (receive_packets): Save last poll time.
3969 (grub_net_poll_cards_idle_real): New function.
3970 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
3971 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
3972 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
3973
3974 Rename ofnet interfaces.
3975
3976 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
3977 (grub_ofnet_findcards): Use ofnet_%s names.
3978
3979 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
3980
3981 Cleanup socket opening.
3982
3983 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
3984 (grub_net_fs_close): Likewise.
3985 (grub_net_fs_read_real): Use eof member.
3986 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
3987 (+grub_net_udp_close): New inline function.
3988
3989 * include/grub/net/tftp.h: Moved to the top of ...
3990 * grub-core/net/tftp.c: ... here.
3991 * include/grub/net/ip.h: Moved mostly to the top of ...
3992 * grub-core/net/ip.c: ... here.
3993 * include/grub/net/ethernet.h: Moved mostly to the top of ...
3994 * grub-core/net/ethernet.c: ... here.
3995
3996 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
3997
3998 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
3999 FS name.
4000
4001 * include/grub/net/ip.h (ipv4_ini): Removed.
4002 (ipv4_fini): Likewise.
4003
4004 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
4005 (grub_net_send_ip_packets): Likewise.
4006
4007 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
4010 grub_read_cmos prototype.
4011
4012 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 VGA text support in qemu-mips
4015
4016 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
4017 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
4018 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
4019 text.
4020 * grub-core/kern/i386/qemu/init.c: Renamed to ...
4021 * grub-core/kern/vga_init.c: ... this.
4022 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
4023 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
4024 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
4025 Adjust.
4026 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
4027 GRUB_MACHINE_PCI_IO_BASE.
4028
4029 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 MIPS qemu flash support.
4032
4033 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
4034 magic.
4035 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
4036 (grub_machine_init): Probe memory if its size isn't known.
4037 * util/grub-mkimage.c (image_targets): Add flash targets.
4038 (generate_image): Handle flash targets.
4039
4040 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 MIPS qemu at_keyboard support.
4043
4044 * gentpl.py (videoinkernel): Add qemu-mips.
4045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
4046 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
4047 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
4048 modules.
4049 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
4050 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
4051 * grub-core/term/serial.c (grub_serial_register)
4052 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
4053
4054 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 CMOS support on sparc.
4057
4058 * gentpl.py (cmos): Add powerpc and sparc.
4059 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
4060 powerpc and sparc.
4061 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
4062 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
4063 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
4064 grub_set_datetime_cmos.
4065 * grub-core/lib/ieee1275/cmos.c: New file.
4066 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
4067 (find_rtc): Set no_ieee1275_rtc on error.
4068 (grub_get_datetime): Call grub_get_datetime_cmos on error.
4069 (grub_set_datetime): Call grub_set_datetime_cmos on error.
4070 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
4071 fail. Move value to argument. All users updated
4072 (grub_cmos_write): Likewise.
4073 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
4074 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
4075 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
4076 grub_get_datetime_cmos and grub_set_datetime_cmos.
4077
4078 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4079
4080 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
4081 sourcing grub-mkconfig_lib.
4082 * util/update-grub_lib.in: Likewise.
4083 * util/grub.d/00_header.in: Likewise.
4084 * util/grub.d/10_hurd.in: Likewise.
4085 * util/grub.d/10_kfreebsd.in: Likewise.
4086 * util/grub.d/10_linux.in: Likewise.
4087 * util/grub.d/10_netbsd.in: Likewise.
4088 * util/grub.d/10_windows.in: Likewise.
4089 * util/grub.d/20_linux_xen.in: Likewise.
4090 * util/grub.d/30_os-prober.in: Likewise.
4091
4092 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
4093
4094 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4095 default_bg_color rather than black.
4096 (grub_gfxterm_fullscreen): Likewise.
4097 (grub_gfxterm_background_color_cmd): Save new background color in
4098 default_bg_color.
4099
4100 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
4103
4104 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
4107 mismerge.
4108
4109 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 Chainloading on coreboot support.
4112
4113 * grub-core/Makefile.core.def (chain): Add coreboot.
4114 * grub-core/loader/i386/coreboot/chainloader.c: New file.
4115
4116 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
4119 if it happens.
4120
4121 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 Implement time command.
4124
4125 * grub-core/Makefile.core.def (time): New module.
4126 * grub-core/commands/time.c: New file.
4127 * grub-core/script/parser.y: Remove "time" keyword.
4128 * grub-core/script/yylex.l: Likewise.
4129
4130 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
4133
4134 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
4137 when handling leftovers.
4138
4139 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
4142 so that help2man doesn't fail.
4143
4144 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
4147 type in pointers on sparc64.
4148 (get_card_packet): Likewise.
4149
4150 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
4151
4152 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
4153 with `*'.
4154 (grub_cmd_videoinfo): Fetch current video mode.
4155
4156 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
4159 because of underlying system restrictions.
4160
4161 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
4164 necessary.
4165
4166 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 Coreboot video support.
4169
4170 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
4171 (vbe): Likewise.
4172 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
4173 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
4174 here ...
4175 * grub-core/kern/i386/int.S: ... here.
4176 * grub-core/video/i386/pc/vbe.c: Updated includes.
4177 * grub-core/video/i386/pc/vga.c: Likewise.
4178 * include/grub/i386/coreboot/memory.h
4179 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
4180 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
4181 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
4182 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
4183 Disable interrupts.
4184 * include/grub/i386/pc/vga.h: Removed. All users updated.
4185
4186 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
4189 definitions for dprintf.
4190 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
4191
4192 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
4195 prototype.
4196 (get_card_packet): Likewise.
4197
4198 2011-06-26 Yves Blusseau <blusseau@zetam.org>
4199
4200 Display the path of the file when file is not found
4201
4202 * grub-core/fs/fat.c: Display the filename when file is not found.
4203 * grub-core/fs/fshelp.c: Likewise.
4204 * grub-core/fs/hfs.c: Likewise.
4205 * grub-core/fs/jfs.c: Likewise.
4206 * grub-core/fs/minix.c: Likewise.
4207 * grub-core/fs/ufs.c: Likewise.
4208 * grub-core/fs/btrfs.c: Likewise.
4209 * grub-core/commands/i386/pc/play.c: Likewise.
4210
4211 2011-06-26 Szymon Janc <szymon@janc.net.pl>
4212
4213 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
4214 pointer checks before calling grub_free().
4215 * grub-core/commands/wildcard.c (match_devices): Likewise.
4216 * grub-core/commands/wildcard.c (match_files): Likewise.
4217 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
4218 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
4219 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
4220 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
4221 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
4222 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
4223 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
4224 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
4225 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
4226
4227 2011-06-25 Patrick <p55@mailinator.com>
4228
4229 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
4230
4231 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
4234 (grub_pxe_send): Likewise.
4235 (GRUB_MOD_INIT): Fix types.
4236
4237 2011-06-24 Szymon Janc <szymon@janc.net.pl>
4238
4239 * grub-core/io/xzio.c: Fix code style issues
4240
4241 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4242 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
4243
4244 Network infrastructure.
4245 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
4246
4247 * include/grub/net/arp.h: New file.
4248 * include/grub/net/device.h: Likewise.
4249 * include/grub/net/ethernet.h: Likewise.
4250 * include/grub/net/ip.h: Likewise.
4251 * include/grub/net/netbuff.h: Likewise.
4252 * include/grub/net/tftp.h: Likewise.
4253 * include/grub/net/udp.h: Likewise.
4254 * include/grub/ieee1275/ofnet.h: Likewise.
4255 * include/grub/emu/export.h: Likewise.
4256 * include/grub/net.h: Likewise.
4257 * grub-core/net/arp.c: Likewise.
4258 * grub-core/net/ethernet.c: Likewise.
4259 * grub-core/net/ip.c: Likewise.
4260 * grub-core/net/udp.c: Likewise.
4261 * grub-core/net/tftp.c: Likewise.
4262 * grub-core/net/netbuff.c: Likewise.
4263 * grub-core/net/net.c: Likewise.
4264 * grub-core/net/drivers/emu/emunet.c: Likewise.
4265 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
4266 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
4267 export.h.
4268 * grub-core/Makefile.core.def (net): New module.
4269 (tftp): Likewise.
4270 (ofnet): Likewise.
4271 (emunet): Likewise.
4272 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
4273 network protocols.
4274 * grub-core/kern/device.c (grub_net_open) : New variable.
4275 (grub_device_open): Handle network device.
4276 (grub_device_close): Likewise.
4277 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
4278 (grub_grubnet_fini): Likewise.
4279 (grub_file_seek): Seek in network device.
4280 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
4281 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
4282 network root.
4283 (grub_machine_fini): Call grub_grubnet_fini.
4284 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
4285 network.
4286 (grub_ieee1275_get_aliasdevname): New function.
4287 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4288 Add unofficial Solaris network info.
4289 (grub_multiboot_make_mbi): Likewise.
4290 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
4291 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
4292 * include/grub/device.h (grub_fs): Removed.
4293 * include/grub/err.h (grub_err_t): Add network-related values.
4294 * include/grub/i386/pc/pxe.h: Removed bootp parts.
4295 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
4296 (grub_ieee1275_get_aliasdevname): New proto.
4297 * include/grub/net.h: Rewritten.
4298
4299 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4302 names.
4303
4304 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
4307 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
4308 it truncates the output.
4309 Reported by: Ximin Luo.
4310
4311 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
4314
4315 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
4318 partmap before abstraction.
4319
4320 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4321
4322 * util/grub-mkconfig_lib.in: Add missing quotes.
4323
4324 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4327 old method if mountinfo would return /dev/root and /dev/root doesn't
4328 exist.
4329
4330 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 ZFS zlib support
4333
4334 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4335 (decomp_table): Add zlib entries.
4336 (zio_read): USe 8 bits for compression function rather than 3.
4337 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4338
4339 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * grub-core/disk/ahci.c: Add missing license statements.
4342 * grub-core/fs/romfs.c: Likewise.
4343 * grub-core/lib/ia64/setjmp.S: Likewise.
4344 * grub-core/loader/i386/pc/freedos.c: Likewise.
4345 * grub-core/loader/ia64/efi/linux.c: Likewise.
4346 * grub-core/video/colors.c: Likewise.
4347 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4348
4349 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 AHCI support.
4352
4353 * grub-core/Makefile.core.def (ata_pthru): Removed.
4354 (ahci): New module.
4355 (pata): Likewise.
4356 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4357 on unload.
4358 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4359 readwrite.
4360 (grub_hdparm_do_check_powermode_cmd): Likewise.
4361 (grub_hdparm_do_smart_cmd): Likewise.
4362 (grub_hdparm_set_val_cmd): Likewise.
4363 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4364 * grub-core/disk/ahci.c: New file.
4365 * grub-core/disk/ata.c: Factor out the low-level part into ...
4366 * grub-core/disk/pata.c: ... here.
4367 * grub-core/disk/ata_pthru.c: Contents moved to ...
4368 * grub-core/disk/pata.c: ... here.
4369 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4370 (grub_scsi_iterate): Use grub_scsi_names.
4371 (grub_scsi_open): Likewise.
4372 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4373 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4374 (grub_ata_regs_t): New struct.
4375 (grub_disk_ata_pass_through_parms): Likewise.
4376 (grub_ata_device): Renamed to ...
4377 (grub_ata): ... this.
4378 (grub_ata_dev): New struct.
4379 Removed all low-level inline functions.
4380 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4381 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4382 iterate hooks and open. All users updated.
4383 * util/grub-install.in: Handle AHCI disk module.
4384
4385 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4386
4387 Add support for DRI and RSTn markers in JPEG files.
4388
4389 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4390 (JPEG_MARKER_RST0): Likewise.
4391 (JPEG_MARKER_RST1): Likewise.
4392 (JPEG_MARKER_RST2): Likewise.
4393 (JPEG_MARKER_RST3): Likewise.
4394 (JPEG_MARKER_RST4): Likewise.
4395 (JPEG_MARKER_RST5): Likewise.
4396 (JPEG_MARKER_RST6): Likewise.
4397 (JPEG_MARKER_RST7): Likewise.
4398 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4399 (grub_jpeg_decode_dri): New function.
4400 (grub_jpeg_decode_sos): Move image data related part into
4401 grub_jpeg_decode_data function.
4402 (grub_jpeg_decode_data): New function.
4403 (grub_jpeg_reset): New function.
4404 (grub_jpeg_decode_jpeg): Handle new markers.
4405
4406 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * util/ieee1275/ofpath.c (check_sas): Close fd.
4409 (main): Free of_path.
4410 Reported by: David Volgyes <dvolgyes>.
4411
4412 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4415 Reported by: David Volgyes <dvolgyes>.
4416
4417 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4420 file after stat.
4421 Reported by: David Volgyes <dvolgyes>.
4422
4423 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4424
4425 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4426
4427 Reported by: David Volgyes <dvolgyes>.
4428
4429 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4432 Prevent memory leak.
4433
4434 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4437 (main): Close file.
4438 Reported by: David Volgyes <dvolgyes>.
4439
4440 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4443 to continue if allocation is failed.
4444
4445 Reported by: David Volgyes <dvolgyes>.
4446
4447 2011-06-23 David Volgyes <dvolgyes>
4448
4449 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4450 dereference.
4451
4452 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 Fix spurious warning.
4455
4456 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4457 (acorn_partition_map_find): Use .bin member.
4458
4459 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4460
4461 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4462 /dev/root as a valid device.
4463
4464 2011-06-23 Jim Meyering <meyering@redhat.com>
4465
4466 Avoid NULL deref in grub_device_open.
4467
4468 * grub-core/kern/device.c (grub_device_open): Don't dereference
4469 a NULL pointer upon failed grub_env_get.
4470
4471 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 Support non-512B sectors and agglomerate reads.
4474
4475 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4476 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4477 (disk_io_guid): Removed.
4478 (make_devices): Locate solely by BlockIO.
4479 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4480 (grub_efidisk_read): Use read_blocks.
4481 (grub_efidisk_write): Use write_blocks.
4482 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4483 log_sector_size.
4484 (get_safe_sectors): Handle non-512B sectors.
4485 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4486 sectors.
4487 (grub_biosdisk_write): Handle non-512B sectors.
4488 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4489 (grub_scsi_read): Remove special non-512B block handling (now handled
4490 one level up).
4491 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4492 and do sanity checks.
4493 (grub_disk_adjust_range): Handle non-512B sectors.
4494 (transform_sector): New function.
4495 (grub_disk_read_small): Likewise.
4496 (grub_disk_read): Rewritten.
4497 (grub_disk_write): Handle non-512B sectors.
4498 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4499 log_sector_size.
4500 (open_device): Use log_sector_size.
4501 (grub_util_biosdisk_read): Likewise.
4502 (grub_util_biosdisk_write): Likewise.
4503 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4504 non-512B sectors.
4505 (pc_partition_map_embed): Likewise.
4506 * include/grub/disk.h (grub_disk): New field log_sector_size.
4507 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4508 (GRUB_DISK_CACHE_BITS): Increased to 6.
4509 * util/grub-fstest.c (fstest): New command testload.
4510 (argp_parser): Likewise.
4511
4512 2011-06-16 Robert Millan <rmh@gnu.org>
4513
4514 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4515 `ata' driver on kernel of FreeBSD 9.
4516
4517 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4518 (get_ataraid_disk_name): New functions.
4519 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4520 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4521 get_ataraid_disk_name() and get_ada_disk_name().
4522
4523 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4524
4525 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4526 input format.
4527
4528 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4529
4530 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4531 `ftp.gnu.org' for `alpha.gnu.org'.
4532
4533 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4534
4535 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4536 partitions under /dev/disk/by-id/.
4537
4538 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4539
4540 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4541 after ten consecutive open failures. Scanning all the way up to
4542 10000 is excessive and can cause serious performance problems in
4543 some configurations.
4544 Fixes Ubuntu bug #787461.
4545
4546 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4549 opening new one.
4550
4551 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4552 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 Don't stat devices unless we have to.
4555
4556 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4557 dir == /dev/mapper.
4558 (grub_guess_root_device): Use already known os_dev if possible.
4559 * grub-core/kern/emu/hostdisk.c
4560 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4561 if device is known to be a dm one.
4562
4563 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4564
4565 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4566 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4567 Reported by: Pawel Tecza.
4568
4569 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4572 (lsefisystab): Likewise.
4573 (lssal): Likewise.
4574 (lsefimmap): Likewise.
4575 (hdparm): Enable on qemu-mips.
4576 (setjmp): Add ia64 nodist.
4577 (serial): Simplify tags.
4578
4579 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4580
4581 * Makefile.util.def (grub-ofpathname): Install manual page.
4582
4583 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4584
4585 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4586
4587 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4588
4589 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4590
4591 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4594 into dprintf.
4595
4596 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 Use full 64-bit division.
4599
4600 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4601 (grub_divmod64): ... this.
4602 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4603 version.
4604
4605 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4606
4607 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4608 `source'.
4609
4610 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4611
4612 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4613 to avoid accidents when debugging with 'sh -x'.
4614 * grub-core/gensyminfo.sh.in: Likewise.
4615 * tests/example_scripted_test.in: Likewise.
4616 * tests/grub_cmd_regexp.in: Likewise.
4617 * tests/grub_script_blanklines.in: Likewise.
4618 * tests/grub_script_dollar.in: Likewise.
4619 * tests/grub_script_expansion.in: Likewise.
4620 * tests/grub_script_final_semicolon.in: Likewise.
4621 * tests/partmap_test.in: Likewise.
4622 * tests/util/grub-shell-tester.in: Likewise.
4623 * tests/util/grub-shell.in: Likewise.
4624
4625 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4626
4627 Move gfxmenu color handling to video, so that gfxterm can use it
4628 too.
4629
4630 * grub-core/gfxmenu/named_colors.c: Move to ...
4631 * grub-core/video/colors.c: ... here. Rename
4632 grub_gui_get_named_color to grub_video_get_named_color.
4633 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4634 * grub-core/video/colors.c (my_isxdigit): ... here.
4635 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4636 Move to ...
4637 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4638 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4639 to ...
4640 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4641
4642 * include/grub/gui.h (grub_gui_color_t): Move to ...
4643 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4644 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4645 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4646 * include/grub/gui.h (grub_gui_map_color): Move to ...
4647 * include/grub/video.h (grub_video_map_rgba_color): ... here.
4648 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
4649 to ...
4650 * include/grub/video.h (grub_video_get_named_color): ... here.
4651 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
4652 * include/grub/video.h (grub_video_parse_color): ... here.
4653
4654 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4655 video/colors.c.
4656 (gfxmenu): Remove gfxmenu/named_colors.c.
4657 (video) [videomodules]: Add video/colors.c.
4658
4659 Add a background_color command.
4660
4661 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4662 function.
4663 (GRUB_MOD_INIT): Register background_color command.
4664 (GRUB_MOD_FINI): Unregister background_color command.
4665 (redraw_screen_rect): Allow blend/replace of text layer to be
4666 controlled independently from whether there is a background bitmap.
4667 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
4668 changing bitmap.
4669
4670 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 Patch BPB in ntldr and chainloader --bpb.
4673
4674 * grub-core/fs/fat.c: Include grub/fat.h.
4675 (grub_fat_bpb): Moved to ...
4676 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
4677 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
4678 grub/ntfs.h.
4679 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4680 Moved from here...
4681 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4682 here.
4683 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4684 New function.
4685 (grub_chainloader_cmd): Patch BPB if --bpb is given.
4686 (GRUB_MOD_INIT): Show --bpb.
4687 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
4688 * grub-core/normal/main.c (features): New variable.
4689 (GRUB_MOD_INIT): Set feature_* variables.
4690 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
4691 proto.
4692 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4693
4694 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4697 for cleanness.
4698
4699 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 FreeDOS direct loading support.
4702
4703 * docs/grub.texi (Supported OS): Add FreeDOS.
4704 * grub-core/Makefile.core.def (freedos): New module.
4705 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
4706 variable.
4707 (grub_relocator16_boot): Handle %ebx.
4708 * grub-core/lib/i386/relocator16.S: Likewise.
4709 * grub-core/loader/i386/pc/freedos.c: New file.
4710
4711 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 Long Linux command line support.
4714
4715 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4716 (maximal_cmdline_size): New variable.
4717 (allocate_pages): Use maximal_cmdline_size.
4718 (grub_cmd_linux): Set and use maximal_cmdline_size.
4719 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4720 (allocate_pages): Use maximal_cmdline_size.
4721 (grub_cmd_linux): Set and use maximal_cmdline_size.
4722 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
4723 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
4724 and cmdline_size.
4725
4726 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4727 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4728
4729 Improve devmapper support
4730
4731 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
4732 (grub_util_is_lvm): New function.
4733 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
4734 than lvm if not dmraid.
4735 Handle mapped md nodes.
4736 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
4737 (grub_util_device_is_mapped): ... this. Make always available. All users
4738 updated.
4739 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
4740 (convert_system_partition_to_system_disk): Handle lvm, mpath and
4741 dmraid nodes.
4742 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
4743
4744 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
4747
4748 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
4749 * grub-core/modinfo.sh.in: New file.
4750 * grub-core/Makefile.core.def (modinfo.sh): New script.
4751 * util/grub-mknetdir.in: Use modinfo.sh.
4752 * util/grub-mkrescue.in: Likewise.
4753
4754 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4757 Fix potential usage of Elf32 instead of Elf64 when compiling on
4758 32-bit architecture. Add endianness macros while on it.
4759
4760 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 Use mipsel- rather than mips- in directories involving mipsel ports to
4763 allow both endiannesses coexist.
4764
4765 * configure.ac: proparate target_cpu=mipsel rather than resetting to
4766 mips. All conditions adjusted.
4767 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
4768 variable.
4769 * util/grub-install.in: Adjust conditions to take renaming into account.
4770 * util/grub-mkimage.c (image_targets): Likewise. New target
4771 mips-qemu_mips-elf for bigendian mips.
4772
4773 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 Avoid unnecessary copying on MIPS.
4776
4777 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
4778 early if src == dest.
4779 * util/grub-mkimage.c (generate_image): Arange for src == dest if
4780 compression is none.
4781
4782 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 Reduce memory footprint on SGI by putting modules before the kernel
4785 as opposed to after.
4786
4787 * grub-core/Makefile.core.def (kernel): Increase linking address.
4788 (none_decompress): Likewise.
4789 (xz_decompress): Likewise.
4790 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
4791 address.
4792 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
4793 layout change.
4794 (grub_arch_modules_addr): New function.
4795 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
4796 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
4797 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
4798 here.
4799 * grub-core/kern/mips/startup.S (total_size): Rename to ...
4800 (grub_total_modules_size): ... this. Make global.
4801 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
4802 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
4803 New definition.
4804 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
4805 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
4806 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
4807 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
4808 * util/grub-mkimage.c (image_target_desc): New flag
4809 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
4810 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
4811 (generate_image): Handle images with modules before kernel.
4812
4813 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 Prevent potential loss of memory map by overwrite on qemu-mips.
4816
4817 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4818 Save ram size in $s4.
4819 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
4820 All users changed to grub_arch_memsize.
4821 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
4822 Loongson.
4823 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
4824 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
4825 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
4826 external variable.
4827
4828 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4829
4830 * .bzrignore: Remove grub-dumpbios.
4831
4832 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4833
4834 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
4835 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
4836 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
4837 existing options which append).
4838 * docs/grub.texi (Simple configuration): Document new options.
4839 Reported by: Ian Jackson. Fixes Debian bug #617538.
4840
4841 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4842
4843 * util/grub-fstest.c (cmd_cat): New function.
4844 (fstest): Handle CMD_CAT.
4845 (options): Add cat.
4846 (argp_parser): Handle cat.
4847
4848 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4849
4850 * Makefile.util.def (grub-bin2h): Don't install.
4851 * docs/man/grub-bin2h.h2m: Remove.
4852
4853 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
4856 place.
4857
4858 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 Reenable qemu-mips port.
4861
4862 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
4863 Fix small arc bug while on it.
4864 * gentpl.py: Handle qemu_mips.
4865 * grub-core/Makefile.am: Likewise.
4866 * grub-core/Makefile.core.def: Likewise.
4867 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
4868 inappropriate includes.
4869 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
4870 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
4871 * grub-core/kern/main.c (grub_modules_get_end)
4872 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
4873 * grub-core/kern/mips/qemu-mips: Moved to ..
4874 * grub-core/kern/mips/qemu_mips: ... this.
4875 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
4876 (grub_machine_init): Call terminfo_init and serial_init.
4877 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
4878 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4879 New variable.
4880 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
4881 parameter passing.
4882 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
4883 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
4884 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4885 * include/grub/mips/qemu_mips/cmos.h: New file.
4886 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
4887 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
4888 Removed.
4889 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
4890 Use correct mips-style address.
4891 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
4892 (GRUB_TICKS_PER_SECOND): Removed.
4893 (grub_get_rtc): Likewise.
4894 (grub_cpu_idle): Likewise.
4895 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
4896 New definition.
4897 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
4898 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
4899 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
4900 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
4901 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
4902 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
4903 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
4904 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
4905
4906 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 SGI ARCS port.
4909
4910 * Makefile.util.def (libgrubmods.a): Add dvh.c.
4911 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
4912 platforms.
4913 * configure.ac: New target mips-arc.
4914 * gentpl.py: Likewise.
4915 * grub-core/Makefile.am: Likewise.
4916 * grub-core/Makefile.core.def: Likewise.
4917 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
4918 (none_decompress): Likewise.
4919 (lsdev): New module.
4920 (datetime): Use lib/arc/datetime.c on ARC.
4921 (part_dvh): New module.
4922 * grub-core/commands/arc/lsdev.c: New file.
4923 * grub-core/disk/arc/arcdisk.c: Likewise.
4924 * grub-core/kern/mips/arc/init.c: Likewise.
4925 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
4926 aligned addresses.
4927 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4928 support.
4929 (grub_arch_dl_relocate_symbols): Likewise.
4930 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
4931 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
4932 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
4933 platforms.
4934 * grub-core/lib/arc/datetime.c: New file.
4935 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
4936 pci.h on non-loongson.
4937 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
4938 (grub_linux_boot): Set unused registers to 0.
4939 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
4940 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
4941 * grub-core/mmap/mips/uppermem.c: ...here.
4942 * grub-core/partmap/dvh.c: New file.
4943 * grub-core/term/arc/console.c: Likewise.
4944 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
4945 (grub_terminfo_set_current): Add terminal "arc".
4946 (grub_terminfo_readkey): Support ARC sequences.
4947 * include/grub/arc/arc.h: New file.
4948 * include/grub/arc/console.h: Likewise.
4949 * include/grub/disk.h (grub_disk_dev_id): Add
4950 GRUB_DISK_DEVICE_ARCDISK_ID.
4951 * include/grub/mips/arc/kernel.h: New file.
4952 * include/grub/mips/arc/memory.h: Likewise.
4953 * include/grub/mips/arc/time.h: Likewise.
4954 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
4955 * include/grub/mips/kernel.h (grub_halt): ... here.
4956 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
4957 here...
4958 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
4959 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
4960 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
4961 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
4962 proto.
4963 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
4964 from here ...
4965 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
4966 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
4967 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
4968 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
4969 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
4970 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
4971 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
4972 (grub_phys_addr_t): Moved from here ...
4973 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
4974 (grub_vtop): Moved from here ...
4975 * include/grub/mips/memory.h (grub_vtop): ... here.
4976 (grub_map_memory): Moved from here ...
4977 * include/grub/mips/memory.h (grub_map_memory): ... here.
4978 (grub_unmap_memory): Moved from here ...
4979 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
4980 (grub_machine_mmap_iterate): Moved from here ...
4981 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
4982 (grub_mmap_get_lower): Moved from here ...
4983 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
4984 (grub_mmap_get_upper): Moved from here ...
4985 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
4986 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4987 here ...
4988 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4989 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
4990 here ...
4991 * include/grub/mips/time.h (grub_get_rtc): ... here.
4992 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4993 here ...
4994 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4995 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
4996 here ...
4997 * include/grub/mips/time.h (grub_cpu_idle): ... here.
4998 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
4999 definition.
5000 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
5001 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
5002 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
5003 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
5004 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5005 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5006 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
5007 (GRUB_MACHINE_LINK_ADDR): Likewise.
5008 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
5009 to 6.
5010 * util/grub-install.in: Run dvhtool on ARC.
5011 * util/grub-mkimage.c (image_targets): Add mips-arc.
5012 (generate_image): Handle ECOFF output for mips-arc.
5013
5014 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
5017 blocks.
5018
5019 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
5022 after enabling port.
5023
5024 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 Skip incorrect USB devices.
5027
5028 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
5029 configcnt == 0.
5030 * include/grub/usb.h (grub_usb_err_t): New enum value
5031 GRUB_USB_ERR_BADDEVICE.
5032
5033 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 Fuloong video init support.
5036
5037 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
5038 well.
5039 (grub_vga_read_arx): New function.
5040 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
5041 definition.
5042 (framebuffer): New members io, mmioptr and mmiobase.
5043 (read_sis_cmd): New function.
5044 (write_sis_cmd): Likewise.
5045 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
5046 rather than 640x400.
5047 * grub-core/video/sis315_init.c: New file.
5048
5049 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
5052 non-loongson.
5053 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
5054 to grub_dl_register_symbol.
5055
5056 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 Fix compilation errors.
5059
5060 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
5061 potentially unused.
5062 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
5063 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
5064 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
5065 to loongson machines.
5066
5067 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 Several FS mtime support.
5070
5071 * grub-core/fs/affs.c (grub_affs_time): New struct.
5072 (grub_affs_file): New field mtime.
5073 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
5074 type. Removed 'size'. New field 'di'. All users updated.
5075 (grub_affs_mount): Simplify checsum checking.
5076 (grub_affs_iterate_dir): New helper grub_affs_create_node.
5077 (grub_affs_dir): Handle mtime.
5078 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
5079 (grub_cpio_dir): Likewise.
5080 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
5081 (grub_hfs_filerec): New field mtime.
5082 (grub_hfs_dir): Handle mtime.
5083 (grub_hfs_mtime): New function.
5084 (grub_hfs_fs): Register grub_hfs_mtime.
5085 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
5086 (grub_iso9660_dir): New field mtime.
5087 (grub_fshelp_node): New field dirent.
5088 (iso9660_to_unixtime): New function.
5089 (iso9660_to_unixtime2): Likewise.
5090 (grub_iso9660_read_symlink): Use node->dirent.
5091 (grub_iso9660_iterate_dir): Likewise.
5092 (grub_iso9660_dir): Set mtime.
5093 (grub_iso9660_mtime): New function.
5094 (grub_iso9660_fs): Register grub_iso9660_mtime.
5095 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
5096 (grub_jfs_inode): New fields atime, ctime and mtime.
5097 (grub_jfs_dir): Set mtime.
5098 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5099 * grub-core/fs/ntfs.c (list_file): Set mtime.
5100 (grub_ntfs_dir): Likewise.
5101 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
5102 (grub_reiserfs_iterate_dir): Set mtime.
5103 (grub_reiserfs_dir): Likewise.
5104 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
5105 (grub_fshelp_node): Likewise.
5106 (grub_sfs_iterate_dir): Set mtime.
5107 (grub_sfs_dir): Likewise.
5108 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
5109 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
5110 (grub_xfs_inode): New fields atime, mtime, ctime.
5111 (grub_xfs_dir): Set mtime.
5112 * include/grub/datetime.h (grub_datetime2unixtime): New function.
5113 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
5114 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
5115
5116 Support UDF symlinks.
5117
5118 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
5119 (grub_ufs_read_symlink): New function. All users updated.
5120
5121 Check amiga partmap checksum.
5122
5123 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
5124 (grub_amiga_partition): Likewise.
5125 (amiga_partition_map_checksum): New function.
5126 (amiga_partition_map_iterate): Check checksum.
5127
5128 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 ROMFS support.
5131
5132 * Makefile.util.def (libgrubmods.a): Add romfs.
5133 * grub-core/Makefile.core.def (romfs): New module.
5134 * grub-core/fs/romfs.c: New file.
5135
5136 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 Squashfs v4 support.
5139
5140 * Makefile.util.def (libgrubmods.a): Add squash4.
5141 * grub-core/Makefile.core.def (squash4): New module.
5142 * grub-core/fs/squash4.c: New file.
5143 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
5144 disk_input_start, disk_input.
5145 (get_byte): Handle disk_input.
5146 (grub_zlib_disk_read): New function.
5147 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
5148
5149 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5150 2011-05-15 Feiran Zheng <famcool@gmail.com>
5151
5152 * Makefile.util.def (libgrubmods.a): Add minix3.
5153 * grub-core/Makefile.core.def (minix3): New module.
5154 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
5155 (GRUB_MINIX_BSIZE): Removed.
5156 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
5157 (grub_minix_ino_t): New type.
5158 (grub_minix_le_to_cpu_ino): New macro.
5159 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
5160 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
5161 (grub_minix_data): New field block_size.
5162 (grub_minix_read_file): Handle 64-bit correctly.
5163 * grub-core/fs/minix3.c: New file.
5164
5165 2011-05-15 Tristan Gingold <gingold@free.fr>
5166 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
5167 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 IA64 support.
5170
5171 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
5172 * configure.ac: Add ia64-efi target.
5173 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
5174 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
5175 * gentpl.py: Add ia64_efi platform.
5176 Rename x86_efi to efi and Add ia64-efi. All users updated.
5177 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
5178 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
5179 Remove kern/generic/rtc_get_time_ms.c on EFI.
5180 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
5181 kern/ia64/dl_helper.c on ia64-efi.
5182 Add kern/emu/cache.c on emu.
5183 (linux): Use on loader/ia64/efi/linux.c on ia64.
5184 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
5185 whether symbol is a function.
5186 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
5187 (grub_symbol): New field 'isfunc'.
5188 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
5189 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
5190 (grub_dl_load_segments): Place all sections into the same region.
5191 [__ia64__]: Create trampolines and got.
5192 [GRUB_MACHINE_EMU]: Call mprotect.
5193 (grub_dl_resolve_symbols): Resolve symbol type as well.
5194 [__ia64__]: Create function descriptors.
5195 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
5196 (grub_rtc_get_time_ms): ... this. Expressions simplified.
5197 (grub_get_rtc): New function.
5198 * grub-core/kern/emu/cache.c [__ia64__]: New file.
5199 * grub-core/kern/emu/cache.S: Renamed to ...
5200 * grub-core/kern/emu/cache_s.S: ... this.
5201 [__ia64__]: Add a nop.
5202 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
5203 [__ia64__]: New function.
5204 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
5205 * grub-core/kern/ia64/dl.c: New file.
5206 * grub-core/kern/ia64/dl_helper.c: Likewise.
5207 * grub-core/kern/ia64/efi/init.c: New file.
5208 * grub-core/kern/ia64/efi/startup.S: Likewise.
5209 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
5210 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
5211 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
5212 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
5213 * grub-core/loader/ia64/efi/linux.c: New file.
5214 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
5215 (GRUB_MOD_DEP): Likewise.
5216 (grub_dl) [__ia64__]: New fields got and tramp.
5217 (grub_dl): New field 'base'.
5218 (grub_dl_register_symbol): New argument isfunc. All users updated.
5219 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
5220 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
5221 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
5222 (grub_ia64_dl_get_tramp_got_size): New proto.
5223 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
5224 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
5225 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
5226 * include/grub/efi/api.h: Skip call wrappers on ia64.
5227 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
5228 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
5229 * include/grub/elf.h (ELF_ST_INFO): New definition.
5230 * include/grub/ia64/efi/kernel.h: New file.
5231 * include/grub/ia64/efi/memory.h: Likewise.
5232 * include/grub/ia64/efi/time.h: Likewise.
5233 * include/grub/ia64/kernel.h: Likewise.
5234 * include/grub/ia64/setjmp.h: Likewise (from glibc).
5235 * include/grub/ia64/time.h: New file.
5236 * include/grub/ia64/types.h: Likewise.
5237 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
5238 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
5239 New protos.
5240 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
5241 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5242 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
5243 * util/grub-mkimage.c (image_target_desc): New field pe_target.
5244 All users updated.
5245 (EFI64_HEADER_SIZE): New definition. All users updated.
5246 (image_targets): Add ia64-efi.
5247 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
5248 jumpers_addr. All users updated.
5249 Create function descriptors.
5250 (count_funcs): New function.
5251 (unaligned_uint32): New struct.
5252 (MASK20): New definition.
5253 (MASK19): Likewise.
5254 (MASKF21): Likewise.
5255 (add_value_to_slot_20b): New function.
5256 (add_value_to_slot_21_real): Likewise.
5257 (add_value_to_slot_21): Likewise.
5258 (ia64_kernel_trampoline): New struct.
5259 (nopm): New variable.
5260 (jump): Likewise.
5261 (make_trampoline): New function.
5262 (relocate_addresses): Handle ia64.
5263 (make_reloc_section): Likewise.
5264 (load_image): Likewise.
5265
5266 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
5269 warning. Move variables before code while on it.
5270
5271 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 Fuloong support.
5274
5275 * configure.ac: Rename yeeloong platform to loongson. All users updated.
5276 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
5277 * grub-core/boot/mips/loongson/fuloong.S: New file.
5278 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
5279 Explicitly init CS5536.
5280 [FULOONG]: Don't use serial until CS5536 is available.
5281 Set GPIO based on dumps.
5282 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
5283 [FULOONG]: Handle GPIO and memory controller differences.
5284 Parse machine type in $a2.
5285 * grub-core/boot/mips/startup_raw.S: Determine and save the
5286 architecture.
5287 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
5288 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
5289 init on architecture type.
5290 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5291 SIS315E. Don't init at_keyboard on fuloong.
5292 (grub_halt): Support Fuloong.
5293 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
5294 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
5295 (loongson_machtypes): New array.
5296 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
5297 type.
5298 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
5299 config. All users updated. Handle CS5536 serial.
5300 * grub-core/term/serial.c (grub_serial_register): Conditionalise
5301 default port on machine type. Register serial as inactive.
5302 * grub-core/video/sis315pro.c: New file.
5303 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
5304 definition.
5305 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
5306 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
5307 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
5308 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
5309 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
5310 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
5311 to ...
5312 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
5313 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
5314 definition.
5315 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
5316 (grub_arch_machine): New extern var.
5317 * include/grub/mips/loongson/serial.h
5318 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
5319 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5320 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5321 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5322 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5323 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5324 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5325 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5326 * include/grub/term.h (grub_term_register_input_inactive): New inline
5327 function.
5328 (grub_term_register_output_inactive): Likewise.
5329 * include/grub/video.h (grub_video_driver_id): New value
5330 GRUB_VIDEO_DRIVER_SIS315PRO.
5331 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5332 New field "names". All users updated.
5333 New field value IMAGE_FULOONG_FLASH.
5334 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5335
5336 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5337
5338 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5339 and add some clarification.
5340
5341 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5344 platforms if kernel is compressed.
5345
5346 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5349 unused modules since currently referrence counter isn't reliable and
5350 there isn't much memory to recover there anyway.
5351
5352 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5355 rather than resetting it to allow modules to reference themselves
5356 in init.
5357
5358 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5361 counter on dependencies since grub_dl_unref already handles this.
5362
5363 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5366 on error if not already done.
5367
5368 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Fix few potential memory misusage.
5371
5372 * grub-core/font/font.c (load_font_index): Don't free char_index to
5373 avoid double free.
5374 (grub_font_load): Zero-fill font at alloc for safety.
5375 Close file on error.
5376 (free_font): Free bmp_idx.
5377
5378 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 * docs/grub.texi (Installation): Fix several outdated claims.
5381
5382 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 Handle module_license on windows.
5385
5386 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5387 sections shifted.
5388 (insert_string): Make argument const char * instead of char *.
5389 (write_section_data): Handle long section names.
5390 Handle module_license.
5391
5392 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5395 handle class-free menuentries.
5396 (grub_normal_add_menu_entry): Add a check to be sure.
5397
5398 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5401 PgUp and PgDown.
5402
5403 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * configure.ac: Bump version to 1.99.
5406
5407 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 Give ATA device a bit more time on first try in order to allow disks
5410 to spin up.
5411
5412 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5413 if dev->present is 1. Reset dev->present on failure.
5414 (grub_ata_device_initialize): Set dev->present to 1.
5415 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5416 (grub_ata_device): New member 'present'.
5417
5418 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * util/grub-mkimage.c (generate_image): Update hash.
5421
5422 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 Flush caches on DMA memory.
5425
5426 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5427 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5428 (grub_dma_free): Likewise.
5429 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5430
5431 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5434 to avoid asm treating ld and sd as macros.
5435
5436 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5439 decompressor.
5440
5441 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5444 grub_decompress_core since later would fail if grub_decompress_core
5445 is too far.
5446
5447 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5450 R_MIPS_JALR since it's used by newer compiler.
5451
5452 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5455
5456 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5459 file_path to 0 for surety.
5460 (grub_chainloader_boot): Set exit_data to NULL.
5461 Unset the loader once done.
5462 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5463
5464 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5467 unknown key into a dprintf.
5468
5469 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5472 on first non-existant partition.
5473
5474 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5477 openning fails.
5478 Reported by: Mark Korenberg.
5479
5480 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5483 overflow.
5484
5485 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5488 before closing to ensure that it will be readable by grub-setup.
5489
5490 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5493 (devpath_1): Use MAKE_PIWG_PATH.
5494 (devpath_2): Likewise.
5495 (devpath_3): Likewise.
5496 (devpath_4): Likewise.
5497 (devpath_5): Likewise.
5498 (devpath_6): Likewise.
5499
5500 The appleldr.mod was checked that to be binary identical to previous
5501 version.
5502
5503 2011-05-05 Zach <mikezackles>
5504
5505 Support 2010 Macbooks.
5506
5507 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5508 (devs): Add devpath_6.
5509
5510 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5513 /dev/random. /dev/urandom is good enough for our purposes (salting).
5514
5515 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5518
5519 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5520
5521 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5522 hexadecimal.
5523
5524 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5527 and not 0 on failure.
5528
5529 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5530
5531 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5532 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5533 disk; otherwise grub_fs_probe will not fall back to the next
5534 filesystem.
5535 (grub_pxefs_open): Likewise, for consistency.
5536 Reported and tested by: Ezekiel Grave.
5537
5538 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5539
5540 * tests/partmap_test.in: Don't hardcode path to parted.
5541 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5542
5543 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5544
5545 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5546 of `ls' to find out which devices are available.
5547
5548 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5551 than source address for efi mmap buffer.
5552
5553 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5556 wrong action on non-detecting the magic.
5557
5558 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5561 already supplied by another part of the module (fixes compilation on
5562 FreeBSD).
5563
5564 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5565
5566 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5567 match the one used by mdadm.
5568
5569 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5570
5571 * po/README: Add instructions for creating po/LINGUAS.
5572
5573 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5574
5575 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5576 #551428.
5577
5578 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5579 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5580 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5581 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5582 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5583 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5584 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5585 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5586 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5587 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5588 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5589 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5590 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5591 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5592 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5593 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5594 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5595 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5596 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5597 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5598 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5599 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5600
5601 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5602
5603 * grub-core/kern/emu/getroot.c
5604 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5605 test that was incorrectly reintroduced in r3214.
5606 Reported by: Ian Dall. Fixes Savannah bug #33133.
5607
5608 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5609
5610 Fix stack pointer handling in 16-bit relocator.
5611
5612 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5613 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5614 Fixes Ubuntu bug #683904.
5615
5616 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * configure.ac: Bump version to 1.99~rc2.
5619
5620 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5623 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5624 * grub-core/lib/x86_64/setjmp.S: Likewise.
5625 * grub-core/lib/mips/setjmp.S: Likewise.
5626 * grub-core/lib/powerpc/setjmp.S: Likewise.
5627 * grub-core/lib/sparc64/setjmp.S: Likewise.
5628
5629 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5632 * grub-core/lib/efi/datetime.c: Likewise.
5633
5634 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5637 New function.
5638 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5639 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5640 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5641
5642 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5645 bitmap.
5646 (grub_gfxterm_term_init): Likewise.
5647
5648 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 Take into account the decorations the computing menu entry width.
5651
5652 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
5653 (grub_gfxmenu_create_box): Register get_border_width.
5654 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
5655 if available.
5656 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5657 get_border_width.
5658
5659 2011-04-18 Endres Puschner <code@e7p.de>
5660
5661 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5662 Don't skip first class.
5663
5664 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5667 chunks.
5668 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5669
5670 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5671
5672 Complete 64-bit division support.
5673
5674 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
5675 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
5676 * include/grub/misc.h (grub_divmod64): Rename to ...
5677 (grub_divmod64_full): ... this.
5678 (grub_divmod64): New inline function.
5679
5680 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5683
5684 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5687 performing the necessary test.
5688
5689 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5692 (kfreebsd.elf): Likewise.
5693 (pc-chainloader.elf): Likewise.
5694 (ntldr.elf): Likewise.
5695
5696 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 Identify RAID by its UUID rather than (guessed) name.
5699
5700 * grub-core/disk/raid.c (ascii2hex): New function.
5701 (grub_raid_open): Accept mduuid/%s specification.
5702 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
5703 (get_mdadm_uuid): ... this.
5704 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
5705
5706 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
5709 to negative size.
5710
5711 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5712
5713 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
5714 btrfs subvolume.
5715 * util/grub.d/20_linux_xen.in: Likewise.
5716
5717 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5718
5719 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
5720 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
5721
5722 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5723 Build a list of relevant visible mounts using the mnt_id and
5724 parent_mnt_id fields, and then scan that list at the end.
5725
5726 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5727
5728 * docs/grub.texi (normal): New section.
5729 (normal_exit): New section.
5730 (Embedded configuration): Add reference to normal.
5731 (GRUB only offers a rescue shell): Likewise.
5732 * docs/grub-dev.texi (Error Handling): Fix typo.
5733
5734 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5735
5736 * NEWS: Drop obsolete entry about probe-only btrfs support.
5737
5738 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5739
5740 * util/import_gcry.py: Fix typo.
5741
5742 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * NEWS: Add btrfs support.
5745
5746 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5747 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5748
5749 BtrFS support. Written by me (Vladimir) with important bugfixes and
5750 even more important testing by Colin.
5751
5752 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
5753 * grub-core/Makefile.core.def (btrfs): Add crc.c.
5754 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
5755 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
5756 mem_input_off and mem_input. All users updated to accept in-RAM input.
5757 (gzio_seek): New function.
5758 (test_zlib_header): Likewise.
5759 (grub_gzio_read): Likewise.
5760 (grub_zlib_decompress): Likewise.
5761 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
5762 Accept partial and non-virtual mounts.
5763 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
5764 avoid receiving /dev/dm-X as device.
5765 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
5766 Handle bind and partial mounts.
5767 * grub-core/lib/crc.c: New file.
5768 * include/grub/deflate.h: Likewise.
5769 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
5770 proto.
5771 * include/grub/lib/crc.h: New file.
5772
5773 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Implement automatic module license checking according to new GNU
5776 guidelines.
5777
5778 * grub-core/kern/dl.c (grub_dl_check_license): New function.
5779 (grub_dl_load_core): Use grub_dl_check_license.
5780 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
5781 (GRUB_MOD_LICENSE): Likewise.
5782 (GRUB_MOD_DUAL_LICENSE): Likewise.
5783 All modules updated.
5784
5785 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5786
5787 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
5788 reserved_first_sector to 1. btrfs reserves plenty of space for boot
5789 loaders.
5790 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
5791
5792 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
5795
5796 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * util/grub-fstest.c (read_file): Report GRUB error if file opening
5799 failed.
5800
5801 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/kern/file.c (grub_file_open): Don't take into account the
5804 parenthesis in the middle of the filename.
5805
5806 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
5809 rather than trying to put initrd way too high.
5810 Reported by: Ryan Lortie <desrt@desrt.ca>
5811
5812 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
5815 improperly removed string.
5816
5817 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
5820 is_disk.
5821 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
5822 (open_device) Likewise.
5823 (grub_util_biosdisk_close): Likewise.
5824 Reported by: Mark Korenberg.
5825
5826 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
5827
5828 * util/grub-mkconfig_lib.in: Add missing quotes.
5829
5830 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
5831
5832 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
5833 is NULL.
5834
5835 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 Dynamically count the number of lines for the lower banner.
5838
5839 * grub-core/normal/menu_entry.c (per_term_screen): New member
5840 num_entries.
5841 (print_down): Use num_entries.
5842 (update_screen): Likewise.
5843 (grub_menu_entry_run): Set num_entries.
5844 * grub-core/normal/menu_text.c (menu_viewer_data): New member
5845 num_entries.
5846 (grub_print_message_indented): Move real part to ...
5847 (grub_print_message_indented_real): ... here. Additional argument
5848 dry_run.
5849 (draw_border): Additional argument num_entries.
5850 (print_message): Additional argument dry_run.
5851 (print_entries): Receive menu viewer data.
5852 (grub_menu_init_page): New argment num_entries.
5853 (menu_text_set_chosen_entry): Use num_entries.
5854 (grub_menu_try_text): Likewise.
5855 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
5856 All users updated.
5857 (grub_ucs4_count_lines): New function.
5858 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
5859 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
5860 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
5861 (grub_term_border_height): Likewise.
5862 (grub_term_num_entries): Likewise.
5863
5864 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
5867 Remove now unused string.
5868
5869 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5870
5871 * docs/grub-dev.texi (Finding your way around): Update for 1.99
5872 build system.
5873 (Getting started): GRUB is developed in Bazaar now, not Subversion.
5874
5875 (Comment): Fix typo.
5876 (Getting started): General copy-editing.
5877 (Typical Development Experience): Likewise.
5878 (Error Handling): Likewise.
5879 (Video API): Likewise.
5880
5881 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5882
5883 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
5884 throughout.
5885
5886 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5887
5888 * util/grub-mkimage.c (main): Handle special naming of yeeloong
5889 directory.
5890
5891 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5892
5893 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
5894 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
5895 "development".
5896
5897 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
5900 grub_strcpy since the lines aren't necessarily 0-terminated.
5901
5902 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
5905 root on legacy.
5906
5907 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/commands/probe.c (options): Argument to set isn't optional.
5910 (GRUB_MOD_INIT): DEVICE isn't optional.
5911
5912 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
5915 word on new line if it's too long anyway. Fixes a hang.
5916
5917 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
5920 const.
5921 * util/grub-setup.c (main): Reuse md device name if available.
5922 * util/raid.c (grub_util_raid_getmembers): Receive device name and
5923 not GRUB name as argument.
5924 Based on patch by: Florian Wagner <fwagner>.
5925
5926 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5929 Place mbi on low memory for better compatibility.
5930
5931 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5934
5935 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5936 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5937
5938 * autogen.sh: Ensure that collate and ctype locale is C.
5939 * conf/Makefile.common: Likewise.
5940
5941 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * grub-core/normal/menu.c: Add missing include.
5944
5945 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5948
5949 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5950
5951 * util/grub-mkconfig.in: Ignore emacsen backup.
5952
5953 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
5956 on open.
5957 (grub_util_biosdisk_close): Likewise.
5958
5959 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
5962 const attribute and use grub_isdigit.
5963
5964 2011-04-06 Andrey <dev_null@ukr.net>
5965
5966 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
5967 gcc warning.
5968
5969 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
5972 useful grub_dprintf's.
5973
5974 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
5977
5978 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
5981
5982 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 Output errors if theme loading failed.
5985
5986 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
5987 grub_gfxterm_fullscreen on error paths to ...
5988 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
5989 theme loading error.
5990
5991 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
5994 space for older compilers.
5995 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5996
5997 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
6000 and report them as not RAID members since they are useless for GRUB.
6001 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6002
6003 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 Increase LVM implementation robustness in order not to crash on
6006 configurations like pvmove. Previously code assumed that in some places
6007 only lvs or only pvs are used whereas it seems that they are used
6008 interchangeably.
6009
6010 * grub-core/disk/lvm.c (read_node): New function.
6011 (read_lv): Use read_node.
6012 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
6013 Match volumes only at the end when all lvs are found. Take both
6014 pvs (first) and lvs (second) into account.
6015 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
6016 mirror_* into node_*. All users updated.
6017 (grub_lvm_stripe): Merge this ...
6018 (grub_lvm_mirror): ... and this ...
6019 (grub_lvm_node): ... into this. All users updated.
6020
6021 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
6024 of function to allow further scanning for LVMs.
6025
6026 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
6029 on failed seek as it breaks open fd reusage.
6030
6031 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 * util/grub-install.in: Add a recommendation to use --recheck before
6034 reporting bugs.
6035
6036 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
6039 are obtained.
6040
6041 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 GRUB developper manual based on existing Internals section and
6044 contributions by the various authors with active copyright assignment.
6045
6046 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
6047 * docs/font_char_metrics.png: New file.
6048 * docs/font_char_metrics.txt: Likewise.
6049 * docs/grub-dev.texi: Likewise.
6050 * docs/grub.texi (Internals): Move from here ...
6051 * docs/grub-dev.texi: ... here.
6052
6053 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6054
6055 Store the loopback device as data on loopback grub_disk structures,
6056 rather than the file it points to. This fixes use of freed memory
6057 if an existing loopback device is replaced.
6058
6059 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
6060 disk->data, not dev->file.
6061 (grub_loopback_read): Adjust file assignment to match.
6062 Fixes Ubuntu bug #742967.
6063
6064 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6065
6066 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
6067 when replacing an existing device.
6068
6069 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
6072 memory corruptions.
6073
6074 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
6075 unsigned.
6076 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
6077 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
6078 (grub_jfs_read_inode): Likewise.
6079 (grub_jfs_opendir): Likewise. Remove now useless casts.
6080 (grub_jfs_getent): Likewise.
6081 Make ino a grub_uint32_t rather than int.
6082 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
6083 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
6084 division and module with bit operations.
6085 (grub_jfs_find_file): Make ino a grub_uint32_t.
6086 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
6087
6088 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6089
6090 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
6091 warning. (This was in fact always initialised before use, but GCC
6092 wasn't smart enough to prove that.)
6093 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6094
6095 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
6098 stack alignment.
6099 (efi_wrap_1): Likewise.
6100 (efi_wrap_2): Likewise.
6101 (efi_wrap_3): Likewise.
6102 (efi_wrap_4): Likewise.
6103 (efi_wrap_5): Likewise.
6104 (efi_wrap_6): Likewise.
6105 (efi_wrap_10): Likewise.
6106 Based on information by: Red Hat/Peter Jones.
6107
6108 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6109
6110 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
6111 set-but-not-used variable.
6112
6113 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6114
6115 * docs/grub.texi (Simple configuration): Be more explicit about
6116 GRUB_DEFAULT, and add an example.
6117 Reported by: Leslie Rhorer.
6118
6119 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6120
6121 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
6122 shell".
6123
6124 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6125
6126 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
6127 * util/grub.d/20_linux_xen.in: Likewise.
6128
6129 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * util/grub.d/10_linux.in: Try alternative config filenames where
6132 we parse config file.
6133 * util/grub.d/20_linux_xen.in: Likewise.
6134
6135 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6136
6137 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
6138 * util/grub.d/20_linux_xen.in: Likewise.
6139
6140 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/disk/raid.c (insert_array): Add few potentially
6143 useful grub_util_info.
6144 (grub_raid_register): Likewise.
6145
6146 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
6149 Preserve partition number in mdadm code path.
6150
6151 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
6154 few potentially useful grub_util_info.
6155
6156 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
6159
6160 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6161
6162 * docs/grub.texi (default): Use @example rather than nested
6163 itemized lists to avoid breaking gendocs.
6164
6165 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6166
6167 * docs/grub.texi (Future): Update.
6168
6169 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6170
6171 * docs/grub.texi (Environment): New chapter.
6172 (Changes from GRUB Legacy): Link to "Environment block" section for
6173 details of limitations.
6174 (Simple configuration): Likewise. Link to documentation of gfxmode
6175 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
6176 respectively.
6177 (Shell-like scripting): Note that normal variables are stored in the
6178 environment.
6179 (gettext): Link to documentation of lang and locale_dir.
6180 (list_env): New section.
6181 (load_env): New section.
6182 (save_env): New section.
6183
6184 (Reporting bugs): Fix typo.
6185
6186 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
6189 the example.
6190
6191 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * grub-core/term/at_keyboard.c (set_scancodes)
6194 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
6195
6196 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6197
6198 * docs/grub.texi (Menu-specific commands): Remove some semantics
6199 that were true in GRUB Legacy but not in GRUB 2.
6200 (submenu): New section.
6201 (false): New section.
6202 (read): New section.
6203 (true): New section.
6204
6205 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6206
6207 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
6208
6209 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6210
6211 * docs/grub.texi (Simple configuration): Explain some of the
6212 current limitations of grub-mkconfig.
6213 Reported by: Leslie Rhorer.
6214
6215 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 Old macs search for boot.efi rather than for bootia32.efi.
6218
6219 * util/grub-install.in: Copy bootia32.efi to boot.efi.
6220 * util/grub-mkrescue.in: Likewise.
6221 Suggested by: Peter Jones.
6222
6223 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
6226
6227 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
6230 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
6231 (grub_lvm_mirror): New struct.
6232 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
6233 (grub_lvm_iterate): Iterate only visible volumes.
6234 (grub_lvm_read): Factor out to ..
6235 (read_lv): ... this. Support mirrors.
6236 (grub_lvm_read): New wrapper function.
6237 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
6238 stripped or mirrored.
6239
6240 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6241
6242 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
6243
6244 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6245
6246 * docs/grub.texi (loopback): New section.
6247
6248 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6249
6250 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
6251 removed -p option.
6252
6253 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6254
6255 * docs/grub.texi (BIOS installation): New section, partly based on
6256 previous text in other sections.
6257 (Installing GRUB using grub-install): Replace BIOS discussion with a
6258 cross-reference.
6259 (Images): Likewise.
6260
6261 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * grub-core/kern/emu/hostdisk.c (find_partition_start)
6264 [HAVE_DIOCGDINFO]: Add safety checks.
6265
6266 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
6269 per default compiled in kernel and prior to 8.0 isn't shipped at all.
6270
6271 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6272
6273 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
6274 real_sb->size is zero (e.g. RAID-0), get the disk size from
6275 real_sb->data_size instead.
6276 Fixes Ubuntu bug #743136.
6277
6278 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
6281 printf clauses for printing size and start.
6282
6283 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
6286 Reported and tested by: Timothy Nikkel.
6287
6288 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
6291 (dirty_region_add_real): ... this.
6292 (dirty_region_add): Don't discard margin refresh when performing
6293 scheduled repaint.
6294
6295 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * grub-core/lib/relocator.c (allocate_regstart)
6298 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
6299 terminals are capabple of malloc-free operation.
6300 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6301 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6302
6303 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
6304
6305 * util/grub-setup.c: Copy the partition table zone if floppy support
6306 is disabled, even if no partition table is found.
6307
6308 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
6309 during POST if an invalid partition table is contained in the PBR
6310 of the active partition when GRUB is installed to a partition.
6311
6312 2011-03-28 Colin Watson <cjwatson@debian.org>
6313
6314 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
6315 comment.
6316
6317 2011-03-28 Colin Watson <cjwatson@debian.org>
6318
6319 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6320 to be specific about what kind of RAID device we're scanning for.
6321
6322 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6323
6324 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6325 return freed string.
6326
6327 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6330
6331 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 Use libgeom on FreeBSD to detect partitions.
6334
6335 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6336 (grub-mkrelpath): Likewise.
6337 (grub-script-check): Likewise.
6338 (grub-editenv): Likewise.
6339 (grub-mkpasswd-pbkdf2): Likewise.
6340 (grub-fstest): Likewise.
6341 (grub-mkfont): Likewise.
6342 (grub-mkdevicemap): Likewise.
6343 (grub-probe): Likewise.
6344 (grub-setup): Likewise.
6345 (grub-ofpathname): Likewise.
6346 (grub-mklayout): Likewise.
6347 (example_unit_test): Likewise.
6348 (grub-menulst2cfg): Likewise.
6349 * grub-core/Makefile.core.def (grub-emu): Likewise.
6350 (grub-emu-lite): Likewise.
6351 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6352 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6353 define HAVE_DIOCGDINFO.
6354 (follow_geom_up) [FreeBSD]: New function.
6355 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6356 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6357 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6358 unconditionally of HAVE_DIOCGDINFO.
6359
6360 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 Fix FreeBSD compilation problem.
6363
6364 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6365 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6366
6367 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6368
6369 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6370 Switch back to page zero before loading a kernel, since some kernel
6371 drivers expect that.
6372 Thanks to: Felix Kuehling.
6373
6374 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6377 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6378 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6379
6380 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6383 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6384
6385 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6388 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6389 malloc is disabled.
6390
6391 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6394 for modules headers when counting the needed allocation size.
6395
6396 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6399 if no ASCII character is found to prevent crash.
6400
6401 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6402
6403 * grub-core/video/bitmap.c (match_extension): Ignore case.
6404
6405 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6408
6409 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/script/parser.y: Declare "time" as valid argument.
6412
6413 2011-03-23 Peter Jones <pjones@redhat.com>
6414
6415 Fix incorrect assert failure reporting.
6416
6417 * grub-core/tests/example_functional_test.c (example_test): Add
6418 a failure comment.
6419 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6420 (failure_start): ...this. Check that malloc succeeded.
6421 Don't call xvasprintf. Return failure struct.
6422 (failure_append_vtext): New function.
6423 (failure_append_text): Likewise.
6424 (add_failure): Likewise.
6425 (grub_test_assert_helper): Likewise.
6426 * include/grub/test.h (grub_test_assert_helper): New declaration.
6427 (grub_test_assert): Macro rewritten.
6428
6429 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6432
6433 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6436
6437 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6440 into GRUB-style one.
6441
6442 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6445 error and not grub_errno.
6446 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6447
6448 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6451 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6452
6453 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 * grub-core/efiemu/i386/pc/cfgtables.c
6456 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6457 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6458 (grub_xnu_unlock): Likewise.
6459 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6460
6461 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6464 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6465 * grub-core/commands/hashsum.c (aliases): Likewise.
6466 * grub-core/commands/setpci.c (pci_registers): Likewise.
6467 * grub-core/disk/usbms.c (attach_hook): Likewise.
6468 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6469 (zio_checksum_table): Likewise.
6470 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6471 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6472 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6473 * grub-core/lib/relocator.c (leftovers): Likewise.
6474 (extra_blocks): Likewise.
6475 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6476 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6477 (modules_last): Likewise.
6478 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6479 (devices): Likewise.
6480 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6481 (modules_last): Likewise.
6482 * grub-core/normal/auth.c (users): Likewise.
6483 * grub-core/normal/context.c (initial_menu): Likewise.
6484 (current_menu): Likewise.
6485 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6486 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6487 (grub_serial_terminfo_input_template): Likewise.
6488 (grub_serial_terminfo_output_template): Likewise.
6489 (grub_serial_terminfo_input): Likewise.
6490 (grub_serial_terminfo_output): Likewise.
6491 (registered): Likewise.
6492 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6493
6494 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6497 grub_video_mode_type_t.
6498 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6499 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6500 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6501
6502 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * util/grub-install.in: Correct the x86-64 name as x86_64.
6505
6506 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6507
6508 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6509 initial chunk read from the kernel always includes GRUB's multiboot
6510 header, which is now outside the first sector.
6511
6512 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6513
6514 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6515 cached mmap_size, so that this works correctly when called multiple
6516 times.
6517 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6518
6519 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6520
6521 * docs/grub.texi (Simple configuration): Tidy up formatting.
6522
6523 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6524
6525 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6526 Set-but-not-used variable removed.
6527
6528 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 Workaround yet another IEEE1275 bug.
6531
6532 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6533 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6534 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6535 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6536 is set.
6537 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6538 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6539
6540 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6543 error.
6544
6545 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6546
6547 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6548 empty, since in that case we can only generate either nothing or a
6549 syntactically invalid configuration file.
6550 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6551
6552 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6553
6554 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6555 (Making a GRUB bootable CD-ROM): Likewise.
6556 (Invoking grub-mkrescue): New section.
6557 Reported by: Yann Dirson. Fixes Debian bug #612585.
6558
6559 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6560
6561 * util/grub-install.in: Remove unnecessary brackets from tr
6562 arguments.
6563 * util/grub.d/10_hurd.in: Likewise.
6564 * util/grub.d/10_kfreebsd.in: Likewise.
6565 * util/grub.d/10_linux.in: Likewise.
6566 * util/grub.d/20_linux_xen.in: Likewise.
6567 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6568
6569 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6570
6571 * include/grub/file.h (not_easly_seekable): Rename to ...
6572 (not_easily_seekable): ... this. Update all users.
6573
6574 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6575
6576 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6577 grub-mkrescue.
6578
6579 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * util/grub-mkimage.c (generate_image): Refuse to create the images
6582 bigger than the actual flash (512K) in Loongson machines. 512K is also
6583 the biggest chip supported by them.
6584
6585 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6588
6589 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6590
6591 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6592 super_offset field.
6593
6594 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * util/grub-install.in: Ignore install device on platforms
6597 where it doesn't make sense. Always use UUIDs except on pc, efi and
6598 sparc64.
6599 Reported by: Daniel Kahn Gillmor.
6600
6601 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6604
6605 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6608 (iterate_real): Don't rely on partition being non-NULL.
6609
6610 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6613 supported platforms. Put a compile time assert for this rather than
6614 generate a warning with 32-bit shift.
6615
6616 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6619 logical expression more readable.
6620
6621 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6624 even if some elements have a name.
6625 Reported by: Alexander GQ Gerasiov.
6626
6627 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6628
6629 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6630 path unreadable if `grub-probe -t abstraction' fails, for example if
6631 memberlist fails on an LVM volume group.
6632 Reported by: Darius Jahandarie.
6633
6634 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6635
6636 * docs/grub.texi (Simple configuration): Document
6637 GRUB_PRELOAD_MODULES.
6638
6639 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6640
6641 * .bzrignore: Remove nonexistent grub-pbkdf2.
6642
6643 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * configure.ac: Bump version to 1.99~rc1.
6646
6647 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6650 for safety.
6651
6652 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6655 module.
6656
6657 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6660
6661 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6664 diskdevid.
6665
6666 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6667
6668 Fix compilation on cygwin.
6669
6670 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
6671 -R .drectve on cygwin.
6672 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
6673 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
6674 (COND_CYGWIN): New condition.
6675 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
6676 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
6677 not @TARGET_OBJ2ELF@.
6678 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
6679 type to determine whether aux is to be used.
6680
6681 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6682
6683 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
6684 realpath'ed device string.
6685 Handle floppy (somewhat).
6686 Issue error in unknown case rather than garbage.
6687 Reported by: Axel Beckert.
6688
6689 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6690
6691 * util/grub.d/00_header.in (load_video): Handle the case when no video
6692 drivers available.
6693 Thanks to: Axel Beckert.
6694
6695 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6696
6697 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6698 variable. Fixes problem on big endian platforms.
6699
6700 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6701
6702 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6703 It doesn't work well there.
6704
6705 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
6708 warning.
6709 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
6710 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
6711 counter.
6712
6713 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 Use alias->path rather than buggy "canon".
6716
6717 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
6718 (ofdisk_hash_add): New argument curcan. All users updated.
6719
6720 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6721
6722 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
6723
6724 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
6727 loadmask before doing any calculations. Use correct type for offset.
6728 (grub_linux_load64): Likewise.
6729
6730 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6731
6732 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
6733 with NULL.
6734 (console_grub_equivalences_unshift): Likewise.
6735 Reported by: Daniel Dehennin.
6736
6737 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
6740 (set_env_limn_ro): Likewise.
6741 (GRUB_MOD_INIT): Likewise.
6742 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
6743 ARRAY_SIZE while on it.
6744 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
6745 * grub-core/normal/context.c (grub_env_export): Move from here ...
6746 * grub-core/kern/env.c (grub_env_export): ... here.
6747 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
6748 prefix.
6749 * grub-core/kern/main.c (grub_main): Export root and prefix.
6750 * include/grub/env.h (grub_env_export): Export.
6751 Reported by: Seth Goldberg.
6752
6753 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6756 Take into account space used by ELF sections and multiboot palette.
6757 Reported by: Grégoire Sutre.
6758
6759 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * BUGS: New file.
6762
6763 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 Pass more appropriate video id to Linux.
6766
6767 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
6768 grub_video_get_driver_id and variable gfxpayloadforcelfb to
6769 fill have_vga.
6770 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
6771 shift params->lfb_size.
6772 * include/grub/i386/linux.h: Make an enume out of have_vga values.
6773
6774 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * util/grub-menulst2cfg.c: Add missing include of misc.h.
6777
6778 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
6781 separator and pass bootpath/devid even if only one of them is available.
6782 Reported by: Seth Goldberg.
6783
6784 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
6787 implementations bug on them.
6788
6789 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
6790 memory.
6791 (filter_memory_map): Likewise.
6792
6793 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
6796 Reported by: nebuchadnezzar.
6797
6798 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
6801 Reported by: nebuchadnezzar.
6802
6803 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 Submenu default support.
6806
6807 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
6808 auto_boot. All users updated.
6809 Declared static.
6810 Handle chosen and default with submenus.
6811 (grub_menu_execute_with_fallback): Declared static.
6812 Don't notify failure if autobooted. Upper level does it.
6813 (menuentry_eq): New function.
6814 (get_entry_number): Use menuentry_eq.
6815 (show_menu): New parameter "autobooted". All users updated.
6816 (grub_show_menu): Likewise.
6817 * include/grub/normal.h (grub_show_menu): Likewise.
6818 * include/grub/menu.h (grub_menu_execute_entry): Removed.
6819 (grub_menu_execute_with_fallback): Likewise.
6820
6821 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * util/grub-mklayout.c (usage): Update help text.
6824
6825 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
6828
6829 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * util/grub-menulst2cfg.c (main): Trim the line.
6832
6833 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
6836 (grub_machine_init): Don't check amount of low memory as reportedly
6837 INT 12h can be broken and if low memory is too low we wouldn't have
6838 gotten into grub_machine_init anyway.
6839
6840 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
6843 (grub_machine_mmap_iterate): Take low memory into account
6844
6845 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
6848 badfs.
6849 Reported by: TiCPU.
6850
6851 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
6854 members errors.
6855
6856 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6857
6858 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
6859 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
6860
6861 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6862
6863 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
6864 openbsd and netbsd types being in part_bsd module.
6865
6866 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
6869 (_FILE_OFFSET_BITS): Likewise.
6870 Reported by: Seth Goldberg.
6871
6872 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6873
6874 * configure.ac: Check for libdevmapper header.
6875
6876 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
6879 avoid aliasing.
6880 (fzap_lookup): Likewise.
6881 (dnode_get): Likewise.
6882 (make_mdn): Likewise.
6883 (zfs_mount): Likewise.
6884 (fzap_iterate): Use temporary pointer to avoid aliasing.
6885 (grub_zfs_read): Likewise.
6886 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
6887 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
6888 pointers to avoid aliasing.
6889 (grub_cmd_xnu_kernel64): Likewise.
6890 (grub_xnu_load_driver): Likewise.
6891
6892 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
6895 aliasing warning.
6896 (grub_cmd_terminal_output): Likewise.
6897 Reported and tested by: Grégoire Sutre.
6898
6899 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
6902 warning.
6903 Reported and tested by: Grégoire Sutre.
6904
6905 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 * configure.ac: Do CPU substitution even if it's specified explicitly.
6908 Reported and tested by: Alain Greppin.
6909
6910 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
6913 Reported and tested by: Alain Greppin.
6914
6915 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 Satisfy some bison versions need for inttypes.h.
6918
6919 * grub-core/lib/posix_wrap/inttypes.h: New file.
6920 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
6921 (int16_t): Likewise.
6922 (int32_t): Likewise.
6923 (int64_t): Likewise.
6924 Reported and tested by: Alain Greppin.
6925
6926 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6929 Silence spurious warning.
6930 Reported and tested by: Alain Greppin.
6931
6932 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6933
6934 * docs/grub.texi (Support automatic decompression): Update with xz
6935 decompression support.
6936
6937 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6938
6939 Improve loaders' kernel command line handling.
6940
6941 * grub-core/lib/cmdline.c: New file.
6942 * include/grub/lib/cmdline.h: Likewise.
6943 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
6944 grub_create_loader_cmdline to create kernel command line.
6945 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6946 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
6947 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
6948 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
6949 (linux): Add lib/cmdline.c on common.
6950
6951 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6954 inopos might be unaligned.
6955
6956 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6959 endian transformations.
6960 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6961 Based on report by: Doug Nazar.
6962
6963 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
6964
6965 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
6966 array->members[i].start_sector.
6967 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6968
6969 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
6972 Reported and tested by: Grégoire Sutre.
6973
6974 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6975
6976 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
6977 avoid causing test failures by clearing the screen.
6978
6979 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6980
6981 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6982 Fix prefix check to handle the case where dir ends with a slash
6983 (most significantly, "/" itself).
6984 Reported by: Michael Vogt.
6985
6986 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 Run terminfo_cls on initing terminfo output to clear the screen and
6989 move the cursor to (0,0).
6990
6991 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
6992 Call grub_terminfo_output_init.
6993 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
6994 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
6995 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
6996
6997 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
7000 only when needed.
7001
7002 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7003
7004 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
7005 CTRL.
7006
7007 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 The E820 type 5 is BADRAM, not EXEC_CODE.
7010
7011 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7012 (GRUB_E820_BADRAM): New define.
7013 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
7014 into reserved. Propagate BADRAM.
7015 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7016 (GRUB_E820_BADRAM): New define.
7017
7018 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
7021 Ignore the memory post-4G.
7022 (grub_relocator_firmware_alloc_region): Additional debug statement.
7023
7024 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
7027 names.
7028 Reported by: David Pravec.
7029
7030 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
7033 BIOSes.
7034
7035 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
7038 Prevent overflow.
7039 (grub_reed_solomon_recover): Likewise.
7040
7041 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
7044
7045 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
7048 variable.
7049
7050 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
7051
7052 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
7053 descriptions of extract_legacy_entries_source and
7054 extract_legacy_entries_configfile.
7055 Reported by: Seung Soo, Ha.
7056
7057 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
7058
7059 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
7060 on devices that do not implement function 0.
7061
7062 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
7063
7064 * grub-core/fs/hfsplus.c: Make parent unsigned.
7065 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
7066 overflows.
7067 (grub_hfsplus_cmp_extkey): Likewise
7068
7069 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * util/grub-install.in: Correctly use bootloader_id and not
7072 GRUB_DISTRIBUTOR on efibootmgr line.
7073
7074 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
7077
7078 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
7079
7080 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
7081 Xen and reorder menu item wording to make it clearer that this entry
7082 will launch Xen. Print separate messages when loading Xen and
7083 Linux.
7084
7085 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
7088 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
7089 loop in case of incorrect amiga partmap.
7090
7091 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
7094 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
7095 Reported by:EHeM.
7096
7097 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
7100 spurious warning.
7101 Reported by: crocket
7102
7103 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
7106 Preload EFIemu.
7107 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
7108
7109 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7110
7111 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
7112 is loaded
7113 (grub_cmd_xnu_kextdir): Likewise.
7114 (grub_cmd_xnu_splash): Likewise.
7115
7116 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 Avoid using Reed-Solomon with 0 redundancy.
7119
7120 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
7121 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
7122 or 0 redundancy.
7123 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
7124 (grub_reed_solomon_recover): Likewise.
7125
7126 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7127
7128 Don't use disk subsystem in freebsd_boot.
7129
7130 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
7131 (freebsd_biosdev): Likewise.
7132 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
7133 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
7134
7135 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 Handling of files of unknown size is currently limited. They can't be
7138 used e.g. for initrd or modules. Moreover gzip handling of not
7139 easily seekable files is buggy. Disable unknown file size for now. May
7140 be inefficient but works.
7141
7142 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
7143 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7144
7145 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
7146
7147 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
7148 floppy probe.
7149
7150 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
7151
7152 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
7153
7154 2010-12-25 Shea Levy <shlevy>
7155
7156 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
7157
7158 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
7161 Windows Server 2008.
7162 Reported by: Devin Giddings.
7163
7164 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
7167 writing an error message because of async power management.
7168 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
7169 (grub_reboot): Likewise.
7170
7171 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
7172
7173 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
7174 keep unit tests from failing when they shouldn't.
7175
7176 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7177
7178 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
7179 previous patch increased the size of the RS code by 20 bytes (at
7180 least with gcc-4.4), so increase this by 20 bytes to match.
7181 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7182
7183 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7184
7185 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
7186 scratch area. Make sure to initialise chosen in standalone mode as
7187 well as non-standalone.
7188 Reported by: Robert Hooker and Andy Whitcroft.
7189 Tested by: Andy Whitcroft.
7190
7191 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7192
7193 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
7194 constructing a new unescaped string and passing it to grub_xputs in
7195 one go, rather than passing characters to grub_printf one at a time.
7196
7197 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7198
7199 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
7200 initialising utf16.
7201
7202 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7203
7204 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
7205 comment. Add an extra layer of quotation, requiring the output of
7206 this function to be used in a printf format string.
7207 (gettext_printf): New function.
7208 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
7209 Extract translatable strings from here-documents and use a temporary
7210 variable instead, so that xgettext can find them.
7211 * util/grub.d/10_kfreebsd.in: Likewise.
7212 * util/grub.d/10_linux.in: Likewise.
7213 * util/grub.d/20_linux_xen.in: Likewise.
7214
7215 * po/grub.d.sed: New file.
7216 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
7217 arguments. Set c-format flags on all strings extracted from
7218 util/grub.d/ (xgettext refuses to include these itself for strings
7219 it extracted from a shell file, but these really are c-format).
7220
7221 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
7224 Avoid next pointing to nowhere.
7225
7226 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
7229 rather than assuming than rootblock is exactly in the middle.
7230 (grub_affs_label): Likewise.
7231
7232 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
7235 reserved_first_sector to 0.
7236 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
7237 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
7238 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
7239
7240 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Fix handling of UTF-16 UDF labels.
7243
7244 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
7245 (read_string): .. here.
7246 (grub_udf_label): Use read_string.
7247
7248 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
7249
7250 * grub-core/normal/menu_entry.c (run): Execute commands from menu
7251 editor under argument scope.
7252 Reported by: Jordan Uggla
7253
7254 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
7257
7258 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
7259
7260 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
7261 line, and other keys scroll an entire page (previous handling was
7262 for \r and \n to scroll a page and other keys to scroll two lines).
7263
7264 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7267 Set ptrdest to correct get_physical_target_address rather than
7268 incorrect get_virtual_current_address.
7269
7270 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
7271
7272 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
7273 correct cat to grub_uint8_t * rather than grub_uint32_t *.
7274
7275 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7276
7277 * .bzrignore: Ignore grub-core/rs_decoder.S.
7278
7279 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7280
7281 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
7282 .mo/.mo.gz opening sequence to ...
7283 (grub_mofile_open_lang): ... here.
7284 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
7285 * util/grub.d/00_header.in (grub_lang): Include country part of
7286 locale.
7287 Reported by: Mario Limonciello.
7288
7289 2010-12-09 Robert Millan <rmh@gnu.org>
7290
7291 * NEWS: Document addition of ZFS support.
7292
7293 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
7294
7295 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
7296 rather than `/ 2', as the latter requires -Wa,--divide which would
7297 require bumping our minimum binutils version.
7298
7299 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
7300
7301 * util/grub-script-check.c (main): Print script line number on
7302 error.
7303
7304 2010-12-01 Robert Millan <rmh@gnu.org>
7305
7306 * grub-core/fs/zfs/zfs.c: New file.
7307 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
7308 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
7309 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7310 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7311
7312 * include/grub/zfs/dmu.h: Likewise.
7313 * include/grub/zfs/dmu_objset.h: Likewise.
7314 * include/grub/zfs/dnode.h: Likewise.
7315 * include/grub/zfs/dsl_dataset.h: Likewise.
7316 * include/grub/zfs/dsl_dir.h: Likewise.
7317 * include/grub/zfs/sa_impl.h: Likewise.
7318 * include/grub/zfs/spa.h: Likewise.
7319 * include/grub/zfs/uberblock_impl.h: Likewise.
7320 * include/grub/zfs/vdev_impl.h: Likewise.
7321 * include/grub/zfs/zap_impl.h: Likewise.
7322 * include/grub/zfs/zap_leaf.h: Likewise.
7323 * include/grub/zfs/zfs.h: Likewise.
7324 * include/grub/zfs/zfs_acl.h: Likewise.
7325 * include/grub/zfs/zfs_znode.h: Likewise.
7326 * include/grub/zfs/zil.h: Likewise.
7327 * include/grub/zfs/zio.h: Likewise.
7328 * include/grub/zfs/zio_checksum.h: Likewise.
7329
7330 * Makefile.util.def: Build ZFS into libgrubmods.
7331 * grub-core/Makefile.core.def: Build zfs.mod.
7332
7333 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7334
7335 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7336 variable.
7337 * grub-core/commands/wildcard.c (match_files): Likewise.
7338
7339 2010-11-30 Robert Millan <rmh@gnu.org>
7340
7341 * grub-core/loader/i386/bsd.c
7342 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7343 whether kernel is loaded using grub_loader_is_loaded(), rather
7344 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7345 certain error conditions.
7346
7347 2010-11-30 Robert Millan <rmh@gnu.org>
7348
7349 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7350 (grub_cmd_echo): Call grub_refresh() after printing a message.
7351
7352 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 Avoid using tricks for initialising endian variables.
7355
7356 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7357 Make const.
7358 (GRUB_MOD_INIT): Don't byte-swap.
7359 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7360 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7361 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7362 (grub_swap_bytes32_compile_time): Likewise.
7363 (grub_cpu_to_le32_compile_time): Likewise.
7364 (grub_cpu_to_le16_compile_time): Likewise.
7365
7366 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * util/grub-setup.c (setup): Stop recommending --force. People who
7369 understand the dangers of blocklists are able to find this option
7370 anyway and the ones who don't shouldn't use it anyway.
7371
7372 2010-11-26 Robert Millan <rmh@gnu.org>
7373
7374 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7375 Update all users.
7376
7377 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7378
7379 Fix LVM-on-RAID probing.
7380
7381 * util/grub-probe.c (probe): Remember which disk was detected as
7382 RAID (perhaps an LVM physical volume). Use that disk's raidname
7383 rather than that of the top-level disk.
7384
7385 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7386
7387 Fix cmdline argument quotes for setparams command of menuentry
7388 definitions.
7389
7390 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7391 quotes for arguments.
7392 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7393 grub_strchrsub function instead.
7394
7395 * include/grub/misc.h (grub_strchrsub): New function.
7396
7397 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7398
7399 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7400 effort by skipping "." and ".." entries up-front.
7401 Suggested by: Michael Lazarev.
7402
7403 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7404
7405 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7406 ldflags to ldadd, to fix link line ordering.
7407 (none_decompress): Likewise.
7408
7409 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7410
7411 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7412 platforms.
7413 (grub-emu-lite): Remove kern/emu/cache.S.
7414
7415 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7416
7417 * util/deviceiter.c (compare_devices): If the by-id link for a
7418 device couldn't be resolved, fall back to sorting by the by-id link
7419 rather than segfaulting.
7420 Reported and tested by: Daniel Mierswa.
7421
7422 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7423
7424 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7425 ldflags, to fix link line ordering.
7426
7427 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7428
7429 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7430 linkers are picky about this.
7431
7432 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7433
7434 * grub-core/Makefile.am (command.lst): Adjust sed expression
7435 ordering so that extended and priority commands aren't treated as
7436 ordinary commands.
7437
7438 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7439
7440 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7441 Remove byte-swapping function calls, which are not valid in
7442 structure initialisers.
7443 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7444 non-const.
7445 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7446 grub_gpt_partition_type_bios_boot.
7447
7448 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7449
7450 Fix test program build on GNU/kFreeBSD.
7451
7452 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7453 $(LIBNVPAIR)' library dependencies.
7454
7455 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7456
7457 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7458
7459 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7460
7461 * util/grub-install.in: Remove excessive quoting that broke
7462 installations to RAID devices.
7463
7464 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7467 bootloader version instead of 0.
7468
7469 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7472 warning.
7473
7474 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7477 retrieve the metadat sector if size isn't known.
7478 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7479
7480 2010-11-18 Robert Millan <rmh@gnu.org>
7481
7482 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7483 with grub_memcmp().
7484
7485 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7488 arrow.
7489 Reported by: Jordan Uggla.
7490
7491 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Make better UTF compliant.
7494
7495 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7496 sequences as incorrect.
7497 (grub_is_valid_utf8): Likewise.
7498 (grub_utf8_to_ucs4): Likewise.
7499 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7500 (grub_ucs4_to_utf8_alloc): Likewise.
7501 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7502
7503 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 Make legacy_source behave like source.
7506
7507 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7508 grub_show_menu.
7509 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7510
7511 2010-11-16 Colin Watson <cjwatson@debian.org>
7512
7513 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7514 (-Wunused implies -Wunused-parameter, but not vice versa).
7515
7516 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7517
7518 * configure.ac: Make error messages less confusing by testing for
7519 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7520 accepted, but produces a diagnostic if something else is wrong).
7521
7522 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7525 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7526 (now unused).
7527 (grub_keyboard_controller_init)
7528 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7529 read the initial state since controller isn't inited yet.
7530
7531 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7534 allocate_regbeg may need to create new chunk header.
7535
7536 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 Fix quoting in legacy parser.
7539
7540 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7541 single quotes.
7542 (grub_legacy_parse): Likewise.
7543 Reported by: Jordan Uggla.
7544 Tested by: Jordan Uggla.
7545
7546 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 Don't add -lgcc on i386 and x86_64.
7549
7550 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7551 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7552 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7553
7554 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 * configure.ac: Add -Wno-trampolines when supported.
7557
7558 2010-11-14 Modestas Vainius <modax@debian.org>
7559
7560 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7561 fakeraid.
7562
7563 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7564
7565 Add generic logical block size support for UDF.
7566
7567 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7568 (GRUB_UDF_BLKSZ): Removed.
7569 (struct grub_udf_data): New field "lbshift" to hold the logical block
7570 size of the file system in log2 format. All users updated.
7571 (sblocklist): Change type to unsigned.
7572 (grub_udf_mount): Change type of "sblklist" to unsigned.
7573 Move AVDP search before VRS recognition, because the latter requires
7574 knowledge of the logical block size, which is detected during the
7575 former.
7576 Detect and validate logical block size during AVDP search, adding
7577 support for block sizes 512, 1024 and 4096.
7578 Make VRS recognition independent of block size.
7579
7580 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7581
7582 Properly handle deleted files on UDF.
7583
7584 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7585 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7586 set.
7587
7588 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7589
7590 Support reading files larger than 2 GiB.
7591
7592 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7593 "offset" to grub_off_t.
7594 (grub_udf_read_file): Likewise for parameter "pos".
7595
7596 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7599 unavailable.
7600 (Simple configuration): Refer to Changes from GRUB Legacy about
7601 save_env availability.
7602
7603 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * util/grub-install.in: Ignore empty partition table detection
7606 instead of trying to include part_ module.
7607
7608 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7611 LVM on RAID support.
7612
7613 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 Properly define WORDS_BIGENDIAN in wrapped environments.
7616
7617 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7618 definition.
7619 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7620
7621 Reported by: Manoel Rebelo Abranches.
7622 Tested by: Manoel Rebelo Abranches.
7623
7624 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * util/grub-mkconfig.in: Fix quoting.
7627
7628 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Support big ext2 files.
7631
7632 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7633 (grub_ext2_read_block): Support triple indirect blocks.
7634 (grub_ext2_read_file): Use 64-bit types and read size_high.
7635 (grub_ext2_open): Read size_high.
7636 Reported by: Ximin Luo.
7637 Tested by: Manoel Rebelo Abranches.
7638
7639 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7640
7641 * util/grub-install.in: Handle filenames containing spaces.
7642 Reported by: Jordan Uggla.
7643 Tested by: Jordan Uggla.
7644
7645 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * util/grub-mkconfig.in (grub_script_check): New variable.
7648 Use grub_script_check instead of grub-script-check.
7649 Reported by: Barry Jackson.
7650
7651 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * docs/grub.texi (menu): Correct the order.
7654 Reported by: D. Hugh Redelmeier.
7655
7656 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7659 jump.
7660
7661 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7662
7663 * include/grub/elfload.h (grub_elf32_size): New parameter.
7664 All users updated.
7665 Return maximum segments alignment.
7666 (grub_elf64_size): Likewise.
7667 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
7668 Return maximum segments alignment.
7669 (grub_elf64_size): Likewise.
7670 * grub-core/loader/powerpc/ieee1275/linux.c:
7671 (grub_linux_claimmap_iterate): New function. Uses the
7672 "available" property in the "memory" node for memory allocation
7673 for kernel in the PowerPC loader.
7674 (grub_linux_load32): Correctly find linux entry point offset.
7675 (grub_linux_load64): Likewise.
7676
7677 2010-11-07 Robert Millan <rmh@gnu.org>
7678
7679 On mips-yeeloong, build with -march=loongson2f when this flag is
7680 available (GCC >= 4.4).
7681 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
7682 `-march=mips3'.
7683 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7684 or otherwise add -march=mips3.
7685
7686 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7687
7688 Suppress shell expansion on echo '*' and echo "*" like cases.
7689 Reported by: Jordan Uggla.
7690
7691 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7692 string arguments before shell expansion.
7693 * tests/grub_cmd_echo.in: New testcases.
7694
7695 2010-11-07 Robert Millan <rmh@gnu.org>
7696
7697 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7698 transition.
7699
7700 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * grub-core/kern/emu/hostdisk.c
7703 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7704
7705 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
7708 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
7709 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
7710
7711 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
7714
7715 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 * util/grub-install.in: Replace useless recomendation to pass
7718 --modules with a recomendation to report a bug.
7719
7720 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 Properly register serial terminfo.
7723 Reported by: Jordan Uggla
7724
7725 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
7726 const.
7727 (grub_serial_terminfo_output_template): Likewise.
7728 (grub_cmd_serial): Register "serial" with terminfo.
7729 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
7730 grub_serial_terminfo_output.
7731
7732 2010-11-05 Robert Millan <rmh@gnu.org>
7733
7734 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
7735 needed).
7736
7737 2010-11-05 Robert Millan <rmh@gnu.org>
7738
7739 On Yeeloong, pass machine type information to Linux.
7740
7741 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
7742 (LOONGSON_MACHTYPE): New macro, set to
7743 "machtype=lemote-yeeloong-2f-8.9inches".
7744 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
7745 additional argument to Linux.
7746
7747 2010-11-04 Robert Millan <rmh@gnu.org>
7748
7749 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
7750 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
7751 (its SATA disks are detected as slaveless IDE master drives on
7752 kFreeBSD).
7753 Reported by Carsten Aulbert.
7754
7755 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
7756
7757 * util/bin2h.c (main): Fix spelling error in generated output.
7758
7759 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
7760
7761 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
7762
7763 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
7766 vga= option is supplied.
7767
7768 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7769
7770 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
7771 * util/grub.d/10_kfreebsd.in: Likewise.
7772 * util/grub.d/10_linux.in: Likewise.
7773 * util/grub.d/20_linux_xen.in: Likewise.
7774
7775 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
7778 argument as an argument to no-argument option.
7779
7780 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * util/grub.d/10_linux.in: Add missing load_video with explicit
7783 GRUB_GFXPAYLOAD_LINUX.
7784
7785 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
7788
7789 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
7792 elements with invlid index.
7793 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7794 * grub-core/disk/raid.c (insert_array): Automatically reallocate
7795 members.
7796 * include/grub/raid.h (grub_raid_member): New struct.
7797 (grub_raid_array): Transform devices and start_sector into usage of
7798 grub_raid_member. All users updated
7799 (allocated_devs): New member.
7800
7801 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
7804 is modified
7805
7806 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
7807
7808 NetBSD build fix for getline function conflict from gnulib.
7809
7810 * Makefile.util.def (libgrubkern.a): New library for grub kernel
7811 components that depend on gnulib headers.
7812 (libgrubmods.a): Renamed from earlier libgrub.a.
7813 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
7814
7815 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
7818 install rather than creating a broken install.
7819
7820 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * util/grub-setup.c (argp): Remove misleading example of installing to
7823 a partition.
7824
7825 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * util/grub-setup.c (setup): Clarify the error message.
7828
7829 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
7832
7833 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * grub-core/kern/emu/misc.c
7836 (grub_make_system_path_relative_to_its_root)
7837 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
7838
7839 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/kern/emu/misc.c
7842 (grub_make_system_path_relative_to_its_root): Revert r2882.
7843
7844 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
7847 useless field head. All users updated.
7848 (free_subchunk): Correct handling of IN_REGION subchunk.
7849
7850 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
7851
7852 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
7853 (Supported kernels): Likewise.
7854
7855 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7856
7857 Make mktemp invocations portable.
7858
7859 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
7860 exit if mktemp fails.
7861 * tests/grub_script_blockarg.in: Likewise.
7862 * tests/partmap_test.in: Likewise.
7863 * tests/util/grub-shell-tester.in: Likewise.
7864 * tests/util/grub-shell.in: Likewise.
7865 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7866 * Makefile.am: Likewise, and chain shell commands with `&&'
7867 instead of ';'.
7868 * util/grub-mkrescue.in: Use the same explicit template as above, and
7869 exit if mktemp fails.
7870
7871 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
7872
7873 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
7874 Linux kernel, reported by Dennis Schridde.
7875
7876 2010-10-17 Szymon Janc <szymon@janc.net.pl>
7877
7878 * grub-core/normal/auth.c (grub_auth_check_authentication):
7879 Set-but-not-used variable removed.
7880
7881 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 * docs/grub.texi (GNU/Linux): Document APM unavailability with
7884 32-bit linux protocol.
7885
7886 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7887
7888 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
7889 cursor shape for sanity.
7890
7891 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7892
7893 * docs/grub.texi (Installation): Document buggy BIOS install.
7894
7895 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7896
7897 * docs/grub.texi (Installation): Indent.
7898
7899 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * util/grub-setup.c (setup): New parameter allow_floppy.
7902 (arguments): New member allow_floppy.
7903 (argp_parser): Handle --allow-floppy.
7904 (main): Pass allow_floppy.
7905 * util/grub-install.in: New option --allow-floppy passed though to
7906 grub-setup.
7907
7908 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * util/grub-install.in: Handle partitionless disks.
7911
7912 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7913
7914 * util/grub-setup.c (setup): Don't clean blocklists before readability
7915 verfification.
7916
7917 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * docs/grub.texi (Installation): Document embedding zone. Remove
7920 obsolete grub-install example.
7921
7922 2010-10-16 Szymon Janc <szymon@janc.net.pl>
7923
7924 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7925 Set-but-not-used variable ifdef'ed.
7926 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
7927 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
7928 variable removed.
7929 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
7930 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
7931 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7932 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
7933 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
7934 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7935 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
7936 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
7937 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
7938 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
7939 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
7940 Likewise.
7941
7942 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7943
7944 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
7945 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
7946 enum value.
7947
7948 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7951 synonym to _S5_. Needed for some DSDTs.
7952
7953 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 Userspace ACPI parser debugging.
7956
7957 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
7958 headers and add relevant defines. Don't include standard headers.
7959 (main) [GRUB_DSDT_TEST]: New function.
7960 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
7961 Don't declare functions.
7962
7963 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 Remove dead grub_efi_mm_fini.
7966
7967 * grub-core/kern/efi/mm.c (allocated_page): Removed.
7968 (ALLOCATED_PAGES_SIZE): Likewise.
7969 (MAX_ALLOCATED_PAGES): Likewise.
7970 (allocated_pages): Likewise.
7971 (grub_efi_allocate_pages): Don't record allocated pages.
7972 (grub_efi_free_pages): Likewise.
7973 (grub_efi_mm_init): Likewise.
7974 (grub_efi_mm_fini): Removed.
7975
7976 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
7979 (grub_efi_mm_init): Take into account the memory map size increase.
7980
7981 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
7984 (serial_hw_put): Wait based on real time rather than port reads. Don't
7985 roken ports.
7986 * include/grub/serial.h (grub_serial_port): New field broken.
7987
7988 2010-10-16 Robert Millan <rmh@gnu.org>
7989
7990 * grub-core/kern/emu/misc.c
7991 (grub_make_system_path_relative_to_its_root): Fix premature return
7992 when processing non-root ZFS filesystems.
7993 Reported by Sergio Talens-Oliag.
7994
7995 2010-10-15 Robert Millan <rmh@gnu.org>
7996
7997 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
7998 guarantee compressed ones are processed first.
7999
8000 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8001
8002 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
8003 grub_efiemu_autocore.
8004
8005 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8006
8007 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
8008 rather than 0x1b.
8009 (grub_console_getkey): Use correct jae opcode rather than ja.
8010
8011 2010-10-12 Robert Millan <rmh@gnu.org>
8012
8013 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
8014 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
8015 variable. All references updated.
8016
8017 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
8018
8019 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 Correctly distinguish mdraid flavours.
8022
8023 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
8024 (insert_array): New argument raid.
8025 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
8026 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
8027 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
8028
8029 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
8032 handling of special keys.
8033
8034 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8035
8036 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
8037 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
8038
8039 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8040
8041 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
8042 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
8043 users updated.
8044 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
8045 Use right endpoint when querying descriptor.
8046
8047 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8048
8049 Clear out 0x80 color bit on EFI.
8050 Tested by: decoder
8051 Reported by: decoder and meta tech.
8052
8053 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
8054 (grub_console_setcolorstate): Clear out 0x80 bit.
8055 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
8056 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
8057 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
8058
8059 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
8062 Set to "auto".
8063
8064 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
8067 mo_file after freeing.
8068
8069 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
8072
8073 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
8076 flags.
8077
8078 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
8081 usage.
8082
8083 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8084
8085 Put terminfo into core on ieee1275 and yeeloong (needed for console).
8086
8087 * gentpl.py: New groups terminfoinkernel and terminfomodule.
8088 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
8089 and terminfo.h when needed.
8090 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
8091 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
8092 (terminfo): Enable only on terminfokernel.
8093 (extcmd): Likewise.
8094 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
8095 * include/grub/lib/arg.h: Likewise.
8096 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
8097 incorrect usage of ->.
8098
8099 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8100
8101 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
8102 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
8103
8104 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 Fix coreboot compilation.
8107
8108 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8109 Take VBE info into account even if only text is supported.
8110 (fill_vbe_info): Take into account the case when only VGA text
8111 is supported.
8112 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
8113 on coreboot, multiboot and qemu.
8114
8115 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
8118 debug messages.
8119 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
8120
8121 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
8124 parameters.
8125
8126 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
8129 if they were BSD-style.
8130
8131 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 * grub-core/boot/i386/pc/lnxboot.S: Replace
8134 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
8135 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
8136
8137 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8138
8139 Write embedding zone using Reed-Solomon.
8140
8141 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
8142 * grub-core/Makefile.am (rs_decoder.S): New target.
8143 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
8144 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
8145 (multiboot): Move to RS part.
8146 (post_reed_solomon): New label.
8147 (grub_boot_drive): Move to non-RS part since it's modified in memory
8148 on boot.
8149 Include rs_decoder.S.
8150 * grub-core/lib/reed_solomon.c: New file.
8151 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
8152 New definition.
8153 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
8154 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
8155 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
8156 * include/grub/partition.h (grub_partition_map): Change prototype of
8157 embed to allow returning additional sectors.
8158 * include/grub/reed_solomon.h: New file.
8159 * util/grub-setup.c (setup): Handle Reed-Solomon.
8160
8161 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
8162
8163 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8164 i386 and x86-64 definedness tests.
8165
8166 2010-09-27 Yves Blusseau <blusseau@zetam.org>
8167
8168 Fix generation of kernel_syms.lst
8169
8170 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
8171 ASM_PREFIX
8172
8173 2010-09-26 Robert Millan <rmh@gnu.org>
8174
8175 Support degraded ZFS arrays in "grub-probe -t device" resolution.
8176
8177 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
8178 the pool is an array of devices, iterate through it and return the
8179 first device that passes a stat() test (instead of blindly returning
8180 the first one).
8181
8182 2010-09-26 Robert Millan <rmh@gnu.org>
8183
8184 Build fixes for GNU/kFreeBSD.
8185
8186 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
8187 to programs that require ZFS conversion.
8188 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
8189 kernels that don't have FLOPPY_MAJOR.
8190
8191 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8192
8193 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
8194
8195 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8196
8197 Fix grub-emu build.
8198
8199 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
8200 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
8201 mdraid09 and mdraid1x.
8202
8203 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
8204
8205 Re-enable grub-extras.
8206
8207 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
8208 avoid confusing Automake. Run autogen only twice, once for the top
8209 level and once for grub-core. Add Makefile.util.def and
8210 Makefile.core.def from extra modules to the appropriate autogen
8211 invocations. If Makefile.common exists in an extra module, include
8212 it in both Makefile.util.am and grub-core/Makefile.core.am;
8213 similarly, include any Makefile.util.common file in Makefile.util.am
8214 and any Makefile.core.common file in grub-core/Makefile.core.am.
8215 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
8216 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
8217 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
8218 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
8219
8220 * gentpl.py (gvar_add): Turn GVARS into a set.
8221 (global_variable_initializers): Sort global variables on output.
8222 (vars_init): New function.
8223 (first_time): Likewise.
8224 (library): Ensure that non-global variable initialisations are
8225 emitted before the first time we emit code for a library block.
8226 Append to variables rather than setting them. Only emit
8227 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
8228 each conditional path.
8229 (program): installdir() emits an Autogen macro, so must be passed to
8230 var_add rather than gvar_add.
8231 (data): Likewise.
8232 (script): Likewise.
8233 (rules): New function, centralising handling for different target
8234 types. Set up Guile association lists for first_time and vars_init,
8235 and send most output to a diversion so that variable initialisations
8236 can be emitted first.
8237 (module_rules): Use new rules function.
8238 (kernel_rules): Likewise.
8239 (image_rules): Likewise.
8240 (library_rules): Likewise.
8241 (program_rules): Likewise.
8242 (script_rules): Likewise.
8243 (data_rules): Likewise.
8244
8245 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
8246
8247 * .bzrignore: Add contrib and grub-core/contrib. Remove
8248 grub-core/Makefile.gcry.am.
8249
8250 2010-09-24 Yves Blusseau <blusseau@zetam.org>
8251
8252 * grub-core/lib/LzFind.c: Add missing include.
8253 * grub-core/lib/LzmaEnc.c: Likewise.
8254 * grub-core/script/lexer.c: Likewise.
8255 * grub-core/script/yylex.l: Likewise.
8256 * util/grub-macho2img.c: Likewise.
8257 * util/grub-menulst2cfg.c: Likewise.
8258 * util/grub-mklayout.c: Likewise.
8259 * util/grub-mkpasswd-pbkdf2.c
8260 * util/grub-mkrelpath.c: Likewise.
8261 * util/resolve.c: Likewise.
8262
8263 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
8264
8265 * Makefile.util.def (example_unit_test): Add
8266 grub-core/gnulib/libgnu.a.
8267
8268 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
8269
8270 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
8271
8272 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 Support xz compression on yeeloong.
8275
8276 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
8277 * configure.ac: Check for LZMA.
8278 * grub-core/Makefile.core.def (xz_decompress): New target.
8279 (none_decompress): Likewise.
8280 * grub-core/boot/decompressor/minilib.c: New file.
8281 * grub-core/boot/decompressor/none.c: Likewise.
8282 * grub-core/boot/decompressor/xz.c: Likewise.
8283 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
8284 * grub-core/kern/mips/cache_flush.S: Likewise.
8285 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
8286 * grub-core/kern/mips/startup.S: Move first stage to ...
8287 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
8288 nomacro.
8289 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
8290 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
8291 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
8292 Allocate statically.
8293 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
8294 Allocate statically or use scratch. Don't check CRC32.
8295 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
8296 Allocate statically. Don't check CRC32.
8297 * include/grub/decompressor.h: New file.
8298 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
8299 Removed.
8300 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
8301 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
8302 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
8303 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
8304 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
8305 * util/grub-mkimage.c (grub_compression_t): New type.
8306 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
8307 (image_target_desc): New field default_compression.
8308 (image_targets): Adjust yeeloong targets.
8309 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
8310 (compress_kernel): New parameter comp.
8311 (generate_image): Likewise. Handle new compression case.
8312 (options): New option --compression
8313 (help): Likewise.
8314 (main): Handle new option.
8315
8316 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
8317
8318 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
8319
8320 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8321
8322 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8323 typo in __i386__ conditional.
8324
8325 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8328 include.
8329
8330 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8331
8332 Implement EFI and ACPI multiboot2 extensions.
8333
8334 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8335 new tags as supported.
8336 (acpiv2_size): New function.
8337 (grub_multiboot_get_mbi_size): Take new tags into account.
8338 (grub_multiboot_make_mbi): Add new tags.
8339 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8340
8341 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8342
8343 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8344 Added missing configuration of USB device.
8345
8346 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8347
8348 * grub-core/normal/menu_entry.c (run): Make sure we always return
8349 a value.
8350
8351 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8352
8353 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8354 NumberOfPages is UINT64 according to the UEFI specification, not
8355 UINTN. Fix printf format.
8356
8357 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8358
8359 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8360 `err' to grub_usb_err_t.
8361 Reported and tested by: KESHAV P.R.
8362
8363 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8364
8365 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8366 tpart non-const, so that we can assign to it. (Since this is a
8367 typedef, the constness refers to the pointer rather than what it
8368 points to.)
8369
8370 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8371
8372 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8373 $(top_srcdir)/grub-core/gnulib as well as
8374 $(top_builddir)/grub-core/gnulib.
8375 Reported by: KESHAV P.R.
8376
8377 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8378
8379 * util/grub-install.in: Fix the bootloader ID option to be
8380 consistently --bootloader-id, not --bootloader_id.
8381 Reported by: KESHAV P.R.
8382
8383 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8384
8385 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8386 check hash checksum." consistently translatable.
8387
8388 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8389
8390 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8391 $(top_builddir).
8392
8393 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8394
8395 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8396 (GRUB_MOD_INIT): Register sha1sum command.
8397 (GRUB_MOD_FINI): Unregister sha1sum command.
8398
8399 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8400
8401 Keep boot and grub directory names in sync with utils scripts
8402
8403 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8404 * config.h.in: Add previous macros.
8405 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8406 * util/grub-install.in: Use $bootdir and $grubdir variables.
8407
8408 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8409
8410 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8411 convert partition names to disk names if the new `convert' parameter
8412 is set.
8413 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8414 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8415 disk in its own right. This can happen with Xen disk images.
8416
8417 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8418
8419 * util/grub-editenv.c: Update strings to avoid warnings when generating
8420 grub.pot file.
8421 * util/grub-setup.c: Likewise.
8422
8423 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 * configure.ac: Change version to 1.99~beta0.
8426
8427 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8430 Add BADRAM.
8431 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8432 Likewise.
8433 * include/multiboot.h: Resynced with specification.
8434 * include/multiboot2.h: Likewise.
8435
8436 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8437
8438 Fix po directory handling.
8439
8440 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8441 * grub-core/gnulib/Makefile.am: Import gettext module.
8442 * m4/gnulib-cache.m4: Likewise.
8443 * m4/gnulib-comp.m4: Likewise.
8444 * m4/gettext.m4: New file, from gnulib.
8445 * m4/glibc2.m4: Likewise.
8446 * m4/iconv.m4: Likewise.
8447 * m4/intdiv0.m4: Likewise.
8448 * m4/intl.m4: Likewise.
8449 * m4/intldir.m4: Likewise.
8450 * m4/intlmacosx.m4: Likewise.
8451 * m4/intmax.m4: Likewise.
8452 * m4/inttypes-pri.m4: Likewise.
8453 * m4/lcmessage.m4: Likewise.
8454 * m4/lib-ld.m4: Likewise.
8455 * m4/lib-link.m4: Likewise.
8456 * m4/lib-prefix.m4: Likewise.
8457 * m4/lock.m4: Likewise.
8458 * m4/nls.m4: Likewise.
8459 * m4/po.m4: Likewise.
8460 * m4/printf-posix.m4: Likewise.
8461 * m4/progtest.m4: Likewise.
8462 * m4/threadlib.m4: Likewise.
8463 * m4/uintmax_t.m4: Likewise.
8464 * m4/visibility.m4: Likewise.
8465 * po/Makefile.am: Remove.
8466 * po/Makefile.in.in: New file, from gettext.
8467 ($(DOMAIN).pot-update): Support POTFILES-shell.
8468 * po/Makevars: New file.
8469 * po/POTFILES-shell: Rename to ...
8470 * po/POTFILES-shell.in: ... this. Update.
8471 * po/POTFILES: Rename to ...
8472 * po/POTFILES.in: ... this. Update.
8473 * po/Rules-quot: New file, from gettext.
8474 * po/boldquot.sed: Likewise.
8475 * po/en@boldquot.header: Likewise.
8476 * po/en@quot.header: Likewise.
8477 * po/insert-header.sin: Likewise.
8478 * po/quot.sed: Likewise.
8479 * po/remove-potcdate.sin: Likewise.
8480
8481 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8484
8485 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8486
8487 * util/grub.d/20_linux_xen.in: Use submenus.
8488
8489 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 Support submenus.
8492
8493 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8494 parameter submenu. All users updated.
8495 * grub-core/normal/main.c (free_menu): Rename to ...
8496 (grub_normal_free_menu): ... this. Made global.
8497 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8498 if requested.
8499 * grub-core/normal/menu_entry.c (screen): New field submenu.
8500 (make_screen): Set submenu.
8501 (run): Open new context if requested.
8502 * include/grub/menu.h (grub_menu_entry): New field submenu.
8503 * include/grub/normal.h (grub_normal_free_menu): New proto.
8504
8505 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 Menu entries extractor.
8508
8509 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8510 variants.
8511 (GRUB_MOD_INIT): Register new variants.
8512 (GRUB_MOD_FINI): Unregister new variants.
8513 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8514 into grub_cmd_legacy_source.
8515 (grub_cmd_legacy_source): Implement extractor variants.
8516 (GRUB_MOD_INIT): Register new variants.
8517 (GRUB_MOD_FINI): Unregister new variants.
8518 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8519 as an extractor.
8520 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8521 search as an extractor.
8522 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8523 test as an extractor.
8524 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8525 as an extractor.
8526 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8527 (grub_env_new_context): New function.
8528 (grub_env_context_open): Likewise.
8529 (grub_env_extractor_open): Likewise.
8530 (grub_env_extractor_close): Likewise.
8531 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8532 grub_extractor_level.
8533 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8534 * include/grub/env.h (grub_env_extractor_open): New proto.
8535 (grub_env_extractor_close): Likewise.
8536 * include/grub/normal.h (grub_extractor_level): New external variable.
8537
8538 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8539
8540 Make cutmem accept a region specification.
8541 Suggested by: Samuel Thibault
8542
8543 * grub-core/mmap/mmap.c (parsemem): New function.
8544 (grub_cmd_cutmem): Handle new arguments.
8545
8546 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 New command cutmem.
8549
8550 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8551 (GRUB_MOD_INIT): Register new command.
8552 (GRUB_MOD_FINI): Unregister new command.
8553
8554 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 Support some annoying BSD and Minix subpartitions.
8557
8558 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8559 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8560 Properly handle concatenation.
8561 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8562 * grub-core/normal/completion.c (iterate_partition): Likewise.
8563 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8564 contain partition. All users updated.
8565 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8566 struct.
8567 (grub_openbsdlabel_partition_map): Likewise.
8568 (bsdlabel_partition_map_iterate): Rename to ..
8569 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8570 (bsdlabel_partition_map_iterate): New function.
8571 (netopenbsdlabel_partition_map_iterate): Likewise.
8572 (netbsdlabel_partition_map_iterate): Likewise.
8573 (openbsdlabel_partition_map_iterate): Likewise.
8574 (GRUB_MOD_INIT): Register new partmaps.
8575 (GRUB_MOD_FINI): Unregister new partmaps.
8576 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8577 (grub_partition_msdos_iterate): ... this. All users updated.
8578 Don't support embedding other than in a minix partition.
8579 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8580 proto.
8581 * include/grub/partition.h (grub_partition): New field msdostype.
8582 * util/grub-install.in: Handle openbsd and netbsd types being in
8583 part_bsd module.
8584
8585 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8588
8589 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8590 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8591 (mdraid09): ... this.
8592 (mdraid1x): New module.
8593 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8594 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8595
8596 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8599 vsprintf.
8600
8601 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8602
8603 * grub-core/commands/efi/lsefimmap.c: Correct header.
8604 * NEWS: Update.
8605
8606 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8607
8608 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8609 as printf format strings; the translations might contain '%' which
8610 could cause a crash.
8611 (main): Likewise.
8612 * util/grub-fstest.c (argp_parser): Likewise.
8613 * util/grub-setup.c (argp_parser): Likewise.
8614 (main): Likewise.
8615
8616 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 Use argp in grub-fstest.
8619
8620 * util/grub-fstest.c: Don't include getopt.h.
8621 Include argp.h.
8622 (root): New variable.
8623 (args_count): Likewise.
8624 (nparm): Likewise.
8625 (num_disks): Likewise.
8626 (images): Likewise.
8627 (cmd): Likewise.
8628 (debug_str): Likewise.
8629 (args): Likewise.
8630 (options): Transformed to argp.
8631 (usage): Removed.
8632 (main): Split argument parsing into ...
8633 (argp_parser): ... this. Changed to argp format.
8634 (argp): New variable.
8635 (main): Use argp_parse.
8636
8637 2010-09-20 Tristan Gingold <gingold@free.fr>
8638 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8639 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * grub-core/commands/efi/lsefimmap.c: New file.
8642 * grub-core/Makefile.core.def (lsefimmap): New module.
8643 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8644
8645 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8646
8647 Pause the execution (10s max) if any errors are displayed so the user
8648 has a chance to see them.
8649
8650 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
8651 (grub_print_error): Increment grub_err_printed_errors.
8652 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
8653 execution if any errors were displayed.
8654 (show_menu): Remove old code for pause.
8655 * grub-core/normal/menu_entry.c (run): Likewise.
8656 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
8657 users updated.
8658 (grub_normal_get_char_counter): Likewise.
8659 * include/grub/err.h (grub_err_printed_errors): New external variable.
8660 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
8661
8662 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 Support multiboot VBE info.
8665
8666 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8667 Take VBE info into account.
8668 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
8669 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8670 Call fill_vbe_info when appropriate.
8671 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
8672 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
8673 as supported.
8674 (grub_multiboot_get_mbi_size): Take new tags into account.
8675 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
8676 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8677 Call fill_vbe_tag when appropriate.
8678 (grub_multiboot_make_mbi): Properly align tags.
8679 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
8680 function.
8681 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8682 proto.
8683 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8684
8685 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 Suport manual terminal geometry specification.
8688
8689 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
8690 Save state in grub_ofconsole_terminfo_output.
8691 (grub_ofconsole_term): Use grub_terminfo_getwh.
8692 (grub_ofconsole_getwh): Removed.
8693 * grub-core/term/serial.c (grub_serial_getwh): Removed.
8694 (grub_serial_term): Use grub_terminfo_getwh.
8695 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
8696 (options): New struct.
8697 (OPTION_*): New enum.
8698 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
8699 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
8700 width and height.
8701 (grub_terminfo_getwh): New proto.
8702 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8703
8704 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 Handle legacy "terminal" command.
8707
8708 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
8709 and FLAG_TERMINAL.
8710 (legacy_commands): Add terminal and title.
8711 (grub_legacy_parse): Handle terminal. Simplify title handling.
8712
8713 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8714
8715 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
8716 parameters overflow.
8717
8718 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8719
8720 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
8721 widthspec.h.
8722
8723 * docs/grub.texi (Shell-like scripting): Document `!'.
8724 (Network): Simplify using new i386-pc-pxe format. Mention
8725 grub-mknetdir.
8726
8727 * NEWS: Update.
8728
8729 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8730
8731 * Makefile.am (SUBDIRS): Restore "."; it's important to force
8732 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
8733 when needed.
8734
8735 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8736
8737 * grub-core/commands/efi/lsefisystab.c: Correct header.
8738 * grub-core/commands/efi/lssal.c: Likewise.
8739 * grub-core/commands/testload.c: Likewise.
8740
8741 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8742
8743 * util/grub-mkrescue.in: Add explicit root argument to --set to
8744 prevent the UUID being interpreted as an argument to --set (matches
8745 previous change to prepare_grub_to_access_device).
8746
8747 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8748
8749 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
8750 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
8751 the verbosity of later #ifs.
8752 (find_partition_start): Define this function on FreeBSD too.
8753 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
8754 function.
8755 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
8756 on FreeBSD.
8757
8758 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8759
8760 * util/grub-editenv.c: Use argp instead of getopt.
8761
8762 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8763
8764 * util/grub-setup.c: Use argp instead of getopt.
8765
8766 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8767
8768 Use gnulib-tool to create gnulib source files.
8769
8770 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
8771 grub-core/gnulib directories
8772 * .bzignore: Add **/.deps and autogenerated gnulib files
8773 * configure.ac: Assign auxiliary directory to build-aux, add invocation
8774 of gnulib macros, add grub-core/gnulib/Makefile
8775 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
8776 include m4 directory to aclocal.
8777 * Makefile.util.def: Remove direct compilation of gnulib source files
8778 and use the new grub-core/gnulib/libgnu.a.
8779 * build-aux/config.rpath: move config.rpath from top directory to
8780 build-aux
8781 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
8782 in gnulib headers
8783 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
8784 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
8785 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
8786 header.
8787 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
8788 string.
8789
8790 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8791
8792 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
8793 grub-core/genmod.sh and grub-core/gensyminfo.sh
8794
8795 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
8796
8797 Add a test for echo command options.
8798
8799 * tests/grub_cmd_echo.in: New test.
8800 * Makefile.util.def: Rules for new test.
8801
8802 2010-09-20 Szymon Janc <szymon@janc.net.pl>
8803
8804 Remove crc.mod and move crc command to hashsum.mod.
8805 Remove lib/crc.c - users updated to use gcrypt implementation.
8806
8807 * grub-core/commands/crc.c: Removed.
8808 * grub-core/Makefile.core.def (crc): Module removed.
8809 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
8810 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
8811 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
8812 * grub-core/lib/crc.c: Removed.
8813 * include/grub/lib/crc.h: Removed.
8814 * Makefile.util.def (crc): Remove lib/crc.c
8815 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
8816 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
8817 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
8818 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
8819 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
8820 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
8821
8822 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
8825
8826 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 Split config.h for util and core.
8829
8830 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
8831 (ADDR32): Likewise.
8832 (DATA32): Likewise.
8833 (BSS_START_SYMBOL): Likewise.
8834 (END_SYMBOL): Likewise.
8835 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
8836 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
8837 * config.h.in: New file.
8838 * configure.ac: Use config-util.h as config define file.
8839 Rename MACHINE into GRUB_MACHINE. All users updated.
8840 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
8841 updated.
8842 (NESTED_FUNC_ATTR): Likewise.
8843 Substitue new variables.
8844 (COND_HAVE_ASM_USCORE): New conditional.
8845 * grub-core/Makefile.am (ASM_PREFIX): New variable.
8846 (kernel_syms.lst): Use ASM_PREFIX.
8847 * grub-core/kern/emu/console.c: Include config-util.h.
8848 * grub-core/kern/emu/misc.c: Likewise.
8849 * grub-core/kern/emu/mm.c: Likewise.
8850 * include/grub/emu/misc.h: Likewise.
8851 * include/grub/libgcc.h: Likewise.
8852
8853 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
8856 constants usage.
8857 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
8858 Fix GRUB_TERM_KEY_* constants usage.
8859 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
8860
8861 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
8864 print pointer.
8865 * grub-core/bus/usb/uhci.c: Remove empty define.
8866 (grub_uhci_check_transfer): Add missing cast.
8867 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
8868 print pointer.
8869 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
8870 PRIuGRUB_SIZE.
8871 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
8872
8873 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * grub-core/Makefile.core.def (legacycfg): Add
8876 lib/i386/pc/vesa_modes_table.c on emu.
8877
8878 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8879
8880 Reduce number of temporary files generated by build system.
8881
8882 * grub-core/gencmdlist.sh: Removed.
8883 * grub-core/genfslist.sh: Removed.
8884 * grub-core/genhandlerlist.sh: Removed.
8885 * grub-core/genmodsrc.sh: Removed.
8886 * grub-core/genpartmaplist.sh: Removed.
8887 * grub-core/genparttoollist.sh: Removed.
8888 * grub-core/gentermiinallist.sh: Removed.
8889 * grub-core/genvideolist.sh: Removed.
8890
8891 * grub-core/genmod.sh.in: New file.
8892 * grub-core/gensyminfo.sh.in: New file.
8893
8894 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
8895 * conf/Makefile.extra-dist: Update with new files.
8896 * gentpl.py: Remove rules related to unnecessary temporary files.
8897 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
8898 and und-* files.
8899 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
8900 genmod.sh scripts.
8901 * grub-core/bus/usb/uhci.c: Remove empty #define.
8902 * grub-core/genmoddep.awk: Updated with new syminfo format.
8903 * util/bash-completion.d/Makefile.am: Add config.log to
8904 CLEANFILES.
8905
8906 2010-09-19 Yves Blusseau <blusseau@zetam.org>
8907
8908 * Makefile.util.def: Add forgotten $(LIBINTL) library.
8909
8910 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8911
8912 * util/grub-mkconfig.in: Check the config script for syntax errors
8913 before saving.
8914
8915 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
8916 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * Makefile.util.def (grub-install): Use util/grub-install.in on all
8919 platforms.
8920 * util/grub-install.in: Add EFI and IEEE1275 support.
8921 * util/i386/efi/grub-install.in: Removed.
8922 * util/ieee1275/grub-install.in: Likewise.
8923
8924 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
8927 (grub_cmd_cmosclean): Likewise.
8928 (GRUB_MOD_INIT): Register command cmosclean.
8929 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
8930 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
8931
8932 2010-09-18 Carles Pina i Estany <carles@pina.cat>
8933 2010-09-18 Aleš Nesrsta <starous@volny.cz>
8934 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 Add keyboard layouts support.
8937
8938 * Makefile.util.def (grub-mklayout): New file.
8939 (grub-kbdcomp): New script.
8940 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
8941 Add keyboard_layouts.h.
8942 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
8943 commands/boot.c on yeeloong.
8944 (keylayouts): New module.
8945 * grub-core/bus/usb/ohci.c
8946 * grub-core/bus/usb/uhci.c
8947 * grub-core/bus/usb/usbhub.c (rescan): New variable.
8948 (grub_usb_add_hub): Poll interrupt pipe for device handling.
8949 (attach_root_port): Likewise.
8950 (poll_nonroot_hub): Likewise.
8951 (grub_usb_poll_devices): Likewise.
8952 (detach_device): Close transfer.
8953 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
8954 function.
8955 (grub_usb_bulk_setup_readwrite): Likewise.
8956 (grub_usb_bulk_finish_readwrite): Likewise.
8957 * grub-core/commands/keylayouts.c: New file.
8958 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
8959 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
8960 aliases.
8961 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
8962 support scancode 2.
8963 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
8964 * include/grub/keyboard_layouts.h: New file.
8965 * util/grub-mklayout.c: New file.
8966 * util/grub-kbdcomp.in: Likewise.
8967
8968 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 Unify memory types.
8971
8972 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
8973 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
8974 types.
8975 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
8976 (grub_upper_mem): Likewise.
8977 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
8978 * include/grub/memory.h (grub_memory_type_t): New enum.
8979 All users updated.
8980
8981 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/Makefile.core.def (lsapm): New module.
8984 * grub-core/commands/i386/pc/lsapm.c: New file.
8985 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
8986 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
8987 Likewise.
8988 * include/grub/i386/pc/apm.h: New file.
8989 * include/multiboot.h (multiboot_apm_info): New struct.
8990
8991 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 GRUB-legacy configuration file support.
8994
8995 * Makefile.util.def (grub-menulst2cfg): New util.
8996 * docs/man/grub-menulst2cfg.h2m: New file.
8997 * grub-core/Makefile.core.def (legacycfg): New module.
8998 * grub-core/commands/legacycfg.c: New file.
8999 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
9000 (grub_normal_add_menu_entry): ... this.
9001 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
9002 (grub_normal_set_password): ...this.
9003 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
9004 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
9005 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
9006 * grub-core/lib/legacy_parse.c: New file.
9007 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
9008 * include/grub/i386/pc/vesa_modes_table.h: New file.
9009 * include/grub/legacy_parse.h: Likewise.
9010 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
9011 * util/grub-menulst2cfg.c: New file.
9012
9013 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9014
9015 * grub-core/kern/emu/hostdisk.c
9016 (convert_system_partition_to_system_disk): Initialise node.
9017
9018 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9019
9020 * grub-core/kern/emu/hostdisk.c
9021 (convert_system_partition_to_system_disk): Fix devmapper memory pool
9022 leak.
9023 Reported and based on patch by: Modestas Vainius.
9024
9025 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9026
9027 Fix DM-RAID probing with recent versions of device-mapper udev
9028 rules.
9029
9030 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
9031 canonicalise device paths under /dev/mapper/.
9032 (convert_system_partition_to_system_disk): Compare the
9033 uncanonicalised path to /dev/mapper/ rather than the canonicalised
9034 path, since device nodes under /dev/mapper/ are often symlinks.
9035
9036 2010-09-17 Yves Blusseau <blusseau@zetam.org>
9037
9038 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
9039
9040 2010-09-16 Yves Blusseau <blusseau@zetam.org>
9041
9042 * configure.ac: Avoid some annoying error messages if freetype-config
9043 program is not found.
9044
9045 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9046
9047 Support RAID on virtio devices, and others.
9048
9049 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
9050 Rename to ...
9051 [__MINGW32__] (grub_find_device): ... this.
9052 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
9053 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
9054 reasonable default if dir is NULL.
9055 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
9056 ...
9057 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
9058 (grub_guess_root_device): Update callers.
9059 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
9060
9061 * util/raid.c (grub_util_getdiskname): Remove.
9062 (grub_util_raid_getmembers): Use grub_find_device rather than
9063 grub_util_getdiskname.
9064
9065 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9066
9067 * docs/grub.texi (serial): Remove obsolete comment about GRUB
9068 needing to be compiled with serial support.
9069 (ls): Indicate that multiple files are accepted.
9070 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
9071 indicate that multiple files are accepted.
9072
9073 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9074
9075 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
9076 libgrub_a_init.c, and util/bash-completion.d/grub.
9077
9078 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * util/grub-setup.c (setup): Fix incorrect container semantics.
9081
9082 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
9085 misusage.
9086 Reported by: J. Nick Terry
9087
9088 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 Move embedding routines to partmap sources files.
9091
9092 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
9093 [GRUB_UTIL]: New variable.
9094 (gpt_partition_map_iterate): Set part.parent.
9095 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
9096 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
9097 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
9098 New function.
9099 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
9100 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
9101 (grub_partition_map) [GRUB_UTIL]: New field embed.
9102 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
9103 (setup): Use ->embed.
9104
9105 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
9108 function.
9109 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
9110 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
9111
9112 2010-09-15 Yves Blusseau <blusseau@zetam.org>
9113
9114 Add function to get completions from usage.
9115
9116 * util/bash-completion.d/grub-completion.bash.in: Add function to get
9117 completions from usage. Use LC_ALL=C to get options properly.
9118
9119 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 * grub-core/gnulib/basename-lgpl.c: Imported.
9122 * grub-core/gnulib/basename.c: Likewise.
9123 * grub-core/gnulib/dirname-lgpl.c: Likewise.
9124 * grub-core/gnulib/dirname.c: Likewise.
9125 * grub-core/gnulib/dirname.h: Likewise.
9126 * grub-core/gnulib/stripslash.c: Likewise.
9127
9128 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/gnulib/error.c: Resynced.
9131 * grub-core/gnulib/getopt.c: Likewise.
9132 * grub-core/gnulib/getopt_int.h: Likewise.
9133 * grub-core/gnulib/regex.h: Likewise.
9134 * grub-core/gnulib/regex_internal.c: Likewise.
9135 * grub-core/gnulib/regex_internal.h: Likewise.
9136
9137 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9138
9139 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
9140 CRC calculations and validity checks.
9141 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
9142 calculations.
9143
9144 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9145
9146 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
9147
9148 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 Fix incorrect echo options handling.
9151 Reported by: Yves Blusseau.
9152
9153 * include/grub/command.h (grub_command_flags_t): New flags
9154 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
9155 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
9156 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
9157
9158 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
9161 users updated.
9162 (GRUB_COMMAND_FLAG_MENU): Likewise.
9163 (GRUB_COMMAND_FLAG_BOTH): Likewise.
9164 (GRUB_COMMAND_FLAG_TITLE): Removed.
9165 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
9166 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
9167 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
9168 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
9169 (grub_command_flags_t): New enum. All users updated.
9170
9171 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
9172
9173 Fix solaris compilation.
9174
9175 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
9176 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
9177 (grub-emu-list): Likewise.
9178
9179 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 Remove deprecated root command.
9182
9183 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
9184 updated.
9185
9186 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 * util/i386/pc/grub-setup.c: Merge this ...
9189 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
9190 * util/grub-setup.c: ... into this.
9191 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
9192 New struct.
9193
9194 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
9197 possible.
9198
9199 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
9202 allocate p.
9203
9204 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9207 explicit root argument to set to prevent UUID to be interpreted as
9208 argument to set.
9209
9210 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9211
9212 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
9213
9214 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 Don't export grub_gate_a20.
9217
9218 * grub-core/kern/i386/pc/init.c: Remove leftovers.
9219 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
9220 to ...
9221 (grub_gate_a20): ... this. All users updated.
9222 * include/grub/i386/pc/init.h: Removed. All users updated.
9223
9224 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 Create euro.pf2 which supports most European languages.
9227
9228 * Makefile.am (grubdata_DATA): Add euro.pf2.
9229 (euro.pf2): New target.
9230 (CLEANFILES): Add euro.pf2.
9231
9232 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 * configure.ac: Disable emu-usb by default to prevent inadvertent
9235 device takeover.
9236
9237 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 Disable usbserial on grub-emu since our libusb code isn't good enough
9240 yet.
9241
9242 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
9243 (usbserial_pl2303): Likewise.
9244 (usbserial_ftdi): Likewise.
9245
9246 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * include/grub/disk.h (grub_disk): Remove has_partitions.
9249 All users updated.
9250 * disk/loopback.c (grub_loopback): Remove has_partitions.
9251 All users updated.
9252 (options): Remove partitions. All users updated.
9253 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
9254 * util/i386/pc/grub-setup.c (setup): copy partition table only when
9255 actual partition table is found.
9256
9257 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 Remove readability checks (too many false negatives).
9260
9261 * util/grub-install.in: Remove readability checks.
9262 * util/grub-mkconfig.in: Likewise.
9263 * util/grub.d/10_hurd.in: Likewise.
9264 * util/grub.d/10_kfreebsd.in: Likewise.
9265 * util/grub.d/10_linux.in: Likewise.
9266 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
9267 way.
9268
9269 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 Enable acpi shutdown on all ACPI platforms.
9272
9273 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
9274 on coreboo, multiboot and EFI.
9275 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
9276 (grub_acpi_halt): Likewise.
9277 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
9278 (grub_cmd_halt): Don't call grub_acpi_halt directly.
9279 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
9280 * grub-core/lib/i386/halt.c (grub_halt)
9281 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
9282
9283 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
9286 context.
9287
9288 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 * grub-core/video/efi_gop.c: Fix over-80-chars line.
9291 * grub-core/video/efi_uga.c: Likewise.
9292
9293 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 Filter devaliases and never open same device twice.
9296
9297 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
9298 (last_ihandle): Likewise.
9299 (ofdisk_hash_ent): New member shortest.
9300 (ofdisk_hash_add): Add canonical path too.
9301 (scan): New function.
9302 (grub_ofdisk_iterate): Iterate over hashed entries.
9303 (compute_dev_path): Don't add :0.
9304 (grub_ofdisk_open): Don't really open the disk.
9305 (grub_ofdisk_close): Avoid closing unrelated disk.
9306 (grub_ofdisk_read): Implement reopen logic.
9307 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
9308 New function.
9309 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
9310 New proto.
9311
9312 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 Fix sparc64.
9315
9316 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
9317 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
9318 right address. Add sparc64_ieee1275_ldflags.
9319 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9320 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9321 to grub_host_to_target_addr
9322 (load_image): Likewise.
9323
9324 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/normal/completion.c (complete_file): Handle device
9327 containing slash.
9328 Fix based on patch by Doug Nazar.
9329
9330 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 grub-mknetdir script.
9333
9334 * Makefile.util.def (grub-mknetdir): New module.
9335 * tests/util/grub-shell.in: Support boot=net
9336 * util/grub-mknetdir.in: New file.
9337
9338 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9339
9340 videoinfo on non-vbe.
9341
9342 * grub-core/Makefile.core.def (vbeinfo): Removed.
9343 (vbetest): Removed.
9344 (videoinfo): New module.
9345 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9346 * grub-core/commands/i386/pc/vbetest.c: Removed.
9347 * grub-core/commands/videoinfo.c: New file.
9348 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9349 specification.
9350 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9351 as vbetest.
9352 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9353 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9354 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9355 mode_number. New parameter mode. All users updated.
9356 (grub_video_gop_iterate): New function.
9357 (grub_video_efi_gop): New member iterate.
9358 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9359 (grub_vbe_set_video_mode): Remove setting useless fields.
9360 (vbe2videoinfo): New function.
9361 (grub_video_vbe_iterate): Likewise.
9362 (grub_video_vbe_setup): Use vbe2videoinfo.
9363 (grub_video_vbe_print_adapter_specific_info): New function.
9364 (grub_video_vbe_adapter): New fields iterate and
9365 print_adapter_specific_info.
9366 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9367 All users updated.
9368 (grub_video_mode_info): New field mode_number.
9369 (grub_video_adapter): New fields iterate and
9370 print_adapter_specific_info.
9371
9372 2010-09-13 Tristan Gingold <gingold@free.fr>
9373 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9374 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * grub-core/commands/efi/lsefisystab.c: New file.
9377 * grub-core/commands/efi/lssal.c: Likewise.
9378 * grub-core/Makefile.core.def (lsacpi): New module.
9379 (lsefisystab): Likewise.
9380 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9381 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9382 (grub_efi_sal_system_table): New struct.
9383 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9384 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9385 (grub_efi_sal_system_table_platform_features): Likewise.
9386 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9387 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9388 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9389 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9390
9391 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 Support explicit user claim that a device is BIOS-visible.
9394
9395 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9396 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9397 * grub-core/kern/emu/hostdisk.c
9398 (convert_system_partition_to_system_disk): Support mdX.
9399 (find_system_device): New parameter add. All users updated.
9400 (grub_util_biosdisk_is_present): New function.
9401 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9402 proto.
9403
9404 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 Search hints support.
9407
9408 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9409 All users updated.
9410
9411 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9412
9413 Bash completion script for util commands
9414
9415 * Makefile.am: Add util/bash-completion.d directory
9416 * configure.ac: Likewise.
9417 * util/bash-completion.d/Makefile.am: New file.
9418 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9419
9420 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9421
9422 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9423 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9424 Reported by: Yves Blusseau.
9425
9426 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9429 partition size and offset.
9430
9431 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9434
9435 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9438
9439 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9442 (grub_xvasprintf): Likewise.
9443
9444 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9447
9448 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9451 args ending with NULL.
9452
9453 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9456 pointer.
9457
9458 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9459
9460 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9461
9462 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9463
9464 Shutdown using ACPI.
9465
9466 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9467 * grub-core/commands/acpihalt.c: New file.
9468 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9469 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9470 (grub_acpi_halt): New proto.
9471 (GRUB_ACPI_SLP_EN): New const.
9472 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9473 (GRUB_ACPI_OPCODE_*): New enum.
9474 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9475
9476 2010-09-11 Tristan Gingold <gingold@free.fr>
9477 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9478 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * commands/lsacpi.c: New file.
9481 * grub-core/Makefile.core.def (lsacpi): New module.
9482 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9483 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9484 (grub_acpi_madt_entry_header): New struct.
9485 (grub_acpi_madt): Likewise.
9486 (grub_acpi_madt_entry_interrupt_override): Likewise.
9487 (grub_acpi_madt_entry_sapic): Likewise.
9488 (grub_acpi_madt_entry_lsapic): Likewise.
9489 (grub_acpi_madt_entry_platform_int_source): Likewise.
9490 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9491 (PRIuGRUB_UINT32_T): Likewise.
9492 (PRIxGRUB_UINT64_T): Likewise.
9493
9494 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 Implement loading palette on ieee1275_fb.
9497
9498 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9499 (have_setcolors): Likewise.
9500 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9501 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9502 (grub_video_ieee1275_set_palette): Implement.
9503
9504 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9505 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9506
9507 * util/grub-install.in (grub_partition): New variable.
9508 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9509 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9510 Fixes a bug reported by Yves Blusseau.
9511
9512 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 Fix emu on mipsel.
9515
9516 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9517 =grub_cpu_flush_cache on all mips and not only yeeloong.
9518 * configure.ac (COND_mips): New conditional.
9519 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9520 platforms.
9521 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9522 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9523 [GRUB_LINKER_HAVE_INIT]: New function.
9524 (grub_emu_post_init): Likewise.
9525 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9526 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9527 * include/grub/cache.h (_mips): Include mips/cache.h.
9528 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9529 LVM and RAID prototypes.
9530 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9531 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9532 function.
9533
9534 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9535
9536 * util/grub-install.in: Don't try to verify core.img until after
9537 running grub-mkimage to create it.
9538
9539 2010-09-10 Robert Millan <rmh@gnu.org>
9540
9541 * util/grub.d/10_hurd.in: Add misc readability checks.
9542 * util/grub.d/10_kfreebsd.in: Likewise.
9543 * util/grub.d/10_linux.in: Likewise.
9544
9545 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9546
9547 * util/grub-install.in: ${imgext} won't be defined here until the
9548 install branch is merged. For the meantime, only verify core.img on
9549 i386-pc and sparc64-ieee1275 platforms.
9550
9551 2010-09-10 Robert Millan <rmh@gnu.org>
9552
9553 Solaris support in grub_find_zpool_from_dir(). Thanks
9554 Seth Goldberg for referring to getextmntent() facility.
9555
9556 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9557 `sys/mkdev.h'.
9558 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9559 `<sys/mnttab.h>'.
9560 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9561 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9562 method for finding zpool name.
9563
9564 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9565
9566 grub-fstest needs the host and hostfs modules while other utilities
9567 actively require those modules to be absent, so grub-fstest needs
9568 its own initialisation and finalisation code.
9569
9570 * Makefile.am (grub_fstest.pp): New target.
9571 (grub_fstest_init.lst): Likewise.
9572 (grub_fstest_init.c): Likewise.
9573 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9574
9575 2010-09-10 Robert Millan <rmh@gnu.org>
9576
9577 * configure.ac: Check for `struct statfs.f_fstypename' and
9578 `struct statfs.f_mntfromname'.
9579
9580 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9581 kFreeBSD-specific code.
9582
9583 2010-09-10 Robert Millan <rmh@gnu.org>
9584
9585 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9586 on ZFS. Now non-main filesystems are supported as / too.
9587
9588 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9589
9590 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9591 and grub-core/disk/host.c to ...
9592 (grub-fstest): ... here. Having the host disk implementation
9593 present confuses grub-probe and other utility programs.
9594
9595 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9596 when writing to a file, not when writing to stdout.
9597
9598 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9599
9600 * tests/partmap_test.in: New test for partitions.
9601 * Makefile.util.def: Rules for new test.
9602
9603 2010-09-09 Robert Millan <rmh@gnu.org>
9604
9605 * util/grub-probe.c (probe): Fix a pair of unhandled error
9606 conditions.
9607
9608 2010-09-09 Robert Millan <rmh@gnu.org>
9609
9610 Basic Btrfs support (detection and UUID).
9611
9612 * grub-core/fs/btrfs.c: New file.
9613 * Makefile.util.def (library): Register btrfs.c.
9614 * grub-core/Makefile.core.def: Likewise.
9615
9616 2010-09-08 Robert Millan <rmh@gnu.org>
9617
9618 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9619 with (optional) parameters to specify device and relative path.
9620 * util/grub-install.in: Use is_path_readable_by_grub() to
9621 verify readability of a few critical files.
9622 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9623 verify readability of grub.cfg.new.
9624
9625 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 Split minix.mod into minix.mod and minix2.mod.
9628
9629 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9630 * grub-core/Makefile.core.def (minix2): New module.
9631 * grub-core/fs/minix.c: Use definitions instead of runtime version
9632 checking.
9633 * grub-core/fs/minix2.c: New file.
9634
9635 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9636
9637 Add new --boot-directory option to replace --root-directory
9638
9639 * util/grub-install.in: Add new --boot-directory option
9640 * util/grub-reboot.in: Likewise.
9641 * util/grub-set-default.in: Likewise.
9642
9643 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9644
9645 * util/grub-mkconfig.in: Use new variable.
9646
9647 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9648
9649 * configure.ac: Define some useful variables.
9650
9651 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9654 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
9655 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
9656 Use terminfo and don't use cursor-on/cursor-off unless it's known
9657 to work.
9658 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9659 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9660
9661 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9662
9663 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
9664 starts with "(,", fill the drive containing the loaded image in
9665 between those two characters, but expect that a full partition
9666 specification including partition map names will follow.
9667
9668 2010-09-08 Robert Millan <rmh@gnu.org>
9669
9670 * configure.ac: Remove `--enable-grub-fstest' option.
9671 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9672
9673 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
9674 `grub-fstest' instead of `grub-probe' for readability verification.
9675 * util/grub-probe.c (probe): Remove readability verification kludge.
9676
9677 2010-09-08 Robert Millan <rmh@gnu.org>
9678
9679 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9680 initializing `GRUB_FS'.
9681
9682 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9683
9684 Not command (!) support to GRUB script.
9685
9686 * tests/grub_script_not.in: New test.
9687 * Makefile.util.def: Rules for new test.
9688
9689 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
9690 ! command as a special case.
9691 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
9692
9693 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9694
9695 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9696 grub_free.
9697
9698 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9699
9700 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9701
9702 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9703
9704 * docs/grub.texi (Shell-like scripting): Documentation for break,
9705 continue, shift and return commands.
9706
9707 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
9708
9709 Rename CD-ROM to cd on BIOS.
9710
9711 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
9712 "cd".
9713 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
9714
9715 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
9718 * util/grub-probe.c (main): Likewise.
9719 * util/i386/pc/grub-setup.c (main): Likewise.
9720 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9721 Reported and debugged by: alexxy
9722
9723 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
9726 diagnostic info.
9727
9728 2010-09-05 Jo Shields <directhex@apebox.org>
9729
9730 * util/grub.d/30_os-prober.in: Add missing classes.
9731
9732 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * docs/grub.texi (Theme file format): Document new position format.
9735
9736 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
9739 a table. Use @code instead of @verbatim.
9740
9741 2010-09-05 Colin D Bennett <colin@gibibit.com>
9742
9743 Gfxmenu documentation.
9744
9745 * docs/grub.texi (Theme file format): New chapter.
9746
9747 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9748
9749 * grub-core/Makefile.core.def (xzio): New module.
9750 * grub-core/io/xzio.c: New file.
9751 * grub-core/lib/xzembed/xz.h: New file (from xembed).
9752 * grub-core/lib/xzembed/xz_config.h: Likewise.
9753 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
9754 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
9755 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
9756 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
9757 * grub-core/lib/xzembed/xz_private.h: Likewise.
9758 * grub-core/lib/xzembed/xz_stream.h: Likewise.
9759 * include/grub/file.h (grub_file_filter_id): New compression filter
9760 GRUB_FILE_FILTER_XZIO.
9761
9762 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
9765 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
9766 size.
9767
9768 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9769
9770 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
9771 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
9772
9773 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 Uncompressed checksum support.
9776
9777 * grub-core/commands/hashsum.c (options): Add option --uncompress.
9778 (check_list): New parameter uncompress.
9779 (grub_cmd_hashsum): Handle --uncompress.
9780
9781 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 Reintroduce testload.
9784
9785 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
9786 from here ...
9787 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
9788 (GRUB_MOD_INIT): New function.
9789 (GRUB_MOD_FINI): Likewise.
9790 * grub-core/Makefile.core.def (testload): New module.
9791
9792 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9793
9794 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
9795 (uint8_t): New type.
9796 (uint16_t): Likewise.
9797 (uint32_t): Likewise.
9798 (uint64_t): Likewise.
9799
9800 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9801
9802 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
9803
9804 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
9807 Made static.
9808 (grub_gzfile_open): Removed. All users updated.
9809 (GRUB_MOD_INIT): New function.
9810 (GRUB_MOD_FINI): Likewise.
9811 * grub-core/kern/file.c (grub_file_filters_all): New variable.
9812 (grub_file_filters_enabled): Likewise.
9813 (grub_file_open): Handle filters.
9814 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
9815 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
9816 * include/grub/file.h (grub_file_filter_id_t): New type.
9817 (grub_file_filter_t): Likewise.
9818 (grub_file_filters_all): New extern variable.
9819 (grub_file_filters_enabled): Likewise.
9820 (grub_file_filter_register): New inline function.
9821 (grub_file_filter_unregister): Likewise.
9822 (grub_file_filter_disable): Likewise.
9823 (grub_file_filter_disable_compression): Likewise.
9824 * include/grub/gzio.h: Removed.
9825
9826 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9827
9828 Filename expansion support for wildcards in GRUB script.
9829
9830 * tests/grub_script_expansion.in: New test.
9831 * Makefile.util.def: Rule for new test.
9832
9833 * grub-core/commands/wildcard.c: New file, implements filename
9834 expansion support for GRUB script.
9835 * grub-core/Makefile.core.def: Rule update for regexp.mod.
9836 * grub-core/script/argv.c: Cosmetic changes.
9837 * grub-core/script/execute.c (grub_script_arglist_to_argv):
9838 Refactored to perform wildcard expansion on arguments.
9839 * include/grub/script_sh.h (grub_script_wildcard_translator): New
9840 struct.
9841
9842 * tests/util/grub-shell.in: Fix quoting for read input.
9843
9844 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9845
9846 Support for updating environment variables with matched substrings
9847 of regexp.
9848
9849 * tests/grub_cmd_regexp.in: New test.
9850 * Makefile.util.def: Rule for new test.
9851
9852 * grub-core/commands/regexp.c: New option -s to update environment
9853 variables with regexp matches.
9854
9855 2010-09-04 Szymon Janc <szymon@janc.net.pl>
9856
9857 * include/grub/file.h (grub_file): New member not_easly_seekable.
9858 (grub_file_seekable): New inline function.
9859 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
9860 easily seekable.
9861 (grub_gzio_open): Set not_easly_seekable.
9862 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
9863 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
9864
9865 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9866
9867 Support for options to appear multiple times on cmdline.
9868
9869 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
9870 * grub-core/commands/extcmd.c: Support for repeatable option.
9871 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
9872 repeatable option support.
9873
9874 Refactor menuentry into a regular command.
9875
9876 * grub-core/commands/menuentry.c: New file, menuentry command
9877 implementation.
9878 * grub-core/Makefile.core.def: Rule update for normal.mod.
9879 * grub-core/normal/main.c: Moved menuentry creation to
9880 grub-core/commands/menuentry.c.
9881 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
9882 (grub_menu_execute_entry_real): Removed.
9883 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
9884 function.
9885 (grub_script_execute_menuentry): Removed.
9886 * grub-core/script/parser.y (menuentry): Removed.
9887 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
9888 * grub-core/script/yylex.l (menuentry): Removed.
9889 * include/grub/menu.h (grub_menu_init): New prototype.
9890 (grub_menu_fini): New prototype.
9891 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
9892 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
9893 (grub_script_execute_sourcecode): New prototype.
9894
9895 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9896
9897 "return" command for GRUB script functions.
9898
9899 * tests/grub_script_return.in: New test.
9900 * Makefile.util.def: Rules for new test.
9901
9902 * grub-core/script/execute.c (grub_script_return): New function.
9903 * grub-core/script/main.c: Register/unregister return commaond.
9904 * include/grub/script_sh.h (grub_script_return): New prototype.
9905
9906 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9907
9908 "setparams" command to update positional parameters.
9909
9910 * tests/grub_script_setparams.in: New test.
9911 * Makefile.util.def: Rules for new test.
9912
9913 * grub-core/script/argv.c (grub_script_argv_make): New function.
9914 * grub-core/script/execute.c (replace_scope): New function.
9915 (grub_script_setparams): New function.
9916 * grub-core/script/lexer.c: Remove unused variables.
9917 * grub-core/script/main.c: Register/unregister setparams command.
9918 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
9919 (grub_script_setparams): New prototype.
9920
9921 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9922
9923 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
9924 grub_free order.
9925
9926 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9927
9928 Support for passing block of commands as an argument to extcmds.
9929
9930 * Makefile.util.def: Rules for new test.
9931 * tests/grub_script_blockarg.in: New test.
9932 * grub-core/tests/test_blockarg.c: New file, block argument
9933 command used in the test.
9934
9935 * include/grub/extcmd.h (grub_extcmd_context): New struct.
9936 (grub_register_extcmd_prio): New function prototype.
9937 (grub_extcmd_dispatcher): New function prototype.
9938 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
9939 type.
9940 * include/grub/script_sh.h (struct grub_script): New members
9941 `children', `next_siblings' and `refcnt' for block arguments and
9942 reference counting.
9943 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
9944 (grub_script_arg): New member `script' for block argument.
9945 (grub_script_argv): New member `script' for block argument.
9946 (grub_parser_param): New member `scripts' for block argument.
9947 (grub_script_mem_free): New extern function prototype.
9948 (grub_script_ref): New function prototype.
9949 (grub_script_unref): New function prototype.
9950
9951 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
9952 extcmd form to support block arguments.
9953 * grub-core/script/argv.c: Block arguments support.
9954 * grub-core/script/execute.c: Likewise.
9955 * grub-core/script/lexer.c: Likewise.
9956 * grub-core/script/main.c: Likewise.
9957 * grub-core/script/script.c: Likewise.
9958 * grub-core/script/parser.y: Likewise. New `block' and `block0'
9959 non-terminals.
9960
9961 * grub-core/commands/acpi.c: Update extcmd implementations with
9962 grub_extcmd_context_t.
9963 * grub-core/commands/cat.c: Likewise.
9964 * grub-core/commands/echo.c: Likewise.
9965 * grub-core/commands/extcmd.c: Likewise.
9966 * grub-core/commands/hashsum.c: Likewise.
9967 * grub-core/commands/hdparm.c: Likewise.
9968 * grub-core/commands/help.c: Likewise.
9969 * grub-core/commands/hexdump.c: Likewise.
9970 * grub-core/commands/i386/cpuid.c: Likewise.
9971 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9972 * grub-core/commands/i386/pc/halt.c: Likewise.
9973 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9974 * grub-core/commands/iorw.c: Likewise.
9975 * grub-core/commands/keystatus.c: Likewise.
9976 * grub-core/commands/loadenv.c: Likewise.
9977 * grub-core/commands/ls.c: Likewise.
9978 * grub-core/commands/lspci.c: Likewise.
9979 * grub-core/commands/memrw.c: Likewise.
9980 * grub-core/commands/probe.c: Likewise.
9981 * grub-core/commands/search_wrap.c: Likewise.
9982 * grub-core/commands/setpci.c: Likewise.
9983 * grub-core/commands/sleep.c: Likewise.
9984 * grub-core/disk/loopback.c: Likewise.
9985 * grub-core/hello/hello.c: Likewise.
9986 * grub-core/loader/i386/bsd.c: Likewise.
9987 * grub-core/loader/xnu.c: Likewise.
9988 * grub-core/term/gfxterm.c: Likewise.
9989 * grub-core/term/serial.c: Likewise.
9990 * grub-core/tests/lib/functional_test.c: Likewise.
9991
9992 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9993
9994 Multi-line quoted strings support.
9995
9996 * grub-core/script/lexer.c (append_newline): Removed.
9997 (grub_script_lexer_yywrap): Refactored.
9998 (grub_script_lexer_init): Refactored.
9999 * grub-core/script/yylex.l (yywrap): New function.
10000 (grub_lexer_resplit): New function.
10001 (grub_lexer_unput): New function.
10002 * include/grub/script_sh.h (grub_lexer_param): New members, unput
10003 and resplit.
10004 * tests/grub_script_echo1.in: Added few more testcases.
10005
10006 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 * grub-core/kern/misc.c: Don't add abort alias in utils.
10009 Reported by: echoline.
10010
10011 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
10012
10013 Add missing files into "make dist" tarball for other platforms.
10014
10015 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
10016 * conf/Makefile.common (dist_noinst_DATA): New variable.
10017 * conf/Makefile.extra-dist: Added missing make dist files.
10018 * grub-core/Makefile.core.def: Likewise.
10019
10020 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 Compress grub_prefix.
10023
10024 * grub-core/boot/i386/pc/lnxboot.S: Use
10025 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
10026 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
10027 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
10028 GRUB_MACHINE_PREFIX_END. All users updated.
10029 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
10030 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
10031 + 0x40.
10032 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10033 * util/grub-mkimage.c (image_target_desc): Change data_end to
10034 prefix_end. All users updated.
10035
10036 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10037
10038 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
10039 value.
10040 (grub_openbsd_boot): Likewise.
10041 (grub_netbsd_boot): Likewise.
10042 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
10043 (grub_xnu_boot): Likewise.
10044
10045 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * configure.ac: Clean LIBS variable after tests.
10048
10049 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10050
10051 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
10052
10053 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
10056 echo if libdevmapper will be used.
10057
10058 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
10059
10060 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
10061 constant for the same file.
10062
10063 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
10066
10067 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10068
10069 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
10070 grub-core/*.pp.
10071
10072 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10073
10074 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
10075 required by the boot protocol.
10076
10077 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
10078 ebp and edi members.
10079 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
10080 state.ebp and state.edi.
10081 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
10082 %ebp and %edi according to grub_relocator32_ebp and
10083 grub_relocator32_edi respectively.
10084 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
10085 and state.edi.
10086
10087 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 Add i386-pc-pxe image target.
10090
10091 * util/grub-mkimage.c (image_target_desc): New enum value
10092 IMAGE_I386_PC_PXE.
10093 (image_targets): New target i386-pc-pxe.
10094 (generate_image): Handle i386-pc-pxe image.
10095
10096 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 Fix grub_pxe_scan.
10099
10100 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
10101 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
10102 All users updated.
10103 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
10104 (grub_pxe_pxenv): Correct type.
10105
10106 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10107
10108 * NEWS: Document most of the important changes since 1.98.
10109
10110 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10111
10112 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
10113 generated manual page) a little.
10114
10115 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10116
10117 * docs/grub.texi: Add myself as an author.
10118
10119 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * Makefile.util.def (libgrub.a): Add missing sunpc.
10122 Reported by: Seth Goldberg.
10123
10124 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 Interrupt wrapping and code simplifications.
10127
10128 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
10129 x86_noieee1275 which are functionaly equivalent in this case.
10130 (grub-install): Make source on each platform explicit. Enable on
10131 all noemu.
10132 * gentpl.py (x86_efi_pc): Removed group.
10133 (x86_noefi): Likewise.
10134 (i386_noefi): Likewise.
10135 (x86_noieee1275): Likewise.
10136 (i386_noieee1275): Likewise.
10137 (i386_noefi_noieee1275): Likewise.
10138 (i386_pc_qemu_coreboot): Likewise.
10139 (i386_coreboot_multiboot): Likewise.
10140 (i386_pc_coreboot_multiboot_qemu): Likewise.
10141 (x86_noefi_mips): Likewise.
10142 (noieee1275): Likewise.
10143 (ieee1275_mips): Likewise.
10144 (noemu_noieee1275): Likewise.
10145 (cmos): New group.
10146 (usb): Likewise.
10147 (videoinkernel): Likewise.
10148 (videomodules): Likewise.
10149 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
10150 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
10151 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
10152 include/grub/loader.h, include/grub/msdos_partition.h,
10153 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
10154 include/grub/machine/console.h, include/grub/machine/vga.h,
10155 include/grub/machine/vbe.h, include/grub/machine/init.h,
10156 include/grub/machine/kernel.h, include/grub/cpu/time.h,
10157 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
10158 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
10159 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
10160 * grub-core/Makefile.core.def (kernel): Explicit the source for
10161 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
10162 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
10163 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
10164 Use videoinkernel tag.
10165 (usb): Enable on all usb.
10166 (usbserial_common): Likewise.
10167 (usbserial_pl2303): Likewise.
10168 (usbserial_ftdi): Likewise.
10169 (uhci): Enable on all x86.
10170 (ohci): Enable on all pci.
10171 (cmostest): Enable on all CMOS.
10172 (acpi): Include commands/acpi.c on all platforms.
10173 (halt): Add relevant lib/*/halt.c.
10174 (hdparm): Enable on all pci.
10175 (lspci): Likewise.
10176 (usbtest): Enable on all usb.
10177 (ata): Enable on all pci.
10178 (ata_pthru): Likewise.
10179 (usbms): Enable on all usb.
10180 (usb_keyboard): Likewise.
10181 (font): Use tag videomodules.
10182 (bufio): Likewise.
10183 (datetime): Use tag cmos. Enable on all noemu.
10184 (mmap): Use tags common and x86.
10185 (gfxterm): Use tag videomodules.
10186 (bitmap): Likewise.
10187 (bitmap_scale): Likewise.
10188 (video_fb): Likewise.
10189 (video): Likewise.
10190 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
10191 adjust padding accordingly. All users updated.
10192 (grub_ohci_transaction): Fix bad format specification.
10193 (GRUB_MOD_INIT): Add asserts for struct size.
10194 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
10195 (grub_alloc_td): Likewise.
10196 (grub_free_queue): Likewise.
10197 (grub_uhci_transfer): Likewise.
10198 (grub_uhci_transaction): Fix bad format specification.
10199 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10200 (grub_usb_bulk_readwrite): Likewise.
10201 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
10202 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
10203 Made static.
10204 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
10205 Made static.
10206 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
10207 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
10208 Transformed into C.
10209 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
10210 Moved from here ...
10211 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
10212 ... here. Transformed into C. Made static.
10213 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
10214 Moved from here ...
10215 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
10216 ... here. Transformed into C. Made static.
10217 * grub-core/kern/i386/pc/startup.S
10218 (grub_biosdisk_check_int13_extensions): Moved from here ...
10219 * grub-core/disk/i386/pc/biosdisk.c
10220 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
10221 Made static.
10222 * grub-core/kern/i386/pc/startup.S
10223 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
10224 * grub-core/disk/i386/pc/biosdisk.c
10225 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
10226 Transformed into C. Made static.
10227 * grub-core/kern/i386/pc/startup.S
10228 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
10229 * grub-core/disk/i386/pc/biosdisk.c
10230 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
10231 Transformed into C. Made static.
10232 * grub-core/kern/i386/pc/startup.S
10233 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
10234 * grub-core/disk/i386/pc/biosdisk.c
10235 (grub_biosdisk_get_diskinfo_standard): ... here.
10236 Transformed into C. Made static.
10237 * grub-core/kern/i386/pc/startup.S
10238 (grub_biosdisk_get_num_floppies): Moved from here ...
10239 * grub-core/disk/i386/pc/biosdisk.c
10240 (grub_biosdisk_get_num_floppies): ... here.
10241 Transformed into C. Made static.
10242 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
10243 New function.
10244 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
10245 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
10246 Transformed into C. Made static.
10247 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
10248 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
10249 Transformed into C. Made static.
10250 * grub-core/kern/i386/ieee1275/init.c: Removed.
10251 * grub-core/kern/i386/misc.S: Likewise.
10252 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
10253 Splitted from here ...
10254 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
10255 Transformed into C. Made static. All users updated.
10256 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
10257 Transformed into C. Made static. All users updated.
10258 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
10259 Moved from here...
10260 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
10261 Transformed into C. Made static. All users updated.
10262 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
10263 Moved from here...
10264 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
10265 Transformed into C. Made static. All users updated.
10266 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
10267 Removed (replaced by C version).
10268 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
10269 Moved from here...
10270 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
10271 Transformed into C. Made static.
10272 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
10273 Moved from here...
10274 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
10275 ... here. Transformed into C.
10276 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
10277 Moved from here...
10278 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
10279 ... here. Transformed into C.
10280 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
10281 Moved from here...
10282 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
10283 ... here. Transformed into C. Made static.
10284 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
10285 Moved from here...
10286 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
10287 ... here. Transformed into C.
10288 * grub-core/kern/i386/pc/startup.S
10289 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
10290 * grub-core/video/i386/pc/vbe.c
10291 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
10292 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
10293 Moved from here...
10294 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
10295 ... here. Transformed into C.
10296 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
10297 Moved from here...
10298 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
10299 ... here. Transformed into C.
10300 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
10301 Moved from here...
10302 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
10303 ... here. Transformed into C.
10304 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
10305 Moved from here...
10306 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
10307 ... here. Transformed into C.
10308 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
10309 Moved from here...
10310 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
10311 ... here. Transformed into C. Made static.
10312 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
10313 Moved from here...
10314 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
10315 ... here. Transformed into C. Made static.
10316 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
10317 Moved from here...
10318 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
10319 ... here. Transformed into C. Made static.
10320 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10321 pxe_rm_entry as third argument.
10322 (grub_bios_interrupt): New function.
10323 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10324 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10325 of calling grub_stop.
10326 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10327 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10328 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10329 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10330 * grub-core/lib/i386/halt.c: Moved from here ...
10331 * grub-core/lib/i386/halt.c: ... here.
10332 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10333 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10334 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10335 grub_stop_floppy.
10336 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10337 * include/grub/i386/coreboot/init.h: Removed.
10338 * include/grub/i386/multiboot/init.h: Likewise.
10339 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10340 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10341 * include/grub/i386/pc/int.h: New file.
10342 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10343 (grub_pxe_scan): Removed.
10344 (grub_pxe_call): Update prototype.
10345 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10346 prototypes.
10347 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10348 * include/grub/i386/qemu/init.h: Removed.
10349 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10350 noreturn.
10351 (grub_halt): Likewise.
10352 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10353 (grub_reboot): Likewise.
10354 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10355 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10356 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10357
10358 2010-08-30 Robert Millan <rmh@gnu.org>
10359
10360 * NEWS: Document addition of ZFS support in `grub-install' and
10361 `grub-mkconfig'.
10362
10363 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10364
10365 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10366 dprintf output.
10367
10368 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 Remove leftover embedding of font objects.
10371
10372 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10373 * util/grub-install.in (font): Removed.
10374 * util/grub-mkimage.c (generate_image): Remove font support. All users
10375 updated.
10376
10377 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 Remove leftover embedding of font objects.
10380
10381 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10382 * util/grub-install.in (font): Removed.
10383 * util/grub-mkimage.c (generate_image): Remove font support. All users
10384 updated.
10385
10386 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10389 Reported by: Ian Turner
10390
10391 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10394 timeout to avoid indefinite boot stalling.
10395
10396 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10399 (grub_env_write_color_highlight): Likewise.
10400
10401 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 * grub-core/normal/term.c (print_more): Return to normal and not
10404 to standard state after printing "---MORE---".
10405
10406 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10409 Mask out the bit 0x80 since it has other meaning that specifiing color.
10410
10411 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 New relocator. Allows for more kernel support and more straightforward
10414 loader writing.
10415
10416 * Makefile.am (BOOTTARGET): New variable.
10417 (QEMU32): Likewise.
10418 (linux.init.x86_64): New target.
10419 (linux.init.i386): Likewise.
10420 (multiboot.elf): Likewise.
10421 (kfreebsd.elf): Likewise.
10422 (kfreebsd.aout): Likewise.
10423 (pc-chainloader.elf): Likewise.
10424 (pc-chainloader.bin): Likewise.
10425 (ntldr.elf): Likewise.
10426 (ntldr.bin): Likewise.
10427 (multiboot2.elf): Likewise.
10428 (kfreebsd.init.x86_64): Likewise.
10429 (kfreebsd.init.i386): Likewise.
10430 (knetbsd.init.i386): Likewise.
10431 (kopenbsd.init.i386): Likewise.
10432 (knetbsd.init.x86_64): Likewise.
10433 (kopenbsd.init.x86_64): Likewise.
10434 (linux-initramfs.i386): Likewise.
10435 (linux-initramfs.x86_64): Likewise.
10436 (kfreebsd-mfsroot.i386.img): Likewise.
10437 (knetbsd.image.i386): Likewise.
10438 (kopenbsd.image.i386): Likewise.
10439 (kopenbsd.image.x86_64): Likewise.
10440 (knetbsd.miniroot-image.i386.img): Likewise.
10441 (kfreebsd-mfsroot.x86_64.img): Likewise.
10442 (knetbsd.image.x86_64): Likewise.
10443 (knetbsd.miniroot-image.x86_64.img): Likewise.
10444 (kfreebsd-mfsroot.i386.gz): Likewise.
10445 (bootcheck-kfreebsd-i386): Likewise.
10446 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10447 (bootcheck-kfreebsd-x86_64): Likewise.
10448 (knetbsd.miniroot-image.i386.gz): Likewise.
10449 (bootcheck-knetbsd-i386): Likewise.
10450 (bootcheck-kopenbsd-i386): Likewise.
10451 (bootcheck-kopenbsd-x86_64): Likewise.
10452 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10453 (bootcheck-knetbsd-x86_64): Likewise.
10454 (bootcheck-linux-i386): Likewise.
10455 (bootcheck-linux-x86_64): Likewise.
10456 (bootcheck-linux16-i386): Likewise.
10457 (bootcheck-linux16-x86_64): Likewise.
10458 (bootcheck-multiboot): Likewise.
10459 (bootcheck-multiboot2): Likewise.
10460 (bootcheck-kfreebsd-aout): Likewise.
10461 (bootcheck-pc-chainloader): Likewise.
10462 (bootcheck-ntldr): Likewise.
10463 (CLEANFILES): Add new targets.
10464 (BOOTCHECKS): New variable.
10465 (.PHONY): Add bootchecks.
10466 (SUCCESSFUL_BOOT_STRING): New variable.
10467 (BOOTCHECK_TIMEOUT): Likewise.
10468 (bootcheck): New target
10469 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10470 * configure.ac: Correct efiemu excuse.
10471 * docs/grub.texi (Supported kernels): New chapter.
10472 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10473 include/grub/mm_private.h. Simplify inclusion of
10474 include/grub/boot.h, include/grub/loader.h
10475 and include/grub/msdos_partition.h
10476 (KERNEL_HEADER_FILES) [i386_coreboot]:
10477 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10478 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10479 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10480 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10481 include/grub/machine/loader.h.
10482 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10483 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10484 extra_dist.
10485 (pci.mod): Enable on i386-multiboot.
10486 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10487 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10488 i386-qemu.
10489 (relocator.mod): Rewritten.
10490 (aout.mod): Enable on all x86.
10491 (bsd.mod): Likewise.
10492 (ntldr.mod): New module.
10493 (linux.mod): Use loader/i386/linux.c on all x86.
10494 (xnu.mod): Enable on all x86.
10495 (vga_text.mod): disable on EFI and QEMU.
10496 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10497 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10498 * grub-core/efiemu/loadcore.c: Likewise.
10499 * grub-core/efiemu/main.c: Likewise.
10500 (grub_efiemu_exit_boot_services): Removed.
10501 (grub_efiemu_finish_boot_services): Likewise.
10502 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10503 function.
10504 * grub-core/efiemu/i386/nocfgtables.c: New file.
10505 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10506 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10507 (grub_efi_finish_boot_services): Moved from here ...
10508 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10509 Fille finish memory map and related data.
10510 (finish_mmap_buf): New variable.
10511 (grub_efi_uintn_t finish_mmap_size): Likewise.
10512 (grub_efi_uintn_t finish_key): Likewise.
10513 (grub_efi_uintn_t finish_desc_size): Likewise.
10514 (grub_efi_uint32_t finish_desc_version): Likewise.
10515 (grub_efi_is_finished): Likewise.
10516 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10517 finished.
10518 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10519 (grub_elf64_phdr_iterate): Likewise.
10520 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10521 (grub_os_area_size): Likewise.
10522 (grub_machine_init): Don't reserve os area.
10523 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10524 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10525 * grub-core/kern/i386/loader.S: Removed.
10526 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10527 (grub_os_area_size): Likewise.
10528 (grub_machine_init): Don't reserve os area.
10529 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10530 Don't call grub_dl_unload_all.
10531 Don't include loader.S.
10532 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10533 Declare the memory after _end as available.
10534 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10535 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10536 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10537 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10538 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10539 * include/grub/mm_private.h (grub_mm_header): ... here.
10540 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10541 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10542 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10543 (grub_mm_region): ..here. Removed addr. Added pre_size.
10544 All users updated.
10545 * grub-core/kern/mm.c (base): Renamed to ...
10546 (grub_mm_base): ... this. Made global.
10547 (grub_real_malloc): Alloc from end of region.
10548 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10549 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10550 * grub-core/kern/powerpc/cache_flush.S: ... here.
10551 * grub-core/lib/efi/relocator.c: New file.
10552 * grub-core/lib/i386/relocator.c: Rewritten.
10553 * grub-core/lib/i386/relocator16.S: New file.
10554 * grub-core/lib/i386/relocator32.S: Likewise.
10555 * grub-core/lib/i386/relocator64.S: Likewise.
10556 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10557 * grub-core/lib/i386/relocator_common.S: New file.
10558 * grub-core/lib/ieee1275/relocator.c: Likewise.
10559 * grub-core/lib/mips/relocator.c: Rewritten.
10560 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10561 stylistic adjustments.
10562 * grub-core/lib/powerpc/relocator.c: New file.
10563 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10564 * grub-core/lib/relocator.c: Rewritten.
10565 * grub-core/lib/x86_64/relocator_asm.S: New file.
10566 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10567 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10568 (bsd_tag): New struct.
10569 (tags): New variable.
10570 (tags_last): Likewise.
10571 (netbsd_module): New struct.
10572 (netbsd_mods): New variable.
10573 (netbsd_mods_last): Likewise.
10574 (openbsd_opts): New parameter "serial".
10575 (OPENBSD_SERIAL_ARG): New definition.
10576 (netbsd_opts): New parameter "serial".
10577 (NETBSD_SERIAL_ARG): New definition.
10578 (grub_freebsd_add_meta): Reorganised into ...
10579 (grub_bsd_add_meta): ...this. All users updated.
10580 (grub_freebsd_add_mmap): Reorganised into ...
10581 (generate_e820_mmap): ...this...
10582 (grub_bsd_add_mmap): ...and this. All users updated.
10583 (grub_freebsd_list_modules): Use tags.
10584 (grub_netbsd_add_meta_module): New function.
10585 (grub_netbsd_list_modules): Likewise.
10586 (grub_freebsd_boot): Use relocator and finish EFI.
10587 (grub_openbsd_boot): Likewise.
10588 (grub_netbsd_setup_video): New function.
10589 (grub_netbsd_add_modules): Likewise.
10590 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10591 and finish EFI.
10592 (grub_bsd_unload): Unload tags.
10593 (grub_bsd_load_aout): Use relocator.
10594 (grub_bsd_elf32_size_hook): New function.
10595 (grub_bsd_elf32_hook): Use relocator.
10596 (grub_bsd_elf64_size_hook): New function.
10597 (grub_bsd_elf64_hook): Use relocator.
10598 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10599 (grub_bsd_load): Zero-out openbsd_ramdisk.
10600 (grub_bsd_load): Use relocator.
10601 (grub_cmd_openbsd): Support serial.
10602 (grub_cmd_netbsd): Support modules.
10603 (grub_cmd_freebsd_module): Use relocator.
10604 (grub_netbsd_module_load): New function.
10605 (grub_cmd_netbsd_module): Likewise.
10606 (grub_cmd_openbsd_ramdisk): Likewise.
10607 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10608 kopenbsd_ramdisk.
10609 (GRUB_MOD_FINI): Unregister new commands.
10610 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10611 (grub_freebsd_load_elfmodule_obj): Use relocator.
10612 (grub_freebsd_load_elfmodule): Likewise.
10613 (grub_freebsd_load_elf_meta): Likewise.
10614 (grub_netbsd_load_elf_meta): New function.
10615 (grub_openbsd_find_ramdisk): Likewise.
10616 * grub-core/loader/i386/bsd_helper.S: Removed.
10617 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10618 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10619 * grub-core/loader/i386/efi/linux.c: Likewise.
10620 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10621 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10622 (DEFAULT_VIDEO_MODE): Likewise.
10623 (real_mode_target): New variable.
10624 (prot_mode_target): Likewise.
10625 (initrd_mem_target): Likewise.
10626 (relocator): Likewise.
10627 (efi_mmap_buf): Likewise.
10628 (efi_mmap_size): Likewise.
10629 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10630 (free_pages): Use relocator.
10631 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10632 (grub_linux_setup_video): Return error.
10633 (grub_linux_trampoline_start): Removed.
10634 (grub_linux_trampoline_end): Likewise.
10635 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10636 andd video parameters depending on firmware.
10637 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10638 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10639 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10640 (grub_cmd_initrd): Use relocator.
10641 * grub-core/loader/i386/linux_trampoline.S: Removed.
10642 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10643 (elf_sec_entsize): Likewise.
10644 (elf_sec_shstrndx): Likewise.
10645 (elf_sections): Likewise.
10646 (grub_multiboot_load): Use relocator.
10647 (grub_multiboot_get_mbi_size): Account for sections.
10648 (grub_multiboot_make_mbi): Use relocator and support sections.
10649 (grub_multiboot_add_elfsyms): New function.
10650 (grub_multiboot_free_mbi): Free sections.
10651 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
10652 (grub_linux_real_target): Likewise.
10653 (grub_linux_real_chunk): Likewise.
10654 (grub_linux16_prot_size): Likewise.
10655 (grub_linux16_boot): Use relocator.
10656 (grub_linux_unload): Unload relocator.
10657 (grub_cmd_linux): Use relocator.
10658 (grub_cmd_initrd): Likewise.
10659 * grub-core/loader/i386/pc/ntldr.c: New file.
10660 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
10661 Don't try to guess CPU frequency.
10662 (grub_xnu_set_video): Stretch bitmap.
10663 (grub_xnu_boot): Use relocator.
10664 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
10665 (grub_linux_unload): Free relocator.
10666 (grub_linux_load32): Use relocator.
10667 (grub_linux_load64): Likewise.
10668 (grub_cmd_initrd): Likewise.
10669 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
10670 (grub_multiboot_unload): Unload relocator.
10671 (grub_cmd_multiboot): Use relocator.
10672 (grub_cmd_module): Likewise.
10673 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
10674 Use relocator and support sections.
10675 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
10676 (elf_sec_entsize): Likewise.
10677 (elf_sec_shstrndx): Likewise.
10678 (elf_sections): Likewise.
10679 (grub_multiboot_load): Use relocator.
10680 (grub_multiboot_get_mbi_size): Account for sections.
10681 (grub_multiboot_make_mbi): Use relocator and support sections.
10682 (grub_multiboot_add_elfsyms): New function.
10683 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
10684 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
10685 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
10686 Prototype changed. All users updated.
10687 (grub_xnu_align_heap): Simplified.
10688 (grub_xnu_writetree_toheap): Likewise.
10689 (grub_xnu_unload): Unload relocator.
10690 (grub_cmd_xnu_kernel): Use relocator.
10691 (grub_cmd_xnu_kernel64): Likewise.
10692 (grub_xnu_register_memory): Simplified.
10693 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
10694 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
10695 EFI is finished.
10696 (grub_console_checkkey): Likewise.
10697 (grub_console_getkey): Likewise.
10698 (grub_console_getwh): Likewise.
10699 (grub_console_getxy): Likewise.
10700 (grub_console_gotoxy): Likewise.
10701 (grub_console_cls): Likewise.
10702 (grub_console_setcolorstate): Likewise.
10703 (grub_console_setcursor): Likewise.
10704 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
10705 * grub-core/tests/boot/kbsd.init-i386.S: New file.
10706 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
10707 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
10708 * grub-core/tests/boot/kernel-8086.S: Likewise.
10709 * grub-core/tests/boot/kernel-i386.S: Likewise.
10710 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
10711 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
10712 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
10713 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
10714 * grub-core/tests/boot/knetbsd.cfg: Likewise.
10715 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
10716 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
10717 * grub-core/tests/boot/linux.cfg: Likewise.
10718 * grub-core/tests/boot/linux.init-i386.S: Likewise.
10719 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
10720 * grub-core/tests/boot/linux16.cfg: Likewise.
10721 * grub-core/tests/boot/multiboot.cfg: Likewise.
10722 * grub-core/tests/boot/multiboot2.cfg: Likewise.
10723 * grub-core/tests/boot/ntldr.cfg: Likewise.
10724 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
10725 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
10726 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
10727 New definition.
10728 * include/grub/dl.h (grub_dl_unload_all): Removed.
10729 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
10730 (grub_efi_finish_boot_services): Change prototype.
10731 (grub_efi_is_finished): New variable.
10732 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
10733 Changed prototype.
10734 (grub_efiemu_finish_boot_services): Removed.
10735 (grub_machine_efiemu_init_tables): New prototype.
10736 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
10737 (grub_elf64_phdr_iterate): Likewise.
10738 * include/grub/i386/bsd.h: Include relocator.h.
10739 (freebsd_tag_header): New struct.
10740 (grub_openbsd_bios_mmap): Removed.
10741 (grub_unix_real_boot): Removed.
10742 (grub_freebsd_load_elfmodule32): Changed prototype.
10743 (grub_freebsd_load_elfmodule_obj64): Likewise.
10744 (grub_freebsd_load_elf_meta32): Likewise.
10745 (grub_freebsd_load_elf_meta64): Likewise.
10746 (grub_freebsd_add_meta): Removed.
10747 (grub_netbsd_load_elf_meta32): New prototype.
10748 (grub_netbsd_load_elf_meta64): Likewise.
10749 (grub_bsd_add_meta): Likewise.
10750 (grub_openbsd_ramdisk_descriptor): New struct.
10751 (grub_openbsd_find_ramdisk32): New prototype.
10752 (grub_openbsd_find_ramdisk64): Likewise.
10753 * include/grub/i386/coreboot/loader.h: Removed.
10754 * include/grub/i386/efi/loader.h: Likewise.
10755 * include/grub/i386/ieee1275/loader.h: Likewise.
10756 * include/grub/i386/linux.h (linux_kernel_header): Change void *
10757 to grub_uint32_t.
10758 * include/grub/i386/loader.h: Removed.
10759 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
10760 value.
10761 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
10762 (grub_phys_addr_t): New type.
10763 (grub_vtop): New inline function.
10764 (grub_map_memory): Likewise.
10765 (grub_unmap_memory): Likewise.
10766 * include/grub/i386/multiboot/loader.h: Removed.
10767 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
10768 (NETBSD_BTINFO_CONSOLE): New definition.
10769 (NETBSD_BTINFO_SYMTAB): Likewise.
10770 (NETBSD_BTINFO_MODULES): Likewise.
10771 (NETBSD_BTINFO_FRAMEBUF): Likewise.
10772 (grub_netbsd_bootinfo): New struct.
10773 (grub_netbsd_btinfo_common): Use explicit bitsize.
10774 (grub_netbsd_btinfo_mmap_entry): Removed.
10775 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
10776 (grub_netbsd_btinfo_bootdisk): New struct.
10777 (grub_netbsd_btinfo_symtab): Likewise.
10778 (grub_netbsd_btinfo_serial): Likewise.
10779 (grub_netbsd_btinfo_modules): Likewise.
10780 (grub_netbsd_btinfo_framebuf): Likewise.
10781 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
10782 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
10783 Likewise.
10784 (grub_openbsd_bootargs): Use explicit bitsize.
10785 (grub_openbsd_bootarg_console): New struct.
10786 (GRUB_OPENBSD_COM_MAJOR): New definition.
10787 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
10788 * include/grub/i386/pc/efiemu.h: Removed.
10789 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
10790 * include/grub/i386/qemu/loader.h: Removed.
10791 * include/grub/i386/relocator.h: Rewritten.
10792 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
10793 * include/grub/mips/memory.h: New file.
10794 * include/grub/mips/multiboot.h: Rewritten.
10795 * include/grub/mips/relocator.h: Rewritten.
10796 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
10797 (grub_vtop): New function.
10798 (grub_map_memory): Likewise.
10799 (grub_unmap_memory): Likewise.
10800 * include/grub/misc.h (ALIGN_DOWN): New definition.
10801 * include/grub/mm.h (grub_mm_check_real): New proto.
10802 (GRUB_MM_CHECK): New definition.
10803 * include/grub/mm_private.h: New file.
10804 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
10805 (grub_multiboot_get_mbi_size): Removed.
10806 (grub_multiboot_make_mbi): Change prottype.
10807 (grub_multiboot_set_accepts_video): New proto.
10808 (grub_multiboot_add_elfsyms): Likewise.
10809 (grub_multiboot_payload_eip): New variable.
10810 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
10811 New prototype.
10812 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
10813 New definition.
10814 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
10815 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
10816 * include/grub/powerpc/ieee1275/loader.h: Removed.
10817 * include/grub/powerpc/memory.h: New file.
10818 * include/grub/powerpc/relocator.h: Likewise.
10819 * include/grub/relocator.h: Likewise.
10820 * include/grub/relocator_private.h: Likewise.
10821 * include/grub/sparc64/ieee1275/loader.h: Removed.
10822 * include/grub/x86_64/memory.h: New file.
10823 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
10824 (grub_xnu_heap_malloc): Likewise.
10825 (grub_xnu_heap_real_start): Removed.
10826 (grub_xnu_heap_start): Likewise.
10827 (grub_xnu_relocator): New variable.
10828 (grub_xnu_heap_target_start): Likewise.
10829 * tests/util/grub-shell.in: Support non-pc.
10830 * util/grub-mkimage.c (image_targets): Fix multiboot target.
10831
10832 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10833
10834 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
10835 on malloc error.
10836 (grub_bidi_logical_to_visual): Check that malloc succeded.
10837 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
10838 puts.
10839 (grub_xputs_normal): Likewise.
10840
10841 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
10844 extra_dist.
10845
10846 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10847
10848 * grub-core/efiemu/runtime/efiemu.sh: Removed.
10849
10850 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
10853
10854 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
10857 dprintf.
10858
10859 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
10860
10861 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
10862
10863 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10864
10865 * grub-core/normal/term.c (print_more): Fix a memory leak.
10866 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
10867 (grub_xputs_normal): Likewise.
10868
10869 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10870
10871 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
10872 the begining of the string
10873
10874 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 * grub-core/script/script.c (grub_script_parse): Free parsed on
10877 failure.
10878
10879 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
10882 on failure.
10883
10884 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10885
10886 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
10887 return.
10888
10889 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
10892 (scroll_up): Fix a memory leak.
10893
10894 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
10897 errors.
10898
10899 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
10900
10901 Handle USB pendrives exposed as floppies.
10902
10903 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
10904 floppy.
10905 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10906 Check for partitions on all devices.
10907
10908 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10909
10910 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
10911 (readkey): Likewise.
10912
10913 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10914
10915 Multiple variable names support to "export" command.
10916
10917 * normal/context.c (grub_cmd_export): "export" command supports
10918 multiple variable names.
10919
10920 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
10921
10922 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
10923 --target=drive output to Mach device name.
10924
10925 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10926
10927 New Automake based build system for GRUB.
10928
10929 * ABOUT-NLS: New file.
10930 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
10931 in Makefile.util.def file.
10932 * Makefile.util.def: New file. Autogen build definitions file for
10933 GRUB host utils.
10934 * conf/Makefile.common: New file. Common variables for GRUB host
10935 utils and target modules.
10936 * conf/Makefile.extra-dist: New file. Extra files for make dist.
10937 * docs/Makefile.am: New file. Automake file for docs.
10938 * gentpl.py: New file. Python script to generate Autogen
10939 template.
10940 * grub-core/Makefile.am: New file. GRUB target modules' rules
10941 that doesn't fit in Makefile.core.def file.
10942 * grub-core/Makefile.core.def: New file. Autogen build
10943 definitions file for GRUB target modules.
10944 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
10945 specific setjmp.S file.
10946 * po/Makefile.am: New file.
10947
10948 * .bzrignore: New ignores.
10949 * INSTALL: New requirements, without Ruby.
10950 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
10951 * autogen.sh: Updated to invoke autogen as necessary.
10952 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
10953 and defines for Automake conditionals.
10954 * geninit.sh: Refactoring.
10955
10956 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
10957 necessary.
10958 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
10959 New prototype.
10960
10961 * include/grub/test.h: Fix functional test modules' naming.
10962 * grub-core/tests/example_functional_test.c: Fix test module name.
10963
10964 * util/misc.c: Hosted versions' of grub functions for libgrub.a
10965 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
10966 * util/grub-editenv.c: Likewise.
10967 * util/grub-fstest.c: Likewise.
10968 * util/grub-mkdevicemap.c: Likewise.
10969 * util/grub-mkfont.c: Likewise.
10970 * util/grub-mkimage.c: Likewise.
10971 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10972 * util/grub-probe.c: Likewise.
10973 * util/grub-script-check.c: Likewise.
10974 * util/i386/pc/grub-setup.c: Likewise.
10975 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10976
10977 * tests/util/grub-shell.in: Fix override directory path.
10978 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
10979 * util/import_gcry.py: Create Makefile.gcry.def file instead.
10980
10981 * util/lvm.c: Update #includes.
10982 * util/raid.c: Likewise.
10983 * util/resolve.c: Likewise.
10984 * grub-core/bus/emu/pci.c: Likewise.
10985 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
10986 * grub-core/lib/posix_wrap/string.h: Likewise.
10987 * grub-core/kern/emu/main.c: Likewise.
10988
10989 * grub-core/gensymlist.sh: New file. Script for generating kernel
10990 symbols file.
10991 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
10992
10993 * grub-core/gentrigtables.c: Fix unused variable warnings.
10994
10995 * Makefile.in: Removed.
10996 * conf/any-emu.rmk: Removed.
10997 * conf/common.rmk: Removed.
10998 * conf/i386-coreboot.rmk: Removed.
10999 * conf/i386-efi.rmk: Removed.
11000 * conf/i386-ieee1275.rmk: Removed.
11001 * conf/i386-multiboot.rmk: Removed.
11002 * conf/i386-pc.rmk: Removed.
11003 * conf/i386-qemu.rmk: Removed.
11004 * conf/i386.rmk: Removed.
11005 * conf/mips-yeeloong.rmk: Removed.
11006 * conf/mips.rmk: Removed.
11007 * conf/powerpc-ieee1275.rmk: Removed.
11008 * conf/sparc64-ieee1275.rmk: Removed.
11009 * conf/tests.rmk: Removed.
11010 * conf/x86-efi.rmk: Removed.
11011 * conf/x86_64-efi.rmk: Removed.
11012 * gendistlist.sh: Removed.
11013 * geninitheader.sh: Removed.
11014 * genkernsyms.sh.in: Removed.
11015 * genmk.rb: Removed.
11016 * gensymlist.sh.in: Removed.
11017 * mkinstalldirs: Removed.
11018 * boot: Moved ...
11019 * grub-core/boot: ... to here.
11020 * bus: Moved ...
11021 * grub-core/bus: ... to here.
11022 * commands: Moved ...
11023 * grub-core/commands: ... to here.
11024 * disk: Moved ...
11025 * grub-core/disk: ... to here.
11026 * efiemu: Moved ...
11027 * grub-core/efiemu: ... to here.
11028 * font: Moved ...
11029 * grub-core/font: ... to here.
11030 * fs: Moved ...
11031 * grub-core/fs: ... to here.
11032 * gencmdlist.sh: Moved ...
11033 * grub-core/gencmdlist.sh: ... to here.
11034 * genemuinit.sh: Moved ...
11035 * grub-core/genemuinit.sh: ... to here.
11036 * genemuinitheader.sh: Moved ...
11037 * grub-core/genemuinitheader.sh: ... to here.
11038 * genfslist.sh: Moved ...
11039 * grub-core/genfslist.sh: ... to here.
11040 * genhandlerlist.sh: Moved ...
11041 * grub-core/genhandlerlist.sh: ... to here.
11042 * genmoddep.awk: Moved ...
11043 * grub-core/genmoddep.awk: ... to here.
11044 * genmodsrc.sh: Moved ...
11045 * grub-core/genmodsrc.sh: ... to here.
11046 * genpartmaplist.sh: Moved ...
11047 * grub-core/genpartmaplist.sh: ... to here.
11048 * genparttoollist.sh: Moved ...
11049 * grub-core/genparttoollist.sh: ... to here.
11050 * genterminallist.sh: Moved ...
11051 * grub-core/genterminallist.sh: ... to here.
11052 * gentrigtables.c: Moved ...
11053 * grub-core/gentrigtables.c: ... to here.
11054 * genvideolist.sh: Moved ...
11055 * grub-core/genvideolist.sh: ... to here.
11056 * gettext: Moved ...
11057 * grub-core/gettext: ... to here.
11058 * gfxmenu: Moved ...
11059 * grub-core/gfxmenu: ... to here.
11060 * gnulib: Moved ...
11061 * grub-core/gnulib: ... to here.
11062 * hello: Moved ...
11063 * grub-core/hello: ... to here.
11064 * hook: Moved ...
11065 * grub-core/hook: ... to here.
11066 * io: Moved ...
11067 * grub-core/io: ... to here.
11068 * kern: Moved ...
11069 * grub-core/kern: ... to here.
11070 * lib: Moved ...
11071 * grub-core/lib: ... to here.
11072 * loader: Moved ...
11073 * grub-core/loader: ... to here.
11074 * mmap: Moved ...
11075 * grub-core/mmap: ... to here.
11076 * normal: Moved ...
11077 * grub-core/normal: ... to here.
11078 * partmap: Moved ...
11079 * grub-core/partmap: ... to here.
11080 * parttool: Moved ...
11081 * grub-core/parttool: ... to here.
11082 * script: Moved ...
11083 * grub-core/script: ... to here.
11084 * term: Moved ...
11085 * grub-core/term: ... to here
11086 * tests/example_functional_test.c: Moved ...
11087 * grub-core/tests/example_functional_test.c: ... to here.
11088 * tests/lib/functional_test.c: Moved ...
11089 * grub-core/tests/lib/functional_test.c: ... to here.
11090 * tests/lib/test.c: Moved ...
11091 * grub-core/tests/lib/test.c: ... to here.
11092 * video: Moved ...
11093 * grub-core/video: ... to here.
11094
11095 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11096
11097 Replace --enable-grub-emu-modules with grub-emu-lite.
11098
11099 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
11100 cache.S.
11101
11102 * include/grub/emu/misc.h (grub_emu_init): New prototype.
11103 * kern/emu/full.c: New file. For grub-emu specific initialization.
11104 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
11105 * kern/emu/main.c: Call initialization function grub_emu_init.
11106
11107 * Makefile.in: Include grub-emu-lite in install.
11108 * commands/parttool.c: Use grub_no_autoload to differentiate
11109 between grub-emu and grub-emu-lite.
11110 * include/grub/misc.h: New variable grub_no_autoload.
11111
11112 * conf/any-emu.rmk: New rules for grub-emu-lite.
11113 * configure.ac: Remove --enable-grub-emu-modules.
11114 * genmk.rb: Cleanup unnecessary rules.
11115 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
11116
11117 * normal/main.c: Don't load list files on grub-emu-lite.
11118 * util/misc.c (grub_arch_sync_caches): Removed.
11119
11120 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
11121
11122 * kern/mips/startup.S (grub_prefix): Update comment to refer to
11123 grub-mkimage rather than grub-mkelfimage.
11124 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11125
11126 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
11129 a key after CapsLock or NumLock. It's just a qemu bug.
11130
11131 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11132
11133 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
11134 needed by libusb wrapper.
11135
11136 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11137
11138 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
11139
11140 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
11143 --nounzip is passed.
11144
11145 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 USB hotunplugging and USB serial support.
11148
11149 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
11150 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
11151 (grub_uhci_transfer): Respect timeout and set *actual.
11152 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
11153 non-standard length.
11154 (grub_usb_device_attach): Autoload modules.
11155 (GRUB_MOD_INIT): Set grub_term_poll_usb.
11156 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
11157 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
11158 users updated.
11159 (grub_usb_add_hub): Fill nports and children.
11160 (attach_root_port): Receive hub instead of controller.
11161 All users updated. Fill hub->devices.
11162 (grub_usb_root_hub): Allocate hub->devices.
11163 (detach_device): New function.
11164 (poll_nonroot_hub): Fill children and detach devices.
11165 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
11166 actual arguments. All users updated.
11167 (grub_usb_bulk_read_extended): New function.
11168 * bus/usb/serial/common.c: New file.
11169 * bus/usb/serial/ftdi.c: Likewise.
11170 * bus/usb/serial/pl2303.c: Likewise.
11171 * commands/terminal.c (handle_command): Support wildcard.
11172 * commands/usbtest.c: Output "Unknown" instead of empty string.
11173 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
11174 (usbserial_common_mod_SOURCES): New variable.
11175 (usbserial_common_mod_CFLAGS): Likewise.
11176 (usbserial_common_mod_LDFLAGS): Likewise.
11177 (pkglib_MODULES): Add usbserial_pl2303.mod.
11178 (usbserial_pl2303_mod_SOURCES): New variable.
11179 (usbserial_pl2303_mod_CFLAGS): Likewise.
11180 (usbserial_pl2303_mod_LDFLAGS): Likewise.
11181 (pkglib_MODULES): Add usbserial_ftdi.mod.
11182 (usbserial_ftdi_mod_SOURCES): New variable.
11183 (usbserial_ftdi_mod_CFLAGS): Likewise.
11184 (usbserial_ftdi_mod_LDFLAGS): Likewise.
11185 (pkglib_MODULES): Add serial.mod.
11186 (serial_mod_SOURCES): New variable.
11187 (serial_mod_CFLAGS): Likewise.
11188 (serial_mod_LDFLAGS): Likewise.
11189 * conf/i386-pc.rmk: Likewise.
11190 * conf/mips-yeeloong.rmk: Likewise.
11191 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
11192 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11193 * disk/usbms.c (first_available_slot): New variable.
11194 (grub_usbms_attach): Don't reuse free slots due to potential cache
11195 problems.
11196 * include/grub/serial.h: Moved to ..
11197 * include/grub/ns8250.h: ...this.
11198 * include/grub/serial.h: New file.
11199 * include/grub/term.h (grub_term_poll_usb): New variable.
11200 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
11201 readkey. All users updated.
11202 (grub_terminfo_output_state): Pass term to put.
11203 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
11204 (grub_usb_controller_dev): Add timeout and actual arguments to
11205 transfer. All users updated.
11206 (grub_usb_interface): New field detach_data.
11207 (grub_usb_device): New fields children and nports.
11208 (grub_usb_ep_type_t): New type.
11209 (grub_usb_get_ep_type): New function.
11210 (grub_usb_bulk_read_extended): Likewise.
11211 * include/grub/usbdesc.h (grub_usb_desc): New type.
11212 * include/grub/usbserial.h: New file.
11213 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
11214 * kern/term.c (grub_term_poll_usb): New variable.
11215 (grub_getkey): Call grub_term_poll_usb if set.
11216 (grub_checkkey): Likewise.
11217 (grub_getkeystatus): Likewise.
11218 * term/serial.c: Moved controller-specific parts to ...
11219 * term/ns8250.c: ... here.
11220 * term/serial.c: Mostly rewritten.
11221 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
11222 according to spec.
11223
11224 2010-08-20 Robert Millan <rmh@gnu.org>
11225
11226 Make kFreeBSD code more generic to support ext2fs as root, ufs as
11227 a separate module and maybe other interesting combinations.
11228
11229 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
11230 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
11231 (kfreebsd_entry): Add generic filesystem module load routine.
11232 Map GRUB `ext2' to kFreeBSD `ext2fs'.
11233
11234 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11235
11236 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
11237 "numcenter" (I misunderstood the purpose of this entry).
11238 * docs/grub.texi (sendkey): Likewise.
11239
11240 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11241
11242 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
11243 status flag options; simply omitting the option is equivalent and
11244 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
11245 (keysym_table): Rename "num5numlock" to "numlock".
11246 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
11247 can uniformly say that only the last of multiple `sendkey'
11248 invocations has any effect.
11249 * docs/grub.texi (sendkey): New section.
11250
11251 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
11252
11253 * commands/i386/pc/sendkey.c (options): Fix three typos.
11254
11255 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11256
11257 Implement sendkey support.
11258
11259 * commands/i386/pc/sendkey.c: New file.
11260 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
11261 (sendkey_mod_SOURCES): New variable.
11262 (sendkey_mod_CFLAGS): Likewise.
11263 (sendkey_mod_LDFLAGS): Likewise.
11264
11265 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11266
11267 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
11268 fix warnings from Autoconf.
11269
11270 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11271
11272 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
11273 to avoid false positives with some assemblers that output things
11274 like "someprefix_func" as part of their output.
11275
11276 2010-08-15 Robert Millan <rmh@gnu.org>
11277
11278 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
11279 errors.
11280 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
11281 grub_get_libzfs_handle() errors.
11282
11283 2010-08-14 Robert Millan <rmh@gnu.org>
11284
11285 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
11286 filesystem is not ZFS.
11287
11288 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11289
11290 Fix for misspelled color names defaulting to black/black (bug
11291 reported by Doug Nazar)
11292
11293 * include/grub/normal.h (grub_parse_color_name_pair): Add return
11294 status to prototype.
11295 * normal/color.c (grub_parse_color_name_pair): Return failure
11296 status.
11297 (grub_env_write_color_normal): Ignore bad color names.
11298 (grub_env_write_color_highlight): Likewise.
11299 * normal/main.c (GRUB_MOD_INIT): Set default color names.
11300
11301 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11302
11303 "shift" command support to GRUB script.
11304
11305 * include/grub/script_sh.h (grub_script_shift): New prototype.
11306 * script/execute.c (grub_script_shift): New function.
11307 * script/main.c (grub_script_init): Register shift command.
11308 (grub_script_fini): Unregister shift command.
11309 * util/grub-script-check.c (grub_script_cmd_shift): New function.
11310
11311 * tests/grub_script_shift.in: New testcase.
11312 * conf/tests.rmk: Rules for new testcase.
11313
11314 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11315
11316 "continue" command support to GRUB script.
11317
11318 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
11319 (grub_script_break): Continue support.
11320 * script/main.c (grub_script_init): Register continue command.
11321 (grub_script_fini): Unregister continue command.
11322
11323 * tests/grub_script_continue.in: New testcase.
11324 * conf/tests.rmk: Rules for new testcase.
11325
11326 2010-08-12 BVK Chaitanya <bvk@dbook>
11327
11328 "break" command support to GRUB script.
11329
11330 * conf/common.rmk: Rule updates to grub-script-check.
11331 * include/grub/misc.h (grub_min): New function.
11332 * include/grub/script_sh.h (grub_script_init): New prototype.
11333 (grub_script_fini): New prototype.
11334 (grub_script_break): New prototype.
11335 * script/main.c (grub_script_init): New function.
11336 (grub_script_fini): New function.
11337 * script/execute.c (grub_script_break): New function.
11338 * normal/main.c: Calls to grub_script_{init,fini}.
11339 * util/grub-script-check.c (grub_script_break): New function.
11340
11341 * tests/grub_script_break.in: New testcase.
11342 * conf/tests.rmk: Rules for new test case.
11343
11344 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11345
11346 Function parameters support to GRUB script.
11347
11348 * script/yylex.l (VARIABLE): Regular expression update.
11349 * script/function.c (grub_script_function_call): Moved ...
11350 * script/execute.c (grub_script_function_call): ... to here.
11351 (grub_script_execute_arglist_to_argv): Removed.
11352 (grub_script_arglist_to_argv): New function.
11353 * script/argv.c: New file.
11354 (grub_script_argv_free): New function.
11355 (grub_script_argv_next): Likewise.
11356 (grub_script_argv_append): Likewise.
11357 (grub_script_argv_split_append): Likewise.
11358 * include/grub/script_sh.h (grub_script_argv): New struct.
11359 (grub_script_argv_free): New function.
11360 (grub_script_argv_next): Likewise.
11361 (grub_script_argv_append): Likewise.
11362 (grub_script_argv_split_append): Likewise.
11363
11364 * conf/common.rmk (normal.mod): New source script/argv.c.
11365
11366 * tests/grub_script_echo1.in: More tests.
11367 * tests/grub_script_vars1.in: Likewise.
11368 * tests/grub_script_functions.in: New test case.
11369 * conf/tests.rmk: Rules for new testcase.
11370
11371 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11372
11373 Remove grub_script_cmdblock struct.
11374
11375 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11376 * script/parser.y: Likewise.
11377 * script/execute.c: Rename cmdblock suffix to cmdlist.
11378 * script/script.c: Likewise.
11379 * util/grub-script-check.c: Likewise.
11380
11381 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11382
11383 * .bzrignore: add grub-macho2img
11384
11385 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11388
11389 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 Remove the dump of sm712 initialisation sequence.
11392
11393 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11394 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11395 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11396 (GRUB_VGA_CR_*): Added many registers.
11397 (GRUB_VGA_SR_*): Likewise.
11398 (GRUB_VGA_GR_*): Likewise.
11399 (grub_vga_write_arx): New function.
11400 (grub_video_hw_config): New struct.
11401 (grub_vga_set_geometry): New function.
11402 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11403 GRUB_PCI_CLASS_SUBCLASS_VGA.
11404 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11405 * video/sm712.c (grub_sm712_write_reg): New function
11406 (grub_sm712_read_reg): Likewise.
11407 (grub_sm712_sr_write): Likewise.
11408 (grub_sm712_gr_write): Likewise.
11409 (grub_sm712_cr_write): Likewise.
11410 (grub_sm712_write_arx): Likewise.
11411 (grub_sm712_cr_shadow_write): Likewise.
11412 (grub_sm712_write_dda_lookup): Likewise.
11413 (grub_video_sm712_setup): Initialise the video rather then
11414 blindly replay the dump.
11415 (main) [TEST]: Add a routine to be able to compile as standalone for
11416 tests.
11417 * video/sm712_init.c (sm712_init): Removed.
11418 (sm712_sr_seq1): New array.
11419 (sm712_sr_seq2): Likewise.
11420
11421 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * include/grub/vga.h: Add missing grub/pci.h include.
11424
11425 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11426
11427 * util/grub-macho2img.c (main): fix typo
11428
11429 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11432 (grub_vga_gr_read): Likewise.
11433 (grub_vga_cr_write): Likewise.
11434 (grub_vga_cr_read): Likewise.
11435 (grub_vga_sr_write): Likewise.
11436 (grub_vga_sr_read): Likewise.
11437 (grub_vga_palette_read): Likewise.
11438 (grub_vga_palette_write): Likewise.
11439 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11440 (grub_sm712_sr_read): New function.
11441 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11442 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11443
11444 2010-08-09 Robert Millan <rmh@gnu.org>
11445
11446 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11447 out unused variables on non-ZFS build.
11448
11449 2010-08-08 Robert Millan <rmh@gnu.org>
11450
11451 Fix path generation for sub-filesystems in ZFS.
11452
11453 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11454 missing slash.
11455
11456 2010-08-08 Robert Millan <rmh@gnu.org>
11457
11458 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11459
11460 2010-08-08 Robert Millan <rmh@gnu.org>
11461
11462 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11463 exist, issue a proper error message (rely on `ls' for translated
11464 strings).
11465
11466 2010-08-08 Robert Millan <rmh@gnu.org>
11467
11468 Fix grub-probe invocation.
11469
11470 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11471
11472 2010-08-04 Robert Millan <rmh@gnu.org>
11473
11474 * configure.ac: Remove checks for getfsstat() and getmntany().
11475 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11476 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11477 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11478 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11479 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11480 function.
11481 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11482 via find_mount_point_from_dir() and getfsstat() / getmntany().
11483
11484 2010-08-04 Robert Millan <rmh@gnu.org>
11485
11486 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11487 (grub_find_zpool_from_mount_point): Merge into ...
11488 (grub_find_zpool_from_dir): ... this.
11489 * kern/emu/misc.c: Likewise.
11490
11491 * kern/emu/misc.c
11492 (grub_make_system_path_relative_to_its_root): Replace
11493 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11494 with grub_find_zpool_from_dir().
11495 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11496
11497 2010-08-04 Robert Millan <rmh@gnu.org>
11498
11499 Support OpenSolaris in ZFS device resolution.
11500
11501 * configure.ac: Check for getmntany().
11502 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11503 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11504 support.
11505
11506 2010-08-03 Robert Millan <rmh@gnu.org>
11507
11508 Fix grub-emu build.
11509
11510 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11511 * include/grub/emu/misc.h: ... here.
11512
11513 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11514 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11515
11516 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11517 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11518 (grub_get_libzfs_handle): Move to ...
11519 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11520 (grub_get_libzfs_handle): ... here.
11521
11522 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11523
11524 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11525 as command name case.
11526
11527 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11528
11529 * disk/raid.c (insert_array): Select unique numbers for named arrays
11530 as well, for use as keys in the disk cache.
11531
11532 2010-08-01 Robert Millan <rmh@gnu.org>
11533
11534 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11535 kFreeBSD device name, except on ZFS where the filesystem label is
11536 used.
11537 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11538 `/boot/zfs/zpool.cache'.
11539 Set mountfrom kernel variable using ${kfreebsd_device}.
11540
11541 2010-08-01 Robert Millan <rmh@gnu.org>
11542
11543 Make it even harder to use uninitialized `libzfs_handle' (and
11544 make the interface a bit simpler).
11545
11546 * include/grub/util/misc.h (grub_util_init_libzfs)
11547 (libzfs_handle): Remove.
11548 (grub_get_libzfs_handle): New prototype.
11549
11550 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11551 attribute.
11552 (grub_util_init_libzfs): Remove.
11553 (grub_get_libzfs_handle): New function.
11554
11555 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11556 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11557 accessing `libzfs_handle' directly.
11558
11559 2010-08-01 Robert Millan <rmh@gnu.org>
11560
11561 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11562 (grub_find_zpool_from_mount_point): New function prototypes.
11563
11564 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11565 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11566
11567 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11568 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11569 `static' attribute.
11570
11571 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11572 finding zpool from mount point into ...
11573 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11574
11575 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11576 requested path is part of a ZFS pool, use
11577 grub_find_zpool_from_mount_point() to detect its filesystem name,
11578 and generate a path with `/fsname@path' syntax.
11579
11580 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11581
11582 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11583 (void) rather than () so that this is a proper prototype.
11584
11585 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11588
11589 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11592 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11593
11594 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11595
11596 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11597
11598 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11599
11600 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11601
11602 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11603
11604 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11605 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11606 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11607 disable gfxpayload.
11608 (Shell-like scripting): Add real content.
11609 (Serial terminal): Suggest `terminal_input serial; terminal_output
11610 serial' rather than putting the two commands on separate lines,
11611 since console input will be inoperative after the first command.
11612 (menuentry): Document --class, --users, and --hotkey options.
11613 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11614 Vladimir Serbinenko).
11615
11616 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11617 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11618
11619 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11620
11621 2010-08-01 Robert Millan <rmh@gnu.org>
11622
11623 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11624 (grub_find_zpool_from_mount_point): New function prototypes.
11625
11626 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11627 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11628
11629 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11630 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11631 `static' attribute.
11632
11633 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11634 finding zpool from mount point into ...
11635 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11636
11637 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11638 requested path is part of a ZFS pool, use
11639 grub_find_zpool_from_mount_point() to detect its filesystem name,
11640 and generate a path with `/fsname@path' syntax.
11641
11642 2010-08-01 Robert Millan <rmh@gnu.org>
11643
11644 Prevent accidental use of uninitialized libzfs_handle.
11645
11646 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
11647 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
11648 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
11649
11650 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11651
11652 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
11653 util/grub.d/10_linux.in). Fixes Debian bug #591093.
11654
11655 2010-08-01 Robert Millan <rmh@gnu.org>
11656
11657 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11658
11659 2010-07-31 Robert Millan <rmh@gnu.org>
11660
11661 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11662
11663 2010-07-31 Robert Millan <rmh@gnu.org>
11664
11665 * kern/emu/misc.c: Add missing license header.
11666
11667 2010-07-31 Robert Millan <rmh@gnu.org>
11668
11669 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11670
11671 * include/grub/util/libnvpair.h: Include `<config.h>'.
11672 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
11673 declaring libnvpair prototypes ourselves.
11674 * include/grub/util/libzfs.h: Include `<config.h>'.
11675 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
11676 declaring libzfs prototypes ourselves.
11677
11678 (libzfs_handle): Moved to ...
11679 * include/grub/util/misc.h (libzfs_handle): ... here.
11680 Include `<grub/util/libzfs.h>'.
11681
11682 2010-07-30 Robert Millan <rmh@gnu.org>
11683
11684 * include/grub/emu/misc.h: Add missing license header.
11685
11686 2010-07-30 Robert Millan <rmh@gnu.org>
11687
11688 Enable `grub-probe -t device' resolution on ZFS.
11689
11690 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
11691 * include/grub/util/libnvpair.h: New file.
11692 * include/grub/util/libzfs.h: New file.
11693
11694 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
11695 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
11696 `<grub/util/libnvpair.h>'.
11697 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
11698
11699 (find_mount_point_from_dir): New static function.
11700 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11701 function.
11702 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11703 find_root_device_from_libzfs() before ressorting to find_root_device().
11704
11705 * include/grub/util/misc.h (grub_util_init_libzfs): New function
11706 prototype.
11707 * util/misc.c: Include `<grub/util/libzfs.h>'.
11708 (grub_util_init_libzfs): New function.
11709 [HAVE_LIBZFS] (libzfs_handle): New global variable.
11710 [HAVE_LIBZFS] (fini_libzfs): New static function.
11711 (grub_util_init_libzfs): New function.
11712 * util/grub-probe.c (main): Call grub_util_init_libzfs().
11713
11714 2010-07-30 Robert Millan <rmh@gnu.org>
11715
11716 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
11717 (xmalloc, xrealloc, xstrdup, xasprintf): Add
11718 `warn_unused_result' attribute.
11719 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
11720 (grub_xasprintf, grub_xvasprintf): Likewise.
11721 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
11722
11723 2010-07-29 Robert Millan <rmh@gnu.org>
11724
11725 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
11726 (probe): Handle `PRINT_FS_LABEL'.
11727 (main): Handle `-t fs_label'.
11728
11729 2010-07-29 Robert Millan <rmh@gnu.org>
11730
11731 * configure.ac: Remove grub-mkisofs checks.
11732
11733 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * util/ieee1275/grub-install.in: Don't use empty grub_device.
11736 Reported by: Lennart Sorensen.
11737
11738 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
11741 prior to terminal_input/terminal_output separation. It's been over 1.5
11742 years and those versions weren't widely deployed.
11743
11744 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
11745
11746 * disk/raid.c (insert_array): Don't count named arrays when looking
11747 for unused array numbers.
11748 Reported and tested by: Michael Guntsche.
11749
11750 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11751
11752 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
11753 implementation of this so that grub-emu links again, with a note
11754 that this should support hotplugging in the future.
11755
11756 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11757
11758 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11759
11760 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11761
11762 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
11763 handle on failure.
11764 (grub_loopback_close): Remove empty function.
11765 (grub_loopback_dev): Remove close method.
11766
11767 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11768
11769 Disable EFI cursor when the EFI console becomes inactive.
11770
11771 * term/efi/console.c (grub_efi_console_init): New function.
11772 (grub_efi_console_fini): New function.
11773 (grub_console_term_output): Register init and fini methods.
11774
11775 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 * tests/util/grub-shell-tester.in: Remove bashism and declare as
11778 sh script.
11779
11780 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * disk/loopback.c (grub_loopback): Replace filename with file.
11783 (delete_loopback): Handle new semantics.
11784 (grub_cmd_loopback): Likewise.
11785 (grub_loopback_iterate): Likewise.
11786 (grub_loopback_close): Likewise.
11787
11788 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
11791 with -p "".
11792 Reported by: Tito Keitel.
11793
11794 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 * docs/grub.texi (Naming convention): Document new naming convention.
11797
11798 2010-07-20 Vadim Solomin <vadic052@gmail.com>
11799 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11800
11801 Generate device.map in something closer to the old ordering.
11802
11803 * util/deviceiter.c (struct device): New declaration.
11804 (compare_file_names): Rename to ...
11805 (compare_devices): ... this. Sort by kernel name in preference to
11806 the stable by-id name, but keep the latter as a fallback comparison.
11807 Update header comment.
11808 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
11809 of `struct device' rather than of plain file names.
11810
11811 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
11812
11813 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
11814 on i386.
11815
11816 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * commands/acpi.c (setup_common_tables): Use sizeof instead of
11819 hardcoding size.
11820 (setv1table): Likewise.
11821
11822 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11823
11824 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
11825 removing the homehost if present.
11826 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
11827 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
11828 removing the homehost if present.
11829 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
11830 if possible.
11831 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
11832
11833 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
11834 parameter. Set its pointer target to 0.
11835 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
11836 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
11837 `data_offset' value from the superblock for 1.x metadata.
11838 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
11839 data on the device.
11840 (insert_array): Record the start sector of data on the device.
11841 (grub_raid_register): Pass start_sector parameters to
11842 grub_raid_list->detect and insert_array.
11843 * include/grub/raid.h (struct grub_raid_array): Add start_sector
11844 member.
11845 (struct grub_raid): Add start_sector parameter to `detect'.
11846
11847 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
11848 __attribute__ ((packed)), leaving a comment.
11849 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
11850 (grub_mdraid_detect_09): ... here and ...
11851 (grub_mdraid_detect_1x): ... here.
11852
11853 2010-07-20 Peter Henn <peter.henn@web.de>
11854
11855 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
11856 chunk size and disk size, which are already given as sector counts
11857 as distinct from the 0.90 units. Fetch the correct device number
11858 from the role table instead of using the table index.
11859
11860 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
11861
11862 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
11863 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
11864 (WriteMostly1): New macro.
11865 Set array->name to NULL for metadata format 0.90. Add support for
11866 metadata 1.x. Fix some comments.
11867 * disk/raid.c (): Add support for name based RAID arrays. Fix a
11868 few comments.
11869 * util/getroot.c (grub_util_get_grub_dev): Add support for
11870 /dev/md/name style devices.
11871
11872 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11873
11874 * .bzrignore: Ignore 20_linux_xen.
11875
11876 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
11877
11878 * util/import_unicode.py: Remove unnecessary imports.
11879
11880 2010-07-17 Aleš Nesrsta <starous@volny.cz>
11881
11882 Hotplugging and USB hub support.
11883
11884 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
11885 (grub_ohci): Likewise.
11886 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
11887 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
11888 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
11889 (GRUB_OHCI_CTRL_EDS): Likewise.
11890 (GRUB_OHCI_BULK_EDS): Likewise.
11891 (GRUB_OHCI_TDS): Likewise.
11892 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
11893 (grub_ohci_ed_phys2virt): New function.
11894 (grub_ohci_virt_to_phys): Likewise.
11895 (grub_ohci_td_phys2virt): Likewise.
11896 (grub_ohci_td_virt2phys): Likewise.
11897 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
11898 attachment.
11899 (grub_ohci_find_ed): New function.
11900 (grub_ohci_alloc_td): Likewise.
11901 (grub_ohci_free_td): Likewise.
11902 (grub_ohci_free_tds): Likewise.
11903 (grub_ohci_transfer): Use previously allocated memory.
11904 (grub_ohci_portstatus): Reset status changed bit.
11905 (grub_ohci_detect_dev): Supply status changed.
11906 (grub_ohci_fini_hw): Free memory.
11907 (grub_ohci_restore_hw): Reallocate memory.
11908 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
11909 Reset status change.
11910 (grub_uhci_detect_dev): Supply status_change.
11911 * bus/usb/usb.c (attach_hooks): New var.
11912 (grub_usb_device_attach): New function.
11913 (grub_usb_register_attach_hook_class): Likewise.
11914 (grub_usb_unregister_attach_hook_class): Likewise.
11915 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
11916 (grub_usb_add_hub): Reset connection changed bit.
11917 (attach_root_port): New function.
11918 (grub_usb_root_hub): Likewise.
11919 (poll_nonroot_hub): Likewise.
11920 (grub_usb_poll_devices): Likewise.
11921 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
11922 * disk/usbms.c (grub_usbms_open): Use device hooks.
11923 (grub_usbms_iterate) :Poll devices.
11924 (grub_usbms_finddevs): Split into ...
11925 (grub_usbms_attach): ... this ...
11926 (grub_usbms_attach): ... and this.
11927 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
11928 in detect_dev.
11929 (grub_usb_interface): New fields attached and detach_hook.
11930 (grub_usb_attach_hook_class): New type.
11931 (grub_usb_attach_desc): New struct.
11932 (grub_usb_register_attach_hook_class): New function.
11933 (grub_usb_unregister_attach_hook_class): Likewise.
11934 (grub_usb_poll_devices): Likewise.
11935 (grub_usb_device_attach): Likewise.
11936 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
11937 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
11938
11939 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
11942 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
11943 delta determination style. Works with most NetBSD partitions too.
11944
11945 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11948 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11949
11950 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11951
11952 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11953
11954 2010-07-14 Anton Blanchard <anton@samba.org>
11955
11956 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
11957 ET_DYN files.
11958
11959 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11960
11961 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
11962
11963 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11964
11965 * kern/partition.c (grub_partition_check_containment): New function to
11966 check that a partition is physically contained in a parent. Since
11967 offsets are relative (and non-negative), this reduces to checking that
11968 the partition ends before its parent.
11969 (grub_partition_map_probe): Discard out-of-range sub-partitions.
11970 (grub_partition_iterate): Likewise.
11971 * include/grub/partition.h (grub_partition_map): Slightly more detailed
11972 comments.
11973 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
11974 partitions that start before their parent, and add debug printfs.
11975
11976 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11977
11978 * Makefile.in (.SUFFIX): Spell correctly, as ...
11979 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
11980 bare module name without `.mod', e.g. `test') tried to invoke a
11981 Modula-2 compiler.
11982
11983 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11984
11985 * README: Point to the Info manual.
11986
11987 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
11988
11989 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
11990 2nd superblock position from partition size.
11991
11992 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
11993
11994 * Makefile.in (MAINTAINER_CLEANFILES): Remove
11995 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
11996 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
11997 outputs.
11998
11999 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 Restructure SCSI .id handling.
12002 Reported and tested by: Aleš Nesrsta.
12003
12004 * disk/ata.c (grub_atapi_close): Removed. All users updated.
12005 (grub_atapi_dev): Changed .name to "ata". New field .id.
12006 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
12007 (grub_usbms_dev): New field .id.
12008 * disk/scsi.c (grub_scsi_iterate): Generate name.
12009 (grub_scsi_open): Parse name.
12010 * include/grub/scsi.h (grub_make_scsi_id): New function.
12011 (grub_scsi_dev): Change iterate and open to number instead of naming
12012 busses. All users updated.
12013 (grub_scsi): Remove name. Add .bus.
12014
12015 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * commands/help.c (grub_cmd_help): Fix a typo.
12018
12019 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
12022 Reported and tested by: Colin Watson.
12023
12024 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
12027 in this context.
12028
12029 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
12032
12033 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
12034
12035 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
12036 indentation.
12037
12038 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12039
12040 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
12041 and disk/raid6_recover.c.
12042 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12043 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12044
12045 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12046
12047 * term/gfxterm.c (repaint_schedulded): Rename to ...
12048 (repaint_scheduled): ... this. Update all callers.
12049 (repaint_was_schedulded): Rename to ...
12050 (repaint_was_scheduled): ... this. Update all callers.
12051
12052 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12053
12054 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
12055 which we expect to be handled by upper layers.
12056
12057 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
12058
12059 * bus/usb/usbhub.c: #include time.h header.
12060
12061 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12062
12063 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
12064 entry_name also for entries without stat blocks (e.g. ".."); fixes
12065 corruption of the first entry in a directory.
12066
12067 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12068
12069 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
12070 after setting gfxterm as the active terminal. GRUB_BACKGROUND
12071 doesn't work otherwise.
12072
12073 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12074
12075 * docs/grub.texi (Features): Update list of supported file systems.
12076 (GNU/Linux): Update for GRUB 2.
12077 (Serial terminal): Remove mention of --disable-serial, which was a
12078 GRUB Legacy configure option. Update instructions to use
12079 `terminal_input' and `terminal_output' rather than `terminal'.
12080 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
12081 configuration' and `Installing GRUB using grub-install'.
12082 (Menu entry editor): Update for GRUB 2.
12083 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
12084 Document new -a, -u, and -v options.
12085 (initrd): New section.
12086 (initrd16): New section.
12087 (linux): New section.
12088 (linux16): New section.
12089 (search): The `var' argument to `--set' is optional.
12090 (GRUB only offers a rescue shell): Go into a little more detail on
12091 drive ordering.
12092
12093 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12094
12095 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
12096
12097 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12098
12099 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
12100 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
12101
12102 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12103
12104 * util/i386/pc/grub-setup.c (setup): Rename prefix to
12105 install_prefix, in line with install_dos_part and install_bsd_part.
12106 Add new prefix variable, which is copied to install_prefix after
12107 comparing core.img in memory with the one read from disk in the
12108 no-embedding case, and use that rather than overwriting
12109 install_prefix immediately when installing to a partition.
12110 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
12111 Bicakci.
12112
12113 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12114
12115 * configure.ac: Avoid == in test command, it's not portable.
12116 * util/grub.d/30_os-prober.in: Likewise.
12117
12118 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
12119
12120 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
12121
12122 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12123
12124 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
12125 multiple (top-level) partmaps.
12126
12127 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * util/i386/efi/grub-install.in: Don't use empty grub_device.
12130 Reported by: Tino Keitel.
12131
12132 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 Bidi and diacritics support.
12135
12136 * Makefile.in (widthspec.bin): New target.
12137 (widthspec.h): Likewise.
12138 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
12139 * autogen.sh: Generate unidata.c.
12140 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
12141 * commands/ls.c (grub_ls_list_devices): Likewise.
12142 (grub_ls_list_files): Likewise.
12143 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
12144 (grub_mini_cmd_lsmod): Likewise.
12145 * commands/read.c: Likewise.
12146 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
12147 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
12148 * lib/arg.c (grub_arg_show_help): Likewise.
12149 * lib/crypto.c (grub_password_get): Likewise.
12150 * normal/auth.c (grub_username_get): Likewise.
12151 * normal/misc.c (grub_normal_print_device_info): Likewise.
12152 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
12153 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
12154 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
12155 (normal/charset.c_DEPENDENCIES): New variable.
12156 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
12157 (pkglib_MODULES): Remove charset.mod.
12158 (charset_mod_SOURCES): Removed.
12159 (charset_mod_CFLAGS): Likewise.
12160 (charset_mod_LDFLAGS): Likewise.
12161 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
12162 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
12163 and term/tparm.c.
12164 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12165 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12166 (kernel_img_HEADERS): Add terminfo.h.
12167 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
12168 Fill ->font. Reverse ascii bitmaps.
12169 (grub_font_get_xheight): New function.
12170 * font/font.c (grub_font_get_string_width): Moved from here ...
12171 * gfxmenu/font.c (grub_font_get_string_width): ... here.
12172 * font/font.c (grub_font_draw_string): Moved from here ...
12173 * gfxmenu/font.c (grub_font_draw_string): ... here.
12174 * font/font.c (grub_font_dup_glyph): New function.
12175 (grub_font_blit_glyph): Likewise.
12176 (grub_font_blit_glyph_mirror): Likewise.
12177 (blit_comb): Likewise.
12178 (grub_font_construct_dry_run): Likewise.
12179 (grub_font_get_constructed_device_width): Likewise.
12180 (grub_font_construct_glyph): Likewise.
12181 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
12182 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
12183 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
12184 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
12185 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
12186 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
12187 (grub_font_get_xheight): New proto.
12188 (grub_font_get_constructed_device_width): Likewise.
12189 (grub_font_construct_glyph): Likewise.
12190 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
12191 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
12192 * include/grub/font.h (grub_font_draw_string): Moved from here ...
12193 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
12194 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
12195 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
12196 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
12197 (grub_console_getcharwidth): Likewise.
12198 * include/grub/misc.h (grub_xputs): New proto.
12199 (grub_puts): Inlined.
12200 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
12201 (grub_normal_get_line_counter): Removed.
12202 (grub_install_newline_hook): Likewise.
12203 (grub_normal_get_char_counter): New proto.
12204 (grub_normal_reset_more): Likewise.
12205 (grub_xputs_normal): Likewise.
12206 * include/grub/powerpc/ieee1275/console.h: Removed.
12207 * include/grub/sparc64/ieee1275/console.h: Likewise.
12208 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
12209 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
12210 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
12211 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
12212 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
12213 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
12214 (grub_term_input): Pass reference to self. All users updated.
12215 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
12216 Pass reference to self. New fields normal_color, highlight_color and
12217 data. All users updated.
12218 (grub_putchar): Removed.
12219 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
12220 (grub_unicode_estimate_width): New function.
12221 (grub_term_getcharwidth): Add defaults.
12222 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
12223 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
12224 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
12225 (grub_cls): Remove EXPORT_FUNC.
12226 (grub_setcolorstate): Inline.
12227 (grub_newline_hook): Removed.
12228 * include/grub/terminfo.h: Rewritten. All users updated.
12229 * include/grub/unicode.h: New file.
12230 * include/grub/video.h (grub_video_signed_rect): New type.
12231 * kern/emu/console.c (grub_console_highlight_color): Removed.
12232 (grub_console_normal_color): Likewise.
12233 (grub_console_standard_color): Made static.
12234 (grub_ncurses_putchar): Remove mapping.
12235 (grub_ncurses_getcharwidth): Removed.
12236 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12237 (grub_ncurses_setcolor): Removed.
12238 (grub_ncurses_getcolor): Likewise.
12239 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
12240 (grub_console_putchar): ... this.
12241 (grub_console_putchar): Handle argument difference.
12242 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
12243 console_init_early and console_init_lately.
12244 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
12245 * kern/misc.c (grub_puts): Removed.
12246 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
12247 (grub_vsnprintf_real): Remove str = NULL support.
12248 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
12249 * normal/charset.c (grub_utf8_to_ucs4): ... here.
12250 * kern/term.c (grub_putcode): Renamed to ...
12251 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
12252 (grub_putchar): Removed.
12253 (grub_xputs_dumb): New function.
12254 (grub_xputs): New variable.
12255 * lib/charset.c: Move from here ...
12256 * normal/charset.c: ... to here.
12257 (grub_ucs4_to_utf8): New function.
12258 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
12259 (join_types): New variable.
12260 (unpack_join): New function.
12261 (bidi_types): New variable.
12262 (unpack_bidi): New function.
12263 (get_bidi_type): Likewise.
12264 (get_join_type): Likewise.
12265 (is_mirrored): Likewise.
12266 (grub_unicode_get_comb_type): Likewise.
12267 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
12268 (is_type_after): Likewise.
12269 (grub_unicode_aglomerate_comb): Likewise.
12270 (bidi_line_wrap): Likewise.
12271 (grub_bidi_line_logical_to_visual): Likewise.
12272 (grub_bidi_logical_to_visual): Likewise.
12273 (grub_unicode_mirror_code): Likewise.
12274 (grub_unicode_shape_code): Likewise.
12275 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
12276 Don't use grub_putchar.
12277 * normal/main.c (grub_normal_init_page): Use grub_putcode.
12278 (grub_normal_reader_init): Likewise.
12279 (grub_xputs_saved): New variable.
12280 (GRUB_MOD_INIT): Set grub_xputs.
12281 (GRUB_MOD_FINI): Restore grub_xputs.
12282 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
12283 (menu_init): Avoid printing gfxmenu error.
12284 (show_menu): Use grub_normal_get_char_counter.
12285 * normal/menu_entry.c (update_screen): Fix out-of-array.
12286 (complete): Avoid NULL dereferencing.
12287 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
12288 * normal/menu_text.c (print_spaces): Removed.
12289 (grub_print_ucs4): Likewise.
12290 (grub_print_message_indented): Use grub_print_ucs4.
12291 (print_message): Use grub_putcode.
12292 (print_entry): Hanlde diacritics.
12293 * normal/term.c (term_state): New type.
12294 (grub_more_lines): Removed.
12295 (term_states): New variable.
12296 (grub_normal_line_counter): Renamed to ..
12297 (grub_normal_char_counter): ...this. All users updated.
12298 (grub_normal_get_line_counter): Renamed to ...
12299 (grub_normal_get_char_counter): ... this.
12300 (grub_normal_reset_more): New function.
12301 (process_newline): Removed.
12302 (print_more): New function.
12303 (grub_install_newline_hook): Removed.
12304 (map_code): New function.
12305 (grub_puts_terminal): Use grub_print_ucs4.
12306 (putglyph): New function.
12307 (putcode_real): Likewise.
12308 (grub_putcode): Use putcode_real.
12309 (get_maxwidth): New function.
12310 (get_startwidth): Likewise.
12311 (print_ucs4_terminal): Likewise.
12312 (find_term_state): Likewise.
12313 (put_glyphs_terminal): Likewise.
12314 (print_backlog): Likewise.
12315 (print_ucs4_real): Likewise.
12316 (grub_print_ucs4): Likewise.
12317 (grub_xputs_normal): Likewise.
12318 * term/efi/console.c (grub_console_putchar): Output diacritics.
12319 (grub_console_getcharwidth): Removed.
12320 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12321 * term/gfxterm.c (clear_char): Free chars.
12322 (scroll_up): Avoid leaking memory.
12323 (grub_gfxterm_putchar): Support diacritics.
12324 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12325 * term/i386/pc/console.c (grub_console_term_output): Declare as
12326 GRUB_TERM_CODE_TYPE_VGA.
12327 * term/i386/pc/vga.c (grub_vga_term): Declare as
12328 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12329 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12330 GRUB_TERM_CODE_TYPE_VGA.
12331 * term/i386/vga_common.c (map_char): Removed.
12332 (grub_console_putchar): Likewise.
12333 (grub_console_getcharwidth): Likewise.
12334 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12335 (colors): Reordered to match terminfo.
12336 (grub_ofconsole_normal_color): Removed.
12337 (grub_ofconsole_writeesc): Likewise.
12338 (grub_ofconsole_highlight_color): Likewise.
12339 (grub_ofconsole_getcharwidth): Likewise.
12340 (grub_ofconsole_setcolorstate): Likewise.
12341 (grub_ofconsole_setcolor): Likewise.
12342 (grub_ofconsole_getcolor): Likewise.
12343 (grub_ofconsole_readkey): Renamed to ...
12344 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12345 key.
12346 (grub_ofconsole_checkkey): Removed.
12347 (grub_ofconsole_getkey): Likewise.
12348 (grub_ofconsole_getxy): Likewise.
12349 (grub_ofconsole_gotoxy): Likewise.
12350 (grub_ofconsole_cls): Likewise.
12351 (grub_ofconsole_refresh): Likewise.
12352 (grub_ofconsole_terminfo_input): New struct.
12353 (grub_ofconsole_terminfo_output): Likewise.
12354 (grub_ofconsole_term_input): Use terminfo.
12355 (grub_ofconsole_term_output): Likewise.
12356 (grub_console_init): Split into ...
12357 (grub_console_init_early): ...this and ...
12358 (grub_console_init_lately): ...this. Use terminfo.
12359 (grub_ofconsole_putchar): Renamed to ...
12360 (put): ... this. Remove mapping.
12361 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12362 * term/serial.c: Simplify using terminfo.
12363 (xpos): Removed.
12364 (ypos): Likewise.
12365 (keep_track): Likewise.
12366 (registered): Likewise.
12367 (input_buf): Likewise.
12368 (npending): Likewise.
12369 (serial_translate_key_sequence): Likewise.
12370 (fill_input_buf): Likewise.
12371 (grub_serial_checkkey): Likewise.
12372 (grub_serial_getkey): Likewise.
12373 (grub_serial_getxy): Likewise.
12374 (grub_serial_gotoxy): Likewise.
12375 (grub_serial_putchar): Likewise.
12376 (grub_serial_cls): Likewise.
12377 (grub_serial_setcolorstate): Likewise.
12378 (grub_serial_setcursor): Likewise.
12379 (serial_hw_init): Use serial_hw_fetch.
12380 (grub_serial_terminfo_input): New variable.
12381 (grub_serial_terminfo_output): Likewise.
12382 (grub_serial_term_input): Use terminfo.
12383 (grub_serial_term_output): Likewise.
12384 * term/terminfo.c (putstr): Use put.
12385 (grub_terminfo_all_free): New function
12386 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12387 (grub_terminfo_output_register): New function.
12388 (grub_terminfo_output_unregister): Likewise.
12389 (grub_terminfo_getxy): Likewise.
12390 (grub_terminfo_readkey): Likewise.
12391 (grub_terminfo_checkkey): Likewise.
12392 (grub_terminfo_getkey): Likewise.
12393 (grub_terminfo_input_init): Likewise.
12394 (print_terminfo): Likewise.
12395 (grub_cmd_terminfo): Handle encoding.
12396 (grub_terminfo_gotoxy): Track position.
12397 (grub_terminfo_cls): Likewise.
12398 (grub_terminfo_putchar): Likewise.
12399 (grub_terminfo_setcolorstate): Handle colors
12400 (grub_terminfo_cursor_on): This ...
12401 (grub_terminfo_cursor_off): ... and this merged into ...
12402 (grub_terminfo_setcursor): ... this.
12403 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12404 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12405 * unicode/BidiMirroring.txt: Likewise.
12406 * unicode/UnicodeData.txt: Likewise.
12407 * unicode/COPYING: Likewise.
12408 * util/grub-editenv.c (grub_putchar): Removed.
12409 (grub_xputs_real): New function.
12410 (grub_xputs): New variable.
12411 * util/grub-fstest.c (grub_putchar): Removed.
12412 (grub_xputs_real): New function.
12413 (grub_xputs): New variable.
12414 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12415 (grub_xputs_real): New function.
12416 (grub_xputs): New variable.
12417 * util/grub-probe.c (grub_putchar): Removed.
12418 (grub_xputs_real): New function.
12419 (grub_xputs): New variable.
12420 * util/grub-script-check.c (grub_putchar): Removed.
12421 (grub_xputs_real): New function.
12422 (grub_xputs): New variable.
12423 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12424 (grub_xputs_real): New function.
12425 (grub_xputs): New variable.
12426 * util/import_unicode.py: New file.
12427 * util/grub-mkfont.c (ft_errmsgs): New array.
12428 (grub_glyph_info): Make bitmap a pointer.
12429 (file_formats): New type WIDTH_SPEC.
12430 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12431 (options): Add width-spec.
12432 (help): Likewise.
12433 (add_char): Renamed to ...
12434 (add_glyph): ... this.
12435 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12436 (glyph_replace): New type.
12437 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12438 (add_char): New function.
12439 (add_subst): Likewise.
12440 (process_cursive): Likewise.
12441 (add_font): Handle GSUB.
12442 (write_font_width_spec): New function.
12443 (main): Sort glyphs.
12444 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12445 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12446 * kern/term.c (grub_cls): Moved from here...
12447 * normal/term.c (grub_cls): ... here.
12448
12449 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12450
12451 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12452 suitable for using within the format argument of printf when
12453 converting grub_size_t.
12454 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12455 "x" to convert grub_size_t arguments.
12456
12457 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12460 too long captions.
12461 (list_get_minimal_size): Take selection box into account.
12462
12463 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12466 NULL font.
12467
12468 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12469
12470 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12471 devices when iterating over /dev/disk/by-id; they will be handled
12472 later if appropriate, which they aren't always (e.g. LVM).
12473
12474 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12475
12476 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12477 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12478 fails.
12479 (grub_halt): Likewise.
12480 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12481 reset-all fails.
12482 (grub_halt): Don't return, even if all of shut-down, power-off, and
12483 poweroff fail.
12484
12485 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12486
12487 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12488 arguments, not three.
12489
12490 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12491
12492 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12493 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12494 LVM-on-RAID is handled correctly.
12495
12496 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12497
12498 * docs/grub.texi (Changes from GRUB Legacy): New section.
12499 (Future): Fix typo.
12500
12501 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12502
12503 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12504 grub.d/README accidentally ends up executable for one reason or
12505 another. Ignore it.
12506
12507 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12508
12509 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12510 (gpt_partition_map_iterate): Support non-512B sectors.
12511
12512 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12513
12514 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12515 Tested by: Seth Goldberg.
12516
12517 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12518
12519 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12520 Properly align mbi.
12521 Reported by: Seth Goldberg.
12522
12523 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 * util/grub-mkrescue.in: Avoid module duplication.
12526
12527 2010-07-01 Sean Finney <seanius@seanius.net>
12528
12529 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12530
12531 2010-07-01 Sean Finney <seanius@seanius.net>
12532
12533 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12534
12535 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12536
12537 * disk/lvm.c (grub_lvm_checkvalue): New function.
12538 (grub_lvm_check_flag): Likewise.
12539
12540 2010-07-01 Robert Millan <rmh@gnu.org>
12541
12542 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12543 Support 'p' as partition separator on kernel of FreeBSD (used
12544 with GPT labels).
12545 (grub_util_biosdisk_get_grub_dev): Likewise.
12546
12547 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12548
12549 Yeeloong firmware port.
12550
12551 * boot/mips/yeeloong/fwstart.S: New file.
12552 * bus/cs5536.c (gpiodump): New const.
12553 (set_io_space): New function.
12554 (set_iod): Likewise.
12555 (set_p2d): Likewise.
12556 (grub_cs5536_init_geode): Likewise.
12557 * commands/mips/yeeloong/lsspd.c: New file.
12558 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12559 (serial_mod_SOURCES): New variable.
12560 (serial_mod_CFLAGS): Likewise.
12561 (serial_mod_LDFLAGS): Likewise.
12562 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12563 term/terminfo.c and term/tparm.c.
12564 (pkglib_IMAGES): Add fwstart.img.
12565 (fwstart_img_SOURCES): New variable.
12566 (fwstart_img_CFLAGS): Likewise.
12567 (fwstart_img_ASFLAGS): Likewise.
12568 (fwstart_img_LDFLAGS): Likewise.
12569 (fwstart_img_FORMAT): Likewise.
12570 (pkglib_MODULES): Add lsspd.mod.
12571 (lsspd_mod_SOURCES): New variable.
12572 (lsspd_mod_CFLAGS): Likewise.
12573 (lsspd_mod_LDFLAGS): Likewise.
12574 (pkglib_MODULES): Add halt.mod.
12575 (halt_mod_SOURCES): New variable.
12576 (halt_mod_CFLAGS): Likewise.
12577 (halt_mod_LDFLAGS): Likewise.
12578 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12579 (serial_mod_SOURCES): Removed.
12580 (serial_mod_CFLAGS): Likewise.
12581 (serial_mod_LDFLAGS): Likewise.
12582 * disk/ata.c (check_device): New function.
12583 (grub_ata_device_initialize): Use check_device.
12584 (grub_ata_iterate): Recheck devices.
12585 (grub_ata_open): Likewise.
12586 (grub_atapi_iterate): Likewise.
12587 (grub_atapi_open): Likewise.
12588 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12589 (GRUB_ATA_CH1_PORT1): Likewise.
12590 (GRUB_ATA_CH0_PORT2): Likewise.
12591 (GRUB_ATA_CH1_PORT2): Likewise.
12592 * include/grub/mips/loongson.h: New file.
12593 * include/grub/mips/yeeloong/ec.h: Likewise.
12594 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12595 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12596 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12597 * include/grub/misc.h (grub_halt): Declare as noreturn.
12598 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12599 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12600 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12601 (UART_ENABLE_DTRRTS): Likewise.
12602 (UART_ENABLE_MODEM): Removed.
12603 (UART_ENABLE_OUT2): New const.
12604 * include/grub/term.h (grub_term_register_input_active): New function.
12605 (grub_term_register_output_active): Likewise.
12606 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12607 argument.
12608 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12609 (init_pci): New function.
12610 (grub_machine_init): Execute platform init when firmware. Init serial.
12611 (grub_halt): Implement.
12612 (grub_exit): Likewise.
12613 (grub_reboot): Likewise.
12614 * term/serial.c (serial_hw_init): Update macros.
12615 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12616 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12617 (image_targets): New target mipsel-yeeloong-flash.
12618 (generate_image): Support IMAGE_YEELOONG_FLASH.
12619 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12620 (grub_video_sm712_setup): Init card.
12621 (grub_video_sm712_set_palette): Removed.
12622 * video/sm712_init.c: New file.
12623
12624 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12625
12626 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12627 PATH when running help2man and then run it on the unadorned
12628 executable names, rather than passing $(builddir)/* paths to
12629 help2man. This avoids the build directory ending up in generated
12630 manual pages.
12631
12632 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12633
12634 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12635 to avoid accidents when debugging with 'sh -x'.
12636 * util/grub-mkrescue.in: Likewise.
12637 * util/grub.d/00_header.in: Likewise.
12638 * util/grub.d/10_hurd.in: Likewise.
12639 * util/grub.d/10_kfreebsd.in: Likewise.
12640 * util/grub.d/10_linux.in: Likewise.
12641 * util/grub.d/10_netbsd.in: Likewise.
12642 * util/grub.d/10_windows.in: Likewise.
12643 * util/grub.d/20_linux_xen.in: Likewise.
12644 * util/grub.d/30_os-prober.in: Likewise.
12645 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12646
12647 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12648
12649 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
12650 last character in the buffer.
12651 Reported by: Vladimir Serbinenko.
12652
12653 2010-06-29 Robert Millan <rmh@gnu.org>
12654
12655 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12656 (Command-line and menu entry commands): Document `badram' command.
12657
12658 2010-06-28 Robert Millan <rmh@gnu.org>
12659
12660 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
12661 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
12662 command using ${GRUB_BADRAM} as parameter.
12663
12664 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12665
12666 * docs/grub.texi (Device map): New section.
12667 (Themes): New section (stub).
12668 * Makefile.in (docs/grub.info): The info documentation now builds
12669 without errors. Make sure it stays that way.
12670
12671 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12672
12673 Use normal parser for menu entries.
12674 Reported by: Thomas Frauendorfer
12675
12676 * include/grub/parser.h (grub_parser_execute): Don't export.
12677 * normal/menu.c (grub_menu_execute_entry_real): New function.
12678 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
12679
12680 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12681
12682 * docs/grub.texi (Embedded configuration): New section (replacing
12683 old "Preset Menu" stub).
12684 (Images): New section.
12685 (configfile): Note that any menu entries defined in `file' are shown
12686 immediately.
12687
12688 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12689
12690 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12691
12692 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12693
12694 * util/grub-install.in: Add --debug-image= option.
12695
12696 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12697
12698 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12699 possible on Linux.
12700
12701 * util/deviceiter.c (check_device): Rename to ...
12702 (check_device_readable_unique): ... this. Update all callers.
12703 Maintain and check a list of which devices (by canonicalized name)
12704 have already been seen.
12705 (clear_seen_devices): New function.
12706 (compare_file_names) [__linux__]: New function.
12707 (grub_util_iterate_devices): Clear the list of seen devices on exit
12708 and (just in case) on entry.
12709 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
12710 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
12711 seen-devices list, superseded by general code in check_device.
12712
12713 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12714
12715 * commands/cat.c (options): New variable.
12716 (grub_cmd_cat): Parse options. If the --dos option is given, print
12717 DOS-style "\r\n" line endings as simple newlines (Debian bug
12718 #586358).
12719 (GRUB_MOD_INIT): Use extcmd.
12720 (GRUB_MOD_FINI): Likewise.
12721 * docs/grub.texi (cat): Document --dos.
12722
12723 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 XEN with Linux grub-mkconfig support.
12726
12727 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
12728 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
12729 GRUB_CMDLINE_XEN_DEFAULT.
12730 * util/grub.d/20_linux_xen.in: New file.
12731
12732 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 Initialise VGA video on qemu ourselves.
12735
12736 * boot/i386/qemu/boot.S: Don't call 0xc000.
12737 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
12738 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
12739 (kernel_img_HEADERS): Add pci.h.
12740 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
12741 * configure.ac: Force unifont on qemu and yeeloong.
12742 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
12743 (grub_vga_palette_write): Use correct register.
12744 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
12745 Call grub_qemu_init_cirrus.
12746 * kern/i386/qemu/init.c: New file.
12747 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
12748
12749 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
12750
12751 2010-06-26 Pavel Roskin <proski@gnu.org>
12752
12753 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
12754 13.
12755
12756 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12757
12758 * docs/grub.texi (Simple configuration): Explain that
12759 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
12760 set to `true' to disable their respective recovery entries, not
12761 merely set.
12762
12763 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12764
12765 Make the `source' command slightly faster.
12766
12767 * normal/main.c (grub_normal_execute): Don't re-read list files when
12768 nested.
12769
12770 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12771
12772 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
12773 field position and mask size to red fields from mode_info, not
12774 green.
12775 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
12776 Remove redundant tag->common.framebuffer_type assignment.
12777 Reported by: Seth Goldberg.
12778
12779 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12780
12781 Sync up other versions of the Linux loader with Robert Millan's
12782 change of 2010-01-09, "Make loader output a bit more user-friendly".
12783
12784 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
12785 grub_dprintf().
12786 (grub_cmd_linux): Likewise.
12787 (grub_cmd_initrd): Likewise.
12788 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
12789 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12790
12791 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
12792
12793 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
12794 larger than MEMORY_MAP_SIZE.
12795
12796 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
12797
12798 Fix parallel build.
12799
12800 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
12801 dependency.
12802 * script/parser.y: #include grub_script.tab.h header.
12803
12804 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 Support >3GiB and <16MiB RAM in i386-qemu.
12807
12808 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
12809 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
12810 (grub_lower_mem): Removed.
12811 (grub_upper_mem): Likewise.
12812 (mem_size): Made static.
12813 (above_4g): New variable.
12814 (grub_machine_mmap_init): Detect small mem_size and above_4g.
12815 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
12816 support.
12817
12818 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 Cirrus 5446 and Bochs video cards support.
12821
12822 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
12823 video_bochs.mod
12824 (video_cirrus_mod_SOURCES): New variable.
12825 (video_cirrus_mod_CFLAGS): Likewise.
12826 (video_cirrus_mod_LDFLAGS): Likewise.
12827 (video_bochs_mod_SOURCES): Likewise.
12828 (video_bochs_mod_CFLAGS): Likewise.
12829 (video_bochs_mod_LDFLAGS): Likewise.
12830 * include/grub/vga.h: New file.
12831 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
12832 (grub_video_fb_set_page_t): New type.
12833 (grub_video_fb_setup): New prototype.
12834 (grub_video_fb_swap_buffers): Likewise.
12835 (grub_video_fb_get_info_and_fini): Likewise.
12836 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
12837 (CRTC_DATA_PORT): Likewise.
12838 (CRTC_CURSOR): Likewise.
12839 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12840 (CRTC_CURSOR_ADDR_LOW): Likewise.
12841 (CRTC_CURSOR_DISABLE): Likewise.
12842 (update_cursor): Use grub_vga_cr_write.
12843 (grub_vga_text_setcursor): Likewise.
12844 * video/bochs.c: New file.
12845 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
12846 (palette): Likewise.
12847 (palette_size): Likewise.
12848 (framebuffer): New variable.
12849 (grub_video_fb_init): Use 'framebuffer'.
12850 (grub_video_fb_fini): Likewise.
12851 (grub_video_fb_get_info): Likewise.
12852 (grub_video_fb_get_palette): Likewise.
12853 (grub_video_fb_set_palette): Likewise.
12854 (grub_video_fb_set_viewport): Likewise.
12855 (grub_video_fb_get_viewport): Likewise.
12856 (grub_video_fb_map_color): Likewise.
12857 (grub_video_fb_map_rgb): Likewise.
12858 (grub_video_fb_map_rgba): Likewise.
12859 (grub_video_fb_unmap_color): Likewise.
12860 (grub_video_fb_unmap_color_int): Likewise.
12861 (grub_video_fb_fill_rect): Likewise.
12862 (grub_video_fb_blit_bitmap): Likewise.
12863 (grub_video_fb_blit_render_target): Likewise.
12864 (grub_video_fb_scroll): Likewise.
12865 (grub_video_fb_create_render_target): Likewise.
12866 (grub_video_fb_doublebuf_blit_init): Likewise.
12867 (grub_video_fb_set_active_render_target): Handle doublebuffering.
12868 (doublebuf_pageflipping_update_screen): New function.
12869 (doublebuf_pageflipping_init): Likewise.
12870 (grub_video_fb_setup): Likewise.
12871 (grub_video_fb_swap_buffers): Likewise.
12872 (grub_video_fb_get_info_and_fini): Likewise.
12873 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
12874 All users updated.
12875 (doublebuf_pageflipping_commit): Restructured into ...
12876 (doublebuf_pageflipping_set_page): ... this.
12877 (doublebuf_pageflipping_update_screen): Removed.
12878 (doublebuf_pageflipping_init): Likewise.
12879 (double_buffering_init): Likewise.
12880 (grub_video_vbe_setup): Use grub_video_fb_setup.
12881 (grub_video_vbe_swap_buffers): Removed.
12882 (grub_video_vbe_set_active_render_target): Likewise.
12883 (grub_video_vbe_get_active_render_target): Likewise.
12884 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
12885 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
12886 grub_video_fb_set_active_render_target and
12887 grub_video_fb_get_active_render_target.
12888 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
12889 (SEQUENCER_DATA_PORT): Likewise.
12890 (MAP_MASK_REGISTER): Likewise.
12891 (CRTC_ADDR_PORT): Likewise.
12892 (CRTC_DATA_PORT): Likewise.
12893 (START_ADDR_HIGH_REGISTER): Likewise.
12894 (START_ADDR_LOW_REGISTER): Likewise.
12895 (GRAPHICS_ADDR_PORT): Likewise.
12896 (GRAPHICS_DATA_PORT): Likewise.
12897 (READ_MAP_REGISTER): Likewise.
12898 (INPUT_STATUS1_REGISTER): Likewise.
12899 (INPUT_STATUS1_VERTR_BIT): Likewise.
12900 (get_map_mask): Use grub_vga_sr_read.
12901 (set_map_mask): Use grub_vga_sr_write.
12902 (set_read_map): Use grub_vga_gr_write.
12903 (set_start_address): Use grub_vga_cr_write.
12904 * video/sm712.c (framebuffer): Remove leftover fields.
12905
12906 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
12907
12908 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
12909 setting GRUB_VIDEO_BACKEND. Make it available as a user override
12910 instead. Replace the gfxterm backend check with a check that
12911 ${GRUB_PREFIX}/video.lst is non-empty.
12912 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
12913 again.
12914 (load_video): New generated function. Call it before loading
12915 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
12916 * util/grub.d/10_linux.in (linux_entry): Call load_video.
12917 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
12918 * docs/grub.texi (Simple configuration): Document
12919 GRUB_VIDEO_BACKEND.
12920
12921 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 Use video functions in linux and xnu loaders.
12924
12925 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
12926 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
12927 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
12928 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
12929 loader/i386/pc/linux.c.
12930 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
12931 (find_line_len): Removed.
12932 (find_framebuf): Likewise.
12933 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
12934 * loader/i386/efi/xnu.c: Removed.
12935 * loader/i386/pc/xnu.c: Moved from here...
12936 * loader/i386/xnu.c: ...here.
12937
12938 Enable priorities in video drivers.
12939
12940 * include/grub/video.h (grub_video_adapter_prio_t): New type.
12941 (grub_video_adapter): New field prio.
12942 (grub_video_register): Respect prio when inserting.
12943 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
12944 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
12945 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
12946 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
12947 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
12948 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
12949 * video/sm712.c (grub_video_sm712_adapter): Likewise.
12950
12951 Fix SDL driver ID.
12952
12953 * include/grub/video.h (grub_video_driver_id_t): New value
12954 GRUB_VIDEO_DRIVER_SDL.
12955 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
12956
12957 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12958
12959 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
12960 argument to printf.
12961 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12962
12963 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12964
12965 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
12966 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12967
12968 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12969
12970 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
12971 directly, and recommend grub-install instead.
12972 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12973
12974 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12975
12976 Fix i386-pc prefix handling with nested partitions (Debian bug
12977 #585068). Note that the case where the core image is booted using
12978 multiboot and relocated from its original location still requires
12979 more work.
12980
12981 * kern/i386/pc/init.c (make_install_device): If the prefix starts
12982 with "(,", fill the boot drive in between those two characters, but
12983 expect that a full partition specification including partition map
12984 names will follow.
12985 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
12986 specified, write a prefix without the drive name but including a
12987 full partition specification.
12988
12989 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
12990
12991 * util/grub-mkconfig.in: Ignore non-option arguments, for
12992 compatibility with older versions (before 2010-06-12) which did the
12993 same. In particular, this makes it easier to ship an update-grub
12994 wrapper which is compatible with that used with GRUB Legacy (Debian
12995 bug #586056).
12996
12997 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12998
12999 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
13000 for manual page generation.
13001
13002 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13003
13004 * po/POTFILES: Remove leftover commands/handler.c.
13005
13006 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13007
13008 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
13009 left this script non-functional.
13010
13011 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13012
13013 * docs/man/grub-emu.h2m: New file.
13014
13015 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
13016
13017 * docs/grub.texi (Commands): Document reduced command set in rescue
13018 mode.
13019 (cpuid): New section.
13020
13021 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
13022
13023 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
13024 new partition naming style.
13025 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
13026
13027 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
13028
13029 Add "-o grub.iso" like cmdline options support.
13030
13031 * util/grub-install.in: Improve cmdline option parsing.
13032 * util/grub-mkconfig.in: Likewise.
13033 * util/grub-mkrescue.in: Likewise.
13034 * util/grub-reboot.in: Likewise.
13035 * util/grub-set-default.in: Likewise.
13036 * util/i386/efi/grub-install.in: Likewise.
13037 * util/ieee1275/grub-install.in: Likewise.
13038 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13039
13040 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13041
13042 * .bzrignore: Ignore 41_custom.
13043
13044 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13045
13046 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
13047
13048 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13049
13050 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
13051 prototype declarations.
13052
13053 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
13054 generating fs, partmap, and video lists.
13055 * include/grub/fs.h (grub_fs_register): Omit prototype if
13056 GRUB_LST_GENERATOR is defined.
13057 * include/grub/partition.h (grub_partition_map_register): Likewise.
13058 * include/grub/video.h (grub_video_register): Likewise.
13059
13060 2010-06-12 Javier Martín <lordhabbit@gmail.com>
13061
13062 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
13063
13064 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13065
13066 * util/grub-mkrescue.in: Support --xorriso argument.
13067
13068 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
13071 Suggested by: Thomas Schmitt.
13072
13073 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13074
13075 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13076 Suggested by: Thomas Schmitt.
13077
13078 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 custom.cfg support.
13081
13082 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
13083 * util/grub.d/41_custom.in: New file.
13084
13085 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13086
13087 * util/grub-mkrescue.in (make_image): Remove sh module, which has
13088 been merged back into normal.
13089
13090 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13091
13092 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
13093 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
13094
13095 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13096
13097 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
13098 when generating manual pages.
13099 * docs/man/grub-bin2h.h2m: New file.
13100 * docs/man/grub-editenv.h2m: New file.
13101 * docs/man/grub-fstest.h2m: New file.
13102 * docs/man/grub-install.h2m: New file.
13103 * docs/man/grub-macho2img.h2m: New file.
13104 * docs/man/grub-mkconfig.h2m: New file.
13105 * docs/man/grub-mkdevicemap.h2m: New file.
13106 * docs/man/grub-mkfont.h2m: New file.
13107 * docs/man/grub-mkimage.h2m: New file.
13108 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
13109 * docs/man/grub-mkrelpath.h2m: New file.
13110 * docs/man/grub-mkrescue.h2m: New file.
13111 * docs/man/grub-ofpathname.h2m: New file.
13112 * docs/man/grub-pe2elf.h2m: New file.
13113 * docs/man/grub-probe.h2m: New file.
13114 * docs/man/grub-reboot.h2m: New file.
13115 * docs/man/grub-script-check.h2m: New file.
13116 * docs/man/grub-set-default.h2m: New file.
13117 * docs/man/grub-setup.h2m: New file.
13118
13119 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 Use FOR_* macros instead of *_iterate whenever possible.
13122
13123 * commands/handler.c: Removed.
13124 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
13125 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
13126 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13127 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
13128 (grub_probe_SOURCES): Remove kern/parser.c.
13129 (util/grub-script-check.c_DEPENDENCIES): Removed.
13130 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
13131 and grub_script_check_init.c.
13132 (grub_script_check_init.lst): Removed.
13133 (grub_script_check_init.h): Likewise.
13134 (grub_script_check_init.c): Likewise.
13135 (pkglib_MODULES): Remove handler.mod and sh.mod.
13136 (handler_mod_SOURCES): Removed.
13137 (handler_mod_CFLAGS): Likewise.
13138 (handler_mod_LDFLAGS): Likewise.
13139 (normal_mod_SOURCES): Remove normal/handler.c.
13140 Add script/main.c, script/script.c, script/execute.c,
13141 script/function.c, script/lexer.c, grub_script.tab.c
13142 and grub_script.yy.c.
13143 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13144 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13145 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
13146 (grub_setup_SOURCES): Remove kern/parser.c.
13147 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13148 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
13149 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13150 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13151 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13152 (grub_setup_SOURCES): Remove kern/parser.c.
13153 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13154 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
13155 * include/grub/command.h (grub_command_iterate): Removed.
13156 (FOR_COMMANDS): New macro.
13157 * include/grub/dl.h (grub_dl): New member next.
13158 (grub_dl_iterate): Removed.
13159 (grub_dl_head): New variable declaration.
13160 (FOR_DL_MODULES): New macro.
13161 * include/grub/fs.h: Include list.h.
13162 (grub_fs): Make next first element.
13163 (grub_fs_list): New variable declaration.
13164 (grub_fs_register): Make inline.
13165 (grub_fs_unregister): Likewise.
13166 (grub_fs_iterate): Removed.
13167 (FOR_FILESYSTEMS): New macro.
13168 * include/grub/handler.h: Removed.
13169 * include/grub/list.h (grub_list_hook_t): Removed.
13170 (grub_list_test_t): Likewise.
13171 (grub_list_pop): Likewise.
13172 (grub_list_iterate): Likewise.
13173 (grub_list_insert): Likewise.
13174 (FOR_LIST_ELEMENTS): New macro.
13175 * include/grub/parser.h (grub_parser_class): Removed.
13176 (grub_parser_register): Likewise.
13177 (grub_parser_unregister): Likewise.
13178 (grub_parser_get_current): Likewise.
13179 (grub_parser_set_current): Likewise.
13180 (grub_register_rescue_parser): Likewise.
13181 (grub_rescue_parse_line): New function.
13182 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
13183 * include/grub/script_sh.h (grub_script_function_list): New variable
13184 declaration.
13185 (FOR_SCRIPT_FUNCTIONS): New macro.
13186 (grub_script_function_iterate): Removed.
13187 (grub_normal_parse_line): New prototype.
13188 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
13189 (FOR_DISABLED_TERM_INPUTS): Likewise.
13190 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13191 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13192 * include/grub/video.h (grub_video_adapter): Move 'next' to first
13193 element.
13194 (grub_video_register): Inline.
13195 (grub_video_unregister): Likewise.
13196 (grub_video_adapter_list): New variable declaration.
13197 (grub_video_iterate): Removed.
13198 (FOR_VIDEO_ADAPTERS): New macro.
13199 * kern/dl.c (grub_dl_list): Removed. All users updated.
13200 (grub_dl_iterate): Removed.
13201 * kern/fs.c (grub_fs_list): Make global.
13202 (grub_fs_register): Removed.
13203 (grub_fs_unregister): Likewise.
13204 (grub_fs_iterate): Likewise.
13205 * kern/handler.c: Removed.
13206 * kern/list.c (grub_list_pop): Removed.
13207 (grub_list_iterate): Likewise.
13208 (grub_list_insert): Likewise.
13209 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
13210 (grub_prio_list_insert): Don't use grub_list_insert.
13211 * kern/main.c (grub_register_rescue_parser): Don't call
13212 grub_register_rescue_parser.
13213 * kern/parser.c (grub_parser_class): Removed.
13214 (grub_parser_execute): Use grub_rescue_parse_line.
13215 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
13216 (grub_rescue_parser): Removed.
13217 (grub_register_rescue_parser): Likewise.
13218 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
13219 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
13220 (grub_auth_check_authentication): Likewise.
13221 * normal/completion.c (iterate_command): Removed.
13222 (grub_normal_do_completion): Use FOR_COMMANDS.
13223 * normal/handler.c: Removed.
13224 * normal/main.c (read_config_file): Remove parser changing.
13225 (grub_normal_execute): Don't call read_handler_list.
13226 (grub_normal_read_line_real): Statically allocate prompt.
13227 (grub_cmdline_run): Use grub_normal_parse_line.
13228 (GRUB_MOD_FINI): Don't call free_handler_list.
13229 * normal/menu_entry.c (run): Likewise.
13230 * script/function.c (grub_script_function_list): Make global.
13231 (grub_script_function_iterate): Removed.
13232 * script/main.c (grub_normal_parse_line): Make global.
13233 (grub_sh_parser): Removed.
13234 (GRUB_MOD_INIT): Likewise.
13235 (GRUB_MOD_FINI): Likewise.
13236 * tests/lib/functional_test.c (grub_functional_test): Use
13237 FOR_LIST_ELEMENTS.
13238 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
13239 (grub_test_run): Use FOR_LIST_ELEMENTS.
13240 * tests/lib/unit_test.c (main): Likewise.
13241 * util/deviceiter.c (grub_util_iterate_devices): Don't use
13242 grub_list_pop.
13243 * util/grub-fstest.c (grub_term_input_class): Removed.
13244 (grub_term_output_class): Likewise.
13245 * util/grub-probe.c: Likewise.
13246 * util/i386/pc/grub-setup.c: Likewise.
13247 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13248 * util/grub-script-check.c (main): Don't call grub_init_all and
13249 grub_fini_all.
13250 * video/video.c (grub_video_adapter_list): Make global.
13251 (grub_video_register): Removed.
13252 (grub_video_unregister): Likewise.
13253 (grub_video_iterate): Likewise.
13254
13255 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
13256
13257 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
13258 reported by Henrique Ferreiro.
13259
13260 2010-06-09 Robert Millan <rmh@gnu.org>
13261
13262 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
13263 ones, when both are available.
13264
13265 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13266
13267 Make --version uniform and avoid hard-coded program name.
13268
13269 * util/grub-mkimage.c (main): Use `program_name' instead of
13270 hard-coded string.
13271 * util/i386/pc/grub-setup.c (main): Likewise.
13272 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
13273 * util/grub-install.in: Save the basename of $0 in $self, and use the
13274 latter in informational messages. Use the same format for --version
13275 as the binary programs.
13276 * util/grub-mkconfig.in: Likewise.
13277 * util/grub-mkrescue.in: Likewise.
13278 * util/grub-reboot.in: Likewise.
13279 * util/grub-set-default.in: Likewise.
13280 * util/i386/efi/grub-install.in: Likewise.
13281 * util/ieee1275/grub-install.in: Likewise.
13282 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13283
13284 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13285
13286 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
13287 embedding area. Use <= instead of == when checking for non-emptiness.
13288
13289 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13290
13291 * configure.ac: Add `.' to the directories searched for unifont.
13292
13293 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13294
13295 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
13296 grub_script.yy.h.
13297
13298 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13299
13300 * docs/grub.texi (History): Expand to cover GRUB 2.
13301 (Serial terminal): Refer to `terminal_input' and `terminal_output'
13302 commands, not `terminal'.
13303 (serial): Likewise.
13304 (terminal_input): New section.
13305 (terminal_output): New section.
13306 (uppermem): New section (stub).
13307 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
13308
13309 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13310
13311 * docs/grub.texi (Security): Menu entries are unrestricted by
13312 default, not restricted to superusers as I had previously thought.
13313 Reword to account for this.
13314
13315 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13316
13317 * kern/emu/misc.c (device_mapper_null_log): New function.
13318 (grub_device_mapper_supported): New function.
13319 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13320 prototype.
13321 * kern/emu/hostdisk.c (find_partition_start): Check whether
13322 device-mapper is supported before trying to use it.
13323 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13324
13325 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13326
13327 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13328 (File name syntax): Likewise.
13329 (help): --all is no longer supported in GRUB 2. Be more precise
13330 about pattern matching.
13331
13332 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13333
13334 * normal/completion.c (grub_normal_do_completion): When completing
13335 arguments to "set" and the current word contains an equals sign,
13336 skip to after the equals sign before starting completion.
13337
13338 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13339
13340 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13341
13342 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13343
13344 * docs/grub.texi (Network): New section.
13345 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13346 `(nd)' as in GRUB Legacy.
13347 (pxe_unload): New section.
13348
13349 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13350
13351 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13352 in the rescue shell, so recommend using `set' instead. Thanks,
13353 Jordan Uggla.
13354
13355 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13356
13357 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13358 (password): New section.
13359 (password_pbkdf2): New section.
13360 (search): New section.
13361 (Security): New section.
13362 (Troubleshooting): New section, currently very incomplete.
13363 (Invoking grub-mkpasswd-pbkdf2): New section.
13364 (Internals): New section, currently very incomplete.
13365
13366 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13367
13368 * util/grub.d/00_header.in: Add some more quoting (of
13369 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13370 work again.
13371 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13372
13373 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13374
13375 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13376 to `count', fixing variable shadowing that broke the -c option.
13377
13378 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13379
13380 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13381 in case they contain spaces.
13382
13383 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13384
13385 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13386 "part_" to partmap module names, in line with grub-install.
13387 Reported by: Jindřich Makovička (Debian bug #584426).
13388
13389 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13390
13391 * util/grub-mkimage.c: Make target-related error messages slightly
13392 more helpful; -O talks about "format". Explicitly point to the use
13393 of -O if no target is specified.
13394 Reported by: Didier Raboud (Debian bug #584415).
13395
13396 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13397
13398 * INSTALL: Document several build requirements for optional features
13399 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13400
13401 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13402
13403 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13404 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13405 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13406
13407 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13408
13409 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13410 Thanks to Jordan Uggla for spotting this.
13411
13412 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13413
13414 Finally make USB usable.
13415
13416 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13417 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13418 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13419 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13420 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13421 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13422 (GRUB_OHCI_FSMPS): Likewise.
13423 (GRUB_OHCI_PERIODIC_START): Likewise.
13424 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13425 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13426 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13427 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13428 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13429 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13430 (grub_ohci_transaction): Likewise.
13431 (grub_ohci_transfer): Improve condition detection algorithms.
13432 Handle toggle property. Program the transactions correctly.
13433 Improve error handling. Various important fixups.
13434 (grub_ohci_portstatus): Put register writes in right order.
13435 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13436 (grub_uhci_transfer): Don't show "failed" message on success.
13437 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13438 array.
13439 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13440 determine its size.
13441 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13442 before initialization is completed. Use IN direction for empty
13443 transfers. Use last_trans and compute toggle.
13444 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13445 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13446 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13447 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13448 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13449 (grub_usb_device): Increase toggle to 256.
13450 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13451 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13452 GRUB_USBMS_SUBCLASS_SFF8070.
13453 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13454 (grub_scsi_inquiry): New member page and alloc_length.
13455 (grub_scsi_request_sense): New structure.
13456 (grub_scsi_request_sense_data): Likewise.
13457 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13458 control.
13459 * disk/scsi.c (grub_scsi_request_sense): New function.
13460 (grub_scsi_test_unit_ready): Likewise.
13461 (grub_scsi_inquiry): Fill new fields.
13462 (grub_scsi_read_capacity): Likewise.
13463 (grub_scsi_read10): Add request sense at the end.
13464 (grub_scsi_read12): Likewise.
13465 (grub_scsi_write10): Likewise.
13466 (grub_scsi_write12): Likewise.
13467 (grub_scsi_open): Add Test Unit Ready.
13468 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13469 Support additional subclasses. Con't clear halt yet. Activate the
13470 proper config. Calculate LUNs correctly.
13471 (grub_usbms_transfer): Various important fixups.
13472
13473 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13476 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13477 (grub_ohci_fini_hw): New function.
13478 (grub_ohci_restore_hw): Likewise.
13479 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13480 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13481 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13482
13483 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13484
13485 Dedicated DMA allocations.
13486
13487 * bus/pci.c (grub_memalign_dma32): New function
13488 (grub_dma_free): Likewise.
13489 (grub_dma_get_virt): Likewise.
13490 (grub_dma_get_phys): Likewise.
13491 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13492 (grub_ohci_pci_iter): Use dma32_alloc.
13493 (grub_ohci_transfer): Likewise.
13494 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13495 (grub_usb_bulk_readwrite): Likewise.
13496 * include/grub/pci.h: Add declarations.
13497
13498 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 CS5536 support.
13501
13502 * bus/cs5536.c: New file.
13503 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13504 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13505 (cs5536_mod_SOURCES): New variable.
13506 (cs5536_mod_CFLAGS): Likewise.
13507 (cs5536_mod_LDFLAGS): Likewise.
13508 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13509 machine/pci.h.
13510 (kernel_img_SOURCES): Add bus/cs5536.c.
13511 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13512 usb_keyboard.mod.
13513 (usb_mod_SOURCES): New variable.
13514 (usb_mod_CFLAGS): New variable.
13515 (usb_mod_LDFLAGS): New variable.
13516 (usbtest_mod_SOURCES): New variable.
13517 (usbtest_mod_CFLAGS): New variable.
13518 (usbtest_mod_LDFLAGS): New variable.
13519 (ohci_mod_SOURCES): New variable.
13520 (ohci_mod_CFLAGS): New variable.
13521 (ohci_mod_LDFLAGS): New variable.
13522 (usbms_mod_SOURCES): New variable.
13523 (usbms_mod_CFLAGS): New variable.
13524 (usbms_mod_LDFLAGS): New variable.
13525 (usb_keyboard_mod_SOURCES): New variable.
13526 (usb_keyboard_mod_CFLAGS): New variable.
13527 (usb_keyboard_mod_LDFLAGS): New variable.
13528 * include/grub/smbus.h: New file.
13529 * include/grub/cs5536.h: New file.
13530
13531 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13532
13533 * util/grub.d/00_header.in: Add safety check to make sure that
13534 ${locale_dir} exists before trying to probe it.
13535
13536 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13537
13538 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13539 per the GNU Coding Standards; this is now too obscure to be worth
13540 documenting.
13541 (QNX): Likewise.
13542 (chainloader): Remove cross-reference to `SCO UnixWare'.
13543
13544 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13545
13546 * docs/grub.texi (Chain-loading): New section.
13547 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13548 adjusted for GRUB 2.
13549 (SCO UnixWare): Likewise.
13550 (QNX): Likewise.
13551 (chainloader): Add reference to `Block list syntax'.
13552 (drivemap): New section.
13553 (parttool): New section.
13554
13555 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13556
13557 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13558 the grub shell'.
13559 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13560 (Installing GRUB using grub-install): Remove reference to the grub
13561 shell; mention `grub-mkimage' and `grub-setup' instead.
13562 (Invoking grub-install): Likewise.
13563 (Interface): Add reference to `Menu entry editor'.
13564 (serial): Remove `--device' option.
13565
13566 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13567
13568 * docs/grub.texi (Configuration): New section, documenting
13569 configuration file generation using grub-mkconfig. I've left a slot
13570 for documenting the full shell scripting format but have not yet
13571 started on writing that up.
13572 (Invoking grub-mkconfig): New section.
13573
13574 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13575
13576 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13577 (GNU GRUB manual): Likewise.
13578 (General commands): Update description of `terminfo' for GRUB 2.
13579
13580 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13581
13582 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13583 (GRUB_MOD_INIT): Fix capitalisation.
13584 * docs/grub.texi (Command-line and menu entry commands): Document
13585 gettext and gptsync commands.
13586
13587 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13588
13589 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13590 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13591
13592 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13593
13594 Add btrfs probing support, currently only in the single-device case.
13595
13596 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13597 function.
13598 (grub_guess_root_device): Call find_root_device_from_mountinfo
13599 before looking in /dev.
13600
13601 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13604 GRUB_DISK_SIZE_UNKNOWN.
13605 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13606
13607 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13608
13609 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13610 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13611 corrupted or not synced properly.
13612
13613 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13616 Reported by: Seth Goldberg.
13617
13618 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13621 addition of dest.
13622 Reported by: Seth Goldberg.
13623
13624 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13625
13626 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13627 Reported by: Seth Goldberg.
13628
13629 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13632 64-bit address as signed on MIPS.
13633
13634 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13635
13636 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13637 to the empty string.
13638
13639 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13640
13641 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13642
13643 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13644 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13645 * kern/misc.c (__enable_execute_stack): Disable on
13646 GRUB_MACHINE_EMU.
13647
13648 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13649
13650 Make grub-probe work with symbolic links under /dev/mapper as well
13651 as with real block devices. The Linux world seems to be (at best)
13652 in transition here, and GRUB shouldn't get caught in the middle.
13653
13654 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13655 /dev/mapper.
13656
13657 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13658
13659 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13660 input files (in which case exit zero).
13661
13662 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13663
13664 * kern/emu/misc.c (canonicalize_file_name): realpath can still
13665 return NULL for various reasons even if it has a maximum-length
13666 buffer: for example, there might be a symlink loop, or the path
13667 might exceed PATH_MAX. If this happens, return NULL.
13668
13669 2010-05-27 Robert Millan <rmh@gnu.org>
13670
13671 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
13672 partmap module to handle cross-partmap setups.
13673 Reported by Orestes Mas. Gràcies!
13674
13675 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13676
13677 * util/grub-mkrescue.in: Initialise override_dir rather than
13678 assuming that it's unset or empty in the environment.
13679
13680 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13681
13682 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13683 variable index into p_index to suppress a warning with -Wshadow.
13684
13685 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13686
13687 * INSTALL: Added flex >= 2.5.35 requirement.
13688
13689 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13690
13691 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13692
13693 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 cmostest support.
13696
13697 * commands/i386/cmostest.c: New file.
13698 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
13699 (cmostest_mod_SOURCES): New variable.
13700 (cmostest_mod_CFLAGS): Likewise.
13701 (cmostest_mod_LDFLAGS): Likewise.
13702 * conf/i386-pc.rmk: Likewise.
13703 * docs/grub.texi (Vendor power-on keys): New section.
13704 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
13705 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
13706 and GRUB_BUTTON_CMOS_ADDRESS.
13707 * util/grub.d/00_header.in: Handle powering-on by separate button.
13708
13709 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13710
13711 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
13712 Removed drawing_scrollbar argument. All users updated
13713 Fixes #29792.
13714 Reported by Jo Shields
13715
13716 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
13719 buffer since gfxterm handles double repaint.
13720
13721 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
13724 * term/gfxterm.c (real_scroll): Likewise.
13725
13726 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
13729 before calling BIOS.
13730
13731 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * include/grub/i18n.h: Always enable grub_gettext.
13734
13735 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
13738 partition naming style.
13739
13740 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
13741
13742 * util/grub-mkconfig.in: Fix handling of -o so that it works when
13743 not the first option.
13744
13745 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13746
13747 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
13748
13749 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13750
13751 * util/misc.c: Move inclusion of <limits.h> to ...
13752 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
13753
13754 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
13755
13756 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
13757 Fix merge error in NetBSD code.
13758 (find_partition_start) [__NetBSD__]: Likewise.
13759
13760 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
13761
13762 Fix grub-mkrescue usage unit testing.
13763
13764 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
13765
13766 2010-05-18 Christian Franke <franke@computer.org>
13767
13768 * util/grub.d/10_windows.in: Use path names instead of
13769 drive letters to prevent warning from Cygwin 1.7.
13770 Add drivemap command to menuentry if needed.
13771
13772 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
13773
13774 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
13775 gnumach and gnumach.gz.
13776
13777 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13778
13779 * include/grub/i18n.h (gettext): Inline instead of using #define.
13780 (grub_gettext): Likewise.
13781 (_): Likewise.
13782
13783 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13784
13785 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
13786 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
13787 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
13788 (main): Add a slash after pkglibdirroot.
13789
13790 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13791
13792 * util/grub-install.in: Add missing "in" keyword.
13793
13794 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
13797 Reported by: Seth Goldberg.
13798
13799 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
13802
13803 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13804
13805 * configure.ac: Check for Linux device-mapper support.
13806
13807 * util/hostdisk.c (device_is_mapped): New function.
13808 (find_partition_start): New function, partly broken out from
13809 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
13810 device-mapper support added.
13811 (linux_find_partition): Use find_partition_start.
13812 (convert_system_partition_to_system_disk): Add `st' argument.
13813 Support Linux /dev/mapper/* devices if device-mapper support is
13814 available; only DM-RAID devices are understood at present.
13815 (find_system_device): Add `st' argument. Pass it to
13816 convert_system_partition_to_system_disk.
13817 (grub_util_biosdisk_get_grub_dev): Pass stat result to
13818 find_system_device and convert_system_partition_to_system_disk. Use
13819 find_partition_start.
13820
13821 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
13822 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
13823 * util/deviceiter.c [__linux__]: Define MINOR.
13824 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
13825 * util/mkdevicemap.c (grub_putchar): New function.
13826 (grub_getkey): New function.
13827 (grub_refresh): New function.
13828 (main): Set debug=all if -v -v is used.
13829
13830 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13831
13832 Fix build with non-GNU libcs.
13833
13834 * util/misc.c (canonicalize_file_name): Move to ...
13835 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
13836 grub_make_system_path_relative_to_its_root.
13837
13838 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13839
13840 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
13841 we handle finding grub-mkimage. Default to finding grub-mkimage in
13842 ${bindir} with program_transform_name applied, and provide a
13843 --grub-mkimage option to override this.
13844
13845 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 Remove grub-mkisofs.
13848
13849 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
13850 (grub_mkisofs_SOURCES): Removed.
13851 (grub_mkisofs_CFLAGS): Removed.
13852 * util/mkisofs/defaults.h: Removed.
13853 * util/mkisofs/eltorito.c: Likewise.
13854 * util/mkisofs/exclude.h: Likewise.
13855 * util/mkisofs/hash.c: Likewise.
13856 * util/mkisofs/include/: Likewise.
13857 * util/mkisofs/include/fctldefs.h: Likewise.
13858 * util/mkisofs/include/mconfig.h: Likewise.
13859 * util/mkisofs/include/prototyp.h: Likewise.
13860 * util/mkisofs/include/statdefs.h: Likewise.
13861 * util/mkisofs/iso9660.h: Likewise.
13862 * util/mkisofs/joliet.c: Likewise.
13863 * util/mkisofs/match.c: Likewise.
13864 * util/mkisofs/match.h: Likewise.
13865 * util/mkisofs/mkisofs.c: Likewise.
13866 * util/mkisofs/mkisofs.h: Likewise.
13867 * util/mkisofs/msdos_partition.h: Likewise.
13868 * util/mkisofs/multi.c: Likewise.
13869 * util/mkisofs/name.c: Likewise.
13870 * util/mkisofs/rock.c: Likewise.
13871 * util/mkisofs/tree.c: Likewise.
13872 * util/mkisofs/write.c: Likewise.
13873
13874 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13875
13876 Unify grub-mkimage accross platforms.
13877
13878 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
13879 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
13880 (grub_mkelfimage_SOURCES): Removed.
13881 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
13882 (util/grub-mkimage.c_DEPENDENCIES): .. this.
13883 (bin_UTILITIES): Add grub-mkimage.
13884 (grub_mkimage_SOURCES): New variable.
13885 (kernel_img_HEADERS): Remove machine/kernel.h.
13886 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
13887 (pkglib_PROGRAMS): Add kernel.img.
13888 (kernel_img_HEADERS): Add machine/kernel.h.
13889 (kernel_img_FORMAT): Removed.
13890 (bin_UTILITIES): Remove grub-mkimage.
13891 (grub_mkimage_SOURCES): Removed.
13892 (grub_mkimage_CFLAGS): Likewise.
13893 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13894 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
13895 (pkglib_PROGRAMS): Add kernel.img.
13896 (bin_UTILITIES): Remove grub-mkimage.
13897 (grub_mkimage_SOURCES): Removed.
13898 (grub_mkimage_CFLAGS): Likewise.
13899 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13900 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
13901 (pkglib_PROGRAMS): Add kernel.img.
13902 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
13903 (pkglib_PROGRAMS): Add kernel.img.
13904 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
13905 (grub_mkimage_SOURCES): Removed.
13906 (grub_mkimage_CFLAGS): Likewise.
13907 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13908 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
13909 (pkglib_PROGRAMS): Add kernel.img.
13910 (bin_UTILITIES): Remove grub-mkimage.
13911 (grub_mkimage_SOURCES): Removed.
13912 (grub_mkimage_CFLAGS): Likewise.
13913 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13914 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
13915 (grub_mkimage_SOURCES): Removed.
13916 (grub_mkimage_CFLAGS): Likewise.
13917 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13918 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
13919 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
13920 (grub_pe32_optional_header): ... this.
13921 (grub_pe64_optional_header): ... and this. All users updated.
13922 (GRUB_PE32_PE32_MAGIC): Split into ..
13923 (GRUB_PE32_PE32_MAGIC): .. this.
13924 (GRUB_PE32_PE64_MAGIC): .. and this.
13925 (GRUB_PE32_SIGNATURE_SIZE): New definition.
13926 * include/grub/elf.h (PT_GNU_STACK): New definition.
13927 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
13928 * include/grub/i386/efi/kernel.h: Likewise.
13929 * include/grub/i386/kernel.h: Likewise.
13930 * include/grub/i386/pc/kernel.h: Likewise.
13931 * include/grub/i386/qemu/boot.h: Likewise.
13932 * include/grub/mips/kernel.h: Likewise.
13933 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13934 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13935 * include/grub/powerpc/kernel.h: Likewise.
13936 * include/grub/sparc64/ieee1275/boot.h: Likewise.
13937 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13938 * include/grub/sparc64/kernel.h: Likewise.
13939 * include/grub/x86_64/efi/kernel.h: Likewise.
13940 * include/grub/x86_64/kernel.h: Likewise.
13941 * include/grub/offsets.h: New file.
13942 * include/grub/kernel.h (grub_module_info): Split into ...
13943 (grub_module_info32): ... this.
13944 (grub_module_info64): ... and this.
13945 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
13946 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
13947 (grub_boot_blocklist): Moved from here ...
13948 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
13949 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
13950 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
13951 * include/grub/types.h (grub_target_to_host16): Removed.
13952 (grub_target_to_host32): Likewise.
13953 (grub_target_to_host64): Likewise.
13954 (grub_host_to_target16): Likewise.
13955 (grub_host_to_target32): Likewise.
13956 (grub_host_to_target64): Likewise.
13957 (grub_host_to_target_addr): Likewise.
13958
13959 Support grub-mkrescue for efi, coreboot and qemu.
13960
13961 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
13962 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
13963 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
13964 * util/grub-mkrawimage.c: Moved from here ...
13965 * util/grub-mkimage.c: ... here. All users updated.
13966 (ALIGN_ADDR): Use image_target.
13967 (TARGET_NO_FIELD): New const.
13968 (image_target_desc): New type.
13969 (image_targets): New array.
13970 (grub_target_to_host64): Use image_target.
13971 (grub_target_to_host32): Likewise.
13972 (grub_target_to_host16): Likewise.
13973 (grub_host_to_target64): Likewise.
13974 (grub_host_to_target32): Likewise.
13975 (grub_host_to_target16): Likewise.
13976 (grub_host_to_target_addr): Likewise.
13977 (generate_image): Handle multiimage.
13978 (main): Require -O parameter. All users updated.
13979 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
13980 util/efi/grub-mkimage.c
13981 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
13982 New option --rom-directory.
13983 Use xorriso.
13984 * util/i386/efi/grub-mkimage.c: Removed.
13985 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
13986 (grub_target_to_host32): Likewise.
13987 (grub_target_to_host64): Likewise.
13988 (grub_host_to_target16): Likewise.
13989 (grub_host_to_target32): Likewise.
13990 (grub_host_to_target64): Likewise.
13991 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
13992 (grub_target_to_host32): Likewise.
13993 (grub_target_to_host64): Likewise.
13994 (grub_host_to_target16): Likewise.
13995 (grub_host_to_target32): Likewise.
13996 (grub_host_to_target64): Likewise.
13997
13998 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
13999
14000 Source tree is reorganized for emu build.
14001
14002 * include/grub/util/console.h: Move from here...
14003 * include/grub/emu/console.h: ...to here.
14004 * include/grub/util/getroot.h: Move from here...
14005 * include/grub/emu/getroot.h: ...to here.
14006 * include/grub/util/hostdisk.h: Move from here...
14007 * include/grub/emu/hostdisk.h: ...to here.
14008 * util/console.c: Move from here...
14009 * kern/emu/console.c: ...to here.
14010 * util/getroot.c: Move from here...
14011 * kern/emu/getroot.c: ...to here.
14012 * util/grub-emu.c: Move from here...
14013 * kern/emu/main.c: ...to here.
14014 * util/hostdisk.c: Move from here...
14015 * kern/emu/hostdisk.c: ...to here.
14016 * util/hostfs.c: Move from here...
14017 * kern/emu/hostfs.c: ...to here.
14018 * util/mm.c: Move from here...
14019 * kern/emu/mm.c: ...to here.
14020 * util/pci.c: Move from here...
14021 * bus/emu/pci.c: ...to here.
14022 * util/sdl.c: Move from here...
14023 * video/emu/sdl.c: ...to here.
14024 * util/time.c: Move from here...
14025 * kern/emu/time.c: ...to here.
14026 * util/usb.c: Move from here...
14027 * bus/usb/emu/usb.c: ...to here.
14028
14029 * include/grub/emu/misc.h: New header for grub-emu functions.
14030 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
14031
14032 * conf/any-emu.rmk: Rule updates for above renames.
14033 * conf/common.rmk: Likewise.
14034 * conf/i386-pc.rmk: Likewise.
14035 * conf/i386-qemu.rmk: Likewise.
14036 * conf/mips.rmk: Likewise.
14037 * conf/sparc64-ieee1275.rmk: Likewise.
14038 * conf/x86-efi.rmk: Likewise.
14039
14040 * disk/lvm.h: #include updates for above renames.
14041 * util/grub-mkrelpath.c: Likewise.
14042 * util/grub-probe.c: Likewise.
14043 * util/i386/pc/grub-setup.c: Likewise.
14044 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14045 * kern/emu/console.c: Likewise.
14046 * kern/emu/getroot.c: Likewise.
14047 * kern/emu/hostdisk.c: Likewise.
14048 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
14049
14050 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
14051 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
14052 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
14053 * util/misc.c: Remove grub-emu functions.
14054
14055 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 Fix gfxmenu crash.
14058 Reported by: Thorsten Grützmacher.
14059
14060 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
14061 timeout hook.
14062 (circprog_set_property): Register and unregister timeout hook.
14063 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
14064 (label_destroy): Free template. and unregister hook.
14065 (label_set_state): New function.
14066 (label_set_property): Handle templates and hooks.
14067 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
14068 timeout hook.
14069 (progress_bar_set_property): Register and unregister timeout hook.
14070 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
14071 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
14072 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
14073 (update_timeout_visit): Removed.
14074 (update_timeouts): New function.
14075 (redraw_timeouts): Likewise.
14076 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
14077 (grub_gfxmenu_clear_timeout): Likewise.
14078 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
14079 (grub_gfxmenu_timeout_notify): Likewise.
14080 (grub_gfxmenu_timeout_notifications): New external variable.
14081 (grub_gfxmenu_timeout_register): New function.
14082 (grub_gfxmenu_timeout_unregister): Likewise.
14083
14084 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 Transform (broken) vga terminal into (working) vga video driver.
14087
14088 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
14089 video/i386/pc/vga.c.
14090 * include/grub/video.h (grub_video_driver_id):
14091 Add GRUB_VIDEO_DRIVER_VGA.
14092 * term/i386/pc/vga.c: Renamed to ...
14093 * video/i386/pc/vga.c: ...this
14094 (DEBUG_VGA): Removed.
14095 (CHAR_WIDTH): Likewise.
14096 (CHAR_HEIGHT): Likewise.
14097 (TEXT_WIDTH): Likewise.
14098 (TEXT_HEIGHT): Likewise.
14099 (DEFAULT_FG_COLOR): Likewise.
14100 (DEFAULT_BG_COLOR): Likewise.
14101 (colored_char): Likewise.
14102 (xpos): Likewise.
14103 (ypos): Likewise.
14104 (cursor_state): Likewise.
14105 (fg_color): Likewise.
14106 (bg_color): Likewise.
14107 (text_buf): Likewise.
14108 (page): Likewise.
14109 (font): Likewise.
14110 (framebuffer): New variable.
14111 (set_read_map): Disabled.
14112 (setup): New variable.
14113 (is_target): Likewise.
14114 (grub_vga_mod_init): Likewise.
14115 (grub_vga_mod_fini): Likewise.
14116 (check_vga_mem): Likewise.
14117 (write_char): Likewise.
14118 (write_cursor): Likewise.
14119 (scroll_up): Likewise.
14120 (grub_vga_putchar): Likewise.
14121 (grub_vga_getcharwidth): Likewise.
14122 (grub_vga_getwh): Likewise.
14123 (grub_vga_getxy): Likewise.
14124 (grub_vga_gotoxy): Likewise.
14125 (grub_vga_cls): Likewise.
14126 (grub_vga_setcolorstate): Likewise.
14127 (grub_vga_setcursor): Likewise.
14128 (grub_video_vga_init): New function.
14129 (grub_video_vga_setup): Likewise.
14130 (grub_video_vga_fini): Likewise.
14131 (update_target): Likewise.
14132 (grub_video_vga_blit_bitmap): Likewise.
14133 (grub_video_vga_blit_render_target): Likewise.
14134 (grub_video_vga_set_active_render_target): Likewise.
14135 (grub_video_vga_get_active_render_target): Likewise.
14136 (grub_video_vga_swap_buffers): Likewise.
14137 (grub_video_vga_set_palette): Likewise.
14138 (grub_video_vga_get_info_and_fini): Likewise.
14139 (grub_vga_term): Removed.
14140 (grub_video_vga_adapter): New variable.
14141 (GRUB_MOD_INIT): Register a video driver instead of terminal.
14142 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
14143
14144 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14145
14146 * video/readers/jpeg.c: Indented.
14147
14148 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 Various jpeg cleanups.
14151
14152 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
14153 (grub_jpeg_decode_quan_table): Use sizeof.
14154 (grub_jpeg_decode_du): Use ARRAY_SIZE.
14155
14156 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
14157
14158 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
14159 tables. Ignore non-last ac bit.
14160 (grub_jpeg_decode_quan_table): Likewise.
14161
14162 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
14165 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
14166 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14167 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
14168 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
14169 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
14170
14171 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
14174 error.
14175
14176 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
14179
14180 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
14183 condition.
14184
14185 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
14188 part.
14189
14190 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
14193 pointers.
14194
14195 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14196
14197 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
14198
14199 2010-05-01 Christian Franke <franke@computer.org>
14200
14201 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
14202 Remove broken Cygwin path conversion.
14203 * util/misc.c: [__CYGWIN__] Add include and define.
14204 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
14205 for Cygwin 1.7.
14206 (make_system_path_relative_to_its_root): Simplify loop, replace early
14207 return by break.
14208 [__CYGWIN__] Add conversion to win32 path.
14209 Include "/" case in trailing slash removal.
14210
14211 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14212
14213 * kern/main.c (grub_load_config): Fix copy-pasted comment.
14214 Reported by: Seth Goldberg
14215
14216 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * commands/help.c (grub_cmd_help): Fix a typo.
14219 Reported by: Seth Goldberg
14220
14221 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14222
14223 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
14224 name and add N_.
14225 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
14226 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
14227 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
14228 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
14229 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
14230 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
14231 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14232 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14233 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14234 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14235 * normal/context.c (GRUB_MOD_INIT): Likewise.
14236 * normal/main.c (GRUB_MOD_INIT): Likewise.
14237 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14238 * term/serial.c (GRUB_MOD_INIT): Likewise.
14239 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14240
14241 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
14244 extra == 0.
14245
14246 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 * commands/iorw.c: New file.
14249 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
14250 (iorw_mod_SOURCES): New variable.
14251 (iorw_mod_CFLAGS): Likewise.
14252 (iorw_mod_LDFLAGS): Likewise.
14253
14254 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 Hotkey support
14257
14258 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
14259 * normal/main.c (hotkey_aliases): New variable.
14260 (grub_normal_add_menu_entry): Parse "--hotkey".
14261 * normal/menu_text.c (run_menu): Handle hotkeys.
14262
14263 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 * kern/i386/coreboot/init.c (grub_machine_init): Call
14266 grub_machine_mmap_init on qemu.
14267
14268 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * boot/i386/qemu/boot.S: Add a missing .code16.
14271
14272 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 Use LBIO on coreboot.
14275
14276 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
14277 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
14278 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
14279 New declaration.
14280 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
14281 grub_machine_mmap_init on coreboot.
14282 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
14283 GRUB_LINUXBIOS_MEMBER_LINK.
14284 (grub_machine_mmap_iterate): Fix declaration.
14285 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
14286
14287 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 Split coreboot and multiboot ports.
14290
14291 * conf/i386-multiboot.rmk: New file.
14292 * configure.ac: Add multiboot port.
14293 * include/grub/i386/multiboot/boot.h: New file.
14294 * include/grub/i386/multiboot/console.h: Likewise.
14295 * include/grub/i386/multiboot/init.h: Likewise.
14296 * include/grub/i386/multiboot/kernel.h: Likewise.
14297 * include/grub/i386/multiboot/loader.h: Likewise.
14298 * include/grub/i386/multiboot/memory.h: Likewise.
14299 * include/grub/i386/multiboot/serial.h: Likewise.
14300 * include/grub/i386/multiboot/time.h: Likewise.
14301 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
14302 * loader/multiboot.c: Likewise.
14303 * loader/multiboot_mbi2.c: Likewise.
14304 * util/grub-mkrescue.in: Generate multiboot rescue.
14305
14306 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * kern/parser.c (grub_parser_execute): Cope with read-only config.
14309
14310 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 Merge handling of input and output terminals. Fix a hang.
14313
14314 * commands/terminal.c (abstract_terminal): New struct.
14315 (handle_command): New function. Based on grub_cmd_terminal_input.
14316 (grub_cmd_terminal_input): Use handle_command.
14317 (grub_cmd_terminal_output): Use handle_command.
14318
14319 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14320
14321 Fix comment handling.
14322
14323 * tests/grub_script_comments.in: New testcase.
14324 * conf/tests.rmk: Rules for new testcase.
14325 * script/yylex.l: Updated flex rules.
14326
14327 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14328
14329 * docs/grub.texi (play): Document that zero pitches produce rests.
14330 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14331 if argc is 1.
14332
14333 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14334
14335 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14336 autogen issues.
14337
14338 2010-04-26 Christian Franke <franke@computer.org>
14339
14340 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14341 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14342 (grub_get_prefix): Remove function.
14343 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14344 make_system_path_relative_to_its_root ().
14345 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14346
14347 2010-04-24 Christian Franke <franke@computer.org>
14348
14349 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14350 (kernel_img_LDFLAGS): Remove -static-libgcc.
14351
14352 2010-04-24 Christian Franke <franke@computer.org>
14353
14354 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14355 and CHECK_END_SYMBOL if grub-emu is built.
14356 Unset TARGET_OBJ2ELF if grub-emu is built
14357 without module support.
14358
14359 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14360
14361 Nilfs2 support.
14362
14363 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14364 (grub_fstest_SOURCES): Likewise.
14365 (pkglib_MODULES): Add nilfs2.mod.
14366 (nilfs2_mod_SOURCES): New variable.
14367 (nilfs2_mod_CFLAGS): Likewise.
14368 (nilfs2_mod_LDFLAGS): Likewise.
14369 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14370 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14371 * fs/nilfs2.c: New file.
14372
14373 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14374
14375 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14376 is not supported.
14377
14378 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14379
14380 Add grub-mkconfig support for NetBSD.
14381
14382 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14383 * util/grub-mkconfig.in: export new NetBSD specific variables.
14384 * po/POTFILES-shell: added 10_netbsd.in.
14385 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14386
14387 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14388
14389 Fix emu build with grub-emu-pci and grub-emu-modules.
14390
14391 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14392 functions.
14393 * include/grub/libpciaccess.h: New file.
14394 * conf/any-emu.rmk: Update kernel headers for emu build.
14395
14396 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14399
14400 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14403
14404 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14407 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14408 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14409 util/ieee1275/ofpath.c.
14410 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14411 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14412 * include/grub/sparc64/ieee1275/boot.h
14413 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14414 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14415 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14416 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14417 const char *.
14418 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14419 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14420 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14421 install.
14422
14423 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14424
14425 * util/grub-mkconfig.in: Corrected two == equality tests.
14426 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14427 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14428 expect a number appended to it.
14429 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14430 expects a number appended to it.
14431
14432 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14433
14434 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14435
14436 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14437
14438 * util/hostdisk.c (make_device_name): Change to new partition naming.
14439
14440 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14443
14444 2010-04-17 Christian Franke <franke@computer.org>
14445
14446 * Makefile.in: Add missing localedir setting.
14447
14448 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14449
14450 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14451 mistake in r2156. Noticed by Anthony Fok.
14452
14453 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14454 @localedir@.
14455 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14456
14457 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14458
14459 Fix a spurious, uninitialized variable warning.
14460
14461 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14462 Initialize variable, shdr.
14463 (grub_freebsd_load_elfmodule): Likewise.
14464 (grub_freebsd_load_elf_meta): Likewise.
14465
14466 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14467
14468 Fix for escaped dollar in double quoted strings.
14469
14470 * script/yylex.l: Updated flex rules.
14471 * conf/tests.rmk: Rule for new testcase.
14472 * tests/grub_script_dollar.in: New testcase.
14473
14474 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14475 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14476
14477 Enclose all translated strings in grub.cfg in single quotes, and
14478 escape them appropriately (Ubuntu bug #552921).
14479
14480 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14481 * util/grub.d/10_hurd.in: Use it.
14482 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14483 * util/grub.d/10_linux.in (linux_entry): Likewise.
14484
14485 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 Fix cygwin compilation.
14488
14489 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14490 * include/grub/misc.h (__register_frame_info)
14491 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14492 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14493 * kern/misc.c (__register_frame_info)
14494 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14495 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14496
14497 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14500
14501 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 Unify libgcc processing.
14504
14505 * Makefile.in (kernel_img_LDFLAGS): New variable.
14506 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14507 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14508 overwriting.
14509 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14510 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14511 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14512 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14513 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14514 overwriting. Remove -lgcc and -static-libgcc
14515 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14516 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14517 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14518 (kernel_img_LDFLAGS): Append instead of overwriting.
14519 Remove -lgcc and -static-libgcc
14520 * conf/sparc64-ieee1275.rmk: Likewise.
14521 * include/grub/powerpc/libgcc.h: Move to ...
14522 * include/grub/libgcc.h: .. this.
14523 * include/grub/libgcc.h: Don't export most of the function on x86.
14524 (__bswapsi2): New export.
14525 (__bswapdi2): Likewise.
14526 * include/grub/mips/libgcc.h: Removed.
14527 * include/grub/sparc64/libgcc.h: Likewise.
14528
14529 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14532 disk_info_msg (conflicts with gettexting into languages with cases).
14533
14534 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14535
14536 Add grub-probe support for NetBSD.
14537
14538 * util/getroot.c (find_root_device): Convert block device to
14539 character device on NetBSD.
14540 * util/probe.c (probe): Require character device on NetBSD.
14541 * util/hostdisk.c: NetBSD specific headers.
14542 (configure_device_driver): new function to tune device driver
14543 parameters (currently only for NetBSD floppy driver).
14544 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14545 via disklabel ioctl).
14546 (open_device): call configure_device_driver on NetBSD.
14547 (convert_system_partition_to_system_disk): NetBSD specific code.
14548 (device_is_wholedisk): Likewise.
14549 (grub_util_biosdisk_get_grub_dev): Likewise.
14550 (make_device_name): Fixed a typo in bsd_part_str.
14551 * configure.ac: check for opendisk() and getrawpartition() on
14552 NetBSD and set LIBUTIL.
14553 * Makefile.in: add LIBUTIL to LIBS.
14554
14555 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14556
14557 Documentation fix.
14558
14559 * util/grub-script-check.c: Better help message.
14560
14561 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14562
14563 Fix FreeBSD build.
14564
14565 * configure.ac: Flex version check.
14566 * conf/common.rmk: Add -Wno-error to sh.mod.
14567 * script/yylex.l: Remove all #pragma.
14568
14569 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14570
14571 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14572 prototype.
14573 Reported by: Seth Goldberg.
14574
14575 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14578 Rename "module" to "module2".
14579 Reported by: Seth Goldberg.
14580
14581 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14582
14583 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14584 EXPORT_FUNC.
14585 Reported by: Seth Goldberg.
14586
14587 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 * lib/posix_wrap/locale.h: Add missing file.
14590 Reported by: Seth Goldberg.
14591
14592 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14593
14594 grub-emu module load support.
14595
14596 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14597 NO_DYNAMIC_MODULES switched to this.
14598 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14599 (CFLAGS): Likewise.
14600 * conf/any-emu.rmk: Generate symlist.
14601 (kernel_img_HEADERS): Add util/datetime.h.
14602 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14603 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14604 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14605 kern/$(target_cpu)/cache.S.
14606 * configure.ac (grub-emu-modules): New option.
14607 * genmk.rb: Handle multiple source lists.
14608 * include/grub/sdl.h: New file.
14609 * include/grub/libusb.h: Likewise.
14610 * util/grub-emu.c (main): Hanle (host) root.
14611 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14612 GRUB_ERR_UNKNOWN_DEVICE.
14613 * util/misc.c: Move mm functions to ...
14614 * util/mm.c: ... here. All users updated.
14615
14616 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14619 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14620 missing files.
14621 (maintainer-clean): Remove libgcrypt-grub.
14622
14623 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14626
14627 2010-04-09 EFI Coder <eficoder@hotmail.com>
14628
14629 * normal/menu_text.c (print_message): Clean up the message and show
14630 the Fn information when on EFI
14631 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14632
14633 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14636 All users updated.
14637 * normal/crypto.c (read_crypto_list): Likewise.
14638 * normal/dyncmd.c (read_command_list): Likewise.
14639 * normal/term.c (read_terminal_list): Likewise.
14640 * normal/main.c (read_lists): Use explicit prefix.
14641 (read_lists_hook): Use read_lists.
14642 (grub_normal_execute): Likewise.
14643
14644 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
14647 Reported by: Thomas Schmitt.
14648 Add -no-emul-boot to grub-mkisofs parameters.
14649
14650 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * font/font.c: Indented.
14653
14654 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14655
14656 Elif support to GRUB script (by Deepak Vankadaru).
14657
14658 * tests/grub_script_if.in: New testcase.
14659 * conf/tests.rmk: Rule for new testcase.
14660 * script/parser.y: Grammar rules for elif.
14661
14662 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14663
14664 While and until loops support to GRUB script.
14665
14666 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
14667 (grub_script_create_cmdwhile): New function prototype.
14668 (grub_script_execute_cmdwhile): New function prototype.
14669 * script/execute.c (grub_script_execute_cmdwhile): New function.
14670 * script/parser.y (command): New commands.
14671 (whilecmd): New grammar rule.
14672 (untilcmd): New grammar rule.
14673 * script/script.c (grub_script_create_cmdwhile): New function.
14674 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
14675 function.
14676
14677 * tests/grub_script_while1.in: New testcase.
14678 * conf/tests.rmk: Rule for new testcase.
14679
14680 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14681
14682 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14683 as *.jpg.
14684
14685 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14686
14687 GRUB_BACKGROUND support.
14688
14689 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14690 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14691
14692 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 Load fonts and modules for gfxmenu in grub-mkconfig.
14695 Idea by: Mario Vazquez
14696
14697 * util/grub.d/00_header.in: Load pf2 and image modules.
14698
14699 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 grub-mkconfig multiple terminal support.
14702
14703 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14704 * util/grub.d/00_header.in: Likewise.
14705
14706 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * Makefile.in: Specify files explicitly instead of using $< and $@ since
14709 we use cd $(srcdir).
14710
14711 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
14712
14713 * util/grub.d/10_linux.in: Only use the first word of
14714 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
14715 spaces in GRUB_DISTRIBUTOR.
14716 * util/grub.d/10_kfreebsd.in: Likewise.
14717 * util/grub.d/10_hurd.in: Likewise.
14718
14719 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
14720
14721 Fix unit testing framework for Qemu 0.12.
14722
14723 * tests/util/grub-shell.in: Remove -serial stdio option.
14724
14725 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 POSIX header file wrappers.
14728
14729 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
14730 equivalents.
14731 * lib/posix_wrap/ctype.h: Likewise.
14732 * lib/posix_wrap/errno.h: Likewise.
14733 * lib/posix_wrap/langinfo.h: Likewise.
14734 * lib/posix_wrap/limits.h: Likewise.
14735 * lib/posix_wrap/localcharset.h: Likewise.
14736 * lib/posix_wrap/stdint.h: Likewise.
14737 * lib/posix_wrap/stdio.h: Likewise.
14738 * lib/posix_wrap/stdlib.h: Likewise.
14739 * lib/posix_wrap/string.h: Likewise.
14740 * lib/posix_wrap/sys/types.h: Likewise.
14741 * lib/posix_wrap/unistd.h: Likewise.
14742 * lib/posix_wrap/wchar.h: Likewise.
14743 * lib/posix_wrap/wctype.h: Likewise.
14744 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
14745 (grub_script.yy.h): Likewise.
14746 * script/yylex.l: Remove POSIX emulation #defines.
14747 * Makefile.in (POSIX_CFLAGS): New variable.
14748 (GNULIB_UTIL_CFLAGS): Likewise.
14749
14750 Regexp support.
14751
14752 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
14753 (regexp_mod_SOURCES): New variable.
14754 (regexp_mod_CFLAGS): Likewise.
14755 (regexp_mod_LDFLAGS): Likewise.
14756 * commands/regexp.c: New file.
14757 * gnulib/regcomp.c: New file. Imported from gnulib.
14758 * gnulib/regex.c: Likewise.
14759 * gnulib/regex_internal.c: Likewise.
14760 * gnulib/regex_internal.h: Likewise.
14761 * gnulib/regexec.c: Likewise.
14762 * gnulib/regex.h: Likewise.
14763
14764 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
14767 unsupported video mode types.
14768
14769 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
14772
14773 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
14776 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
14777
14778 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 Remove unused grub_vga_get_font.
14781
14782 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
14783 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
14784
14785 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14786
14787 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
14788 * include/grub/misc.h: Likewise.
14789
14790 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14791
14792 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
14793 for which failure is fatal.
14794
14795 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14796
14797 * util/grub-install.in: Use mkdir -p to create grub directory.
14798 * util/i386/efi/grub-install.in: Likewise.
14799 * util/ieee1275/grub-install.in: Likewise.
14800
14801 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14802
14803 * Makefile.in (LEX): new variable.
14804
14805 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14806
14807 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
14808 `=' and added double quotes on operands of this equality test.
14809
14810 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 * Makefile.in (uninstall): Remove a leftover debug echo.
14813 Reported by: Grégoire Sutre
14814
14815 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14816
14817 MIPS multiboot2 support.
14818
14819 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
14820 (multiboot2_mod_SOURCES): New variable.
14821 (multiboot2_mod_CFLAGS): Likewise.
14822 (multiboot2_mod_LDFLAGS): Likewise.
14823 (multiboot2_mod_ASFLAGS): Likewise.
14824 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
14825 definition.
14826 (MULTIBOOT_ENTRY_REGISTER): Likewise.
14827 (MULTIBOOT_MBI_REGISTER): Likewise.
14828 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
14829 (MULTIBOOT_ELF32_MACHINE): Likewise.
14830 (MULTIBOOT_ELF64_MACHINE): Likewise.
14831 * include/grub/mips/multiboot.h: New file.
14832 * include/grub/video.h (grub_video_driver_id): New type
14833 GRUB_VIDEO_DRIVER_SM712.
14834 (grub_video_get_info_and_fini): Export.
14835 (grub_video_get_palette): Likewise.
14836 (grub_video_get_driver_id): Likewise.
14837 * include/multiboot2.h: Resynced with spec.
14838 * loader/i386/multiboot.c: Moved from here ...
14839 * loader/multiboot.c: ... here. All users updated.
14840 (grub_multiboot_boot): Use platform-specific macros.
14841 * loader/i386/multiboot_elfxx.c: Moved from here ...
14842 * loader/multiboot_elfxx.c: ... here. All users updated.
14843 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
14844 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
14845 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
14846
14847 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 Import gnulib argp module.
14850
14851 * gnulib/argp-ba.c: New file.
14852 * gnulib/argp-eexst.c: Likewise.
14853 * gnulib/argp-fmtstream.c: Likewise.
14854 * gnulib/argp-fmtstream.h: Likewise.
14855 * gnulib/argp-fs-xinl.c: Likewise.
14856 * gnulib/argp-help.c: Likewise.
14857 * gnulib/argp-namefrob.h: Likewise.
14858 * gnulib/argp-parse.c: Likewise.
14859 * gnulib/argp-pin.c: Likewise.
14860 * gnulib/argp-pv.c: Likewise.
14861 * gnulib/argp-pvh.c: Likewise.
14862 * gnulib/argp-version-etc.c: Likewise.
14863 * gnulib/argp-version-etc.h: Likewise.
14864 * gnulib/argp-xinl.c: Likewise.
14865 * gnulib/argp.h: Likewise.
14866
14867 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14868
14869 * kern/device.c (grub_device_iterate): Clear errors after failed
14870 opening device.
14871
14872 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14873
14874 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
14875 returned by firmware.
14876
14877 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
14880 compilation on coreboot and qemu
14881
14882 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * include/multiboot2.h: Resync with spec.
14885
14886 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14887
14888 Multiboot2 tag support
14889
14890 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
14891 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
14892 Remove loader/multiboot_loader.c.
14893 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
14894 (grub_multiboot2_real_boot): Likewise.
14895 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
14896 (grub_get_multiboot_mmap_count): New proto.
14897 (grub_fill_multiboot_mmap): Likewise.
14898 (grub_multiboot_set_video_mode): Likewise.
14899 (grub_multiboot_set_console): Likewise.
14900 (grub_multiboot_load): Likewise.
14901 (grub_multiboot_load_elf): Likewise.
14902 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
14903 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
14904 * include/multiboot.h: Resynced with specification.
14905 * include/multiboot2.h: Resynced with specification.
14906 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
14907 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
14908 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
14909 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
14910 users updated.
14911 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
14912 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
14913 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
14914 Removed.
14915 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
14916 Moved from here...
14917 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
14918 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14919 Moved from here...
14920 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
14921 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
14922 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
14923 All users updated.
14924 * loader/i386/multiboot_mbi2.c: New file.
14925
14926 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14927
14928 Resync with gnulib.
14929
14930 * Makefile.in (GNULIB_CFLAGS): New variable.
14931 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
14932 (grub_script_check_CFLAGS): New variable.
14933 * gnulib/alloca.h: Resync with gnulib.
14934 * gnulib/error.c: Likewise.
14935 * gnulib/error.h: Likewise.
14936 * gnulib/fnmatch.c: Likewise.
14937 * gnulib/fnmatch_loop.c: Likewise.
14938 * gnulib/getdelim.c: Likewise.
14939 * gnulib/getline.c: Likewise.
14940 * gnulib/getopt.c: Likewise.
14941 * gnulib/getopt1.c: Likewise.
14942 * gnulib/getopt_int.h: Likewise.
14943 * gnulib/gettext.h: Likewise.
14944 * gnulib/progname.c: Likewise.
14945 * gnulib/progname.h: Likewise.
14946
14947 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14948
14949 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14950 which is the case with --disabled-nls.
14951
14952 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
14953 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
14954 * util/misc.c: Likewise.
14955 * util/mkisofs/mkisofs.c: Likewise.
14956 * util/mkisofs/mkisofs.h: Likewise.
14957
14958 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 Simplify Apple CC support.
14961
14962 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
14963 Add 0 byte at the end not to have a symbol with empty target.
14964 * mmap/i386/pc/mmap_helper.S: Likewise.
14965 * genmk.rb: Ignore errors 2030 and 2050.
14966 * kern/i386/pc/startup.S: Use LOCAL when possible.
14967
14968 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
14969
14970 Testcase and the fix for final semicolon on cmdline.
14971
14972 * tests/grub_script_final_semicolon.in: New testcase.
14973 * conf/tests.rmk: Rules for the new testcase.
14974 * script/parser.y: Grammar fix.
14975
14976 2010-03-26 BVK Chaitanya <bvk@localhost>
14977
14978 Blank lines testcase for GRUB script.
14979
14980 * tests/grub_script_blanklines.in: New testcase.
14981 * conf/tests.rmk: Rules for the new testcase.
14982
14983 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 Don't use __FILE__.
14986
14987 * genmk.rb: Add -DGRUB_FILE to all C targets.
14988 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
14989 * include/grub/list.h: Likewise.
14990 * include/grub/misc.h: Likewise.
14991 * include/grub/mm.h: Likewise.
14992 * include/grub/test.h: Likewise.
14993 * kern/mm.c: Likewise.
14994 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
14995
14996 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 Sunpc partitions support.
14999
15000 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
15001 (grub_fstest_SOURCES): Likewise.
15002 (pkglib_MODULES): Add part_sunpc.mod.
15003 (part_sunpc_mod_SOURCES): New variable.
15004 (part_sunpc_mod_CFLAGS): Likewise.
15005 (part_sunpc_mod_LDFLAGS): Likewise.
15006 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
15007 * partmap/sunpc.c: New file.
15008
15009 2010-03-26 BVK Chaitanya <bvk@localhost>
15010
15011 For loop support to GRUB script.
15012
15013 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
15014 (grub_script_create_cmdfor): New function prototype.
15015 (grub_script_execute_cmdfor): New function prototype.
15016 * script/execute.c (grub_script_execute_cmdfor): New function.
15017 * script/parser.y (command): New for command.
15018 (forcmd): New grammar rule.
15019 * script/script.c (grub_script_create_cmdfor): New function.
15020 * util/grub-script-check.c (grub_script_execute_cmdfor): New
15021 function.
15022 * tests/grub_script_for1.in: New testcase.
15023 * conf/tests.rmk: Rules for new testcase.
15024
15025 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 Nested partitions
15028
15029 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
15030 'partition' is NULL, grub_partition_get_start already does that.
15031 * commands/loadenv.c (check_blocklists): Likewise.
15032 (write_blocklists): Likewise.
15033 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
15034 (grub_fstest_SOURCES): Likewise.
15035 (pkglib_MODULES): Add part_bsd.mod.
15036 (part_bsd_mod_SOURCES): New variable.
15037 (part_bsd_mod_CFLAGS): Likewise.
15038 (part_bsd_mod_LDFLAGS): Likewise.
15039 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
15040 (grub_emu_SOURCES): Likewise.
15041 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15042 * include/grub/bsdlabel.h: New file.
15043 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
15044 'get_name'.
15045 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
15046 (grub_partition_map_list): New variable.
15047 (grub_partition_map_register): Inline.
15048 (grub_partition_map_unregister): Likewise.
15049 (FOR_PARTITION_MAPS): New macro.
15050 (grub_partition_map_iterate): Removed.
15051 (grub_partition_get_start): Handle nested partitions.
15052 * include/grub/msdos_partition.h: Remove bsd-related entries.
15053 (grub_pc_partition): Remove.
15054 * kern/disk.c (grub_disk_close): Free partition data.
15055 (grub_disk_adjust_range): Handle nested partitions.
15056 * kern/partition.c (grub_partition_map_probe): New function.
15057 (grub_partition_probe): Parse name to number, handle subpartitions.
15058 (get_partmap): New function.
15059 (grub_partition_iterate): Handle subpartitions.
15060 (grub_partition_get_name): Likewise.
15061 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
15062 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
15063 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
15064 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
15065 Set 'number'.
15066 (acorn_partition_map_probe): Remove.
15067 (acorn_partition_map_get_name): Likewise.
15068 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
15069 Set 'number'.
15070 Set 'index' to 0 since there can be only one partition entry per sector.
15071 (amiga_partition_map_probe): Remove.
15072 (amiga_partition_map_get_name): Likewise.
15073 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
15074 Set 'number'.
15075 Set 'offset' and 'index' to real positions of partitions.
15076 (apple_partition_map_probe): Remove.
15077 (apple_partition_map_get_name): Likewise.
15078 * partmap/bsdlabel.c: New file.
15079 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
15080 Set 'number'.
15081 Allocate 'data' so it can be correctly freed.
15082 Set 'index' to offset inside sector.
15083 (gpt_partition_map_probe): Remove.
15084 (gpt_partition_map_get_name): Likewise.
15085 * partmap/msdos.c (grub_partition_parse): Remove.
15086 (pc_partition_map_iterate): Don't force raw access.
15087 Set 'number'.
15088 Make 'ext_offset' a local variable.
15089 (pc_partition_map_probe): Remove.
15090 (pc_partition_map_get_name): Remove.
15091 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
15092 Set 'number'.
15093 (sun_partition_map_probe): Remove.
15094 (sun_partition_map_get_name): Likewise.
15095 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
15096 (grub_pcpart_type): Likewise.
15097 * util/hostdisk.c (open_device): Handle new numbering scheme.
15098 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
15099 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
15100 * util/grub-probe.c (probe_partmap): Handle nested paritions.
15101 * util/grub-install.in: Insert all subpartition modules.
15102 * util/ieee1275/grub-install.in: Likewise.
15103
15104 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
15105
15106 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
15107 grammar.
15108
15109 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
15110
15111 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
15112
15113 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
15114
15115 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
15116 match where 'make install' puts them.
15117 * util/i386/efi/grub-install.in: Likewise.
15118
15119 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
15120
15121 * .bzrignore: Add gentrigtables, grub-script-check,
15122 grub_script_check_init.c, grub_script_check_init.h, and
15123 trigtables.c.
15124
15125 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
15126
15127 * kern/parser.c: Indented.
15128
15129 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
15132
15133 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
15136 alpha_mask_size == 0 case.
15137
15138 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
15139
15140 GRUB shell lexer and parser improvements.
15141
15142 * conf/any-emu.rmk: Build rule updates.
15143 * conf/common.rmk: Likewise.
15144 * conf/i386-coreboot.rmk: Likewise.
15145 * conf/i386-efi.rmk: Likewise.
15146 * conf/i386-ieee1275.rmk: Likewise.
15147 * conf/i386-pc.rmk: Likewise.
15148 * conf/powerpc-ieee1275.rmk: Likewise.
15149 * conf/x86_64-efi.rmk: Likewise.
15150
15151 * configure.ac: Configure check for flex.
15152
15153 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
15154 types.
15155 (grub_lexer_param): Struct member updates.
15156 (grub_parser_param): Likewise.
15157 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
15158 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
15159 (grub_script_lexer_init): Prototype update.
15160 (grub_script_lexer_record_start): Likewise.
15161 (grub_script_lexer_record_stop): Likewise.
15162 (grub_script_lexer_yywrap): New function prototype.
15163 (grub_script_lexer_fini): Likewise.
15164 (grub_script_execute_argument_to_string): Removed by...
15165 (grub_script_execute_argument_to_argv): ...better version.
15166
15167 * script/execute.c (ROUND_UPTO): New macro.
15168 (grub_script_execute_cmdline): Out of memory fixes.
15169 (grub_script_execute_menuentry): Likewise.
15170 (grub_script_execute_argument_to_string): Removed. Update all
15171 users by...
15172 (grub_script_execute_argument_to_argv): ...better version.
15173 * script/function.c (grub_script_function_create): Use
15174 grub_script_execute_argument_to_argv instead of
15175 grub_script_execute_argument_to_string.
15176
15177 * script/lexer.c (check_varstate): Removed.
15178 (check_textstate): Removed.
15179 (grub_script_lexer_record_start): Likewise.
15180 (grub_script_lexer_record_stop): Likewise.
15181 (recordchar): Replaced with...
15182 (grub_script_lexer_record): ...new function.
15183 (nextchar): Removed.
15184 (grub_script_lexer_init): Rewritten.
15185 (grub_script_yylex): Rewritten.
15186 (append_newline): New function.
15187 (grub_script_lexer_yywrap): New function.
15188 (grub_script_lexer_fini): New function.
15189 (grub_script_yyerror): Sets error flag.
15190
15191 * script/yylex.l: New file.
15192 (grub_lexer_yyfree): Wrapper for flex yyffre.
15193 (grub_lexer_yyalloc): Likewise.
15194 (grub_lexer_yyrealloc): Likewise.
15195 * script/parser.y: Refactored.
15196
15197 * script/script.c (grub_script_arg_add): Out of memory fixes.
15198 (grub_script_add_arglist): Likewise.
15199 (grub_script_create_cmdline): Likewise.
15200 (grub_script_create_cmdmenu): Likewise.
15201 (grub_script_add_cmd): Likewise.
15202 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
15203 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
15204 unnecessary code.
15205
15206 * tests/grub_script_echo1.in: New testcase.
15207 * tests/grub_script_vars1.in: New testcase.
15208 * tests/grub_script_echo_keywords.in: New testcase.
15209
15210 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 Remove some redundancy in build system.
15213
15214 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
15215 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
15216 (TARGET_LDFLAGS): Add -nostdlib.
15217 (TARGET_IMG_LDFLAGS): Likewise.
15218 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
15219 anything since mmap isn't available.
15220 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
15221 Add util/time.c.
15222 (pkglib_MODULES): Remove reboot.mod.
15223 (reboot_mod_SOURCES): Removed.
15224 (reboot_mod_CFLAGS): Likewise.
15225 (reboot_mod_LDFLAGS): Likewise.
15226 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
15227 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
15228 (DEFSYMFILES): Add kernel_syms.lst.
15229 (kernel_img_HEADERS): Add common headers.
15230 (symlist.c): New target.
15231 (kernel_syms.lst): Likewise.
15232 (pkglib_MODULES): Add memdisk.mod.
15233 (memdisk_mod_SOURCES): New variable.
15234 (memdisk_mod_CFLAGS): Likewise.
15235 (memdisk_mod_LDFLAGS): Likewise.
15236 (pkglib_MODULES): Add reboot.mod.
15237 (reboot_mod_SOURCES): New variable.
15238 (reboot_mod_CFLAGS): Likewise.
15239 (reboot_mod_LDFLAGS): Likewise.
15240 (pkglib_MODULES): Add date.mod.
15241 (date_mod_SOURCES): New variable.
15242 (date_mod_CFLAGS): Likewise.
15243 (date_mod_LDFLAGS): Likewise.
15244 (pkglib_MODULES): Add datehook.mod.
15245 (datehook_mod_SOURCES): New variable.
15246 (datehook_mod_CFLAGS): Likewise.
15247 (datehook_mod_LDFLAGS): Likewise.
15248 (pkglib_MODULES): Add lsmmap.mod.
15249 (lsmmap_mod_SOURCES): New variable.
15250 (lsmmap_mod_CFLAGS): Likewise.
15251 (lsmmap_mod_LDFLAGS): Likewise.
15252 (pkglib_MODULES): Add boot.mod.
15253 (boot_mod_SOURCES): New variable.
15254 (boot_mod_CFLAGS): Likewise.
15255 (boot_mod_LDFLAGS): Likewise.
15256 * conf/i386-coreboot.rmk: Removed redundant parts.
15257 * conf/i386-ieee1275.rmk: Likewise.
15258 * conf/i386-pc.rmk: Likewise.
15259 * conf/mips-yeeloong.rmk: Likewise.
15260 * conf/mips.rmk: Likewise.
15261 * conf/powerpc-ieee1275.rmk: Likewise.
15262 * conf/sparc64-ieee1275.rmk: Likewise.
15263 * conf/x86_64-efi.rmk: Likewise.
15264 * conf/i386-coreboot.rmk: Moved qemu parts ..
15265 * conf/i386-qemu.rmk: ... here
15266 * conf/i386-efi.rmk: Moved common parts to...
15267 * conf/x86-efi.rmk: ... here.
15268 * conf/i386.rmk: Added modules common to all x86 variants.
15269 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
15270 * disk/memdisk.c: Remove grub/machine/kernel.h.
15271 * gensymlist.sh.in: Include symbol.h.
15272 * hook/datehook.c: Correct module name.
15273 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
15274 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
15275 * include/grub/i386/efi/serial.h: New file.
15276 * include/grub/x86_64/efi/serial.h: Likewise.
15277 * util/time.c: Likewise.
15278 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
15279
15280 2010-03-14 Colin King <colin.king@ubuntu.com>
15281 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15282
15283 Shrink the pre-partition-table part of boot.img by eight bytes.
15284
15285 * boot/i386/pc/boot.S (ERR): New macro.
15286 (chs_mode): Use ERR.
15287 (geometry_error): Likewise.
15288 (hd_probe_error): Remove. This is only used once, so we wrwite
15289 it inline instead.
15290 (read_error): Instead of printing read_error_string, just set up
15291 %si and fall through to ...
15292 (error_message): ... this new function, also used by ERR.
15293
15294 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15295
15296 Speed up consecutive hostdisk operations on the same device.
15297
15298 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
15299 (grub_util_biosdisk_open): Initialise disk->data.
15300 (struct linux_partition_cache): New structure.
15301 (linux_find_partition): Cache partition start positions; these are
15302 expensive to compute on every read and write.
15303 (open_device): Cache open file descriptor in disk->data, so that we
15304 don't have to reopen it and flush the buffer cache for consecutive
15305 operations on the same device.
15306 (grub_util_biosdisk_close): New function.
15307 (grub_util_biosdisk_dev): Set `close' member.
15308
15309 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
15310 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
15311 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15312 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15313 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
15314
15315 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 Compile parts of grub-emu as modules.
15318
15319 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15320 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15321 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15322 (all-local): Add $(GRUB_EMU).
15323 (install-local): Install $(GRUB_EMU).
15324 (uninstall): Uninstall $(GRUB_EMU).
15325 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15326 * kern/dl.c: Likewise.
15327 * commands/sleep.c: Not include machine/time.h.
15328 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15329 (COMMON_CFLAGS): Likewise.
15330 (sbin_UTILITIES): Remove grub-emu.
15331 (grub_emu_SOURCES): Removed.
15332 (kernel_img_RELOCATABLE): New variable.
15333 (pkglib_PROGRAMS): Add kernel.img.
15334 (kernel_img_SOURCES): New variable
15335 (kernel_img_CFLAGS): Likewise.
15336 (kernel_img_LDFLAGS): Likewise.
15337 (TARGET_NO_STRIP): Likewise.
15338 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15339 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15340 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15341 (grub-emu): New target.
15342 (GRUB_EMU): New variable.
15343 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15344 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15345 * loader/xnu.c: Likewise.
15346 * include/grub/pci.h: Likewise.
15347 * genemuinit.sh: New file.
15348 * genemuinitheader.sh: Likewise.
15349 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15350 Support TARGET_NO_DYNAMIC_MODULES.
15351 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15352 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15353 * disk/loopback.c: Likewise.
15354 * font/font_cmd.c: Likewise.
15355 * partmap/acorn.c: Likewise.
15356 * partmap/amiga.c: Likewise.
15357 * partmap/apple.c: Likewise.
15358 * partmap/gpt.c: Likewise.
15359 * partmap/msdos.c: Likewise.
15360 * partmap/sun.c: Likewise.
15361 * parttool/msdospart.c: Likewise.
15362 * term/gfxterm.c: Likewise.
15363 * video/bitmap.c: Likewise.
15364 * video/readers/jpeg.c: Likewise.
15365 * video/readers/png.c: Likewise.
15366 * video/readers/tga.c: Likewise.
15367 * video/video.c: Likewise.
15368 * util/grub-emu.c (read_command_list): Removed.
15369 (main): Don't call util_init_nls.
15370 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15371 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15372
15373 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15376 date.mod, datehook.mod.
15377 (datetime_mod_SOURCES): New variable.
15378 (datetime_mod_CFLAGS): Likewise.
15379 (datetime_mod_LDFLAGS): Likewise.
15380 (date_mod_SOURCES): Likewise.
15381 (date_mod_CFLAGS): Likewise.
15382 (date_mod_LDFLAGS): Likewise.
15383 (datehook_mod_SOURCES): Likewise.
15384 (datehook_mod_CFLAGS): Likewise.
15385 (datehook_mod_LDFLAGS): Likewise.
15386 * conf/sparc64-ieee1275.rmk: Likewise.
15387 * lib/ieee1275/datetime.c: New file.
15388
15389 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15390
15391 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15392 (ieee1275_fb_mod_SOURCES): New variable.
15393 (ieee1275_fb_mod_CFLAGS): Likewise.
15394 (ieee1275_fb_mod_LDFLAGS): Likewise.
15395 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15396 New proto.
15397 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15398 (HEAP_MAX_ADDR): Likewise.
15399 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15400 type.
15401 Correct stop condition.
15402 (grub_ieee1275_devices_iterate): New function.
15403 * video/ieee1275.c: New file.
15404
15405 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15406
15407 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15408
15409 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15410 as scratch.
15411 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15412 SCRATCH_PAD_DISKBOOT as scratch.
15413 (bootit): Pass Openfirmware pointer in %o4.
15414 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15415 of 0x200000.
15416 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15417 with util/grub-mkrawimage.c.
15418 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15419 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15420 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15421 (grub_aout_load) [GRUB_UTIL]: Likewise.
15422 * include/grub/kernel.h (grub_modules_get_end): New proto.
15423 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15424 (SCRATCH_PAD_BOOT): New definition.
15425 (SCRATCH_PAD_DISKBOOT): Likewise.
15426 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15427 * include/grub/sparc64/ieee1275/ieee1275.h
15428 (grub_ieee1275_original_stack): New variable
15429 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15430 New definition
15431 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15432 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15433 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15434 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15435 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15436 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15437 (grub_platform_image_format_t): New type.
15438 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15439 * kern/main.c (grub_modules_get_end)
15440 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15441 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15442 (codestart): Switch stacks.
15443 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15444 variable.
15445 (grub_heap_init): Use grub_modules_get_end.
15446 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15447 stack.
15448 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15449 (main): Likewise.
15450 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15451
15452 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15453
15454 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15455
15456 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15457
15458 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15459 bug #559005).
15460
15461 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15462
15463 * genmoddep.awk: Output all missing symbols and not only first.
15464
15465 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 * NEWS: Put the date of 1.98 release.
15468
15469 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15470
15471 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15472 ft2build.h.
15473
15474 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15475
15476 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15477 completition in the middle of string.
15478
15479 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15480
15481 * util/grub-mkrescue.in: Use mktemp with explicit template.
15482
15483 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15486
15487 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15490 right pointer.
15491
15492 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 Fix FreeBSD compilation.
15495
15496 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15497 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15498
15499 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15500
15501 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15502
15503 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15504
15505 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15506
15507 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15508
15509 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15510
15511 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15512
15513 Support relative image path in theme file.
15514
15515 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15516 (image_set_property): Handle theme_dir and relative path.
15517
15518 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15519
15520 * configure.ac: Alias amd64 to x86_64.
15521
15522 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 * NEWS: mention multiboot on EFI.
15525
15526 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * kern/main.c (grub_load_modules): Handle errors from init functions of
15529 embeded modules.
15530
15531 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15532
15533 * normal/autofs.c (autoload_fs_module): Handle errors.
15534
15535 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 Disable linux.mod on qemu-mips since it's not functional and leads
15538 to compilation failure.
15539
15540 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15541 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15542 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15543 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15544 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15545 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15546 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15547 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15548 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15549 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15550 Reported by: BVK Chaitanya
15551
15552 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15553
15554 * INSTALL: Add gettext as a dependency and add qemu to a new section
15555 "Prerequisites for make-check".
15556
15557 2010-03-04 Christian Franke <franke@computer.org>
15558
15559 * util/grub-pe2elf.c: Add missing include "progname.h".
15560
15561 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * normal/crypto.c (read_crypto_list): Fix a typo.
15564 Reported by: Seth Goldberg.
15565
15566 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15569 Reported by: Seth Goldberg.
15570
15571 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15574 ascii.bitmaps.
15575
15576 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * genmk.rb: Remove terminal*.lst in make clean.
15579 Reported by: Seth Goldberg.
15580
15581 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * util/i386/efi/grub-install.in: Copy gettext files.
15584
15585 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15586
15587 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15588
15589 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15590
15591 Wait for user entry basing on presence of output rather than on errors.
15592
15593 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15594 (grub_install_newline_hook): Likewise.
15595 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15596 * normal/menu.c (show_menu): Check line_counter to determine presence
15597 of output.
15598 * normal/term.c (grub_normal_line_counter): New variable.
15599 (grub_normal_get_line_counter): New function.
15600 (grub_install_newline_hook): Likewise.
15601
15602 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15605
15606 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15607
15608 * configure.ac: Update version to 1.98.
15609
15610 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15611
15612 * util/grub.d/10_linux.in (linux_entry): Don't default to
15613 gfxpayload=keep if Linux doesn't support video handover.
15614
15615 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 Don't compile video modules on yeeloong since video subsystem is part
15618 of kernel.
15619
15620 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15621 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15622 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15623 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15624 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15625 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15626 * include/grub/bitmap_scale.h: Likewise.
15627 * include/grub/bufio.h: Likewise.
15628 * include/grub/font.h: Likewise.
15629 * include/grub/gfxterm.h: Likewise.
15630 * include/grub/video.h: Likewise.
15631 * include/grub/vbe.h: Don't include video_fb.h.
15632 * video/i386/pc/vbe.c: Include video_fb.h.
15633 * commands/i386/pc/vbetest.c: Include video.h.
15634
15635 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15636
15637 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15638 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15639 default entry if GRUB_SAVEDEFAULT=true. This allows using
15640 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15641 saving a new default on every boot.
15642
15643 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15646 * normal/term.c (read_terminal_list): Likewise.
15647 * normal/main.c (grub_normal_init_page): Likewise.
15648 (grub_normal_read_line_real): Likewise.
15649
15650 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15651
15652 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15653 memory leak.
15654 Reported by: Seth Goldberg.
15655
15656 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15657
15658 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15659 duplicate declaration of `start'.
15660
15661 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15664 filename.
15665 Reported by: Georgy Buranov
15666
15667 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15668
15669 * util/grub-mkrawimage.c (usage): Change string formatting to
15670 improve gettext.
15671
15672 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15673
15674 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15675 backspace keys.
15676
15677 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15680 Reported by: Michael Suchanek.
15681
15682 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15683
15684 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15685 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15686
15687 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15688
15689 Remove any reference to non-free fonts.
15690
15691 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
15692 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
15693 uses non-free components.
15694 * font/font.c (grub_font_get_name): Remove example name.
15695 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
15696 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15697 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
15698 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
15699
15700 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15701
15702 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15703
15704 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15705
15706 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
15707 Double divisor.
15708 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
15709 features.
15710 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
15711
15712 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15713
15714 * gensymlist.sh.in: Use TARGET_CC instead of CC.
15715
15716 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15717
15718 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
15719 * docs/grub.texi (Command-line and menu entry commands): Document play
15720 command.
15721
15722 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15723
15724 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
15725 parse arguments as inline tempo and notes. Move code for playing notes
15726 to...
15727 (play): ... new function.
15728
15729 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15730
15731 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
15732 grub_uint16_t instead of short.
15733 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
15734 disk from little endian to cpu endianness.
15735
15736 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
15737
15738 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
15739 GRUB_TICKS_PER_SECOND instead of 120.
15740
15741 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15742
15743 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
15744 escape sequence after \e.
15745
15746 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
15749 non-ASCII characters.
15750
15751 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
15754 set root in single quotes to prevent \, from being unescaped.
15755
15756 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 Prevent unknown commands from stopping menuentry execution.
15759
15760 * script/execute.c (grub_script_execute_cmdline): Print error after
15761 unknown command.
15762
15763 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15764
15765 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
15766 Reported by: Pavel Pisa.
15767
15768 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15769
15770 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
15771
15772 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15773
15774 Merge grub_ieee1275_map_physical into grub_map and rename to
15775 grub_ieee1275_map
15776
15777 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
15778 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
15779 Remove.
15780 * kern/ieee1275/openfw.c (grub_map): Rename to ...
15781 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
15782 necessary.
15783 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
15784
15785 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
15788 opening and not after.
15789
15790 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
15793 constants.
15794
15795 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15796
15797 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
15798 (alloc_phys): Use ALIGN_UP instead of align_addr.
15799
15800 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
15803
15804 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15805
15806 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
15807
15808 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
15811 verbose dprintf.
15812
15813 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 Fix over-4GiB seek on sparc64.
15816
15817 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
15818 Replace pos_i and pos_lo with pos. All users updated.
15819 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15820 New constant.
15821 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15822 Likewise.
15823 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
15824 and pos_lo.
15825
15826 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 * util/grub-mkrawimage.c (main): Call set_program_name.
15829
15830 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 Properly align 64-bit targets.
15833
15834 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
15835 (generate_image): Use ALIGN_ADDR.
15836
15837 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 Properly create cross-endian images.
15840
15841 * include/grub/types.h (grub_host_to_target_addr): New macro
15842 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
15843
15844 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
15847
15848 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
15851
15852 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
15853 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
15854 (grub_linux_boot): Divide by 64K when on VESA.
15855
15856 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 Support GRUB_GFXPAYLOAD_LINUX.
15859
15860 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
15861 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
15862
15863 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
15866 to show messages instead of discarding them.
15867 Process errors after executing command and not before. Keep old method
15868 too as precaution.
15869
15870 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
15871
15872 * configure.ac: Check for ft2build.h.
15873
15874 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
15877
15878 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 * genkernsyms.sh.in: Use TARGET_CC.
15881
15882 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
15883
15884 * NEWS: Update.
15885
15886 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15887
15888 * include/grub/multiboot2.h: Remove leftover file.
15889 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
15890 * include/grub/partition.h [GRUB_UTIL]: Likewise.
15891
15892 2010-02-07 Yves Blusseau <blusseau@zetam.org>
15893
15894 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
15895
15896 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 Fix warnings in grub-emu when compiling with maximum warning options.
15899
15900 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
15901 (grub_arch_modules_addr): Return 0 and not NULL.
15902 * util/misc.c (ENABLE_RELOCATABLE): New definition.
15903 (xstrdup): Use newstr instead of dup.
15904 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
15905 of disk to dsk to avoid shadowing.
15906 (find_free_slot): Fix prototype.
15907 * util/getroot.c (grub_util_is_dmraid): Make static.
15908 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
15909 Add missing prototype.
15910 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
15911
15912 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15913
15914 * loader/i386/linux.c (grub_linux_setup_video): Handle error
15915 appropriately.
15916
15917 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
15920 code out.
15921
15922 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
15925 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
15926 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
15927 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
15928 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
15929 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
15930
15931 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15932
15933 * include/grub/err.h (grub_err_printf): Don't export.
15934
15935 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15936
15937 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15938
15939 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15940
15941 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15942 * kern/misc.c (grub_gettext_dummy): Make static.
15943
15944 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15947 by non-valid ones.
15948 * kern/term.c (grub_putchar): Likewise.
15949
15950 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15953 buggy hook call and memory leak.
15954
15955 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
15958
15959 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
15962
15963 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
15966 modevar.
15967 Return grub_errno on allocation error.
15968
15969 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15970
15971 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
15972
15973 2010-02-06 Yves Blusseau <blusseau@zetam.org>
15974
15975 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
15976 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
15977
15978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15979
15980 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
15981 non-pxe disk.
15982 (grub_pxefs_open): Likewise.
15983
15984 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15985
15986 * util/grub.d/10_hurd.in: Add --class information to menuentries.
15987 * util/grub.d/10_kfreebsd.in: Likewise.
15988 * util/grub.d/10_linux.in: Likewise.
15989
15990 2010-02-06 Colin D Bennett <colin@gibibit.com>
15991
15992 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
15993 (gfxmenu_mod_SOURCES): New variable.
15994 (gfxmenu_mod_CFLAGS): Likewise.
15995 (gfxmenu_mod_LDFLAGS): Likewise.
15996 * include/grub/term.h (grub_term_set_current_output): Declare
15997 argument as const.
15998 * docs/gfxmenu-theme-example.txt: New file.
15999 * gfxmenu/gfxmenu.c: Likewise.
16000 * gfxmenu/gui_box.c: Likewise.
16001 * gfxmenu/gui_canvas.c: Likewise.
16002 * gfxmenu/gui_circular_progress.c: Likewise.
16003 * gfxmenu/gui_image.c: Likewise.
16004 * gfxmenu/gui_label.c: Likewise.
16005 * gfxmenu/gui_list.c: Likewise.
16006 * gfxmenu/gui_progress_bar.c: Likewise.
16007 * gfxmenu/gui_string_util.c: Likewise.
16008 * gfxmenu/gui_util.c: Likewise.
16009 * gfxmenu/icon_manager.c: Likewise.
16010 * gfxmenu/model.c: Likewise.
16011 * gfxmenu/named_colors.c: Likewise.
16012 * gfxmenu/theme_loader.c: Likewise.
16013 * gfxmenu/view.c: Likewise.
16014 * gfxmenu/widget-box.c: Likewise.
16015 * include/grub/gfxmenu_model.h: Likewise.
16016 * include/grub/gfxmenu_view.h: Likewise.
16017 * include/grub/gfxwidgets.h: Likewise.
16018 * include/grub/gui.h: Likewise.
16019 * include/grub/gui_string_util.h: Likewise.
16020 * include/grub/icon_manager.h: Likewise.
16021
16022 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Agglomerate scrolling in gfxterm.
16025
16026 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
16027 (grub_virtual_screen_setup): Initialise 'total_screen'.
16028 (write_char): Split to ...
16029 (paint_char): ... this ...
16030 (write_char): ... and this.
16031 (paint_char): Handle delayed scrolling.
16032 (draw_cursor): Likewise.
16033 (scroll_up): Split to ...
16034 (real_scroll): ... this ...
16035 (scroll_up): ... and this.
16036 (real_scroll): Handle multi-line scroll and draw below-the-bottom
16037 characters.
16038 (grub_gfxterm_refresh): Call real_scroll.
16039
16040 2010-02-06 Colin D Bennett <colin@gibibit.com>
16041
16042 * include/grub/misc.h (grub_iscntrl): New inline function.
16043 (grub_isalnum): Likewise.
16044 (grub_strtol): Likewise.
16045
16046 2010-02-06 Colin D Bennett <colin@gibibit.com>
16047
16048 * normal/menu_text.c (get_entry_number): Move from here ...
16049 * normal/menu.c (get_entry_number): ... moved here.
16050 * include/grub/menu.h (grub_menu_get_default_entry_index):
16051 New prototype.
16052 * normal/menu.c (grub_menu_get_default_entry_index): New function.
16053 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
16054 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
16055 (grub_menu_viewer_should_return): Likewise.
16056 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
16057 * normal/menu_text.c (run_menu): Enable menu switching.
16058 * normal/menu_viewer.c (should_return): New variable.
16059 (menu_viewer_changed): Likewise.
16060 (grub_menu_viewer_show_menu): Handle menu viewer changes.
16061 (grub_menu_viewer_should_return): New function.
16062 (menuviewer_write_hook): Likewise.
16063 (grub_menu_viewer_init): Likewise.
16064
16065 2010-02-06 Colin D Bennet <colin@gibibit.com>
16066 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 Support for gfxterm in a window.
16069
16070 * include/grub/gfxterm.h: New file.
16071 * include/grub/video.h (struct grub_video_rect): New declaration.
16072 (grub_video_rect_t): Likewise.
16073 * term/gfxterm.c (struct grub_gfxterm_window): New type.
16074 (refcount): New variable.
16075 (render_target): Likewise.
16076 (window): Likewise.
16077 (repaint_callback): Likewise.
16078 (grub_virtual_screen_setup): Use 'render_target'.
16079 (init_window): New function.
16080 (grub_gfxterm_init_window): Likewise.
16081 (grub_gfxterm_init): Check reference counter.
16082 Use init_window.
16083 (destroy_window): New function.
16084 (grub_gfxterm_destroy_window): Likewise.
16085 (grub_gfxterm_fini): Check reference counter.
16086 Use destroy_window.
16087 (redraw_screen_rect): Restore viewport.
16088 Use 'render_target' and 'window'.
16089 Call 'repaint_callback'.
16090 (write_char): Use 'render_target'.
16091 (draw_cursor): Likewise.
16092 (scroll_up): Restore viewport.
16093 Use 'render_target' and 'window'.
16094 Call 'repaint_callback'.
16095 (grub_gfxterm_cls): Likewise.
16096 (grub_gfxterm_refresh): Use 'window'.
16097 (grub_gfxterm_set_repaint_callback): New function.
16098 (grub_gfxterm_background_image_cmd): Use 'window'.
16099 (grub_gfxterm_get_term): New function.
16100 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
16101
16102 2010-02-06 Colin D Bennett <colin@gibibit.com>
16103
16104 Bitmap scaling support.
16105
16106 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
16107 (bitmap_scale_mod_SOURCES): New variable.
16108 (bitmap_scale_mod_CFLAGS): Likewise.
16109 (bitmap_scale_mod_LDFLAGS): Likewise.
16110 * include/grub/bitmap_scale.h: New file.
16111 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
16112 (background_image_cmd_options): New variable.
16113 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
16114 (cmd): Rename and change type to ...
16115 (background_image_cmd_handle): ... this. All users updated.
16116 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
16117 * video/bitmap_scale.c: New file.
16118
16119 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 SDL support.
16122
16123 * Makefile.in (LIBSDL): New variable.
16124 (enable_grub_emu_sdl): Likewise.
16125 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
16126 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
16127 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
16128 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
16129 * util/sdl.c: New file.
16130
16131 2010-02-06 Colin D Bennett <colin@gibibit.com>
16132 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16133
16134 Double buffering support.
16135
16136 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
16137 * include/grub/video.h: Update comment.
16138 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
16139 New type.
16140 (grub_video_fb_doublebuf_blit_init): New prototype.
16141 * term/gfxterm.c (scroll_up): Support double buffering.
16142 (grub_gfxterm_refresh): Likewise.
16143 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
16144 (grub_video_fb_doublebuf_blit_init): Likewise.
16145 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
16146 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
16147 'displayed_page', 'render_page' and 'update_screen'.
16148 (grub_video_vbe_fini): Free offscreen buffer.
16149 (doublebuf_pageflipping_commit): New function.
16150 (doublebuf_pageflipping_update_screen): Likewise.
16151 (doublebuf_pageflipping_init): Likewise.
16152 (double_buffering_init): Likewise.
16153 (grub_video_vbe_setup): Enable doublebuffering.
16154 (grub_video_vbe_swap_buffers): Implement.
16155 (grub_video_vbe_set_active_render_target): Handle double buffering.
16156 (grub_video_vbe_get_active_render_target): Likewise.
16157 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
16158 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
16159 (grub_video_vbe_enable_double_buffering): Likewise.
16160 (grub_video_vbe_swap_buffers): Use update_screen.
16161 (grub_video_set_mode): Use double buffering.
16162
16163 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16164
16165 * maintainance/gentrigtables.py: Remove.
16166 * lib/trig.c: Likewise.
16167
16168 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
16169
16170 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
16171 `trigtables.c'.
16172 (trigtables.c): New rule.
16173 (gentrigtables): Likewise.
16174 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
16175
16176 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16177
16178 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
16179 integer constants.
16180
16181 2010-02-06 Colin D Bennet <colin@gibibit.com>
16182
16183 Trigonometry support.
16184
16185 * include/grub/trig.h: New file.
16186 * lib/trig.c: Likewise.
16187 * maintainance/gentrigtables.py: Likewise.
16188 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
16189 (trig_mod_SOURCES): New variable.
16190 (trig_mod_CFLAGS): Likewise.
16191 (trig_mod_LDFLAGS): Likewise.
16192
16193 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16194
16195 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
16196 disk devices.
16197
16198 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
16201 error.
16202
16203 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 * util/hostdisk.c (open_device): Don't use partition device when reading
16206 before the partition.
16207 (grub_util_biosdisk_read): Don't read from partition and before the
16208 partition in single operation.
16209 (grub_util_biosdisk_write): Don't write to partition and before the
16210 partition in single operation.
16211
16212 2010-02-03 Torsten Landschoff <torsten@debian.org>
16213
16214 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16215 last sectors.
16216
16217 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
16220 CDROM reads.
16221 (grub_biosdisk_write): Refuse to write to CDROM.
16222
16223 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
16226
16227 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16228
16229 * font/font.c (find_glyph): Check that bmp_idx is available before
16230 using it.
16231 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
16232 with (font == NULL).
16233
16234 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
16235
16236 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
16237
16238 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
16239
16240 * include/grub/script_sh.h (sourcecode): Add const qualifier.
16241 * util/grub-script-check.c (getline): Fix empty lines case.
16242
16243 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
16244
16245 * Makefile.in (check): Exit with fail status when one of the tests
16246 fails.
16247 * tests/example_functional_test.c (example_test): Fix reversed assert.
16248 * tests/example_unit_test.c (example_test): Likewise.
16249
16250 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
16251
16252 * util/grub.d/10_linux.in: This script does not use any of the
16253 contents of gettext.sh, only the external command `gettext', so stop
16254 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
16255 the same prefix as GRUB.)
16256 * util/grub.d/10_kfreebsd.in: Likewise.
16257
16258 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
16261 of the line.
16262
16263 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16264
16265 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16266 last sectors.
16267
16268 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
16271 having a 4KiB and not 32KiB buffer size.
16272
16273 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16274
16275 * util/hostfs.c: Include `<errno.h>'.
16276 (grub_hostfs_read): Handle errors from fseeko() and fread().
16277
16278 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16279
16280 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
16281 loop when using read hooks on files whose size isn't sector-aligned.
16282
16283 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16284
16285 Remove unused parameter.
16286
16287 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
16288 (grub_iso9660_open): Remove initialization of `data->length'.
16289
16290 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16291
16292 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
16293 memleak conditions.
16294
16295 2010-01-27 Carles Pina i Estany <carles@pina.cat>
16296
16297 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
16298 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
16299
16300 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16301
16302 * util/bin2h.c (usage): Fix warning (space after backslash).
16303
16304 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16305
16306 * font/font.c: Include `grub/fontformat.h.
16307 Remove font file format constants.
16308 (grub_font_load): Use the new macros.
16309 * include/grub/fontformat.h: New file.
16310 * util/grub-mkfont.c: Include `grub/fontformat.c'.
16311 (write_font_pf2): Use the new macros.
16312
16313 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16314
16315 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
16316 does.
16317
16318 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16319
16320 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16321
16322 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16323 (_start): Macroify `0x7F'.
16324
16325 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16326 (make_install_device): Use "(pxe)" as fallback prefix when booting
16327 via PXE.
16328
16329 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 * configure.ac: Reset LIBS after check for libgcc symbols.
16332
16333 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16334
16335 * util/hostdisk.c (open_device): Add trailing newline to debug
16336 message.
16337
16338 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16339
16340 * configure.ac: Check for `limits.h'.
16341 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16342
16343 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16344
16345 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16346 capitalize error strings.
16347
16348 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16349
16350 * util/grub.d/10_hurd.in: Add a recovery mode.
16351
16352 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16353
16354 * configure.ac: Check for libgcc symbols with -nostdlib.
16355
16356 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16357
16358 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16359
16360 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16361
16362 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16363 stack since heap may be unavailable at that point.
16364 (grub_ofconsole_gotoxy): Likewise.
16365
16366 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16367
16368 * configure.ac: Check for _restgpr_14_x.
16369 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16370 and _savegpr_* prototypes.
16371
16372 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16373
16374 Use generic grub_reboot() for i386-efi.
16375
16376 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16377 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16378 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16379
16380 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16381
16382 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16383 presence of "prefix" variable as it breaks when normal.mod is
16384 embedded.
16385
16386 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16387
16388 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16389 stack since heap is unavailable at that point.
16390
16391 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16394 (grub_freebsd_bootinfo): Rewritten.
16395 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16396
16397 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16398
16399 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16400
16401 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16402
16403 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16404 domain now.
16405
16406 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16407
16408 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16409 around for handling "/" to the correct fix. Fix a memory leak. Use
16410 xstrdup instead of strdup.
16411
16412 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16415
16416 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16419
16420 * font/font.c (struct grub_font): New member 'bmp_idx'.
16421 (font_init): Initialise 'bmp_idx'.
16422 (load_font_index): Fill 'bmp_idx'.
16423 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16424
16425 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16426
16427 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16428 unnecessary calls.
16429
16430 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16431
16432 Move context handling out of the kernel.
16433
16434 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16435 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16436 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16437 * conf/i386-efi.rmk: Likewise.
16438 * conf/i386-ieee1275.rmk: Likewise.
16439 * conf/i386-pc.rmk: Likewise.
16440 * conf/powerpc-ieee1275.rmk: Likewise.
16441 * conf/sparc64-ieee1275.rmk: Likewise.
16442 * conf/x86_64-efi.rmk: Likewise.
16443 * include/grub/env.h: Include grub/menu.h.
16444 (grub_env_var_type): Removed.
16445 (grub_env_var): Replaced field 'type' with 'global'.
16446 (grub_env_find): New prototype.
16447 (grub_env_context_open): Remove EXPORT_FUNC.
16448 (grub_env_context_close): Likewise.
16449 (grub_env_export): Likewise.
16450 (grub_env_set_data_slot): Removed.
16451 (grub_env_get_data_slot): Likewise.
16452 (grub_env_unset_data_slot): Likewise.
16453 (grub_env_unset_menu): New prototype.
16454 (grub_env_set_menu): Likewise.
16455 (grub_env_get_menu): Likewise.
16456 * include/grub/env_private.h: New file.
16457 * include/grub/normal.h (grub_context_init): New prototype.
16458 (grub_context_fini): Likewise.
16459 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16460 * normal/context.c (grub_cmd_export): ... to here.
16461 * kern/env.c: Include env_private.h.
16462 (HASHSZ): Moved to include/grub/env_private.h.
16463 (grub_env_context): Likewise.
16464 (grub_env_sorted_var): Likewise.
16465 (current_context): Renamed from this ...
16466 (grub_current_context): ...to this. 'static' removed. All users updated.
16467 (grub_env_find): Removed 'static'.
16468 (grub_env_context_open): Moved to normal/context.c.
16469 (grub_env_context_close): Likewise.
16470 (grub_env_export): Likewise.
16471 (mangle_data_slot_name): Removed.
16472 (grub_env_set_data_slot): Likewise.
16473 (grub_env_get_data_slot): Likewise.
16474 (grub_env_unset_data_slot): Likewise.
16475 * kern/main.c (grub_set_root_dev): Don't export root.
16476 It will be done later.
16477 (grub_main): Don't export prefix.
16478 It will be done later.
16479 * normal/context.c: New file.
16480 * normal/main.c (free_menu): Use grub_env_unset_menu.
16481 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16482 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16483 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16484 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16485
16486 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16487
16488 setpci support.
16489
16490 * commands/setpci.c: New file.
16491 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16492 (setpci_mod_SOURCES): New variable.
16493 (setpci_mod_CFLAGS): Likewise.
16494 (setpci_mod_LDFLAGS): Likewise.
16495
16496 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 Byte-addressable PCI configuration space.
16499
16500 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16501 dword address.
16502 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16503 GRUB_PCI_REG_CACHELINE.
16504 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16505 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16506 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16507 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16508 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16509 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16510 grub_pci_make_address.
16511 (lock_rom_area): Likewise.
16512 * commands/lspci.c (grub_lspci_iter): Use macroses
16513 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16514 of grub_pci_make_address.
16515 * disk/ata.c (grub_ata_pciinit): Likewise.
16516 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16517 (GRUB_PCI_REG_VENDOR): Likewise.
16518 (GRUB_PCI_REG_DEVICE): Likewise.
16519 (GRUB_PCI_REG_COMMAND): Likewise.
16520 (GRUB_PCI_REG_STATUS): Likewise.
16521 (GRUB_PCI_REG_REVISION): Likewise.
16522 (GRUB_PCI_REG_CLASS): Likewise.
16523 (GRUB_PCI_REG_CACHELINE): Likewise.
16524 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16525 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16526 (GRUB_PCI_REG_BIST): Likewise.
16527 (GRUB_PCI_REG_ADDRESSES): Likewise.
16528 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16529 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16530 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16531 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16532 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16533 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16534 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16535 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16536 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16537 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16538 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16539 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16540 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16541 (GRUB_PCI_REG_MIN_GNT): Likewise.
16542 (GRUB_PCI_REG_MAX_LAT): Likewise.
16543 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16544 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16545 * video/efi_uga.c (find_framebuf): Likewise.
16546 * video/sm712.c (grub_video_sm712_setup): Likewise.
16547 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16548 space.
16549
16550 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16551
16552 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16553 can be reliably determined to be supported.
16554
16555 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16556
16557 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16558 that VESA is supported.
16559 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16560 supported.
16561
16562 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16565
16566 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16567
16568 * util/misc.c (make_system_path_relative_to_its_root): Work around
16569 special-casing of "/", as previous incarnation of this routine did.
16570
16571 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 Fix any-emu compilation.
16574
16575 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16576 * grub_bin2h_SOURCES: New variable.
16577
16578 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16579
16580 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16581
16582 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16583
16584 * util/grub.d/00_header.in: Fix handling of locale_dir.
16585
16586 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16589 as possible unifont location (Gentoo).
16590 Reported by: Alexander Brüning
16591
16592 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 Don't try to generate lists for kernel.img.
16595
16596 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16597 (pkglib_MODULES): Remove kernel.img.
16598 (kernel_img_EXPORTS): Removed.
16599 (kernel_img_RELOCATABLE): New variable.
16600 * conf/x86_64-efi.rmk: Likewise.
16601 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16602
16603 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16604
16605 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16606 grub_xasprintf or grub_snprintf.
16607 (grub_vsprintf): Likewise.
16608 (grub_snprintf): New proto.
16609 (grub_vsnprintf): Likewise.
16610 (grub_xasprintf): Likewise.
16611 (grub_xvasprintf): Likewise.
16612 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16613 (grub_sprintf): Removed.
16614 (grub_vsnprintf): New function.
16615 (grub_snprintf): Likewise.
16616 (grub_xvasprintf): Likewise.
16617 (grub_xasprintf): Likewise.
16618 (grub_vsprintf): Renamed to ...
16619 (grub_vsnprintf_real): ...this. New argument max_len.
16620
16621 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16622
16623 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16624 fix grub-script-check warning.
16625
16626 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 * include/grub/font.h (grub_font_load): Fix prototype.
16629
16630 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16631
16632 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16633
16634 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16635
16636 * include/grub/x86_64/at_keyboard.h: New file.
16637
16638 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 * loader/mips/linux.c: Include missing grub/i18n.h.
16641
16642 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16643
16644 * normal/menu.c (notify_execution_failure): Clarify error message.
16645
16646 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16647
16648 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16649 return value (and revert all return statements). Update users.
16650
16651 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16652
16653 * kern/device.c (grub_device_iterate): Allocate new part_ent
16654 structure based on sizeof (*p) rather than sizeof (p->next), to
16655 account for structure padding.
16656
16657 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
16658 disk is NULL, which might happen for LVM physical volumes with no
16659 LVM signature.
16660
16661 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16662
16663 * loader/mips/linux.c (grub_cmd_initrd)
16664 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16665
16666 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16667
16668 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
16669 (grub_video_video_init, grub_video_bitmap_init)
16670 (grub_font_manager_init, grub_term_gfxterm_init)
16671 (grub_at_keyboard_init): New extern declarations.
16672 (grub_machine_init): Initialize gfxterm and at_keyboard.
16673
16674 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16675
16676 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16677 `gfxterm.mod' into core image.
16678
16679 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16680 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16681 (kernel_img_FORMAT): Copy to ...
16682
16683 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16684 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16685 (kernel_img_FORMAT): ... here, and ...
16686
16687 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16688 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16689 (kernel_img_FORMAT): ... here.
16690
16691 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
16692 and input (at_keyboard) terminals in kernel.
16693 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
16694
16695 (pkglib_MODULES): Remove `pci.mod'.
16696 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
16697 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
16698 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16699 (at_keyboard_mod_LDFLAGS): Remove variables.
16700
16701 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16702
16703 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16704
16705 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
16706
16707 * include/grub/mips/libgcc.h: Only export symbols for functions
16708 that libgcc provides.
16709
16710 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
16711
16712 MIPS support.
16713
16714 * bus/bonito.c: New file.
16715 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
16716 GRUB_PCI_NUM_DEVICES.
16717 * term/i386/pc/serial.c: Move to ...
16718 * term/serial.c: ... here. All users updated.
16719 * util/i386/pc/grub-mkimage.c: Move to ...
16720 * util/grub-mkrawimage.c: ... here. All users updated.
16721 * term/i386/pc/at_keyboard.c: Move to ...
16722 * term/at_keyboard.c: ... here. All users updated.
16723 * conf/mips-qemu-mips.rmk: New file.
16724 * conf/mips-yeeloong.rmk: Likewise.
16725 * conf/mips.rmk: Likewise.
16726 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
16727 mipsel-qemu-mips.
16728 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
16729 to port addresses.
16730 (grub_ata_pciinit): Support CS5536.
16731 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
16732 * font/font_cmd.c (loadfont_command): Open file before passing it to
16733 grub_font_load.
16734 (pseudo_file_read): New function.
16735 (pseudo_file_close): Likewise.
16736 (pseudo_fs): New structure.
16737 (load_font_module): New function.
16738 (GRUB_MOD_INIT(font_manager)): Load embedded font.
16739 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
16740 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
16741 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
16742 * include/grub/i386/at_keyboard.h: Split into ...
16743 * include/grub/at_keyboard.h: ... this ...
16744 * include/grub/i386/at_keyboard.h: ... and this.
16745 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
16746 New prototype.
16747 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
16748 updated.
16749 (grub_elf64_size): Likewise.
16750 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
16751 filename.
16752 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
16753 * include/grub/i386/coreboot/serial.h: Rewritten.
16754 * include/grub/i386/ieee1275/serial.h: Include
16755 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
16756 * include/grub/i386/pc/serial.h: Moved from here ...
16757 * include/grub/serial.h: ... to here. All users updated.
16758 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
16759 (GRUB_PCI_NUM_BUS): Likewise.
16760 (GRUB_PCI_NUM_DEVICES): Likewise.
16761 (grub_pci_device_map_range): Add missing volatile keyword.
16762 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
16763 * include/grub/mips/at_keyboard.h: New file.
16764 * include/grub/mips/cache.h: Likewise.
16765 * include/grub/mips/io.h: Likewise.
16766 * include/grub/mips/kernel.h: Likewise.
16767 * include/grub/mips/libgcc.h: Likewise.
16768 * include/grub/mips/pci.h: Likewise.
16769 * include/grub/mips/qemu-mips/boot.h: Likewise.
16770 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16771 * include/grub/mips/qemu-mips/loader.h: Likewise.
16772 * include/grub/mips/qemu-mips/memory.h: Likewise.
16773 * include/grub/mips/qemu-mips/serial.h: Likewise.
16774 * include/grub/mips/qemu-mips/time.h: Likewise.
16775 * include/grub/mips/relocator.h: Likewise.
16776 * include/grub/mips/time.h: Likewise.
16777 * include/grub/mips/types.h: Likewise.
16778 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
16779 * include/grub/mips/yeeloong/boot.h: Likewise.
16780 * include/grub/mips/yeeloong/kernel.h: Likewise.
16781 * include/grub/mips/yeeloong/loader.h: Likewise.
16782 * include/grub/mips/yeeloong/memory.h: Likewise.
16783 * include/grub/mips/yeeloong/pci.h: Likewise.
16784 * include/grub/mips/yeeloong/serial.h: Likewise.
16785 * include/grub/mips/yeeloong/time.h: Likewise.
16786 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
16787 * kern/elf.c (grub_elf32_size): New parameter. All users
16788 updated.
16789 (grub_elf64_size): Likewise.
16790 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
16791 Load modules before saying "Welcome to GRUB!".
16792 Call grub_refresh after saying "Welcome to GRUB!".
16793 * kern/mips/cache.S: New file.
16794 * kern/mips/cache_flush.S: Likewise.
16795 * kern/mips/dl.c: Likewise.
16796 * kern/mips/init.c: Likewise.
16797 * kern/mips/qemu-mips/init.c: Likewise.
16798 * kern/mips/startup.S: Likewise.
16799 * kern/mips/yeeloong/init.c: Likewise.
16800 * kern/term.c (grub_putcode): Handle NULL terminal.
16801 (grub_getcharwidth): Likewise.
16802 (grub_getkey): Likewise.
16803 (grub_checkkey): Likewise.
16804 (grub_getkeystatus): Likewise.
16805 (grub_getxy): Likewise.
16806 (grub_getwh): Likewise.
16807 (grub_gotoxy): Likewise.
16808 (grub_cls): Likewise.
16809 (grub_setcolorstate): Likewise.
16810 (grub_setcolor): Likewise.
16811 (grub_getcolor): Likewise.
16812 (grub_refresh): Likewise.
16813 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
16814 (write_jump): Add hatch nop.
16815 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
16816 * lib/mips/setjmp.S: New file.
16817 * loader/mips/linux.c: Likewise.
16818 * term/i386/pc/at_keyboard.c: Move from here ...
16819 * term/at_keyboard.c: ... to here.
16820 * term/i386/pc/serial.c: Moved from here ...
16821 * term/serial.c: ... to here. All users updated.
16822 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
16823 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
16824 (serial_translate_key_sequence): Avoid deadlock.
16825 (grub_serial_getkey): Handle backspace.
16826 (grub_serial_putchar): Fix newline handling.
16827 * util/i386/pc/grub-mkimage.c: Move from here ...
16828 * util/grub-mkrawimage.c: ... to here. All users updated.
16829 (generate_image): New parameters 'font_path' and 'format'.
16830 Support embedding font.
16831 Use grub_host_to_target* instead of grub_cpu_to_le*.
16832 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
16833 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
16834 (options): New option "--font".
16835 (usage): Likewise.
16836 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
16837 (main): Handle "--font".
16838 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
16839 (grub_virtual_screen_setup): Set bg_color_display.
16840 (redraw_screen_rect): Use bg_color_display instead of incorrect
16841 bg_color.
16842 (grub_gfxterm_cls): Likewise.
16843 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
16844 Support embedding config file.
16845 (add_segments): Likewise.
16846 (options): New option "--config".
16847 (main): Handle "--config".
16848 * video/sm712.c: New file.
16849
16850 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16851
16852 Fix parallel builds.
16853
16854 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
16855 font.c depend on ascii.h).
16856
16857 2010-01-12 Carles Pina i Estany <carles@pina.cat>
16858
16859 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
16860
16861 2010-01-11 Carles Pina i Estany <carles@pina.cat>
16862
16863 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
16864 By default: disabled.
16865 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
16866 parameter.
16867
16868 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16869
16870 * font/font.c: Update copyright years.
16871 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
16872
16873 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16874
16875 * font/font.c: Include `ascii.h'.
16876 (ASCII_BITMAP_SIZE): New macro.
16877 (ascii_font_glyph): Define.
16878 (ascii_glyph_lookup): New function.
16879 (grub_font_get_string_width): Change comment. If glyph not found, use
16880 ascii_glyph_lookup.
16881 (grub_font_get_glyph_with_fallback): If glyph not available returns
16882 ascii_glyph_lookup.
16883 * util/grub-mkfont.c (file_formats): New enum.
16884 (options): Add `ascii-bitmaps' new option.
16885 (usage): Add `asii-bitmaps' new option.
16886 (write_font_ascii_bitmap): New function.
16887 (write_font): Rename to ...
16888 (write_font_p2): ... this. Remove print_glyphs call.
16889 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
16890 used. Call print_glyphs.
16891 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
16892
16893 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16894
16895 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
16896 (grub_bin2h_SOURCES): New variable.
16897 * util/bin2h.c: New file.
16898
16899 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16900
16901 * include/multiboot.h: Resynced with spec.
16902 * include/multiboot2.h: Likewise.
16903 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
16904 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
16905
16906 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16907
16908 * include/grub/term.h (grub_term_register_input,
16909 grub_term_register_output): Check return of terminal init()
16910 routines, and abort if errors are raised.
16911
16912 * commands/terminal.c: Update copyright year.
16913
16914 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16915
16916 * commands/terminal.c (grub_cmd_terminal_input)
16917 (grub_cmd_terminal_output): Check return of terminal init()
16918 routines, and abort if errors are raised.
16919
16920 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * include/grub/i386/bsd.h: Fix include pathes.
16923
16924 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 Add missing *BSD copyright headers.
16927
16928 * include/grub/aout.h: Add BSD licence.
16929 * include/grub/i386/bsd.h: Parts under different licences moved to ...
16930 * include/grub/i386/freebsd_linker.h: ... here,
16931 * include/grub/i386/freebsd_reboot.h: ... here,
16932 * include/grub/i386/netbsd_bootinfo.h: ... here,
16933 * include/grub/i386/netbsd_reboot.h: ... here,
16934 * include/grub/i386/openbsd_bootarg.h: ... here,
16935 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
16936 licence to each file.
16937
16938 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16939
16940 * acinclude.m4: Remove `nop' assembly instruction; it's not
16941 implemented by all architectures.
16942
16943 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16944
16945 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16946 ELILO. This is no longer necessary.
16947
16948 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16949
16950 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16951
16952 * util/grub-script-check.c: grub-script-check tool.
16953 * conf/common.rmk: Make rules for grub-script-check.
16954
16955 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16956
16957 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
16958 spotting it back in 2008. Shame on me for forgetting he did.
16959
16960 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
16961
16962 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16963
16964 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
16965 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
16966 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
16967 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
16968 (GRUB_VIDEO_TYPE_EFI): Rename to ...
16969 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
16970
16971 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
16972
16973 * include/grub/test.h: Add license header.
16974 * tests/example_functional_test.c: Likewise.
16975 * tests/example_unit_test.c: Likewise.
16976 * tests/lib/functional_test.c: Likewise.
16977 * tests/lib/test.c: Likewise.
16978 * tests/lib/unit_test.c: Likewise.
16979
16980 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
16981
16982 Use flag-based instead of hook-based video mode selection and "auto"
16983 keyword.
16984
16985 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
16986 (grub_video_set_mode): Changed prototype. All users updated.
16987 (grub_video_check_mode_flag): New inline function.
16988 * video/video.c (parse_modespec): New function.
16989 (grub_video_set_mode): Parse flags and keywords.
16990
16991 2010-01-17 Carles Pina i Estany <carles@pina.cat>
16992
16993 * util/misc.c (grub_util_info): Fix the order of the parameters in a
16994 fprintf call.
16995
16996 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
16997
16998 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
16999
17000 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17001
17002 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
17003 string.
17004 * util/grub-emu.c (usage): Likewise.
17005 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
17006 * util/i386/efi/grub-mkimage.c (usage): Likewise.
17007 * util/i386/pc/grub-mkimage.c (usage): Likewise.
17008 * util/i386/pc/grub-setup.c (usage): Likewise.
17009
17010 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17011
17012 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
17013 the message.
17014 (grub_util_info): Likewise.
17015 (grub_util_error): Likewise.
17016 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
17017 and/or new lines in `grub_util_warna', `grub_util_info',
17018 `grub_util_error' calls.
17019 * util/getroot.c: Likewise.
17020 * util/grub-editenv.c: Likewise.
17021 * util/grub-emu.c: Likewise.
17022 * util/grub-fstest.c: Likewise.
17023 * util/grub-mkdevicemap.c: Likewise.
17024 * util/grub-mkfont.c: Likewise.
17025 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17026 * util/grub-mkrelpath.c: Likewise.
17027 * util/grub-pe2elf.c: Likewise.
17028 * util/grub-probe.c: Likewise.
17029 * util/hostdisk.c: Likewise.
17030 * util/i386/efi/grub-mkimage.c: Likewise.
17031 * util/i386/pc/grub-mkimage.c: Likewise.
17032 * util/i386/pc/grub-setup.c: Likewise.
17033 * util/ieee1275/ofpath.c: Likewise.
17034 * util/mkisofs/eltorito.c: Likewise.
17035 * util/mkisofs/rock.c: Likewise.
17036 * util/mkisofs/write.c: Likewise.
17037 * util/raid.c: Likewise.
17038 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17039 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17040
17041 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17042
17043 Enable multiboot on non-pc.
17044
17045 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
17046 multiboot.mod and multiboot2.mod to ...
17047 * conf/i386.rmk (pkglib_MODULES): ... here.
17048 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
17049 Moved to ...
17050 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
17051 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
17052 Moved to ...
17053 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
17054 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
17055 Moved to ...
17056 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
17057 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
17058 Moved to ...
17059 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
17060 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
17061 relocator.mod.
17062 (ata_mod_SOURCES): Removed.
17063 (ata_mod_CFLAGS): Likewise.
17064 (ata_mod_LDFLAGS): Likewise.
17065 (relocator_mod_SOURCES): Removed.
17066 (relocator_mod_CFLAGS): Likewise.
17067 (relocator_mod_ASFLAGS): Likewise.
17068 (relocator_mod_LDFLAGS): Likewise.
17069 Include i386.mk.
17070 * include/grub/x86_64/multiboot.h: New file.
17071 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
17072 Terminate EFI.
17073
17074 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17075
17076 Video multiboot support.
17077
17078 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
17079 New prototype.
17080 * include/multiboot.h: Resynced with multiboot specification.
17081 * include/multiboot2.h: Likewise.
17082 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
17083 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
17084 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
17085 (HAS_VGA_TEXT): Likewise.
17086 (accepts_video): New variable.
17087 (grub_multiboot_set_accepts_video): New function.
17088 (grub_multiboot_get_mbi_size): Account for video structures.
17089 (set_video_mode): New function.
17090 (retrieve_video_parameters): Likewise.
17091 (grub_multiboot_make_mbi): Fill video fields.
17092
17093 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 Video driver ids.
17096
17097 * include/grub/video.h (grub_video_driver_id): New type.
17098 (grub_video_adapter): New member 'id'. All users updated.
17099 (grub_video_get_driver_id): New proto.
17100 * video/video.c (grub_video_get_driver_id): New function.
17101
17102 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17103
17104 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
17105 `var=val'.
17106
17107 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17108
17109 * normal/cmdline.c (print_completion): Gettextizze.
17110
17111 2001-01-14 Carles Pina i Estany <carles@pina.cat>
17112
17113 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
17114
17115 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17116
17117 * gettext/gettext.c (grub_gettext_translate): Push and pop
17118 grub_errno.
17119 (grub_gettext_delete_list): Change comment style.
17120 * kern/err.c (grub_error): Gettextizze.
17121 (grub_fatal): Gettextizze.
17122
17123 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17124
17125 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
17126 (grub_linux16_real_boot): ... this.
17127 * kern/i386/loader.S: Likewise.
17128 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
17129 (grub_linux16_boot): New function. Switches to text mode and calls
17130 grub_linux16_real_boot().
17131
17132 * loader/i386/bsd.c: Include `<grub/video.h>'.
17133 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
17134 text mode before calling grub_unix_real_boot().
17135
17136 * loader/i386/multiboot.c: Include `<grub/video.h>'.
17137 (grub_multiboot_boot): Switch to text mode before calling
17138 grub_relocator32_boot().
17139
17140 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
17141 (grub_chainloader_boot): Switch to text mode before calling
17142 grub_chainloader_real_boot().
17143
17144 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17145 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17146
17147 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
17148 non-empty value.
17149
17150 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17151 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17152
17153 * util/grub.d/00_header.in: Define a "savedefault" function for use
17154 in menu entries.
17155 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
17156
17157 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17158 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17159
17160 * util/grub-mkconfig_lib.in (save_default_entry): Only set
17161 saved_entry if boot_once is unset.
17162 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
17163 previous saved entry (i.e. grub-reboot).
17164
17165 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17166
17167 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
17168
17169 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17170
17171 * util/grub.d/00_header.in: Use `set var=val' rather than plain
17172 `var=val'.
17173 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
17174
17175 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17176
17177 * util/grub-reboot.in: Fix --version output.
17178 * util/grub-set-default.in: Likewise.
17179
17180 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17181
17182 * util/grub.d/00_header.in: Silently ignore zero-sized environment
17183 blocks.
17184
17185 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17186
17187 * util/grub.d/00_header.in: Quote the value assigned to `default',
17188 in case it contains spaces.
17189
17190 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17191
17192 * util/grub.d/30_os-prober.in: Fix merge error that moved a
17193 `save_default_entry' call from the macosx case to the linux case.
17194
17195 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17196 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
17197
17198 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
17199 in `chosen' environment variable.
17200 * normal/menu_text.c (get_entry_number): Check if the variable
17201 matches the title of a menu entry.
17202 (run_menu): Pass menu to get_entry_number.
17203
17204 * util/grub-reboot.in: New file.
17205 * util/grub-set-default.in: New file.
17206 * conf/common.rmk (grub-reboot): New utility.
17207 (grub-set-default): New utility.
17208
17209 * util/grub-mkconfig_lib.in (save_default_entry): New function.
17210 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
17211 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
17212 move it to `saved_entry' for the next boot. Load environment on
17213 initialisation.
17214 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
17215 * util/grub.d/10_hurd.in: Likewise.
17216 * util/grub.d/10_linux.in (linux_entry): Likewise.
17217 * util/grub.d/10_windows.in: Likewise.
17218 * util/grub.d/30_os-prober.in: Likewise.
17219
17220 * util/grub-install.in: Create environment block.
17221 * util/i386/efi/grub-install.in: Likewise.
17222 * util/ieee1275/grub-install.in: Likewise.
17223 * util/sparc64/ieee1275/grub-install.in: Likewise.
17224
17225 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
17226
17227 Unit testing framework for GRUB.
17228
17229 * Makefile.in: Test framework build rules for 'make check'.
17230 * conf/tests.rmk: Build rules for individual tests and framework.
17231
17232 * include/grub/test.h: Header file for whitebox tests.
17233 * tests/lib/functional_test.c: Framework support for whitebox
17234 functional tests.
17235 * tests/lib/test.c: Common whitebox testing code for unit and
17236 functional tests.
17237 * tests/lib/unit_test.c: Framework support for whitebox unit
17238 tests.
17239
17240 * tests/util/grub-shell-tester.in: Support utility for grub-script
17241 tests.
17242 * tests/util/grub-shell.in: Utility to execute grub-script
17243 commands in a Qemu instance.
17244
17245 * tests/example_functional_test.c: Example whitebox functional
17246 test.
17247 * tests/example_grub_script_test.in: Example grub-script test.
17248 * tests/example_scripted_test.in: Example scripted test.
17249 * tests/example_unit_test.c: Example whitebox unit test.
17250
17251 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17252
17253 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
17254 Add loader/i386/multiboot_mbi.c.
17255 (multiboot2_mod_SOURCES): Likewise.
17256 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
17257 (multiboot2_mod_SOURCES): Likewise.
17258 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
17259 (grub_multiboot_make_mbi): Likewise.
17260 (grub_multiboot_free_mbi): Likewise.
17261 (grub_multiboot_init_mbi): Likewise.
17262 (grub_multiboot_add_module): Likewise.
17263 (grub_multiboot_set_bootdev): Likewise.
17264 * loader/i386/multiboot.c (mbi): Removed.
17265 (mbi_dest): Likewise.
17266 (alloc_mbi): New variable.
17267 (grub_multiboot_payload_size): Removed. All users updated.
17268 (grub_multiboot_pure_size): New variable.
17269 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
17270 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
17271 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
17272 (grub_fill_multiboot_mmap): Likewise.
17273 (grub_multiboot_get_bootdev): Likewise.
17274 (grub_multiboot): Use multiboot_mbi functions.
17275 * loader/i386/multiboot_mbi.c: New file.
17276
17277 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
17280 it would result in module crash.
17281
17282 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17283
17284 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
17285 (grub_ofconsole_getwh): Split to ...
17286 (grub_ofconsole_getwh): ... this.
17287 (grub_ofconsole_dimensions): ...and this.
17288 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
17289
17290 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
17291
17292 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
17293
17294 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17295
17296 * loader/i386/pc/multiboot2.c: Removed stalled file.
17297
17298 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
17301 Reported by: Grégoire Sutre
17302
17303 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
17304
17305 * util/misc.c (canonicalize_file_name): New function.
17306 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
17307 instead of realpath().
17308
17309 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
17310
17311 * util/grub-install.in (usage): Clarify meaning of --root-directory,
17312 and make it clearer that it's optional. Based on confusion
17313 witnessed on IRC.
17314
17315 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17316
17317 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
17318 in premature implicit newline.
17319
17320 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17323 which resulted in garbled command line at the end of screen.
17324
17325 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17326
17327 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17328 initialization with similar approach as with other Linux loaders.
17329
17330 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17331
17332 Fix i386-ieee1275 build.
17333
17334 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17335 and grub_term_height() for video_{width,height} initialization.
17336
17337 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17338
17339 Fix grub-emu build.
17340
17341 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17342
17343 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17344 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17345
17346 Support for multiple terminals.
17347
17348 * Makefile.in (pkglib_DATA): terminal.lst.
17349 (terminal.lst): New target.
17350 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17351 (GRUB_MOD_INIT(handler)): Likewise.
17352 (GRUB_MOD_FINI(handler)): Likewise.
17353 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17354 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17355 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17356 (grub_cmd_sleep): Use grub_term_save_pos.
17357 * commands/terminal.c: New file.
17358 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17359 commands/terminal.c and lib/charset.c.
17360 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17361 (pkglib_MODULES): Add terminal.mod.
17362 (terminal_mod_SOURCES): New variable.
17363 (terminal_mod_CFLAGS): Likewise.
17364 (terminal_mod_LDFLAGS): Likewise.
17365 * genhandlerlist.sh: Don't handle terminals.
17366 * genmk.rb: Generate terminal-*.lst.
17367 * genterminallist.sh: New file.
17368 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17369 (grub_is_valid_utf8): Likewise.
17370 (grub_utf8_to_ucs4_alloc): Likewise.
17371 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17372 (grub_menu_register_viewer): Changed argument.
17373 (grub_menu_try_text): New proto.
17374 (grub_gfxmenu_try_hook): New declaration.
17375 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17376 (grub_menu_init_page): Additional argument term.
17377 (grub_normal_init_page): Likewise.
17378 (grub_cmdline_get): Arguments simplified.
17379 (grub_utf8_to_ucs4_alloc): Removed.
17380 (grub_print_ucs4): Additional argument term.
17381 (grub_getstringwidth): Likewise.
17382 (grub_print_message_indented): Likewise.
17383 (grub_menu_text_register_instances): New proto.
17384 (grub_show_menu): Likewise.
17385 (read_terminal_list): Likewise.
17386 (grub_set_more): Likewise.
17387 * include/grub/parser.h: Include handler.h.
17388 * include/grub/reader.h: Rewritten.
17389 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17390 (GRUB_TERM_WIDTH): Changed to function.
17391 (GRUB_TERM_HEIGHT): Likewise.
17392 (GRUB_TERM_BORDER_WIDTH): Likewise.
17393 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17394 (GRUB_TERM_NUM_ENTRIES): Likewise.
17395 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17396 (GRUB_TERM_CURSOR_X): Likewise.
17397 (grub_term_input_class): Likewise.
17398 (grub_term_output_class): Likewise.
17399 (grub_term_outputs_disabled): New declaration.
17400 (grub_term_inputs_disabled): Likewise.
17401 (grub_term_outputs): Likewise.
17402 (grub_term_inputs): Likewise.
17403 (grub_term_register_input): Rewritten.
17404 (grub_term_register_output): Likewise.
17405 (grub_term_unregister_input): Likewise.
17406 (grub_term_unregister_output): Likewise.
17407 (FOR_ACTIVE_TERM_INPUTS): New macro.
17408 (FOR_DISABLED_TERM_INPUTS): Likewise.
17409 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17410 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17411 * include/grub/terminfo.h: Add oterm argument to all protypes.
17412 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17413 Use grub_rescue_run.
17414 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17415 All users updated.
17416 * kern/reader.c: Removed. All users updated.
17417 * kern/rescue_reader.c (grub_rescue_init): Removed.
17418 (grub_rescue_reader): Likewise.
17419 (grub_register_rescue_reader): Likewise.
17420 (grub_rescue_run): New function based on kern/reader.c.
17421 * kern/term.c: Adapted for multiterm.
17422 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17423 (grub_is_valid_utf8): Likewise.
17424 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17425 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17426 right terminal.
17427 * loader/i386/linux.c (grub_linux_boot): Likewise.
17428 * normal/auth.c (grub_username_get): New function.
17429 (grub_auth_check_authentication): Use grub_username_get.
17430 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17431 * normal/color.c: Adapt for multiterm.
17432 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17433 (grub_normal_init_page): Additional argument term.
17434 (read_lists): Call read_terminal_lists.
17435 (grub_enter_normal_mode): Call grub_cmdline_run.
17436 Handle grub_normal_exit_level.
17437 (grub_cmd_normal): Make reentrant.
17438 (grub_cmd_normal_exit): New function.
17439 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17440 * normal/menu.c: Adapt for multiterm.
17441 * normal/menu_entry.c: Likewise.
17442 * normal/menu_text.c: Likewise.
17443 * normal/menu_viewer.c: Removed. All users updated.
17444 * normal/term.c: New file.
17445 * util/console.c: Change order of includes to workaround a bug in
17446 ncurses headers.
17447 * term/terminfo.c: New argument oterm on all exported functions.
17448 All users updated.
17449 * util/grub-editenv.c (grub_term_input_class): Removed.
17450 (grub_term_output_class): Likewise.
17451
17452 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17453
17454 Make loader output a bit more user-friendly.
17455
17456 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17457 is being loaded. Likewise for the Hurd.
17458
17459 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17460 that kernel of FreeBSD ${version} is being loaded.
17461
17462 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17463 grub_dprintf().
17464 (grub_cmd_initrd): Likewise.
17465 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17466 that Linux ${version} is being loaded. Likewise for initrd.
17467
17468 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17469
17470 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17471
17472 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17473
17474 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17475 (GRUB_MOD_INIT): Gettextizze.
17476 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17477 (GRUB_MOD_INIT): Gettextizze.
17478 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17479 (grub_cmd_linux): Capitalise Linux.
17480 (GRUB_MOD_INIT): Gettextizze.
17481 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17482 (grub_cmd_linux): Capitalise Linux.
17483 (GRUB_MOD_INIT): Gettextizze.
17484 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17485 (grub_cmd_linux): Capitalise Linux.
17486 (GRUB_MOD_INIT): Gettextizze.
17487 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17488 (GRUB_MOD_INIT): Gettextizze.
17489 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17490 (grub_cmd_linux): Capitalise Linux.
17491 (GRUB_MOD_INIT): Gettextizze.
17492 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17493 (grub_cpu_xnu_init): Gettextizze.
17494 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17495 (GRUB_MOD_INIT): Gettextizze.
17496 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17497 (GRUB_MOD_INIT): Gettextizze.
17498 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17499 (grub_linux_load64): Capitalise Linux.
17500 (GRUB_MOD_INIT): Gettextizze.
17501 * loader/xnu.c: Include `<grub/i18n.h>'.
17502 (GRUB_MOD_INIT): Gettextizze.
17503 * po/POTFILES: Add `loader/efi/appleloader.c',
17504 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17505 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17506 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17507 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17508 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17509 and `loader/xnu.c'.
17510
17511 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17512
17513 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17514
17515 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17516
17517 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17518 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17519 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17520
17521 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17522
17523 Reset Multiboot 2 support. New loader implements the draft in
17524 /branches/multiboot2 and shares as much code as possible with the
17525 production Multiboot 1 implementation.
17526
17527 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17528 * loader/multiboot2.c: Likewise.
17529 * loader/i386/multiboot_helper.S: Likewise.
17530 * include/multiboot2.h: Replace with latest version from the draft
17531 in /branches/multiboot2.
17532
17533 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17534 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17535 and `loader/multiboot2.c'.
17536 (pkglib_MODULES): Add `multiboot2.mod'.
17537 (multiboot2_mod_SOURCES): New variable.
17538 (multiboot2_mod_LDFLAGS): Likewise.
17539 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17540
17541 * conf/i386-pc.rmk: Likewise.
17542
17543 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17544 (multiboot_mod_SOURCES): Remove variable.
17545 (multiboot_mod_LDFLAGS): Likewise.
17546 (multiboot_mod_CFLAGS): Likewise.
17547
17548 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17549 `<multiboot2.h>' instead of `<multiboot.h>'.
17550 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17551 (MULTIBOOT_HEADER_MAGIC): New macros.
17552
17553 * loader/multiboot_loader.c (module_version_status): Remove variable.
17554 (find_multi_boot2_header): Remove function.
17555 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17556 logic. Always check for the Multiboot version we're compiling for.
17557 (grub_cmd_module_loader): Likewise.
17558 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17559 command instead of `multiboot'.
17560
17561 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17562
17563 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17564 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17565 all users.
17566
17567 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17568 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17569
17570 Fix breakage introduced with previous commit.
17571
17572 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17573 commands.
17574 * normal/handler.c (read_handler_list): Revert part of previous commit
17575 affecting this file.
17576 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17577 (grub_normal_execute): ... here.
17578
17579 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17580
17581 Merge prefix-redefinition-fix branch.
17582
17583 * normal/autofs.c (read_fs_list): Make function capable of being
17584 run multiple times, gracefuly replacing the previous data
17585 structures.
17586 * normal/dyncmd.c (read_command_list): Likewise.
17587 * normal/handler.c (read_handler_list): Likewise.
17588 * normal/main.c (read_lists): New function. Calls all the
17589 list reading functions.
17590 (grub_normal_execute): Use read_lists() instead of calling all
17591 list reading functions explicitly. Register read_lists() as a
17592 variable hook attached to ${prefix}.
17593
17594 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 Merge crypto branch.
17597
17598 * Makefile.in (pkglib_DATA): Add crypto.lst.
17599 (crypto.lst): New target.
17600 * commands/hashsum.c: New file.
17601 * commands/password.c (check_password): Use grub_crypto_memcmp.
17602 * commands/password_pbkdf2.c: New file.
17603 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17604 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17605 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17606 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17607 -I$(srcdir)/lib/libgcrypt_wrap.
17608 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17609 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17610 password_pbkdf2.mod.
17611 (crypto_mod_SOURCES): New variable.
17612 (crypto_mod_CFLAGS): Likewise.
17613 (crypto_mod_LDFLAGS): Likewise.
17614 (hashsum_mod_SOURCES): New variable.
17615 (hashsum_mod_CFLAGS): Likewise.
17616 (hashsum_mod_LDFLAGS): Likewise.
17617 (pbkdf2_mod_SOURCES): New variable.
17618 (pbkdf2_mod_CFLAGS): Likewise.
17619 (pbkdf2_mod_LDFLAGS): Likewise.
17620 (password_pbkdf2_mod_SOURCES): New variable.
17621 (password_pbkdf2_mod_CFLAGS): Likewise.
17622 (password_pbkdf2_mod_LDFLAGS): Likewise.
17623 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17624 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17625 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17626 Include conf/gcry.rmk.
17627 * include/grub/auth.h: Rewritten.
17628 * include/grub/crypto.h: New file.
17629 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17630 * include/grub/normal.h (read_crypto_list): New prototype.
17631 * lib/crypto.c: New file.
17632 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17633 * lib/pbkdf2.c: Likewise.
17634 * normal/auth.c (grub_auth_strcmp): Removed.
17635 (grub_iswordseparator): Likewise.
17636 (grub_auth_strword): Likewise.
17637 (is_authenticated): Use grub_strword.
17638 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17639 and grub_strword. Pass entered password to authentication callback.
17640 * normal/crypto.c: New file.
17641 * normal/main.c: Call read_crypto_list.
17642 * util/grub-mkpasswd-pbkdf2.c: New file.
17643 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17644
17645 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17646
17647 Fix descent and ascent calculation.
17648
17649 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17650 (options): New option "asce".
17651 (usage): Likewise.
17652 (add_char): Ignore invalid glyphs for descent calculation.
17653 Calculate ascent from actual content.
17654 (print_glyphs): Use 'asce'.
17655 (write_font): Likewise. Allow ascent override.
17656 (main): Handle "asce" option.
17657
17658 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17659
17660 * kern/err.c: Include `<grub/i18n.h>'.
17661 (grub_print_error): Add full stop. Gettextizze.
17662 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
17663 (grub_bsd_load_elf): Capitalise ELF.
17664 (grub_cmd_freebsd_loadenv): Add `s' in error string.
17665 (grub_cmd_freebsd_module): Likewise.
17666 (grub_cmd_freebsd_module_elf): Likewise.
17667 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
17668
17669 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17670
17671 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
17672 * commands/search_file.c (HELP_MESSAGE): New macro.
17673 * commands/search_label.c (HELP_MESSAGE): Likewise.
17674 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
17675 * po/POTFILES: Add `commands/search_file.c',
17676 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
17677 `commands/search.c'.
17678
17679 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17680
17681 * config.rpath: Update from Gnulib.
17682
17683 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17684
17685 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17686
17687 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17688
17689 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17690
17691 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17692
17693 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
17694 arguments to fread so that we get a return value in bytes, rather
17695 than something that will normally be rounded down to 0.
17696 Adjust error handling to avoid producing garbage when size_t is not
17697 the same size as long long.
17698
17699 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17700
17701 * util/mkisofs/write.c (padblock_write): Check return value of
17702 fread.
17703
17704 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17705
17706 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
17707 floppy images now.
17708
17709 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
17710
17711 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17712
17713 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
17714 instead of manual alignment.
17715 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
17716 verbose). Avoid attempts to read past end of the device
17717 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
17718 but GRUB_DISK_CACHE_SIZE may exceed that).
17719
17720 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17721
17722 * commands/crc.c (grub_cmd_crc): Abort on read errors.
17723 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
17724 it to upper layer.
17725
17726 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17727
17728 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
17729 New constant.
17730 (grub_efi_piwg_device_path): New structure
17731 (grub_efi_piwg_device_path_t): New type.
17732 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
17733 (devpath_1): Transform to a structure. All users updated.
17734 (devpath_2): Likewise.
17735 (devpath_3): Likewise.
17736 (devpath_4): Likewise.
17737 (devpath_5): Likewise.
17738
17739 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 * loader/efi/appleloader.c: Restored. Update all users.
17742
17743 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17744
17745 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
17746
17747 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
17748 (struct boot_blocklist): Move from here ...
17749 * include/grub/i386/pc/boot.h [ASM_FILE]
17750 (struct grub_boot_blocklist): ... to here. Update all users.
17751 (setup): Only initialize `start' member of `first_block'
17752 structure. Add assert() calls to verify the other members.
17753
17754 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
17755 (generate_image): Fix broken blocklist length initialization.
17756 Add assert() call to verify blocklist `segment' field.
17757
17758 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17759
17760 * loader/efi/appleloader.c: Remove. Update all users.
17761
17762 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17763
17764 * boot/i386/pc/boot.S: Update copyright year.
17765 * boot/i386/pc/cdboot.S: Likewise.
17766 * boot/i386/pc/diskboot.S: Likewise.
17767 * boot/i386/pc/lnxboot.S: Likewise.
17768 * boot/i386/pc/pxeboot.S: Likewise.
17769 * bus/pci.c: Likewise.
17770 * commands/cmp.c: Likewise.
17771 * commands/help.c: Likewise.
17772 * commands/hexdump.c: Likewise.
17773 * commands/i386/pc/halt.c: Likewise.
17774 * commands/i386/pc/play.c: Likewise.
17775 * commands/i386/pc/vbeinfo.c: Likewise.
17776 * commands/ls.c: Likewise.
17777 * commands/test.c: Likewise.
17778 * disk/dmraid_nvidia.c: Likewise.
17779 * disk/i386/pc/biosdisk.c: Likewise.
17780 * disk/ieee1275/nand.c: Likewise.
17781 * disk/ieee1275/ofdisk.c: Likewise.
17782 * disk/lvm.c: Likewise.
17783 * disk/raid.c: Likewise.
17784 * disk/raid6_recover.c: Likewise.
17785 * disk/scsi.c: Likewise.
17786 * fs/affs.c: Likewise.
17787 * fs/cpio.c: Likewise.
17788 * fs/ext2.c: Likewise.
17789 * fs/hfs.c: Likewise.
17790 * fs/iso9660.c: Likewise.
17791 * fs/ntfs.c: Likewise.
17792 * fs/sfs.c: Likewise.
17793 * fs/udf.c: Likewise.
17794 * fs/ufs.c: Likewise.
17795 * fs/xfs.c: Likewise.
17796 * gencmdlist.sh: Likewise.
17797 * genmk.rb: Likewise.
17798 * include/grub/disk.h: Likewise.
17799 * include/grub/efi/api.h: Likewise.
17800 * include/grub/efi/efi.h: Likewise.
17801 * include/grub/efi/pe32.h: Likewise.
17802 * include/grub/elf.h: Likewise.
17803 * include/grub/fs.h: Likewise.
17804 * include/grub/i386/at_keyboard.h: Likewise.
17805 * include/grub/i386/pc/memory.h: Likewise.
17806 * include/grub/i386/pc/vbe.h: Likewise.
17807 * include/grub/i386/pci.h: Likewise.
17808 * include/grub/i386/tsc.h: Likewise.
17809 * include/grub/ieee1275/ieee1275.h: Likewise.
17810 * include/grub/ntfs.h: Likewise.
17811 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17812 * include/grub/sparc64/libgcc.h: Likewise.
17813 * include/grub/symbol.h: Likewise.
17814 * include/grub/types.h: Likewise.
17815 * include/multiboot2.h: Likewise.
17816 * io/gzio.c: Likewise.
17817 * kern/device.c: Likewise.
17818 * kern/disk.c: Likewise.
17819 * kern/efi/efi.c: Likewise.
17820 * kern/efi/mm.c: Likewise.
17821 * kern/elf.c: Likewise.
17822 * kern/file.c: Likewise.
17823 * kern/i386/dl.c: Likewise.
17824 * kern/i386/pc/init.c: Likewise.
17825 * kern/i386/pc/startup.S: Likewise.
17826 * kern/ieee1275/ieee1275.c: Likewise.
17827 * kern/ieee1275/init.c: Likewise.
17828 * kern/main.c: Likewise.
17829 * kern/mm.c: Likewise.
17830 * kern/powerpc/dl.c: Likewise.
17831 * kern/sparc64/dl.c: Likewise.
17832 * kern/x86_64/dl.c: Likewise.
17833 * lib/hexdump.c: Likewise.
17834 * loader/efi/appleloader.c: Likewise.
17835 * loader/i386/ieee1275/linux.c: Likewise.
17836 * loader/i386/pc/chainloader.c: Likewise.
17837 * loader/i386/pc/linux.c: Likewise.
17838 * loader/i386/pc/multiboot2.c: Likewise.
17839 * loader/ieee1275/multiboot2.c: Likewise.
17840 * loader/multiboot2.c: Likewise.
17841 * loader/multiboot_loader.c: Likewise.
17842 * loader/powerpc/ieee1275/linux.c: Likewise.
17843 * normal/completion.c: Likewise.
17844 * normal/menu_entry.c: Likewise.
17845 * partmap/apple.c: Likewise.
17846 * util/grub.d/10_hurd.in: Likewise.
17847 * util/hostfs.c: Likewise.
17848 * video/readers/png.c: Likewise.
17849
17850 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
17851
17852 * include/grub/misc.h (GNUC_PREREQ): New macro.
17853 (ATTRIBUTE_ERROR): New macro.
17854 * include/grub/list.h (grub_bad_type_cast_real): Use
17855 ATTRIBUTE_ERROR.
17856
17857 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17858
17859 * normal/menu_text.c (print_message): Change messages.
17860
17861 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17862
17863 * normal/menu_entry.c (store_completion): Gettextizze.
17864
17865 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17866
17867 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
17868
17869 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17870
17871 * po/POTFILES: Sort correctly.
17872
17873 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17874
17875 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
17876 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
17877 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
17878 full stop.
17879 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
17880 summary. Gettextizze the strings.
17881 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
17882 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
17883 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
17884 full stop.
17885 (GRUB_MOD_INIT): Remove command name from summary.
17886 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
17887 summary.
17888 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
17889 * term/i386/pc/serial.c (options): Add full stops.
17890 (GRUB_MOD_INIT): Remove command name from the summary.
17891
17892 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17893
17894 * commands/acpi.c: Gettextizze help strings and/or options. Include
17895 `grub/i18n.h' if needed.
17896 * commands/blocklist.c: Likewise.
17897 * commands/boot.c: Likewise.
17898 * commands/cat.c: Likewise.
17899 * commands/cmp.c: Likewise.
17900 * commands/configfile.c: Likewise.
17901 * commands/crc.c: Likewise.
17902 * commands/date.c: Likewise.
17903 * commands/echo.c: Likewise.
17904 * commands/efi/fixvideo.c: Likewise.
17905 * commands/efi/loadbios.c: Likewise.
17906 * commands/gptsync.c: Likewise.
17907 * commands/halt.c: Likewise.
17908 * commands/handler.c: Likewise.
17909 * commands/hdparm.c: Likewise.
17910 * commands/hexdump.c: Likewise.
17911 * commands/i386/cpuid.c: Likewise.
17912 * commands/i386/pc/drivemap.c: Likewise.
17913 * commands/i386/pc/halt.c: Likewise.
17914 * commands/i386/pc/pxecmd.c: Likewise.
17915 * commands/i386/pc/vbeinfo.c: Likewise.
17916 * commands/i386/pc/vbetest.c: Likewise.
17917 * commands/ieee1275/suspend.c: Likewise.
17918 * commands/keystatus.c: Likewise.
17919 * commands/loadenv.c: Likewise.
17920 * commands/ls.c: Likewise.
17921 * commands/lsmmap.c: Likewise.
17922 * commands/lspci.c: Likewise.
17923 * commands/memrw.c: Likewise.
17924 * commands/minicmd.c: Likewise.
17925 * commands/parttool.c: Likewise.
17926 * commands/password.c: Likewise.
17927 * commands/probe.c: Likewise.
17928 * commands/read.c: Likewise.
17929 * commands/reboot.c: Likewise.
17930 * commands/search.c: Likewise.
17931 * commands/sleep.c: Likewise.
17932 * commands/test.c: Likewise.
17933 * commands/true.c: Likewise.
17934 * commands/usbtest.c: Likewise.
17935 * commands/videotest.c: Likewise.
17936 * commands/xnu_uuid.c: Likewise.
17937 * disk/loopback.c: Likewise.
17938 * hello/hello.c: Likewise.
17939 * loader/i386/bsd.c: Likewise.
17940 * term/i386/pc/serial.c: Likewise.
17941 * po/POTFILES: Add new files.
17942
17943 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17944
17945 * term/i386/pc/at_keyboard.c
17946 (keyboard_controller_wait_untill_ready): Rename to ...
17947 (keyboard_controller_wait_until_ready): ... this. Update all users.
17948
17949 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17950
17951 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
17952 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
17953 string using string width.
17954 * normal/menu_text.c (grub_print_message_indented): Use
17955 grub_print_spaces and not print_spaces.
17956 (print_timeout): Likewise.
17957 (print_spaces): Move to...
17958 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
17959
17960 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
17961
17962 Import from Gnulib.
17963
17964 * gnulib/getdelim.c: New file.
17965 * gnulib/getline.c: Likewise.
17966
17967 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
17968
17969 * include/grub/list.h (grub_assert_fail): Removed.
17970 (grub_bad_type_cast_real): New function.
17971 (grub_bad_type_cast): New macro.
17972 (GRUB_AS_LIST): Use grub_bad_type_cast.
17973 (GRUB_AS_LIST_P): Likewise.
17974 (GRUB_AS_NAMED_LIST): Likewise.
17975 (GRUB_AS_NAMED_LIST_P): Likewise.
17976 (GRUB_AS_PRIO_LIST): Likewise.
17977 (GRUB_AS_PRIO_LIST_P): Likewise.
17978 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
17979
17980 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
17983 Fix syntax error.
17984
17985 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
17986
17987 * configure.ac: Check for TARGET_CFLAGS initialization before we
17988 initialize it ourselves (sigh).
17989 Move a few modifications to TARGET_CFLAGS to be unconditional
17990 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
17991 eh_frame)
17992
17993 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
17994 * term/i386/pc/at_keyboard.c
17995 (keyboard_controller_wait_untill_ready): Likewise.
17996 (keyboard_controller_led): Rename `led_status' paramter to avoid
17997 name conflict.
17998
17999 2009-12-28 Carles Pina i Estany <carles@pina.cat>
18000
18001 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
18002 quotes.
18003
18004 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18005
18006 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
18007
18008 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18009
18010 * normal/menu_text.c (grub_print_message_indented): Prevent
18011 past-the-end-of-array dereference.
18012
18013 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18014
18015 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
18016 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
18017
18018 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18019
18020 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
18021 * normal/main.c (grub_normal_read_line): Remove a space from the
18022 default prompt.
18023
18024 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18025
18026 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
18027 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18028 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18029 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18030 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18031 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18032 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18033
18034 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18035
18036 * video/readers/jpeg.c (cmd): Declare.
18037 (grub_cmd_jpegtest): Use `grub_command_t' type.
18038 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18039 Assign to `cmd'.
18040 (GRUB_MOD_FINI): Use `cmd' to unregister.
18041 * video/readers/png.c (cmd): Declare.
18042 (grub_cmd_pngtest): Use `grub_command_t' type.
18043 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18044 Assign to `cmd'.
18045 (GRUB_MOD_FINI): Use `cmd' to unregister.
18046 * video/readers/tga.c (cmd): Declare.
18047 (grub_cmd_tgatest): Use `grub_command_t' type.
18048 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18049 Assign to `cmd'.
18050 (GRUB_MOD_FINI): Use `cmd' to unregister.
18051
18052 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18053
18054 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
18055 stops.
18056 * kern/corecmd.c (grub_register_core_commands): Likewise.
18057 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
18058 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18059 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
18060 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18061 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18062 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
18063 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18064 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
18065 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18066 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18067 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18068 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18069 * normal/handler.c (insert_handler): Likewise.
18070 * normal/main.c (GRUB_MOD_INIT): Likewise.
18071 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
18072
18073 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18074
18075 * commands/help.c (grub_cmd_help): Print the command name before the
18076 summary.
18077 (GRUB_MOD_INIT): Remove command name from the summary.
18078 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
18079 string as summary.
18080 * lib/arg.c (find_long): Print the command name before the summary.
18081 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
18082 summary.
18083 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
18084 * commands/cat.c (GRUB_MOD_INIT): Likewise.
18085 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
18086 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18087 * commands/crc.c (GRUB_MOD_INIT): Likewise.
18088 * commands/date.c (GRUB_MOD_INIT): Likewise.
18089 * commands/echo.c (GRUB_MOD_INIT): Likewise.
18090 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
18091 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18092 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18093 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
18094 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
18095 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
18096 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
18097 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18098 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
18099 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
18100 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
18101 * commands/ls.c (GRUB_MOD_INIT): Likewise.
18102 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18103 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18104 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18105 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
18106 * commands/password.c (GRUB_MOD_INIT): Likewise.
18107 * commands/probe.c (GRUB_MOD_INIT): Likewise.
18108 * commands/read.c (GRUB_MOD_INIT): Likewise.
18109 * commands/search.c (GRUB_MOD_INIT): Likewise.
18110 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
18111 * commands/test.c (GRUB_MOD_INIT): Likewise.
18112 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
18113 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
18114 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
18115 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
18116 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
18117 * lib/arg.c (GRUB_MOD_INIT): Likewise.
18118 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
18119 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18120 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18121 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18122 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
18123 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
18124 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
18125 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
18126
18127 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18128
18129 Use search command for preliminar UUID search.
18130
18131 * commands/search.c: Split into ...
18132 * commands/search_wrap.c: ...this
18133 * commands/search.c: ...and this.
18134 * commands/search_file.c: New file.
18135 * commands/search_label.c: New file.
18136 * commands/search_uuid.c: New file.
18137 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
18138 Add commands/search_wrap.c, commands/search_file.c,
18139 commands/search_label.c and commands/search_uuid.c.
18140 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
18141 (search_mod_SOURCES): Set to commands/search_wrap.c.
18142 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
18143 search_label.mod.
18144 (search_fs_file_mod_SOURCES): New variable.
18145 (search_fs_file_mod_CFLAGS): Likewise.
18146 (search_fs_file_mod_LDFLAGS): Likewise.
18147 (search_label_mod_SOURCES): Likewise.
18148 (search_label_mod_CFLAGS): Likewise.
18149 (search_label_mod_LDFLAGS): Likewise.
18150 (search_fs_uuid_mod_SOURCES): New variable.
18151 (search_fs_uuid_mod_CFLAGS): Likewise.
18152 (search_fs_uuid_mod_LDFLAGS): Likewise.
18153 (fs_file_mod_SOURCES): Removed.
18154 (fs_file_mod_CFLAGS): Likewise.
18155 (fs_file_mod_LDFLAGS): Likewise.
18156 (fs_uuid_mod_SOURCES): Removed.
18157 (fs_uuid_mod_CFLAGS): Likewise.
18158 (fs_uuid_mod_LDFLAGS): Likewise.
18159 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
18160 Set to util/grub-install.in.
18161 * disk/fs_file.c: Removed.
18162 * disk/fs_uuid.c: Likewise.
18163 * include/grub/search.h: New file.
18164 * util/grub-install.in: Handle sparc64.
18165 Create and use load.cfg.
18166 * util/sparc64/ieee1275/grub-install.in: Removed.
18167
18168 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
18171 Ignore return status if CF is cleared.
18172 (grub_biosdisk_get_diskinfo_standard): Likewise.
18173
18174 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18175
18176 * term/i386/pc/at_keyboard.c
18177 (keyboard_controller_wait_untill_ready): New function.
18178 (grub_keyboard_controller_write, grub_keyboard_controller_read)
18179 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
18180 for keyboard polling, rather than duplicate the same loop. This
18181 saves a few bytes in code size.
18182
18183 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 Support for (pxe[:server[:gateway]]) syntax and
18186 use environment variable for PXE.
18187
18188 * commands/i386/pc/pxecmd.c (options): Removed.
18189 (print_ip): Removed.
18190 (grub_cmd_pxe): Removed
18191 (grub_cmd_pxe_unload): New function.
18192 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
18193 (grub_pxe_your_ip): Made static.
18194 (grub_pxe_default_server_ip): Likewise.
18195 (grub_pxe_default_gateway_ip): Likewise.
18196 (grub_pxe_blksize): Likewise.
18197 (parse_ip): New function.
18198 (grub_pxe_open): Support server and gateway specification.
18199 (grub_pxe_close): Free disk->data.
18200 (grub_pxefs_open): Use disk->data.
18201 (grub_pxefs_read): Likewise.
18202 (grub_env_write_readonly): New function.
18203 (set_mac_env): Likewise.
18204 (set_env_limn_ro): Likewise.
18205 (parse_dhcp_vendor): Likewise.
18206 (grub_pxe_detect): Set the environment variables.
18207 (set_ip_env): New function.
18208 (write_ip_env): Likewise.
18209 (grub_env_write_pxe_default_server): Likewise.
18210 (grub_env_write_pxe_default_gateway): Likewise.
18211 (grub_env_write_pxe_blocksize): Likewise.
18212 (GRUB_MOD_INIT(pxe)): Set environment variables.
18213 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
18214 (grub_pxe_mac_addr_t): ... this. All users updated.
18215 (grub_pxe_your_ip): Removed.
18216 (grub_pxe_server_ip): Likewise.
18217 (grub_pxe_gateway_ip): Likewise.
18218 (grub_pxe_blksize): Likewise.
18219
18220 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18221
18222 * commands/help.c: Include `<grub/i18n.h>'.
18223 (grub_cmd_help): Gettextizze.
18224 (GRUB_MOD_INIT): Likewise.
18225 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
18226 (GRUB_MOD_INIT): Gettextizze.
18227 * commands/search.c: Include `<grub/i18n.h>'.
18228 (options): Gettextizze.
18229 (GRUB_MOD_INIT): Gettextizze.
18230 * lib/arg.c: Include `<grub/i18n.h>'.
18231 (help_options): Gettextizze.
18232 (find_long): Likewise.
18233 (grub_arg_show_help): Likewise.
18234 * normal/dyncmd.c: Include `<grub/i18n.h>'.
18235 (read_command_list): Gettextizze.
18236 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
18237 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
18238
18239 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18240
18241 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
18242 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
18243 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
18244 (led_status): New variable.
18245 (keyboard_controller_led): New function.
18246 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
18247 update led status for caps lock, num lock and scroll lock.
18248
18249 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
18250
18251 * util/hostdisk.c (open_device): Fix a comment.
18252
18253 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18254
18255 * util/grub-install.in (host_os): New variable.
18256 * util/i386/efi/grub-install.in (host_os): Likewise.
18257
18258 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18259
18260 * util/mkisofs/write.c (padblock_write): Abort when given an
18261 excedingly large embed image, instead of silently truncating it.
18262
18263 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18264
18265 * include/multiboot.h: Indentation fixes.
18266
18267 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18268
18269 * include/multiboot.h (struct multiboot_aout_symbol_table)
18270 (struct multiboot_elf_section_header_table): New structure
18271 declarations (stolen from GRUB Legacy).
18272 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
18273 table information.
18274
18275 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
18276 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
18277 type aliases.
18278
18279 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18280
18281 * include/multiboot.h: Make comments src2texi-friendly.
18282
18283 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18284
18285 For consistency with [multiboot]/docs/boot.S.
18286
18287 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
18288 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
18289 (MULTIBOOT_MAGIC2): Rename from this ...
18290 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
18291
18292 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18293
18294 * include/multiboot.h: Remove `<grub/types.h>'.
18295 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
18296 types. Update all users.
18297
18298 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18299
18300 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
18301 `couldn't' and `can not' by `cannot'.
18302 * commands/i386/pc/drivemap.c: Likewise.
18303 * disk/ata.c: Likewise.
18304 * disk/ieee1275/nand.c: Likewise.
18305 * fs/affs.c: Likewise.
18306 * fs/fat.c: Likewise.
18307 * fs/hfs.c: Likewise.
18308 * fs/hfsplus.c: Likewise.
18309 * fs/iso9660.c: Likewise.
18310 * fs/jfs.c: Likewise.
18311 * fs/minix.c: Likewise.
18312 * fs/reiserfs.c: Likewise.
18313 * fs/sfs.c: Likewise.
18314 * fs/udf.c: Likewise.
18315 * fs/ufs.c: Likewise.
18316 * fs/xfs.c: Likewise.
18317 * loader/powerpc/ieee1275/linux.c: Likewise.
18318 * loader/sparc64/ieee1275/linux.c: Likewise.
18319 * util/grub-probe.c: Likewise.
18320 * util/misc.c: Likewise.
18321
18322 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18323
18324 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18325 grub_errno calls.
18326 * commands/acpi.c: Likewise.
18327 * commands/blocklist.c: Likewise.
18328 * commands/efi/loadbios.c: Likewise.
18329 * commands/i386/pc/drivemap.c: Likewise.
18330 * commands/loadenv.c: Likewise.
18331 * commands/memrw.c: Likewise.
18332 * commands/password.c: Likewise.
18333 * commands/videotest.c: Likewise.
18334 * disk/ata.c: Likewise.
18335 * disk/ata_pthru.c: Likewise.
18336 * disk/dmraid_nvidia.c: Likewise.
18337 * disk/ieee1275/nand.c: Likewise.
18338 * disk/ieee1275/ofdisk.c: Likewise.
18339 * disk/loopback.c: Likewise.
18340 * disk/lvm.c: Likewise.
18341 * disk/mdraid_linux.c: Likewise.
18342 * disk/raid.c: Likewise.
18343 * disk/raid6_recover.c: Likewise.
18344 * disk/scsi.c: Likewise.
18345 * efiemu/main.c: Likewise.
18346 * efiemu/mm.c: Likewise.
18347 * efiemu/pnvram.c: Likewise.
18348 * efiemu/symbols.c: Likewise.
18349 * font/font.c: Likewise.
18350 * fs/cpio.c: Likewise.
18351 * fs/hfsplus.c: Likewise.
18352 * fs/iso9660.c: Likewise.
18353 * fs/jfs.c: Likewise.
18354 * fs/minix.c: Likewise.
18355 * fs/ntfs.c: Likewise.
18356 * fs/ntfscomp.c: Likewise.
18357 * fs/reiserfs.c: Likewise.
18358 * fs/ufs.c: Likewise.
18359 * fs/xfs.c: Likewise.
18360 * gettext/gettext.c: Likewise.
18361 * include/grub/auth.h: Likewise.
18362 * kern/elf.c: Likewise.
18363 * kern/file.c: Likewise.
18364 * kern/ieee1275/init.c: Likewise.
18365 * kern/ieee1275/mmap.c: Likewise.
18366 * kern/ieee1275/openfw.c: Likewise.
18367 * kern/powerpc/dl.c: Likewise.
18368 * kern/sparc64/dl.c: Likewise.
18369 * lib/arg.c: Likewise.
18370 * loader/i386/bsd.c: Likewise.
18371 * loader/i386/bsdXX.c: Likewise.
18372 * loader/i386/efi/linux.c: Likewise.
18373 * loader/i386/efi/xnu.c: Likewise.
18374 * loader/i386/ieee1275/linux.c: Likewise.
18375 * loader/i386/linux.c: Likewise.
18376 * loader/i386/multiboot.c: Likewise.
18377 * loader/i386/pc/linux.c: Likewise.
18378 * loader/i386/pc/multiboot2.c: Likewise.
18379 * loader/i386/xnu.c: Likewise.
18380 * loader/ieee1275/multiboot2.c: Likewise.
18381 * loader/macho.c: Likewise.
18382 * loader/machoXX.c: Likewise.
18383 * loader/multiboot2.c: Likewise.
18384 * loader/multiboot_loader.c: Likewise.
18385 * loader/powerpc/ieee1275/linux.c: Likewise.
18386 * loader/sparc64/ieee1275/linux.c: Likewise.
18387 * loader/xnu.c: Likewise.
18388 * loader/xnu_resume.c: Likewise.
18389 * mmap/i386/pc/mmap.c: Likewise.
18390 * normal/menu_viewer.c: Likewise.
18391 * partmap/acorn.c: Likewise.
18392 * partmap/amiga.c: Likewise.
18393 * partmap/apple.c: Likewise.
18394 * script/lexer.c: Likewise.
18395 * term/gfxterm.c: Likewise.
18396 * term/i386/pc/serial.c: Likewise.
18397 * term/i386/pc/vga.c: Likewise.
18398 * term/ieee1275/ofconsole.c: Likewise.
18399 * term/terminfo.c: Likewise.
18400 * video/bitmap.c: Likewise.
18401 * video/efi_gop.c: Likewise.
18402 * video/efi_uga.c: Likewise.
18403 * video/fb/video_fb.c: Likewise.
18404 * video/i386/pc/vbe.c: Likewise.
18405 * video/readers/tga.c: Likewise.
18406 * video/video.c: Likewise.
18407
18408 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18409
18410 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18411 * commands/lspci.c: Likewise.
18412 * commands/probe.c: Likewise.
18413 * commands/xnu_uuid.c: Likewise.
18414 * conf/i386-coreboot.rmk: Likewise.
18415 * conf/i386-efi.rmk: Likewise.
18416 * conf/i386-ieee1275.rmk: Likewise.
18417 * conf/i386-pc.rmk: Likewise.
18418 * conf/powerpc-ieee1275.rmk: Likewise.
18419 * conf/sparc64-ieee1275.rmk: Likewise.
18420 * conf/x86_64-efi.rmk: Likewise.
18421 * fs/i386/pc/pxe.c: Likewise.
18422 * gettext/gettext.c: Likewise.
18423 * include/grub/efi/graphics_output.h: Likewise.
18424 * include/grub/i386/pc/memory.h: Likewise.
18425 * kern/env.c: Likewise.
18426 * kern/i386/qemu/startup.S: Likewise.
18427 * lib/i386/pc/biosnum.c: Likewise.
18428 * lib/i386/relocator.c: Likewise.
18429 * lib/i386/relocator_asm.S: Likewise.
18430 * lib/relocator.c: Likewise.
18431 * loader/i386/bsd.c: Likewise.
18432 * loader/i386/multiboot.c: Likewise.
18433 * loader/i386/pc/chainloader.c: Likewise.
18434 * loader/i386/xnu.c: Likewise.
18435 * loader/xnu.c: Likewise.
18436 * normal/main.c: Likewise.
18437 * normal/menu_text.c: Likewise.
18438 * util/getroot.c: Likewise.
18439 * util/grub-mkconfig_lib.in: Likewise.
18440 * util/grub.d/00_header.in: Likewise.
18441 * util/i386/pc/grub-mkimage.c: Likewise.
18442 * util/mkisofs/eltorito.c: Likewise.
18443 * util/mkisofs/exclude.h: Likewise.
18444 * util/mkisofs/hash.c: Likewise.
18445 * util/mkisofs/iso9660.h: Likewise.
18446 * util/mkisofs/joliet.c: Likewise.
18447 * util/mkisofs/mkisofs.c: Likewise.
18448 * util/mkisofs/mkisofs.h: Likewise.
18449 * util/mkisofs/multi.c: Likewise.
18450 * util/mkisofs/name.c: Likewise.
18451 * util/mkisofs/rock.c: Likewise.
18452 * util/mkisofs/tree.c: Likewise.
18453 * util/mkisofs/write.c: Likewise.
18454 * video/efi_gop.c: Likewise.
18455
18456 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18457
18458 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18459 size counting.
18460
18461 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18462
18463 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18464 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18465
18466 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18469 (GRUB_MOD_INIT(memrw)): Update help line.
18470
18471 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18472
18473 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18474 Use grub_extcmd_t. All users updated.
18475 (options): New variable.
18476 (grub_cmd_read): Restructure for readability. Support "-v" option.
18477 (grub_cmd_write): Restructure for readability.
18478
18479 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18480
18481 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18482
18483 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18484
18485 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18486 with the actual contents of the correspondending make variable.
18487 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18488 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18489 specifying `*.lst' and `efiemu??.o'
18490
18491 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18492
18493 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18494 after function name.
18495 Noticed by Rene Engelhard <rene@debian.org>.
18496
18497 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18498
18499 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18500 (options): New variable.
18501 (iospace): Likewise.
18502 (grub_lspci_iter): List IO spaces if "-i" was given.
18503 (grub_cmd_lspci): Parse options.
18504 (GRUB_MOD_INIT(lspci)): Use extcmd.
18505 (GRUB_MOD_FINI(lspci)): Likewise.
18506
18507 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18508
18509 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18510 `function' keyword.
18511 Patch by Tony Mancill <tmancill@debian.org>.
18512
18513 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18514
18515 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18516 (grub_uhci_portstatus): Likewise.
18517 (grub_uhci_portstatus): Add necessary delay.
18518 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18519
18520 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18521
18522 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18523 (GRUB_MOD_INIT): Likewise.
18524 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18525 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18526 * commands/echo.c (options): Fix capitalizations and/or full stops.
18527 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18528 (enable_rom_area): Likewise.
18529 (GRUB_MOD_INIT): Likewise.
18530 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18531 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18532 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18533 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18534 * commands/hexdump.c (options): Likewise.
18535 * commands/i386/cpuid.c (options): Likewise.
18536 (GRUB_MOD_INIT): Likewise.
18537 * commands/i386/pc/drivemap.c (options): Likewise.
18538 (GRUB_MOD_INIT): Likewise.
18539 * commands/i386/pc/halt (options): Likewise.
18540 (GRUB_MOD_INIT): Likewise.
18541 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18542 * commands/i386/pc/pxecmd.c (options): Likewise.
18543 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18544 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18545 * commands/keystatus.c (options): Likewise.
18546 (GRUB_MOD_INIT): Likewise.
18547 * commands/loadenv.c (options): Likewise.
18548 * commands/ls.c (options): Likewise.
18549 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18550 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18551 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18552 * commands/parttool.c (helpmsg): Likewise.
18553 * commands/probe.c (options): Likewise.
18554 * commands/read.c (GRUB_MOD_INIT): Likewise.
18555 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18556 * commands/search.c (options): Likewise.
18557 * commands/sleep.c (options): Likewise.
18558 * commands/test.c (GRUB_MOD_INIT): Likewise.
18559 * commands/true.c (GRUB_MOD_INIT): Likewise.
18560 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18561 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18562 * lib/arg.c (help_options): Likewise.
18563 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18564 `$(XGETTEXT)'.
18565 * po/POTFILES: Add `commands/loadenv.c'.
18566
18567 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18568
18569 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18570 instead of specifying them explicit.
18571
18572 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18573
18574 * NEWS: Add grub-probe support for GNU/Hurd.
18575
18576 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18577
18578 * NEWS: gettext was added after 1.97.
18579
18580 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18581
18582 * util/mkisofs/msdos_partition.h: New file (based on
18583 include/grub/msdos_partition.h).
18584 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18585 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18586 (ld_options, main): Recognize --protective-msdos-label.
18587 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18588 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18589 (padblock_write): If `use_protective_msdos_label' is set, patch a
18590 protective DOS-style label in the output image.
18591
18592 * util/grub-mkrescue.in: Use --protective-msdos-label.
18593
18594 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18595
18596 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18597 boot.
18598
18599 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18600
18601 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18602 variables.
18603 (ld_options, main): Recognize `--embedded-boot'.
18604 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18605 declarations.
18606 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18607 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18608 (padblock_write): Likewise. Rewrite to support embedded boot image.
18609
18610 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18611 for BIOS-based disk boot instead of only ElTorito.
18612
18613 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18614
18615 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18616 build (not needed for bootstrap).
18617
18618 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18619
18620 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18621 from i386-pc build (not needed for bootstrap).
18622 Rewrite a pair of strings.
18623
18624 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18625
18626 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18627
18628 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18629
18630 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18631
18632 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18633
18634 * kern/env.c (grub_env_context_open): Mark exported variable for
18635 reexport.
18636
18637 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18638
18639 * kern/env.c (grub_env_export): Create nonexistent variables before
18640 exporting.
18641
18642 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18643
18644 * include/grub/auth.h: Include `<grub/i18n.h>'.
18645 (GRUB_GET_PASSWORD): Gettextizze string.
18646 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
18647 menu_text.c.
18648 (grub_utf8_to_ucs4_alloc): Fix indentation.
18649 (grub_print_ucs4): Likewise.
18650 (grub_getstringwidth): Likewise.
18651 (print_message_indented): New declaration.
18652 * normal/auth.c: Include `<grub/i18n.h>'.
18653 (grub_auth_check_authentication): Gettexttize string.
18654 * normal/cmdline.c: Include `<grub/i18n.h>'.
18655 (grub_cmdline_get): Gettextizze.
18656 * normal/color.c: Include `<grub/i18n.h>'.
18657 (grub_parse_color_name_pair): Gettexttize strings.
18658 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
18659 string (use `print_message_indented').
18660 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
18661 `include/grub/normal.h'.
18662 (print_message_indented): Renamed to ...
18663 (grub_print_message_indented): ... this. Remove `static' qualifer (now
18664 used in normal/main.c).
18665 (print_message): Use `grub_print_message_indented' instead of
18666 `print_message_indented'.
18667 (print_timeout): Likewise.
18668 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
18669 (grub_normal_print_device_info): Gettexttize strings.
18670 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
18671
18672 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18675 of arguments. Return number of tokens and not arguments. All users
18676 updated.
18677
18678 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18679
18680 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18681 non-MSDOS paritions.
18682
18683 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18684
18685 * include/grub/types.h (UNUSED): Removed since it conflicts with
18686 NetBSD headers. All users changed to direct __attribute__ ((unused)).
18687 Reported by Grégoire Sutre.
18688
18689 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18690
18691 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
18692 (grub_print_ucs4_alloc): Likewise.
18693 (grub_getstringwidth): Likewise.
18694 * normal/main.c (grub_normal_init_page): Gettextize version string.
18695 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
18696 (getstringwidth): Renamed to ...
18697 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
18698 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
18699 (grub_print_ucs4): Remove `static' qualifer (now used in
18700 normal/main.c).
18701 * po/POTFILES: Add normal/main.c.
18702
18703 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18704
18705 * normal/menu_text.c (STANDARD_MARGIN): New macro.
18706 (print_message_indented): Add `margin_left' and `margin_right'
18707 parameters.
18708 (print_message): Update `print_message_indented' calls. Adds '\n' to the
18709 strings.
18710 (print_timeout): Use `print_message_indented' to print the message.
18711 Deletes `second_stage' parameter.
18712 (run_menu): Update `print_timeout' calls.
18713
18714 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 Fix console palette on OpenFirmware.
18717
18718 * term/ieee1275/ofconsole.c (MAX): Removed.
18719 (colors): Redone based on VGA palette.
18720 (grub_ofconsole_setcolor): Discard brightness bit since only 8
18721 colors are supported.
18722 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
18723
18724 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 Fix potential EfiEmu double prepare.
18727
18728 * efiemu/main.c (prepared): New variable
18729 (grub_efiemu_unload): Set prepare to '0'.
18730 (grub_efiemu_prepare): Return if already prepared. Set prepared.
18731
18732 set_virtual_address_map support.
18733
18734 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
18735 prototype.
18736 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
18737 prototype.
18738 (grub_efiemu_crc32): Likewise.
18739 (grub_efiemu_crc64): Likewise.
18740 (grub_efiemu_set_virtual_address_map): Likewise.
18741 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
18742 New definition.
18743 (grub_autoefi_set_virtual_address_map): Likewise.
18744 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
18745 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
18746 Restructure flow to accomodate it.
18747 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
18748 (grub_efiemu_crc): Recompute CRC32.
18749 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
18750 (efiemu_ptv_relocated): ... this. Made global. All users updated.
18751 * efiemu/symbols.c (relocated_handle): New variable.
18752 (grub_efiemu_free_syms): Free relocated_handle.
18753 (grub_efiemu_alloc_syms): Allocate relocated_handle.
18754 (grub_efiemu_write_sym_markers): New function.
18755 (grub_efiemu_set_virtual_address_map): Likewise.
18756
18757 Newer XNU parameters.
18758
18759 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
18760 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
18761 (grub_xnu_fill_devicetree): New prototype.
18762 (grub_xnu_heap_real_start): New variable.
18763 * loader/xnu.c (get_name_ptr): New function.
18764 (grub_xnu_load_driver): Fill namelen and name.
18765
18766 64-bit xnu support.
18767
18768 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
18769 and 'loader/macho64.c'.
18770 * conf/i386-pc.rmk: Likewise.
18771 * conf/x86_64-efi.rmk: Likewise.
18772 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
18773 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
18774 * include/grub/macho.h (grub_macho_segment64): New structure.
18775 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
18776 (grub_macho_size32): ... to this.
18777 (grub_macho32_get_entry_point): Renamed from ...
18778 (grub_macho_get_entry_point32): ... to this.
18779 (grub_macho_contains_macho64): New prototype.
18780 (grub_macho_size64): Likewise.
18781 (grub_macho_get_entry_point64): Likewise.
18782 (grub_macho32_load): Renamed from ...
18783 (grub_macho_load32): ... to this.
18784 (grub_macho32_filesize): Renamed from ...
18785 (grub_macho_filesize32): ... to this.
18786 (grub_macho32_readfile): Renamed from ...
18787 (grub_macho_readfile32): ... to this.
18788 (grub_macho_filesize64): New prototype.
18789 (grub_macho_readfile64): Likewise.
18790 (grub_macho_parse32): Likewise.
18791 (grub_macho_parse64): Likewise.
18792 * loader/macho.c: Split into ...
18793 * loader/machoXX.c: ... and this. Replace 32 with XX.
18794 * loader/macho32.c: New file.
18795 * loader/macho64.c: Likewise.
18796 * loader/xnu.c (grub_xnu_is_64bit): New variable.
18797 (grub_cmd_xnu_kernel): Make 32-bit only.
18798 (grub_cmd_xnu_kernel64): New function.
18799 (grub_xnu_load_driver): Support Mach-O 64.
18800 (grub_cmd_xnu_mkext): Likewise.
18801 * util/grub.d/30_os-prober.in (osx_entry): New function.
18802 Generate entries for 64-bit boot too.
18803
18804 Eliminate ad-hoc tree format in XNU and EfiEmu.
18805
18806 * efiemu/main.c (grub_efiemu_prepare): Update comment.
18807 * efiemu/pnvram.c: Rewritten to use environment variables.
18808 All users updated.
18809
18810 Inline utf16_to_utf8.
18811
18812 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
18813 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
18814 All users updated.
18815 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
18816
18817 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
18818 * commands/usbtest.c (grub_usb_get_string): ... move here.
18819 (usb_print_str): Fix error handling.
18820 * include/grub/usb.h (grub_usb_get_string): Remove.
18821
18822 UTF-8 to UTF-16 transformation.
18823
18824 * conf/common.rmk (pkglib_MODULES): Add charset.mod
18825 (charset_mod_SOURCES): New variable.
18826 (charset_mod_CFLAGS): Likewise.
18827 (charset_mod_LDFLAGS): Likewise.
18828 * include/grub/utf.h: New file.
18829 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
18830
18831 Support for device properties.
18832
18833 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
18834 (grub_xnu_devprop_device_header): Likewise.
18835 (grub_xnu_devprop_device_descriptor): Likewise.
18836 (grub_xnu_devprop_add_device): New prototype.
18837 (grub_xnu_devprop_remove_device): Likewise.
18838 (grub_xnu_devprop_remove_property): Likewise.
18839 (grub_xnu_devprop_add_property_utf8): Likewise.
18840 (grub_xnu_devprop_add_property_utf16): Likewise.
18841 (grub_cpu_xnu_init): Likewise.
18842 (grub_cpu_xnu_fini): Likewise.
18843 (grub_cpu_xnu_unload): Likewise.
18844 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
18845 (property_descriptor): Likewise.
18846 (devices): New variable.
18847 (grub_xnu_devprop_remove_property): New function.
18848 (grub_xnu_devprop_add_device): Likewise.
18849 (grub_xnu_devprop_remove_device): Likewise.
18850 (grub_xnu_devprop_add_property): Likewise.
18851 (grub_xnu_devprop_add_property_utf8): Likewise.
18852 (grub_xnu_devprop_add_property_utf16): Likewise.
18853 (hextoval): Likewise.
18854 (grub_cpu_xnu_fill_devprop): Likewise.
18855 (grub_cmd_devprop_load): Likewise.
18856 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
18857 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
18858 (cmd_devprop_load): New variable.
18859 (grub_cpu_xnu_init): New function.
18860 (grub_cpu_xnu_fini): Likewise.
18861 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
18862 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
18863 (grub_cmd_xnu_devtree): Likewise.
18864 (hextoval): New function.
18865 (unescape): Likewise.
18866 (grub_xnu_fill_devicetree): Likewise.
18867
18868 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
18869 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
18870
18871 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 Workaround for broken ATI VBE.
18874
18875 * video/i386/pc/vbe.c (last_set_mode): New variable.
18876 (grub_vbe_set_video_mode): Set 'last_set_mode'.
18877 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
18878 (grub_video_vbe_setup): Don't check for reserved flag.
18879
18880 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
18881
18882 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
18883 the `find' command.
18884
18885 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 UUID support for HFS.
18888
18889 * fs/hfs.c (grub_hfs_uuid): New function.
18890 (grub_hfs_fs): New value .uuid.
18891 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
18892
18893 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
18894
18895 Fix a segfault with parsing unknown long options.
18896
18897 * util/grub-mkrelpath.c (options): Zero terminate it.
18898
18899 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18900
18901 * include/grub/misc.h (grub_puts): New declaration.
18902 (grub_puts_): Likewise.
18903 * kern/misc.c (grub_puts): New definition.
18904 (grub_puts_): Likewise.
18905
18906 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18907
18908 * util/grub-probe.c (probe): Improve error message.
18909
18910 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18911
18912 * loader/i386/multiboot_elfxx.c
18913 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
18914 initialization.
18915
18916 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18917
18918 Relocator framework
18919
18920 * loader/i386/xnu_helper.S: Removed. All users updated.
18921 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
18922 (relocator_mod_SOURCES): New variable.
18923 (relocator_mod_CFLAGS): Likewise.
18924 (relocator_mod_LDFLAGS): Likewise.
18925 (relocator_mod_ASFLAGS): Likewise.
18926 * conf/x86_64.rmk: Likewise.
18927 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
18928 (grub_multiboot_payload_entry_offset): Likewise.
18929 (grub_multiboot_forward_relocator): Likewise.
18930 (grub_multiboot_forward_relocator_end): Likewise.
18931 (grub_multiboot_backward_relocator): Likewise.
18932 (grub_multiboot_backward_relocator_end): Likewise.
18933 (grub_multiboot_payload_eip): New variable.
18934 (grub_multiboot_payload_orig): Likewise.
18935 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
18936 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
18937 * include/grub/i386/memory.h
18938 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
18939 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
18940 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
18941 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
18942 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
18943 * include/grub/i386/relocator.h: New file.
18944 * include/grub/x86_64/relocator.h: Likewise.
18945 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
18946 (XNU_RELOCATOR): New macro.
18947 (grub_xnu_launcher_start): Remove.
18948 (grub_xnu_launcher_end): Likewise.
18949 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
18950 (grub_xnu_heap_real_start): Remove.
18951 (grub_xnu_heap_start): Change to void *. All users updated.
18952 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
18953 * lib/i386/relocator.c: New file.
18954 * lib/i386/relocator_asm.S: Likewise.
18955 * lib/i386/relocator_backward.S: Likewise.
18956 * lib/mips/relocator.c: Likewise.
18957 * lib/mips/relocator_asm.S: Likewise.
18958 * lib/relocator.c: Likewise.
18959 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
18960 (entry): Removed.
18961 (playground): Likewise.
18962 (grub_multiboot_payload_orig): New variable.
18963 (grub_multiboot_payload_dest): Likewise.
18964 (grub_multiboot_payload_size): Likewise.
18965 (grub_multiboot_payload_eip): Likewise.
18966 (grub_multiboot_payload_esp): Likewise.
18967 (grub_multiboot_boot): Use grub_relocator32_boot.
18968 (grub_multiboot_unload): Free relocators.
18969 (grub_multiboot): Setup stack. Use relocators.
18970 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
18971 (grub_multiboot_load_elfXX): Use relocators.
18972 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
18973 (grub_multiboot_payload_size): Likewise.
18974 (grub_multiboot_payload_dest): Likewise.
18975 (grub_multiboot_payload_entry_offset): Likewise.
18976 (grub_multiboot_forward_relocator): Likewise.
18977 (grub_multiboot_backward_relocator): Likewise.
18978 (grub_multiboot_real_boot): Likewise.
18979 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
18980 (grub_xnu_entry_point): Likewise.
18981 (grub_xnu_arg1): Likewise.
18982 (grub_xnu_stack): Likewise.
18983 (grub_xnu_launch): Removed.
18984 (grub_xnu_boot_resume): New function.
18985 (grub_xnu_boot): Use relocators.
18986 * loader/i386/xnu_helper.S: Removed.
18987 * loader/xnu.c (grub_xnu_heap_start): New variable.
18988 (grub_xnu_heap_size): Likewise.
18989 (grub_xnu_heap_malloc): Use relocators.
18990 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
18991
18992 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18993
18994 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
18995 anything.
18996
18997 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18998
18999 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
19000 GRUB_ERR_NONE before calling grub_env_set.
19001
19002 2009-12-12 Robert Millan <rmh@aybabtu.com>
19003
19004 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
19005 * genmk.rb (video): New variable.
19006 (CLEANFILES, VIDEOFILES): Add #{video}.
19007 (#{video}): New target rule.
19008 * genvideolist.sh: New file.
19009 * Makefile.in (pkglib_DATA): Add video.lst.
19010 (video.lst): New target rule.
19011 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
19012 `video.lst'.
19013 * util/grub.d/30_os-prober.in: Replace `vbe' with
19014 ${GRUB_VIDEO_BACKEND}.
19015
19016 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
19017
19018 * THANKS: Add David Miller.
19019
19020 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
19021
19022 libpciaccess support.
19023
19024 * Makefile.in (LIBPCIACCESS): New variable.
19025 (enable_grub_emu_pci): Likewise.
19026 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
19027 util/pci.c and commands/lspci.c.
19028 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
19029 * configure.ac (grub-emu-pci): New option.
19030 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
19031 (grub_pci_device_unmap_range): Likewise.
19032 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
19033 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
19034 (grub_pci_address_t) [!GRUB_UTIL]: New type.
19035 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
19036 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
19037 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
19038 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
19039 * include/grub/pciutils.h: New file.
19040 * util/pci.c: Likewise.
19041
19042 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
19043
19044 * util/misc.c: Don't include <errno.h> twice.
19045
19046 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
19047
19048 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
19049 name in an error message.
19050 (grub_biosdisk_rw): Likewise.
19051
19052 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 Eliminate NTFS 4Gib barrier.
19055
19056 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
19057 (read_run_data): Likewise.
19058 (grub_ntfs_read_run_list): Likewise.
19059 (grub_ntfs_read_block): Likewise.
19060 (grub_ntfs_iterate_dir): Likewise.
19061 (read_mft): Likewise.
19062 (read_data): Likewise.
19063 Use COM_LOG_LEN.
19064 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
19065 to avoid 64-bit division
19066 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
19067 (grub_ntfs_rlst): Use grub_disk_addr_t.
19068
19069 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19070
19071 Eliminate grub-fstest 4Gib barrier.
19072
19073 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
19074 (read_file): Fix error reporting.
19075
19076 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19077
19078 Eliminate hexdump 4Gib barrier.
19079
19080 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
19081 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
19082
19083 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19084
19085 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
19086 Fixes amarsh bug.
19087
19088 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
19089
19090 Remove miscellaneous files in distclean target.
19091
19092 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
19093
19094 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
19095
19096 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
19097 if they're already set. This resolves the conflict between my
19098 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
19099 fixing the --grub-probe option again.
19100 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
19101 change on 2009-10-06, so that we now once again source
19102 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19103
19104 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
19105
19106 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
19107 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
19108 `util/devicemap.c'.
19109
19110 2009-12-08 Carles Pina i Estany <carles@pina.cat>
19111
19112 * include/grub/misc.h (grub_printf_): New declaration.
19113 * kern/misc.c (grub_printf_): New definition.
19114 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
19115 instead of `grub_printf' and `_'.
19116 * normal/menu_entry.c (store_completion): Likewise.
19117 (run): Likewise.
19118 (grub_menu_entry_run): Likewise.
19119 * normal/menu_text.c (grub_wait_after_message): Likewise.
19120 (notify_booting): Likewise.
19121 (notify_fallback): Likewise.
19122 (notify_execution_failure): Likewise.
19123
19124 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
19125
19126 * configure.ac: Check for vasprintf.
19127 * util/misc.c (asprintf): Move allocation from here ...
19128 (vasprintf): ... to here. New function.
19129 (xasprintf): New function.
19130 * include/grub/util/misc.h (vasprintf, xasprintf): Add
19131 prototypes.
19132 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19133 * util/grub-mkfont.c (write_font): Likewise.
19134 * util/grub-probe.c (probe): Likewise.
19135 * util/hostdisk.c (make_device_name): Likewise.
19136
19137 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
19138
19139 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
19140 anything even prefixed with 'cdrom' as a cdrom.
19141
19142 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
19143
19144 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
19145 mount points.
19146
19147 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19148
19149 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
19150 grub_gettext_msg_list.
19151 (grub_gettext_gettranslation_from_position): Return const char *
19152 and not char *.
19153 (grub_gettext_translate): Add the translated strings into a list,
19154 returns from the list if existing there.
19155 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
19156 (grub_gettext_delete_list): Delete the list.
19157 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
19158 lang environment variable is changed.
19159 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
19160
19161 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19162
19163 Rename kernel.mod to kernel.img.
19164
19165 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
19166 (kernel_mod_EXPORTS): Rename to ...
19167 (kernel_img_EXPORTS): ... this.
19168 (kernel_mod_SOURCES): Rename to ...
19169 (kernel_img_SOURCES): ... this.
19170 (kernel_mod_HEADERS): Rename to ...
19171 (kernel_img_HEADERS): ... this. All users updated.
19172 (kernel_mod_CFLAGS): Rename to ...
19173 (kernel_img_CFLAGS): ... this.
19174 (kernel_mod_ASFLAGS): Rename to ...
19175 (kernel_img_ASFLAGS): ... this.
19176 (kernel_mod_LDFLAGS): Rename to ...
19177 (kernel_img_LDFLAGS): ... this.
19178 * conf/x86_64-efi.rmk: Likewise.
19179 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
19180 (read_kernel_image): ... this. All users updated.
19181 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
19182
19183 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19184
19185 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
19186 (print_spaces): New function.
19187 (grub_print_ucs4): New function.
19188 (getstringwidth): New function.
19189 (print_message_indented): New function.
19190 (print_message): Gettexttize strings using print_message_indented.
19191 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
19192 width.
19193 (get_entry_number): Gettextize and uses dynamic terminal width.
19194 (notify_booting, notify_fallback, notify_execution_failure):
19195 Gettextize.
19196 * normal/menu_entry.c (store_completion): Cleanup the gettextized
19197 string.
19198 (run): Likewise.
19199 (grub_menu_entry_run): Likewise.
19200 * PO/POTFILES: Add normal/menu_entry.c.
19201
19202 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19203
19204 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
19205
19206 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19207
19208 * util/grub-install.in: Install gettext .mo files.
19209 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
19210
19211 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19212
19213 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
19214 grub_dprintf.
19215
19216 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
19217
19218 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
19219 non-firmware-dependant one in realmode.S takes precedence.
19220
19221 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
19222
19223 * commands/halt.c: Replace misc arch-specific headers with
19224 `<grub/misc.h>'.
19225 * commands/reboot.c: Likewise.
19226 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
19227 `<grub/misc.h>'.
19228 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
19229 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
19230 (kernel_img_SOURCES): ... to here.
19231
19232 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
19233 * include/grub/i386/pc/init.h: Likewise.
19234 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19235 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19236
19237 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
19238
19239 * include/grub/i386/halt.h: Remove.
19240 * include/grub/i386/reboot.h: Likewise.
19241
19242 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
19243
19244 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
19245
19246 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
19247 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
19248 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
19249 "progname.h"
19250 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19251 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19252 (usage): Add missing comma in printf.
19253
19254 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
19255
19256 Use the same reboot approach on i386 coreboot and qemu as we do on
19257 BIOS.
19258
19259 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
19260 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
19261 * kern/i386/reboot.c: Remove.
19262 * include/grub/i386/reboot.h (grub_reboot): Export function.
19263 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
19264 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
19265 0xf000:0xfff0 instead of 0xffff:0x0000.
19266 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
19267 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
19268
19269 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
19270
19271 Fix $srcdir != $objdir build.
19272
19273 * Makefile.in (po/%.po): Rewrite as ...
19274 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
19275
19276 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19277
19278 Fix GNU/Hurd grub-install crash.
19279 * util/grub-probe.c (probe): Try to access `path' only when it is not
19280 NULL.
19281
19282 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19283
19284 Correct module naming.
19285
19286 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19287 (GRUB_MOD_INIT(efi_uga)): ... to this
19288 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19289 (GRUB_MOD_FINI(efi_uga)): ... to this
19290 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19291 (GRUB_MOD_INIT(efi_gop)): ... to this
19292 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19293 (GRUB_MOD_FINI(efi_gop)): ... to this
19294
19295 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
19296
19297 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
19298 translatable.
19299 (usage): Translate `arg' strings using gettext().
19300 Thanks to Jordi Mallach for the suggestion.
19301
19302 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 GOP support. Based on patch from Bean
19305 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19306
19307 * video/efi_gop.c: New file.
19308 * include/grub/efi/graphics_output.h: Likewise.
19309 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
19310 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19311 variables.
19312 * conf/x86_64-efi.rmk: Likewise.
19313
19314 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19315
19316 Rename efi_fb to efi_uga.
19317
19318 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19319 'efi_uga.mod'.
19320 (efi_fb_mod_SOURCES): Rename this ...
19321 (efi_uga_mod_SOURCES): ... to this.
19322 (efi_fb_mod_CFLAGS): Rename this ...
19323 (efi_uga_mod_CFLAGS): ... to this.
19324 (efi_fb_mod_LDFLAGS): Rename this ...
19325 (efi_uga_mod_LDFLAGS): ... to this.
19326 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19327 'efi_uga.mod'.
19328 (efi_fb_mod_SOURCES): Rename this ...
19329 (efi_uga_mod_SOURCES): ... to this.
19330 (efi_fb_mod_CFLAGS): Rename this ...
19331 (efi_uga_mod_CFLAGS): ... to this.
19332 (efi_fb_mod_LDFLAGS): Rename this ...
19333 (efi_uga_mod_LDFLAGS): ... to this.
19334 * video/efi_fb.c: Move this ...
19335 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19336
19337 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19338
19339 * po/README: New file. Explain our PO file workflow.
19340
19341 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19342
19343 * po/ChangeLog: Remove. Move relevant entries back to ...
19344 * ChangeLog: ... here.
19345 * po/ca.po: Remove (now handled by TLP).
19346 * po/id.po: Likewise.
19347 * po/zh_CN.po: Likewise.
19348 * Makefile.in (LINGUAS): Initialize in a way that supports
19349 empty set.
19350
19351 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19352
19353 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19354 reliing on po/LINGUAS.
19355 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19356 (po/%.po): ... this.
19357
19358 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19359
19360 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19361 (main): Use `program_name' instead of nonexistent `progname'.
19362
19363 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19364
19365 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19366 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19367
19368 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19369
19370 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19371 commit.
19372 * conf/i386-efi.rmk: Likewise.
19373 * conf/i386-ieee1275.rmk: Likewise.
19374 * conf/powerpc-ieee1275.rmk: Likewise.
19375 * conf/sparc64-ieee1275.rmk: Likewise.
19376 * conf/x86_64-efi.rmk: Likewise.
19377
19378 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19379
19380 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19381
19382 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19383
19384 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19385
19386 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19387
19388 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19389 (grub_mkdevicemap_SOURCES): New variable.
19390 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19391 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19392 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19393 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19394 (grub_mkdevicemap_SOURCES): Remove.
19395 * conf/i386-efi.rmk: Likewise.
19396 * conf/i386-ieee1275.rmk: Likewise.
19397 * conf/i386-pc.rmk: Likewise.
19398 * conf/powerpc-ieee1275.rmk: Likewise.
19399 * conf/sparc64-ieee1275.rmk: Likewise.
19400 * conf/x86_64-efi.rmk: Likewise.
19401 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19402 (usage): Fix strings to use `program_name'.
19403 (main): Initialize gettext.
19404 * util/grub-editenv.c: Likewise.
19405 * util/grub-emu.c: Likewise.
19406 * util/grub-fstest.c: Likewise.
19407 * util/grub-mkdevicemap.c: Likewise.
19408 * util/grub-mkfont.c: Likewise.
19409 * util/grub-mkrelpath.c: Likewise.
19410 * util/grub-pe2elf.c: Likewise.
19411 * util/grub-probe.c: Likewise.
19412 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19413 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19414 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19415
19416 * util/misc.c: Include `"progname.h"'.
19417 (progname): Remove variable.
19418 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19419
19420 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19421
19422 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19423 printf and print a newline after the menuentry header line.
19424 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19425
19426 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19427
19428 autoconf >= 2.60 support $(localedir).
19429
19430 * INSTALL: Note that autoconf 2.60 is required.
19431 * configure.ac (AC_PREREQ): Bump to 2.60.
19432 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19433 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19434
19435 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19436
19437 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19438 aclocal is run.
19439
19440 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19441
19442 * normal/main.c (grub_normal_read_line): Fix off-by-one
19443 buffer overflow.
19444
19445 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19446
19447 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19448 "parser.grub" in grub_command_execute() call.
19449
19450 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19451
19452 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19453 * conf/i386-efi.rmk: Likewise.
19454 * conf/i386-ieee1275.rmk: Likewise.
19455 * conf/i386-pc.rmk: Likewise.
19456 * conf/powerpc-ieee1275.rmk: Likewise.
19457 * conf/sparc64-ieee1275.rmk: Likewise.
19458 * conf/x86_64-efi.rmk: Likewise.
19459 * gettext/gettex.c: Include <grub/i18n.h>.
19460 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19461 here ...
19462 * include/grub/i18n.h: ... to here
19463 * include/grub/i18n.h: ... to here.
19464 * kern/misc.c: Include <grub/i18n.h>
19465 (grub_gettext_dummy): Move above user.
19466
19467 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19468
19469 * util/Makefile.in (install-local): Convert a `for' into a normal
19470 shell expansion.
19471
19472 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19473
19474 * autogen.sh: Add automake call.
19475 * config.guess: Remove.
19476 * config.sub: Likewise.
19477 * install-sh: Likewise.
19478
19479 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19480
19481 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19482
19483 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19484
19485 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19486 function to a normal shell `for'.
19487
19488 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19489
19490 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19491
19492 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19493
19494 * util/grub-mkrelpath.c: New file.
19495 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19496 (grub_mkrelpath_SOURCES): New variable.
19497 * include/grub/util/misc.h: New function prototype.
19498 * util/misc.c (make_system_path_relative_to_its_root): New function.
19499
19500 * util/grub-mkconfig_lib.in (bindir): New variable.
19501 (grub_mkrelpath): Likewise.
19502 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19503
19504 * util/probe.c (probe): Make the file path relative to its root.
19505 Change a info message to use the GRUB path. Enable again the
19506 check if we can read the file with GRUB facilities.
19507
19508 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19509 to its root.
19510
19511 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19512
19513 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19514 platform.
19515
19516 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19517
19518 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19519 strncmp().
19520
19521 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19522
19523 * util/getroot.c (grub_util_is_dmraid): New function.
19524 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19525 devices as normal ones, not as LVM.
19526
19527 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19528
19529 * conf/common.rmk: Add grub-gettext_lib target and updates
19530 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19531 LDFLAGS.
19532 * gettext/gettext.c: New file. (Reads mo files).
19533 * include/grub/file.h (grub_file_pread): New prototype.
19534 * include/grub/i18n.h (_): New prototype.
19535 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19536 prototypes.
19537 * kern/misc.c (grub_gettext_dummy): New function.
19538 * normal/menu_text.c: Include <grub/i18n.h>.
19539 * normal/menu_text.c (print_timeout): Gettexttize string.
19540 * normal/menu_text.c (print_message): Gettexttize string.
19541 * po/POTFILES: Add `normal/menu_text.c'.
19542 * po/ca.po: Add new translations.
19543 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19544 gettext module and defines locale_dir and lang in grub.cfg.
19545 * NEWS: Add gettext support.
19546
19547 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19548
19549 * util/hostdisk.c: Include `<grub/i18n.h>'.
19550 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19551 (make_device_name): Rewrite using asprintf.
19552 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19553 (find_system_device): If a device is not found, generate one just
19554 by reusing the OS path name.
19555 (read_device_map): Make it permissible for device.map not to exist.
19556
19557 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19558
19559 * script/sh/execute.c: Move from here ...
19560 * script/execute.c: ... to here. Update all users.
19561 * script/sh/function.c: Move from here ...
19562 * script/function.c: ... to here. Update all users.
19563 * script/sh/lexer.c: Move from here ...
19564 * script/lexer.c: ... to here. Update all users.
19565 * script/sh/main.c: Move from here ...
19566 * script/main.c: ... to here. Update all users.
19567 * script/sh/parser.y: Move from here ...
19568 * script/parser.y: ... to here. Update all users.
19569 * script/sh/script.c: Move from here ...
19570 * script/script.c: ... to here. Update all users.
19571
19572 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19573
19574 * configure.ac: Detect all `emu' platforms. Define
19575 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19576 --enable-grub-emu logic. Disable include/grub/machine
19577 symlink on `emu' platforms.
19578
19579 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19580 * gensymlist.sh.in: Likewise.
19581
19582 * include/grub/i386/coreboot/machine.h: Remove file.
19583 * include/grub/i386/efi/machine.h: Likewise.
19584 * include/grub/i386/ieee1275/machine.h: Likewise.
19585 * include/grub/i386/pc/machine.h: Likewise.
19586 * include/grub/i386/qemu/machine.h: Likewise.
19587 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19588 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19589 * include/grub/x86_64/efi/machine.h: Likewise.
19590
19591 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19592 * commands/halt.c: Likewise.
19593 * commands/reboot.c: Likewise.
19594 * include/grub/autoefi.h: Likewise.
19595 * include/grub/i386/at_keyboard.h: Likewise.
19596 * include/grub/i386/kernel.h: Likewise.
19597 * include/grub/i386/loader.h: Likewise.
19598 * include/grub/i386/pc/memory.h: Likewise.
19599 * kern/dl.c: Likewise.
19600 * kern/i386/coreboot/init.c: Likewise.
19601 * loader/i386/bsd.c: Likewise.
19602 * loader/i386/linux.c: Likewise.
19603 * loader/multiboot_loader.c: Likewise.
19604 * term/i386/pc/serial.c: Likewise.
19605 * term/usb_keyboard.c: Likewise.
19606
19607 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19608 `<grub/machine/machine.h>'
19609 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19610 * util/misc.c: Remove `<grub/machine/machine.h>' and
19611 `<grub/machine/time.h>'.
19612
19613 * Makefile.in (enable_grub_emu): Remove variable.
19614 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19615
19616 * conf/any-emu.rmk: New file.
19617 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19618 (grub_emu_init.c): Move from here ...
19619 * conf/any-emu.rmk: ... to here.
19620
19621 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19622 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19623 * conf/any-emu.rmk: ... to here.
19624
19625 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19626
19627 * include/grub/parser.h (grub_parser_register): Document need
19628 of `name' parameter.
19629 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19630 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19631 "sh" to "grub".
19632
19633 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19634
19635 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19636 `$(XGETTEXT)'.
19637 * include/grub/i18n.h (N_): New macro.
19638 * util/mkisofs/mkisofs.h: Likewise.
19639 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19640 around N_().
19641 (usage): Use gettext() to translate help strings when printing them.
19642
19643 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19644
19645 Based on patch from Bean
19646 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19647
19648 * video/efi_fb.c: New file.
19649 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
19650 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19651 variables.
19652 * conf/x86_64-efi.rmk: Likewise.
19653
19654 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19655
19656 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19657 * util/i386/pc/grub-setup.c: Likewise.
19658
19659 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19660
19661 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19662 <hurd/fs.h>
19663 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19664 file_get_storage_info to implement grub_guess_root_device.
19665
19666 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19667
19668 * Makefile.in (target): Use make's builtin $(shell) function
19669 instead of calling directly $(SHELL) to create the locale directories,
19670 inside the $(foreach) function.
19671
19672 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19673
19674 * util/grub-mkrescue.in: Print an error and usage if output option
19675 has not been given.
19676
19677 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19678
19679 Patch from Loïc Minier <loic.minier@ubuntu.com>.
19680 * util/grub.d/30_os-prober.in: Cope with Linux entries where
19681 root and /boot are on different devices.
19682
19683 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19684
19685 Fix build for srcdir != objdir.
19686
19687 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19688 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19689 $(srcdir).
19690 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19691 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19692 reference for input.
19693
19694 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19695
19696 * util/grub-mkrescue.in: Use source directory direcly (without copiing
19697 or hardlinking it). Remove -J option, Joliet is not compatible with
19698 multiple source directories.
19699
19700 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19701 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19702
19703 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19704 (process_input_dir): New function. Process an arbitrary input
19705 directory.
19706 Misc adjustments to support both "override mode" and system-wide mode.
19707
19708 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19709
19710 * configure.ac (UNIFONT_BDF): Rename to ...
19711 (FONT_SOURCE): ... this. Update all users.
19712
19713 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19714
19715 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
19716 to the list of unifont files to look for.
19717
19718 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19719
19720 Patch from Joe Auricchio <jauricchio@gmail.com>
19721 * commands/minicmd.c (grub_mini_cmd_clear): New function.
19722 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
19723 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
19724
19725 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19726
19727 * Makefile.in (install-local): Add a missing backslash.
19728
19729 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19730
19731 * include/grub/x86_64/io.h: New file.
19732
19733 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19734
19735 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
19736 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
19737 Include `"progname.h"'.
19738 (main): Initialize gettext.
19739 * util/i386/pc/grub-setup.c: Gettexttize.
19740 * util/i386/pc/grub-mkimage.c: Likewise.
19741
19742 * Makefile.in (po/*.po): Redefine as ...
19743 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
19744
19745 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
19746
19747 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19748
19749 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
19750 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
19751 (program_name): Remove.
19752 (main): Initialize gettext support.
19753 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
19754 Include `<libintl.h>'.
19755 (_): New macro.
19756
19757 * util/mkisofs/eltorito.c: Gettexttize.
19758 * util/mkisofs/joliet.c: Likewise.
19759 * util/mkisofs/mkisofs.c: Likewise.
19760 * util/mkisofs/multi.c: Likewise.
19761 * util/mkisofs/rock.c: Likewise.
19762 * util/mkisofs/tree.c: Likewise.
19763 * util/mkisofs/write.c: Likewise.
19764
19765 * po/POTFILES: Update with new files.
19766
19767 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19768
19769 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
19770 * util/mkisofs/iso9660.h: Likewise.
19771 * util/mkisofs/joliet.c: Likewise.
19772 * util/mkisofs/mkisofs.c: Likewise.
19773 * util/mkisofs/mkisofs.h: Likewise.
19774 * util/mkisofs/rock.c: Likewise.
19775 * util/mkisofs/tree.c: Likewise.
19776 * util/mkisofs/write.c: Likewise.
19777
19778 * util/mkisofs/eltorito.c (rcsid): Remove.
19779 * util/mkisofs/hash.c: Likewise.
19780 * util/mkisofs/joliet.c: Likewise.
19781 * util/mkisofs/name.c: Likewise.
19782 * util/mkisofs/rock.c: Likewise.
19783 * util/mkisofs/tree.c: Likewise.
19784 * util/mkisofs/write.c: Likewise.
19785
19786 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19787
19788 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
19789 instead of static allocation.
19790 * util/mkisofs/match.h: Likewise.
19791
19792 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19793
19794 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
19795 and `util/grub.d/10_linux.in'.
19796 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
19797 translatable Shell files.
19798
19799 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19800
19801 * Makefile.in ($(srcdir)/aclocal.m4): New target.
19802
19803 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19804
19805 * INSTALL: Document Automake is needed for bootstrap.
19806 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
19807 * util/grub.d/10_kfreebsd.in (bindir): New variable.
19808 Add gettext initialization.
19809 (kfreebsd_entry): Make menuentry output translatable.
19810
19811 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19812
19813 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
19814 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
19815 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
19816 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
19817 (LINGUAS): Auto-generate using `po/LINGUAS'.
19818 * po/LINGUAS: New file.
19819
19820 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19821
19822 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
19823 other things).
19824 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
19825 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
19826 bindtextdomain() calls for gettext initialization.
19827
19828 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19829
19830 * gnulib/progname.c: New file (imported from Gnulib).
19831 * gnulib/progname.h: Likewise.
19832 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19833 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
19834 (usage): Replace `progname' with `program_name'.
19835 (main): Use set_program_name() for program name initialization.
19836
19837 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19838
19839 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
19840 from here ...
19841 * Makefile.in (CPPFLAGS): ... to here.
19842
19843 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19844
19845 * aclocal.m4: Move from here ...
19846 * acinclude.m4: ... to here.
19847 * autogen.sh: Add call to `aclocal'.
19848 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
19849
19850 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19851
19852 * Makefile.in (CLEANFILES): Add `po/*.mo'.
19853 (LINGUAS): New variable.
19854 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
19855 (install-local): Install MO files.
19856 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
19857 * include/grub/i18n.h: New file.
19858 * po/POTFILES: New file.
19859 * po/ca.po: New file.
19860 * util/grub.d/10_linux.in (bindir): New variable.
19861 Add gettext initialization.
19862 (linux_entry): Make menuentry output translatable.
19863 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
19864 (usage): Make --help output translatable.
19865 (main): Initialize gettext.
19866
19867 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19868
19869 * import_gcry.py: New file (written by Vladimir with minor
19870 adjustments).
19871 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
19872 ciphers.
19873 * INSTALL: Document that Python is required for bootstrap.
19874
19875 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19876
19877 Import ciphers from libgcrypt 1.4.4.
19878
19879 * lib/libgcrypt/cipher/ChangeLog
19880 * lib/libgcrypt/cipher/ac.c
19881 * lib/libgcrypt/cipher/arcfour.c
19882 * lib/libgcrypt/cipher/bithelp.h
19883 * lib/libgcrypt/cipher/blowfish.c
19884 * lib/libgcrypt/cipher/camellia-glue.c
19885 * lib/libgcrypt/cipher/camellia.c
19886 * lib/libgcrypt/cipher/camellia.h
19887 * lib/libgcrypt/cipher/cast5.c
19888 * lib/libgcrypt/cipher/cipher.c
19889 * lib/libgcrypt/cipher/crc.c
19890 * lib/libgcrypt/cipher/des.c
19891 * lib/libgcrypt/cipher/dsa.c
19892 * lib/libgcrypt/cipher/ecc.c
19893 * lib/libgcrypt/cipher/elgamal.c
19894 * lib/libgcrypt/cipher/hash-common.c
19895 * lib/libgcrypt/cipher/hash-common.h
19896 * lib/libgcrypt/cipher/hmac-tests.c
19897 * lib/libgcrypt/cipher/md.c
19898 * lib/libgcrypt/cipher/md4.c
19899 * lib/libgcrypt/cipher/md5.c
19900 * lib/libgcrypt/cipher/primegen.c
19901 * lib/libgcrypt/cipher/pubkey.c
19902 * lib/libgcrypt/cipher/rfc2268.c
19903 * lib/libgcrypt/cipher/rijndael-tables.h
19904 * lib/libgcrypt/cipher/rijndael.c
19905 * lib/libgcrypt/cipher/rmd.h
19906 * lib/libgcrypt/cipher/rmd160.c
19907 * lib/libgcrypt/cipher/rsa.c
19908 * lib/libgcrypt/cipher/seed.c
19909 * lib/libgcrypt/cipher/serpent.c
19910 * lib/libgcrypt/cipher/sha1.c
19911 * lib/libgcrypt/cipher/sha256.c
19912 * lib/libgcrypt/cipher/sha512.c
19913 * lib/libgcrypt/cipher/tiger.c
19914 * lib/libgcrypt/cipher/twofish.c
19915 * lib/libgcrypt/cipher/whirlpool.c
19916
19917 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19918
19919 Fix build for systems without error().
19920
19921 * gnulib/error.c: New file (imported from Gnulib).
19922 * gnulib/error.h: Likewise.
19923 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
19924 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
19925 (this variable is now used by error()).
19926
19927 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19928
19929 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19930 instead of relying that char is signed.
19931
19932 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19933
19934 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19935 blocksize different from specified.
19936 (grub_pxefs_read): Likewise.
19937
19938 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19939
19940 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19941
19942 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19943 (grub_ata_readwrite): Likewise. Update 2 format strings.
19944 (grub_atapi_read): Likewise.
19945
19946 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
19947 * conf/i386.rmk (pkglib_MODULES): ... to here ...
19948 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
19949 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
19950 (ata_mod_LDFLAGS): Move from here ...
19951 * conf/i386.rmk: ... to here ...
19952 * conf/x86_64-efi.rmk: ... and here.
19953 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
19954 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
19955
19956 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19957
19958 Relicense multiboot.h, with RMS' blessing.
19959
19960 * include/multiboot.h: Change to X11 license.
19961
19962 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
19963
19964 Support --version in grub-mkisofs.
19965
19966 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
19967 (OPTION_VERSION): New macro.
19968 (ld_options): Recognize --version.
19969 (usage): Move `program_name' from here ...
19970 (program_name): ... to here. Add `static' qualifier.
19971 (main): Recognize `OPTION_VERSION'.
19972
19973 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
19974
19975 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
19976 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
19977
19978 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19979
19980 Fix help2man generation for mkisofs.
19981
19982 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
19983 (usage): Send output to stdout (rather than stderr).
19984
19985 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19986
19987 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
19988 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19989 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
19990 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19991 (bin_SCRIPTS): Add `grub-mkfloppy'.
19992 (grub_mkfloppy_SOURCES): New variable.
19993
19994 * util/grub-mkrescue.in: New file.
19995 * util/i386/pc/grub-mkfloppy.in: New file.
19996
19997 * util/i386/coreboot/grub-mkrescue.in: Remove.
19998 * util/i386/pc/grub-mkrescue.in: Remove.
19999
20000 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20001
20002 * include/grub/multiboot.h (struct grub_multiboot_header): Move
20003 from here ...
20004 * include/multiboot.h (struct multiboot_header): ... to here. Update
20005 all users.
20006 * include/grub/multiboot.h (struct grub_multiboot_info): Move
20007 from here ...
20008 * include/multiboot.h (struct multiboot_info): ... to here. Update
20009 all users.
20010 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
20011 from here ...
20012 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
20013 Update all users.
20014 * include/grub/multiboot.h (struct grub_mod_list): Move
20015 from here ...
20016 * include/multiboot.h (struct multiboot_mod_list): ... to here.
20017 Update all users.
20018
20019 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20020
20021 * include/multiboot2.h (multiboot_word): Rename from this ...
20022 (multiboot2_word): ... to this. Update all users.
20023 (multiboot_header): Rename from this ...
20024 (multiboot2_header): ... to this. Update all users.
20025 (multiboot_tag_header): Rename from this ...
20026 (multiboot2_tag_header): ... to this. Update all users.
20027 (multiboot_tag_start): Rename from this ...
20028 (multiboot2_tag_start): ... to this. Update all users.
20029 (multiboot_tag_name): Rename from this ...
20030 (multiboot2_tag_name): ... to this. Update all users.
20031 (multiboot_tag_module): Rename from this ...
20032 (multiboot2_tag_module): ... to this. Update all users.
20033 (multiboot_tag_memory): Rename from this ...
20034 (multiboot2_tag_memory): ... to this. Update all users.
20035 (multiboot_tag_unused): Rename from this ...
20036 (multiboot2_tag_unused): ... to this. Update all users.
20037 (multiboot_tag_end): Rename from this ...
20038 (multiboot2_tag_end): ... to this. Update all users.
20039
20040 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20041
20042 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
20043 this platform we should support Multiboot1 first.
20044
20045 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20046 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
20047 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
20048
20049 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20050
20051 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
20052 of write calls (converting them to fwrite() if they aren't already).
20053 (get_torito_desc): Likewise.
20054 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
20055
20056 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20057
20058 * util/i386/pc/grub-install.in: Move from here ...
20059 * util/grub-install.in: ... to here. Update all users.
20060
20061 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
20062
20063 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
20064
20065 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20066
20067 Support for El Torito without floppy emulation.
20068
20069 * util/mkisofs/eltorito.c: Include `<errno.h>'.
20070 (init_boot_catalog): Improve error handling.
20071 (get_torito_desc): Don't use floppy emulation unless requested by
20072 user. Patch boot information table when requested via
20073 `-boot-info-table'.
20074 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
20075 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
20076 (use_boot_info_table): New variables.
20077 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
20078 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
20079 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
20080 `--eltorito-emul-floppy'.
20081 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
20082 and `OPTION_ELTORITO_EMUL_FLOPPY'.
20083 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
20084 (use_boot_info_table, get_731): New prototypes.
20085 * util/mkisofs/write.c (get_731): New function.
20086
20087 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
20088
20089 Fix the generation of the man page.
20090
20091 * util/pc/i386/grub-install.in: Source
20092 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20093
20094 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20095
20096 Large file support for grub-mkisofs.
20097
20098 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
20099 * util/mkisofs/mkisofs.c (next_extent, last_extent)
20100 (session_start): Upgrade type to `uint64_t'. Update all users.
20101 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
20102 (struct directory_entry): Upgrade type of `starting_block' and
20103 `size' to `uint64_t'. Update all users.
20104 (struct deferred): Remove unused structure.
20105 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
20106 Update all users.
20107 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
20108 file is larger than `UINT32_MAX'.
20109 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
20110 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
20111 return value.
20112 (struct deferred_write): Upgrade type of `extent' and `size' to
20113 `uint64_t'. Update all users.
20114 (last_extent_written): Upgrade type to `uint64_t'. Update all
20115 users.
20116 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
20117 Update all users. Upgrade type of `remain' to `int64_t' and
20118 `use' to `size_t'. Use error() to handle fread() errors.
20119 (write_files): Rely on write_one_file() rather than calling
20120 xfwrite() directly.
20121
20122 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
20123
20124 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
20125
20126 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20127
20128 * util/mkisofs/fnmatch.c: Remove.
20129 * util/mkisofs/getopt1.c: Likewise.
20130 * util/mkisofs/getopt.c: Likewise.
20131 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
20132 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
20133 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
20134 `gnulib/getopt1.c' and `gnulib/getopt.c'.
20135 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
20136
20137 * configure.ac: Detect `mingw32msvc' host_os.
20138 Check for lstat(), getuid() and getgid().
20139
20140 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
20141 instances of `u_char' with `uint8_t'.
20142
20143 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
20144 [!HAVE_GETUID] (getuid): New function (stub).
20145 [!HAVE_GETGID] (getgid): Likewise.
20146 [!HAVE_LSTAT] (lstat): Likewise.
20147 [!S_IROTH] (S_IROTH): New macro (dummy).
20148 [!S_IRGRP] (S_IRGRP): Likewise.
20149
20150 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20151
20152 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
20153 conditional expression).
20154
20155 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20156
20157 Import from Gnulib.
20158
20159 * gnulib/fnmatch.c: New file.
20160 * gnulib/fnmatch.h: Likewise.
20161 * gnulib/fnmatch_loop.c: Likewise.
20162 * gnulib/getopt.c: Likewise.
20163 * gnulib/getopt.h: Likewise.
20164 * gnulib/getopt1.c: Likewise.
20165 * gnulib/getopt_int.h: Likewise.
20166 * gnulib/gettext.h: Likewise.
20167
20168 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20169
20170 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
20171 * normal/handler.c (read_handler_list): Likewise.
20172
20173 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20174
20175 Misc cleanup.
20176
20177 * kern/command.c (grub_register_command_prio): Use
20178 grub_zalloc() instead of explicitly zeroing data.
20179 * kern/list.c: Include `<grub/mm.h>'.
20180 (grub_named_list_find): Replace `0' with `NULL'.
20181 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
20182 (fs_module_list): Change type to `grub_named_list_t'. Update all
20183 users.
20184 * normal/dyncmd.c (read_command_list): Add space between function
20185 call and parenthesis.
20186 * normal/handler.c (read_handler_list): Likewise.
20187
20188 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20189
20190 * normal/auth.c (punishment_delay): Moved from here ...
20191 (grub_auth_strcmp): ... to here (inside function).
20192
20193 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20194
20195 * include/grub/list.h (struct grub_named_list): Remove `const'
20196 qualifier from `name'.
20197 (struct grub_prio_list): Likewise.
20198
20199 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20200
20201 * normal/auth.c: Include `<grub/time.h>'.
20202 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
20203
20204 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20205
20206 * normal/auth.c (punishment_delay): New variable.
20207 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
20208 (grub_auth_check_authentication): Punish failed login attempts with
20209 an incremental (2^N) delay.
20210
20211 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20212
20213 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
20214 path with $(srcdir).
20215
20216 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
20219
20220 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20221
20222 * util/i386/coreboot/grub-mkrescue.in: New file.
20223 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
20224 variables.
20225
20226 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
20227 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
20228 * configure.ac: Add header and function checks to satisfy grub-mkisofs
20229 requirements.
20230 * util/mkisofs/defaults.h: New file.
20231 * util/mkisofs/eltorito.c: Likewise.
20232 * util/mkisofs/exclude.h: Likewise.
20233 * util/mkisofs/fnmatch.c: Likewise.
20234 * util/mkisofs/getopt.c: Likewise.
20235 * util/mkisofs/getopt1.c: Likewise.
20236 * util/mkisofs/hash.c: Likewise.
20237 * util/mkisofs/include/fctldefs.h: Likewise.
20238 * util/mkisofs/include/mconfig.h: Likewise.
20239 * util/mkisofs/include/prototyp.h: Likewise.
20240 * util/mkisofs/include/statdefs.h: Likewise.
20241 * util/mkisofs/iso9660.h: Likewise.
20242 * util/mkisofs/joliet.c: Likewise.
20243 * util/mkisofs/match.c: Likewise.
20244 * util/mkisofs/match.h: Likewise.
20245 * util/mkisofs/mkisofs.c: Likewise.
20246 * util/mkisofs/mkisofs.h: Likewise.
20247 * util/mkisofs/multi.c: Likewise.
20248 * util/mkisofs/name.c: Likewise.
20249 * util/mkisofs/rock.c: Likewise.
20250 * util/mkisofs/tree.c: Likewise.
20251 * util/mkisofs/write.c: Likewise.
20252
20253 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20254
20255 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
20256 being insecure.
20257
20258 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20259
20260 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
20261 `grub-mkimage' (and use $0 when possible).
20262
20263 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20264
20265 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
20266 error message for excessively large memory map.
20267
20268 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20269
20270 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
20271 executable bit.
20272
20273 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20274
20275 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
20276 message for coreboot users.
20277
20278 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
20279
20280 Fix build with GNU gold.
20281
20282 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
20283 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
20284 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
20285 link addresses.
20286 * aclocal.m4: Likewise.
20287
20288 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20289
20290 * configure.ac (AC_PREREQ): Bump to 2.59d.
20291 * INSTALL: Make it more clear when Autoconf and Ruby are
20292 needed and when to run `./autogen.sh'.
20293
20294 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20295
20296 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
20297 OSes.
20298
20299 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20300
20301 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
20302
20303 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20304
20305 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
20306 giving it to GNU Mach.
20307
20308 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20309
20310 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
20311 GNU partition number to get internal GRUB partition number.
20312
20313 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20314
20315 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
20316 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
20317
20318 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
20319
20320 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20321 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20322 case.
20323
20324 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20325
20326 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20327
20328 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20329
20330 Fix build problem.
20331
20332 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20333 `-isystem=$(srcdir)/include'.
20334
20335 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20336
20337 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20338 checked (grub-install doesn't currently rely on it).
20339
20340 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20341
20342 Revert SVN r2660.
20343
20344 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20345 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20346 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20347 * conf/i386-ieee1275.rmk: Likewise.
20348 * conf/i386-pc.rmk: Likewise.
20349 * conf/powerpc-ieee1275.rmk: Likewise.
20350 * conf/sparc64-ieee1275.rmk: Likewise.
20351 * conf/x86_64-efi.rmk: Likewise.
20352
20353 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20354
20355 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20356
20357 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20358
20359 * include/grub/misc.h: Stop checking for APPLE_CC.
20360
20361 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20362
20363 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20364 doesn't cause an infinite call loop.
20365
20366 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20367
20368 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20369 strings.
20370
20371 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20372
20373 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20374 variable.
20375 * Makefile.in: Likewise.
20376
20377 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20378
20379 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20380
20381 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20382
20383 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20384
20385 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20386
20387 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20388
20389 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20390
20391 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20392 from here ...
20393 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20394
20395 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20396
20397 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20398 in $(MAKEINFO) invocation. This makes it clear in output that
20399 errors are being ignored.
20400
20401 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20402
20403 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20404 from here ...
20405 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20406 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20407 * conf/i386-ieee1275.rmk: Likewise.
20408 * conf/i386-pc.rmk: Likewise.
20409 * conf/powerpc-ieee1275.rmk: Likewise.
20410 * conf/sparc64-ieee1275.rmk: Likewise.
20411 * conf/x86_64-efi.rmk: Likewise.
20412
20413 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20414
20415 * util/grub-editenv.c (main): If only a command is given, use
20416 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20417 (usage): FILENAME is now optional and has a default.
20418
20419 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20420
20421 Improve grub-mkconfig performance when there are several menu
20422 entries on a single filesystem.
20423
20424 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20425 prepare_grub_to_access_device.
20426 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20427 * util/grub.d/30_os-prober.in: Likewise.
20428
20429 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20430
20431 * util/grub.d/10_freebsd.in: Remove.
20432 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20433 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20434
20435 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20436
20437 * docs/grub.cfg: Fix example usage of *BSD loaders.
20438
20439 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20440
20441 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20442 grub_util_error() call.
20443
20444 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20445
20446 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20447 `reserved_first_sector' member.
20448 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20449 `reserved_first_sector' to 1.
20450 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20451 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20452 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20453 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20454 filesystems which begin at first sector.
20455 (options): New option --skip-fs-probe.
20456 (main): Handle --skip-fs-probe and pass it to setup().
20457
20458 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20459
20460 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20461 (memset): Fix function prototype.
20462
20463 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20464 2009-10-25 Vasily Averin <vvs@parallels.com>
20465
20466 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20467 `dirent.direntlen == 0'.
20468
20469 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20470
20471 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20472 `cpio'.
20473 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20474
20475 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20476
20477 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20478 `__trampoline_setup' and `__ucmpdi2'.
20479 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20480 that libgcc provides.
20481
20482 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20483
20484 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20485 * include/grub/sparc64/libgcc.h (memset): Likewise.
20486 * include/grub/misc.h (memset, memcmp): New function prototypes.
20487
20488 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20489
20490 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20491 `cpio'.
20492 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20493
20494 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20495
20496 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20497 * docs/grub.cfg: Compensate for recent change in multiboot
20498 loader (since 2009-08-14 it won't pass filename to payload).
20499 * util/grub.d/10_hurd.in: Likewise.
20500
20501 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20502
20503 * config.guess: Update to latest version from config git
20504 repository.
20505 * config.sub: Likewise.
20506
20507 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20508
20509 Fix build on sparc64.
20510
20511 * configure.ac: Perform checks for libgcc symbols before
20512 adding `-nostdlib' to LDFLAGS.
20513
20514 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20515
20516 Let user specify OpenBSD root device.
20517
20518 * loader/i386/bsd.c (openbsd_root): New variable.
20519 (openbsd_opts): New option 'root'.
20520 (OPENBSD_ROOT_ARG): New macro.
20521 (grub_openbsd_boot): Use 'openbsd_root'.
20522 (grub_cmd_openbsd): Fill 'openbsd_root'.
20523
20524 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20525
20526 * NEWS: Misc adjustments.
20527
20528 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20529
20530 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20531
20532 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20533
20534 * configure.ac: Bump version to 1.97.
20535
20536 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20537
20538 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20539 -mno-3dnow on x86 architectures. Some toolchains enable these
20540 features by default, but they rely on registers that aren't enabled
20541 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20542
20543 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20544
20545 Make entry text a bit more readable.
20546
20547 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20548
20549 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20550
20551 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20552
20553 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20556 operations.
20557
20558 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20559
20560 * configure.ac: Add missing dollar.
20561
20562 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20565
20566 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20567 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20568 exports.
20569 * include/grub/sparc64/libgcc.h: Likewise. Use
20570 preprocessor conditionals.
20571
20572 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20573
20574 * conf/common.rmk (grub-dumpbios): Remove rule.
20575 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20576 * util/grub-dumpbios.in: Remove file.
20577
20578 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20579
20580 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20581 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20582
20583 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20584 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20585 users.
20586
20587 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20588 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20589 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20590 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20591 users.
20592
20593 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20594
20595 * term/tparm.c: Switch to GPLv3.
20596
20597 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20598
20599 * include/grub/i386/cpuid.h: Add header protection.
20600
20601 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20602
20603 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20604
20605 * include/grub/i386/cpuid.h: New file.
20606 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20607 (has_longmode): Rename to ...
20608 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20609 `static' attribute.
20610 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20611 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20612 on a CPU that doesn't implement AMD64 instruction set.
20613
20614 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20615
20616 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20617 that version.texi is rebuilt on version number changes.
20618
20619 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20620
20621 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20622 Fixes bug #27602.
20623
20624 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * util/i386/pc/grub-install.in: Source
20627 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20628 that the --grub-probe option will work.
20629 * util/sparc64/ieee1275/grub-install.in: Likewise.
20630
20631 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20632
20633 * configure.ac: Bump version to 1.97~beta4.
20634
20635 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20636
20637 Resync grub-mkdevicemap in x86_64-efi.
20638
20639 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20640 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20641 `util/devicemap.c'.
20642
20643 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20644
20645 * util/grub-editenv.c (create_envblk_file): Write new block with a
20646 .new suffix and then rename it into place, to ensure atomic
20647 creation.
20648
20649 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20650
20651 Do not automatically install headers.
20652
20653 * Makefile.in (include_DATA): Remove. Update all users.
20654
20655 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20656
20657 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20658 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20659
20660 * util/osdetect.lua: Remove.
20661 * script/lua/lauxlib.c: Likewise.
20662 * script/lua/ldebug.c: Likewise.
20663 * script/lua/grub_main.c: Likewise.
20664 * script/lua/lauxlib.h: Likewise.
20665 * script/lua/ldebug.h: Likewise.
20666 * script/lua/ltablib.c: Likewise.
20667 * script/lua/liolib.c: Likewise.
20668 * script/lua/lstrlib.c: Likewise.
20669 * script/lua/lualib.h: Likewise.
20670 * script/lua/ldo.c: Likewise.
20671 * script/lua/ldump.c: Likewise.
20672 * script/lua/ldo.h: Likewise.
20673 * script/lua/loslib.c: Likewise.
20674 * script/lua/lundump.c: Likewise.
20675 * script/lua/grub_lib.c: Likewise.
20676 * script/lua/ldblib.c: Likewise.
20677 * script/lua/lundump.h: Likewise.
20678 * script/lua/lmem.c: Likewise.
20679 * script/lua/grub_lib.h: Likewise.
20680 * script/lua/lmathlib.c: Likewise.
20681 * script/lua/lstate.c: Likewise.
20682 * script/lua/ltm.c: Likewise.
20683 * script/lua/lvm.c: Likewise.
20684 * script/lua/lmem.h: Likewise.
20685 * script/lua/lstate.h: Likewise.
20686 * script/lua/ltm.h: Likewise.
20687 * script/lua/ltable.c: Likewise.
20688 * script/lua/lvm.h: Likewise.
20689 * script/lua/llex.c: Likewise.
20690 * script/lua/lgc.c: Likewise.
20691 * script/lua/grub_lua.h: Likewise.
20692 * script/lua/loadlib.c: Likewise.
20693 * script/lua/lfunc.c: Likewise.
20694 * script/lua/lopcodes.c: Likewise.
20695 * script/lua/lparser.c: Likewise.
20696 * script/lua/ltable.h: Likewise.
20697 * script/lua/llex.h: Likewise.
20698 * script/lua/lgc.h: Likewise.
20699 * script/lua/lfunc.h: Likewise.
20700 * script/lua/lbaselib.c: Likewise.
20701 * script/lua/lopcodes.h: Likewise.
20702 * script/lua/lparser.h: Likewise.
20703 * script/lua/lzio.c: Likewise.
20704 * script/lua/linit.c: Likewise.
20705 * script/lua/lobject.c: Likewise.
20706 * script/lua/llimits.h: Likewise.
20707 * script/lua/lstring.c: Likewise.
20708 * script/lua/lzio.h: Likewise.
20709 * script/lua/lapi.c: Likewise.
20710 * script/lua/lcode.c: Likewise.
20711 * script/lua/lua.h: Likewise.
20712 * script/lua/lobject.h: Likewise.
20713 * script/lua/lstring.h: Likewise.
20714 * script/lua/lapi.h: Likewise.
20715 * script/lua/lcode.h: Likewise.
20716 * script/lua/luaconf.h: Likewise.
20717
20718 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
20719
20720 * docs/grub.texi (Command-line and menu entry commands): Document
20721 date and echo commands.
20722
20723 2009-09-24 Pavel Roskin <proski@gnu.org>
20724
20725 * include/grub/kernel.h (struct grub_module_header): Remove
20726 `grub_module_header_types'. Make `type' unsigned. Make `size'
20727 32-bit on all platforms.
20728 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
20729 8-bit field. Use grub_host_to_target32() for `size'.
20730 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
20731 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
20732 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
20733
20734 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20735
20736 Fix "lost keypress" bug in at_keyboard.
20737
20738 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
20739 Checks for readyness of input buffer (without flushing it).
20740 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
20741 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
20742
20743 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20744
20745 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
20746 size check within GRUB_MACHINE_PCBIOS section.
20747
20748 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20749
20750 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
20751 return value.
20752 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
20753 KEYBOARD_ISREADY check.
20754 (grub_at_keyboard_checkkey): Rename to ...
20755 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
20756 Remove gratuitous cast.
20757
20758 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
20759
20760 * configure.ac: Call AC_PROG_MKDIR_P.
20761 * Makefile.in (docs/stamp-vti): Create docs directory. Create
20762 version.texi in $(builddir) rather than $(srcdir).
20763 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
20764 to makeinfo's @include search path.
20765
20766 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20767
20768 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
20769
20770 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20771
20772 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
20773 for `*.dpkg-new'.
20774
20775 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
20776
20777 Build info documentation. Some code borrowed from Automake.
20778
20779 * configure.ac: Check for makeinfo.
20780 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
20781 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
20782 docs/version.texi.
20783 (MOSTLYCLEANFILES): Add vti.tmp.
20784 (docs/version.texi, docs/stamp-vti): Update automatically.
20785 (docs/grub.info): Build info documentation. Use --force and ignore
20786 errors for now.
20787 (all-local): Add $(INFOS).
20788 (install-local): Install info files.
20789 (uninstall): Uninstall info files.
20790 * docs/version.texi: Remove from revision control. This file is
20791 automatically generated on build now.
20792 * gendistlist.sh: Add `*.info'.
20793
20794 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20795
20796 * kern/term.c: Fix indentation.
20797
20798 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20799
20800 * util/hostdisk.c: Fix a comment.
20801
20802 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
20803
20804 Fix regression introduced in r2539.
20805
20806 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
20807 to 0xA1.
20808
20809 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
20810
20811 * util/grub.d/30_os-prober.in: Don't throw away stderr from
20812 os-prober. Under normal operation, it does not print anything to
20813 stderr; if it does, we need to debug it, and throwing away stderr
20814 makes that excessively difficult.
20815
20816 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
20817
20818 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
20819
20820 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20821
20822 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
20823 AC_LANG_PROGRAM from autoconf.
20824 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
20825 prototypes (fixes warning).
20826
20827 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
20828 `--disable-werror' was used.
20829
20830 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20831
20832 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
20833 uninitialized `lastaddr'.
20834
20835 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20836
20837 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
20838
20839 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20840
20841 * commands/test.c (get_fileinfo): Return immediately if
20842 grub_fs_probe fails.
20843
20844 2009-09-14 José Martínez <xosemp@gmail.com>
20845
20846 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
20847
20848 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20849
20850 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
20851 output.
20852
20853 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
20854
20855 * configure.ac: Remove --enable-grub-pe2elf. Only build
20856 grub-pe2elf when needed by the build system itself.
20857 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
20858
20859 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20860
20861 * configure.ac: Bump version to 1.97~beta3.
20862 * docs/version.texi: Likewise.
20863
20864 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20865
20866 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
20867 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
20868 from here ...
20869 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
20870 (grub_linux_setup_video): ... to here (with some adjustments).
20871
20872 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20873
20874 Fix memory corruption issue (spotted by Colin Watson).
20875
20876 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
20877 causing returned size to be stored in an incorrect memory location.
20878 Fix use of uninitialized value when storing the returned size.
20879
20880 2009-09-12 Yves Blusseau <blusseau@zetam.org>
20881
20882 Change clean rules to properly remove files
20883
20884 * genmk.rb: add new clean rules
20885 * Makefile.in (clean): add the new targets
20886 (mostlyclean): likewise
20887
20888 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20889
20890 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
20891 to grub_uint64_t.
20892 * fs/ntfs.c (init_file): Understand 64-bit sizes for
20893 non-resident files.
20894
20895 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20896
20897 * configure.ac: Don't look for help2man when cross-compiling. Fixes
20898 part of bug #27349.
20899
20900 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20901
20902 * util/grub-mkconfig.in: Make the created config mode 400 and
20903 print a warning if it fails.
20904
20905 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
20906
20907 * util/grub.d/40_custom.in: Ask user to type custom entries below
20908 comment, rather than below 'exec tail' line.
20909
20910 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20911
20912 * util/grub.d/40_custom.in: Make sure that the explanatory text is
20913 visible in grub.cfg.
20914
20915 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20916
20917 * util/grub.d/40_custom.in: Make it a little clearer how to use this
20918 file.
20919
20920 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20921
20922 * docs/grub.cfg: Add an example menu entry for memtest86+.
20923
20924 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
20925
20926 * config.guess: Update to latest version from config git.
20927 * config.sub: Likewise.
20928
20929 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20930
20931 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20932 unknown-command case. Fixes bug #27320.
20933
20934 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20935
20936 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20937 `help' if the command exists.
20938
20939 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20940
20941 * INSTALL: Require GCC 4.1.3 or later.
20942
20943 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20944
20945 * Makefile.in (RMKFILES): add i386-qemu.rmk
20946 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20947 $(srcdir)/stamp-h.in
20948
20949 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20950
20951 * util/grub-probe.c (probe): Comment out buggy codepath, which
20952 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
20953 should be re-enabled after 1.97.
20954
20955 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
20956
20957 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
20958 find searches for.
20959
20960 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
20963 unnecessary calls to grub_error.
20964
20965 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
20966
20967 * NEWS: Mention `keystatus' and Unicode fonts.
20968
20969 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
20970
20971 * configure.ac: Bump version to 1.97~beta2.
20972 * docs/version.texi: Likewise.
20973
20974 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20975
20976 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
20977 containing unwind information in some cases where it previously did
20978 not. Use -fno-dwarf2-cfi-asm if available to restore the old
20979 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
20980 discussion.
20981
20982 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
20983
20984 Embedding loadenv module into grub-emu
20985
20986 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
20987 commands/loadenv.c
20988 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
20989 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
20990 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
20991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
20992 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
20993 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
20994
20995 2009-09-03 Magnus Granberg <zorry@ume.nu>
20996
20997 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
20998 include -fPIE in the default specs.
20999 * configure.ac: Check if pie_possible is yes and add -fno-PIE
21000 to TARGET_CFLAGS.
21001
21002 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
21003
21004 * INSTALL: Note that GNU Bison 2.3 or later is required.
21005
21006 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21007
21008 * kern/i386/pc/startup.S: Fix typo.
21009
21010 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
21013 according to GCS.
21014
21015 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21016
21017 * docs/grub.texi (Naming convention): Describe one-based partition
21018 numbering.
21019 (Device syntax): Likewise.
21020 (File name syntax): Likewise.
21021 (Block list syntax): Likewise.
21022 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
21023 menu.lst.
21024 (File name syntax): Likewise.
21025 (Command-line and menu entry commands): Document acpi, blocklist,
21026 crc, export, insmod, keystatus, ls, set, and unset commands.
21027
21028 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21029
21030 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
21031 to avoid implying that only one of --shift, --ctrl, or --alt may be
21032 used.
21033
21034 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21035
21036 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
21037 rather than comparing against S_IFREG, which will almost never work.
21038
21039 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21040
21041 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
21042 (write_blocklists): Likewise.
21043
21044 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
21045
21046 * script/lua/grub_lua.h (fputs): Supply a format string as the first
21047 argument to grub_printf.
21048
21049 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
21050
21051 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
21052 non GNU test.
21053
21054 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 * kern/file.c (grub_file_read): Spelling fix
21057
21058 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
21061 loading of headers in some cases.
21062
21063 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
21064
21065 * configure.ac: Bump version to 1.97~beta1.
21066 * docs/version.texi: Likewise.
21067
21068 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 * include/grub/i386/xnu.h: Add license header.
21071 include grub/err.h explicitly.
21072
21073 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21074
21075 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
21076 to `ufs' in the vfs.root.mountfrom kernel parameter.
21077
21078 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21079
21080 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
21081
21082 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
21083 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
21084
21085 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
21086 `ARRAY_SIZE' macro.
21087
21088 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21089
21090 * kern/file.c (grub_file_read): Check offset.
21091 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
21092 * fs/jfs.c (grub_jfs_read_file): Likewise.
21093 * fs/ntfs.c (grub_ntfs_read): Likewise.
21094 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
21095 * fs/minix.c (grub_minix_read_file): Correct offset check.
21096 * fs/ufs.c (grub_ufs_read_file): Likewise.
21097
21098 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21099
21100 * term/i386/pc/console.c (bios_data_area): Cast
21101 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
21102
21103 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21104
21105 1-bit optimised blitters.
21106
21107 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
21108 prototype.
21109 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21110 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21111 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21112 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21113 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21114 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21115 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
21116 function.
21117 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21118 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21119 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21120 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21121 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21122 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21123 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
21124 when possible.
21125 * video/video.c (grub_video_get_blit_format): Return
21126 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
21127
21128 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21129
21130 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
21131 the first argument to grub_printf.
21132
21133 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21134 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
21135
21136 Add `getkeystatus' terminal method. Add a new `keystatus' command
21137 to query it.
21138
21139 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
21140 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
21141 modifier key bitmasks.
21142 (struct grub_term_input): Add `getkeystatus' member.
21143 (grub_getkeystatus): Add prototype.
21144 * kern/term.c (grub_getkeystatus): New function.
21145
21146 * include/grub/i386/pc/memory.h
21147 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
21148 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
21149 Data Area layout.
21150 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
21151 (grub_console_term_input): Set `getkeystatus' member.
21152 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
21153 constants.
21154 (grub_usb_keyboard_getreport): Likewise.
21155 (grub_usb_keyboard_checkkey): Likewise.
21156 (grub_usb_keyboard_getkeystatus): New function.
21157 (grub_usb_keyboard_term): Set `getkeystatus' member.
21158
21159 * commands/keystatus.c: New file.
21160 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
21161 (keystatus_mod_SOURCES): New variable.
21162 (keystatus_mod_CFLAGS): Likewise.
21163 (keystatus_mod_LDFLAGS): Likewise.
21164 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
21165 commands/keystatus.c.
21166 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21167 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21168 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21170 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21171 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21172
21173 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21174
21175 Split befs.mod and afs.mod into *_be.mod and *.mod
21176
21177 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
21178 (grub_fstest_SOURCES): Likewise.
21179 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
21180 (afs_be_mod_SOURCES): New variable.
21181 (afs_be_mod_CFLAGS): Likewise.
21182 (afs_be_mod_LDFLAGS): Likewise.
21183 (befs_be_mod_SOURCES): Likewise.
21184 (befs_be_mod_CFLAGS): Likewise.
21185 (befs_be_mod_LDFLAGS): Likewise.
21186 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
21187 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21189 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21190 (grub_emu_SOURCES): Likewise.
21191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21192 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21193 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21194 * fs/afs_be.c: New file.
21195 * fs/befs_be.c: New file.
21196 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
21197 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
21198 (U16): Replaced with ...
21199 (grub_afs_to_cpu16): ...this. All users updated.
21200 (U32): Replaced with ...
21201 (grub_afs_to_cpu32): ...this. All users updated.
21202 (U64): Replaced with ...
21203 (grub_afs_to_cpu64): ...this. All users updated.
21204 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
21205 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
21206 (grub_afs_validate_sblock): Check only one endianness.
21207 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21208 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21209 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21210 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21211 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21212 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21213 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21214 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21215
21216 2009-08-26 Bean <bean123ch@gmail.com>
21217
21218 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
21219 64-bit number.
21220 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
21221 (grub_xfs_inode_block): Change return type to grub_uint64_t.
21222 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
21223
21224 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21225
21226 NetBSD memory map support.
21227
21228 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
21229 (grub_netbsd_btinfo_mmap_header): New structure.
21230 (grub_netbsd_btinfo_mmap_entry): Likewise.
21231 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
21232
21233 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21234
21235 Enable bsd.mod on coreboot.
21236
21237 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
21238 (bsd_mod_SOURCES): New variable.
21239 (bsd_mod_CFLAGS): Likewise.
21240 (bsd_mod_LDFLAGS): Likewise.
21241 (bsd_mod_ASFLAGS): Likewise.
21242 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
21243 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
21244
21245 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 Cleanup NetBSD root support.
21248
21249 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
21250 grub_bsd_get_device.
21251 Fix typo.
21252
21253 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
21254
21255 * util/grub.d/00_header.in: Move check for the video backend of
21256 gfxterm from here ...
21257 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
21258 a suitable video backend.
21259
21260 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21261
21262 Fix breakage in grub-setup.
21263
21264 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
21265 "msdos_partition_map".
21266
21267 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21268
21269 Fix breakage in normal/auth.c.
21270
21271 * normal/auth.c (grub_iswordseparator): New function.
21272
21273 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21274
21275 Authentication support.
21276
21277 * commands/password.c: New file.
21278 * conf/common.rmk (pkglib_MODULES): Add password.mod.
21279 (password_mod_SOURCES): New variable.
21280 (password_mod_CFLAGS): Likewise.
21281 (password_mod_LDFLAGS): Likewise.
21282 (normal_mod_SOURCES): Add normal/auth.c.
21283 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
21284 normal/auth.c.
21285 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21286 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21287 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21289 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21290 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21291 * include/grub/auth.h: New file.
21292 * include/grub/err.h (grub_err_t): New enum value
21293 GRUB_ERR_ACCESS_DENIED.
21294 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
21295 'users'.
21296 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
21297 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
21298 users updated.
21299 * normal/auth.c: New file.
21300 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
21301 (grub_cmdline_run): Don't allow to go to command line without
21302 authentication.
21303 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
21304 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
21305 menuentry without superuser rights.
21306 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
21307 user isn't a superuser.
21308
21309 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21310
21311 Save space by inlining misc.c functions.
21312
21313 * kern/misc.c (grub_iswordseparator): Made static.
21314 * kern/misc.c (grub_strcat): Moved from here ...
21315 * include/grub/misc.h (grub_strcat): ... here. Inlined.
21316 * kern/misc.c (grub_strncat): Moved from here ...
21317 * include/grub/misc.h (grub_strncat): ... here. Inlined.
21318 * kern/misc.c (grub_strcasecmp): Moved from here ...
21319 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21320 * kern/misc.c (grub_strncasecmp): Moved from here ...
21321 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21322 * kern/misc.c (grub_isalpha): Moved from here ...
21323 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21324 * kern/misc.c (grub_isdigit): Moved from here ...
21325 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21326 * kern/misc.c (grub_isgraph): Moved from here ...
21327 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21328 * kern/misc.c (grub_tolower): Moved from here ...
21329 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21330
21331 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21332
21333 * script/sh/function.c (grub_script_function_find): Cut error message
21334 not to flood terminal.
21335 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21336 limit.
21337 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21338
21339 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21340
21341 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21342 `report' grub_uint8_t *.
21343 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21344 Use a 50-millisecond timeout rather than just repeating
21345 grub_usb_keyboard_getreport 50 times.
21346 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21347
21348 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 Rename *_partition_map to part_*
21351
21352 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21353 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21354 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21355 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21356 All users updated.
21357 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21358 All users updated.
21359 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21360 * util/grub-probe.c (probe_partmap): Don't transform partition name
21361 to get module name.
21362
21363 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21364
21365 Fix OpenBSD and NetBSD support.
21366
21367 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21368 memory address conflict.
21369 (OPENBSD_MMAP_ACPI): New definition.
21370 (OPENBSD_MMAP_NVS): Likewise.
21371 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21372 and OPENBSD_MMAP_NVS.
21373 Add memory map terminator
21374 Explicit cast when calling grub_unix_real_boot.
21375 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21376
21377 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21378
21379 Let user specify NetBSD root device.
21380
21381 * loader/i386/bsd.c (netbsd_root): New variable.
21382 (netbsd_opts): New option 'root'.
21383 (NETBSD_ROOT_ARG): New macro.
21384 (grub_netbsd_boot): Use 'netbsd_root'.
21385 (grub_bsd_unload): Free 'netbsd_root'.
21386 (grub_cmd_netbsd): Fill 'netbsd_root'.
21387
21388 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21389
21390 Support for 64-bit NetBSD.
21391
21392 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21393 point when booting non-FreeBSD.
21394
21395 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21396
21397 Support --no-smp and --no-acpi for NetBSD.
21398
21399 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21400 (NETBSD_AB_NOACPI): Likewise.
21401 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21402 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21403
21404 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21405
21406 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21407 errors.
21408 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21409 errors. Call grub_error when needed.
21410
21411 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21412
21413 * commands/search.c (search_fs): Try searching without autoload first.
21414 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21415 filesystem module explicitly for faster booting.
21416
21417 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21418
21419 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21420
21421 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21422
21423 * util/grub.d/30_os-prober.in: Disable os-prober if
21424 `GRUB_DISABLE_OS_PROBER' was set to true.
21425
21426 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21427
21428 * partmap/pc.c: Rename to ...
21429 * partmap/msdos.c: ... this. Update all users.
21430 (grub_pc_partition_map): Rename to ...
21431 (grub_msdos_partition_map): ... this. Update all users.
21432
21433 * parttool/pcpart.c: Rename to ...
21434 * parttool/msdospart.c: ... this. Update all users.
21435
21436 * include/grub/pc_partition.h: Rename to ...
21437 * include/grub/msdos_partition.h: ... this. Update all users.
21438 (grub_pc_partition_bsd_entry): Rename to ...
21439 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21440 (grub_pc_partition_disk_label): Rename to ...
21441 (grub_msdos_partition_disk_label): ... this. Update all users.
21442 (grub_pc_partition_entry): Rename to ...
21443 (grub_msdos_partition_entry): ... this. Update all users.
21444 (grub_pc_partition_mbr): Rename to ...
21445 (grub_msdos_partition_mbr): ... this. Update all users.
21446 (grub_pc_partition): Rename to ...
21447 (grub_msdos_partition): ... this. Update all users.
21448 (grub_pc_partition_is_empty): Rename to ...
21449 (grub_msdos_partition_is_empty): ... this. Update all users.
21450 (grub_pc_partition_is_extended): Rename to ...
21451 (grub_msdos_partition_is_extended): ... this. Update all users.
21452 (grub_pc_partition_is_bsd): Rename to ...
21453 (grub_msdos_partition_is_bsd): ... this. Update all users.
21454
21455 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21456 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21457 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21458 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21459 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21460 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21461 (gpt_mod_LDFLAGS): Rename to ...
21462 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21463 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21464 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21465 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21466 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21467 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21468 (part_gpt_mod_LDFLAGS): ... this.
21469 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21470 `pcpart.mod' to `msdospart.mod'.
21471 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21472 to ...
21473 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21474 (msdospart_mod_LDFLAGS): ... this.
21475
21476 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21477
21478 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21479 (openbsd_opts): Likewise.
21480 (netbsd_opts): Likewise.
21481 (freebsd_flags): Added 0 terminator.
21482 (openbsd_flags): Likewise.
21483 (netbsd_flags): Likewise.
21484 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21485 (grub_cmd_freebsd): Transformed into extended command.
21486 (grub_cmd_openbsd): Likewise.
21487 (grub_cmd_netbsd): Likewise.
21488 (cmd_freebsd): Changed type to grub_extcmd_t.
21489 (cmd_openbsd): Likewise.
21490 (cmd_netbsd): Likewise.
21491 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21492 grub_cmd_openbsd as extended commands.
21493 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21494 cmd_netbsd and cmd_openbsd
21495
21496 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21497
21498 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21499
21500 2009-08-21 Pavel Roskin <proski@gnu.org>
21501
21502 * Makefile.in (install-local): When checking if a file is in the
21503 build directory, use "test -e" to detect symlinks.
21504
21505 * Makefile.in (install-local): Remove all files in
21506 $(DESTDIR)$(pkglibdir) before installing new files there.
21507
21508 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21509
21510 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21511 grub-mkelfimage.
21512
21513 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21514
21515 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21516 explicitly specified by the user.
21517
21518 2009-08-18 Pavel Roskin <proski@gnu.org>
21519
21520 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21521 grub_uint8_t pointer for data.
21522 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21523 Likewise.
21524 * video/fb/fbutil.c: Remove unnecessary casts.
21525
21526 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21527
21528 VBE cleanup.
21529
21530 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21531 (grub_vbe_set_video_mode): Save active mode info
21532 only after setting the mode.
21533 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21534 second argument.
21535
21536 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21537
21538 Rename variables for clarity.
21539
21540 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21541 (active_vbe_mode_info): ... this. All users updated.
21542 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21543 All users updated.
21544 (initial_mode): Rename to ...
21545 (initial_vbe_mode): ... this. All users updated.
21546 (mode_in_use): Rename to ..
21547 (vbe_mode_in_use): ... this. All users updated.
21548 (mode_list): Rename to ..
21549 (vbe_mode_list): ... this. All users updated.
21550 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21551 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21552 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21553 'mode_list_size' to 'vbe_mode_list_size'.
21554 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21555 'best_mode_info' to 'best_vbe_mode_info' and
21556 'best_mode' to 'best_vbe_mode'
21557
21558 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21559
21560 Remove duplicate grub_video_fb_get_video_ptr.
21561
21562 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21563 (grub_video_fb_get_video_ptr): ... this.
21564 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21565 * video/fb/fbutil.c: Add comment about addressing.
21566 (get_data_ptr): Rename to ...
21567 (grub_video_fb_get_video_ptr): ... this. All users updated.
21568 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21569
21570 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21571
21572 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21573 grub_dprintf() that was just added.
21574
21575 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21576
21577 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21578 (DEFAULT_VIDEO_MODE): Remove macros.
21579 (grub_linux_boot): Remove assumption that Linux has FB support,
21580 and use "text" as default video mode.
21581
21582 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21583
21584 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21585 grub_dprintf.
21586 * fs/fat.c (grub_fat_read_data): Likewise.
21587
21588 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21589
21590 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21591 payload.
21592 (grub_module): Likewise.
21593
21594 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21595
21596 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21597 mbi->cmdline but free playground.
21598
21599 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21600
21601 Handle group offset on UFS1.
21602
21603 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21604 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21605
21606 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21607
21608 Split ufs.mod into ufs1.mod and ufs2.mod.
21609
21610 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21611 (grub_fstest_SOURCES): Likewise.
21612 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21613 (ufs_mod_SOURCES): Remove.
21614 (ufs_mod_CFLAGS): Likewise.
21615 (ufs_mod_LDFLAGS): Likewise.
21616 (ufs1_mod_SOURCES): New variable.
21617 (ufs1_mod_CFLAGS): Likewise.
21618 (ufs1_mod_LDFLAGS): Likewise.
21619 (ufs2_mod_SOURCES): New variable.
21620 (ufs2_mod_CFLAGS): Likewise.
21621 (ufs2_mod_LDFLAGS): Likewise.
21622 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21623 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21624 Likewise.
21625 (grub_emu_SOURCES): Likewise.
21626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21627 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21628 (grub_setup_SOURCES): Likewise.
21629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21630 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21631 (grub_setup_SOURCES): Likewise.
21632 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21633 Likewise.
21634 * fs/ufs2.c: New file.
21635 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21636
21637 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 Framebuffer split.
21640
21641 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21642 subsystem at the end.
21643 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21644 (video_fb_mod_SOURCES): New variable.
21645 (video_fb_mod_CFLAGS): Likewise.
21646 (video_fb_mod_LDFLAGS): Likewise.
21647 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
21648 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
21649 * video/i386/pc/vbeblit.c: Moved from here ...
21650 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
21651 * video/i386/pc/vbefill.c: Moved from here ...
21652 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
21653 * video/i386/pc/vbeutil.c: Moved from here ...
21654 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
21655 * include/grub/i386/pc/vbeblit.h: Moved from here ...
21656 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
21657 * include/grub/i386/pc/vbefill.h: Moved from here ...
21658 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
21659 * include/grub/i386/pc/vbeutil.h: Moved from here ...
21660 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
21661 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
21662 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
21663 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
21664 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
21665 (grub_video_adapter): Added 'get_info_and_fini'.
21666 (grub_video_get_info_and_fini): New prototype.
21667 (grub_video_set_mode): make modestring const char *.
21668 * loader/i386/linux.c (grub_linux_setup_video): Use
21669 grub_video_get_info_and_fini.
21670 (grub_linux_boot): Move modesetting just before booting.
21671 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
21672 grub_video_get_info_and_fini.
21673 * video/i386/pc/vbe.c: Moved framebuffer part ...
21674 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
21675 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
21676 grub_video_fbstd_colors and grub_video_fb_set_palette.
21677 (grub_video_vbe_init): Clear 'framebuffer' variable and use
21678 grub_video_fb_init.
21679 (grub_video_vbe_fini): Use grub_video_fb_fini.
21680 (grub_video_vbe_setup): Use framebuffer.render_target instead of
21681 render_target and use grub_video_fb_set_active_render_target and
21682 grub_video_fb_set_palette.
21683 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
21684 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
21685 (grub_video_vbe_adapter): Use framebuffer.
21686 * video/video.c (grub_video_get_info_and_fini): New function.
21687 (grub_video_set_mode): Make modestring const char *.
21688 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
21689 values are already initialised.
21690
21691 2009-08-14 Pavel Roskin <proski@gnu.org>
21692
21693 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21694 ABS and APPLE_CC.
21695 * boot/i386/pc/diskboot.S: Likewise.
21696 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
21697 sectors allow compilation on MacOSX.
21698 * conf/i386-pc.rmk: Enable unconditional compilation of
21699 lnxboot.img.
21700
21701 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21702
21703 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
21704 * util/grub.d/00_header.in: Enter interruptible sleep if
21705 GRUB_HIDDEN_TIMEOUT is set.
21706
21707 2009-08-13 Yves Blusseau <blusseau@zetam.org>
21708
21709 * include/grub/symbol.h: Add the LOCAL macro.
21710 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
21711 starting with "L_".
21712
21713 2009-08-13 Pavel Roskin <proski@gnu.org>
21714
21715 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
21716 any modern compilers we support.
21717
21718 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
21719 Use local labels starting with "L_" so that Apple assembler
21720 knows they are local.
21721
21722 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
21723
21724 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
21725 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
21726 (bsd_kernel_types): ... this enum.
21727
21728 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
21729 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
21730 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
21731
21732 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
21733 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
21734 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
21735 messages.
21736
21737 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21738
21739 * util/grub-dumpdevtree: Moved from here ...
21740 * util/i386/efi/grub-dumpdevtree: ... to here.
21741 (hexify): New function. Converts a string to its hex version.
21742 Generate hex versions of "efi" and "device-properties" by calling
21743 hexify() on the ASCII strings rather than by hardcoding numbers.
21744
21745 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21746
21747 * fs/jfs.c: Update copyright year.
21748
21749 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21750
21751 * util/grub.d/00_header.in: Fix a comment.
21752 * util/grub.d/10_linux.in: Likewise.
21753 * util/grub.d/10_windows.in: Likewise.
21754 * util/grub.d/10_hurd.in: Likewise.
21755
21756 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21757
21758 * util/grub-mkconfig.in: Allow the user to specify the used font
21759 with GRUB_FONT.
21760
21761 2009-08-08 Pavel Roskin <proski@gnu.org>
21762
21763 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
21764 available, xfs.mod needs it now.
21765
21766 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
21767 the "g" modifier in sed when the intention is to strip something
21768 once. This fixes comparison of kernels with multiple dashes.
21769
21770 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
21771 on it. Add missing space before closing bracket. Fix
21772 misleading formatting.
21773
21774 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21775
21776 * docs/grub.texi: Major overhaul. Remove all sections that are
21777 specific to GRUB Legacy, or mostly composed of Legacy-specific
21778 information.
21779
21780 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21781
21782 * docs/version.texi: New file. Provides version information for
21783 grub.texi.
21784
21785 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21786
21787 * docs/grub.texi: Update CVS information to SVN.
21788 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
21789
21790 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21791
21792 * util/grub-mkconfig.in: Remove a wrong `fi'.
21793
21794 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21795
21796 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
21797 (grub_jfs_uuid): New function.
21798 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
21799
21800 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21801
21802 * util/grub-mkconfig_lib.in (font_path): Move the functionality
21803 of it to ...
21804 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
21805 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
21806
21807 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21808
21809 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
21810 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
21811 Update all users.
21812
21813 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
21814 not just "vmlinu[zx]".
21815 Moved from here ...
21816 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
21817 all users.
21818
21819 * util/grub.d/10_linux.in (find_latest): Moved from here ...
21820 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
21821 all users.
21822
21823 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21824
21825 * util/grub.d/10_freebsd.in: Use an absolute device path for
21826 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
21827
21828 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
21829
21830 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
21831 handling of multiple abstraction modules.
21832
21833 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
21834
21835 Fix a bug resulting in black screen when loading Linux using a
21836 packed video mode.
21837
21838 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
21839 function.
21840
21841 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
21842 (grub_vbe_bios_getset_dac_palette_width): New function.
21843 (grub_vbe_bios_get_dac_palette_width)
21844 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
21845 grub_vbe_bios_getset_dac_palette_width()).
21846
21847 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
21848 check for return status.
21849 (grub_vbe_get_video_mode_info): When getting information for a packed
21850 mode (<= 8 bpp), obtain DAC palette width using
21851 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
21852 {red,green,blue}_mark_size.
21853
21854 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
21855
21856 * commands/search.c (options): Fix help output to match actual code.
21857
21858 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
21859
21860 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
21861 of homegrown code.
21862
21863 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
21866 on XFS or ReiserFS.
21867
21868 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21869
21870 Support Apple partition map with sector size different from 512 bytes.
21871
21872 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
21873 (apple_partition_map_iterate): Respect 'aheader.blocksize'
21874 and 'apart.partmap_size'.
21875
21876 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21877 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
21878
21879 Fix cpuid command.
21880
21881 * commands/i386/cpuid.c (options): New variable.
21882 (grub_cmd_cpuid): Return real error.
21883 (GRUB_MOD_INIT(cpuid)): Declare options.
21884
21885 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
21886
21887 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
21888 valid.
21889
21890 2009-07-31 Bean <bean123ch@gmail.com>
21891
21892 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
21893 log2_inode.
21894 (grub_fshelp_node): Move inode field to the end.
21895 (grub_xfs_data): Remove inode field.
21896 (grub_xfs_inode_block): Calculate inode size using sblock.
21897 (grub_xfs_inode_offset): Likewise.
21898 (grub_xfs_read_inode): Calculate inode size using sblock.
21899 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
21900 (grub_xfs_iterate_dir): Calculate inode size using sblock.
21901 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
21902 to match inode size.
21903 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
21904 not accessible when data is null.
21905 (grub_xfs_open): Likewise.
21906
21907 2009-07-31 Bean <bean123ch@gmail.com>
21908
21909 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
21910 Don't change pv->disk if it's already set.
21911
21912 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
21913 (grub_raid_register): ... here.
21914 (grub_raid_rescan): Removed.
21915
21916 * include/grub/raid.h (grub_raid_rescan): Removed.
21917
21918 * util/grub-fstest.c: Remove include file <grub/raid.h>.
21919 (fstest): Replace grub_raid_rescan with module fini function followed
21920 by init function.
21921
21922 * util/grub-probe.c: Add include file <grub/raid.h>.
21923 (probe_raid_level): New function.
21924 (probe): Detect abstraction by walking the disk device, support two
21925 level of abstraction (LVM on RAID) when detecting partition map.
21926
21927 2009-07-31 Pavel Roskin <proski@gnu.org>
21928
21929 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21930 to grub_zalloc(), it was erroneous.
21931 Reported by Bean <bean123ch@gmail.com>
21932
21933 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21936 embedding zone, not only the first one.
21937
21938 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21939
21940 * term/gfxterm.c (clear_char): New function.
21941 (grub_virtual_screen_setup): Use clear_char.
21942 (scroll_up): Likewise.
21943 (grub_virtual_screen_cls): Likewise.
21944
21945 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21946
21947 * util/deviceiter.c (get_acceleraid_disk_name): New static
21948 function.
21949 (grub_util_iterate_devices): Handle Accelraid devices.
21950 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21951
21952 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21953
21954 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
21955 separator for the suggested gfxpayload string (';' collides with the
21956 parser and needs escaping).
21957
21958 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21959
21960 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
21961 Clear direction flag before jumping to OS.
21962 (grub_multiboot2_real_boot): Likewise.
21963
21964 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21965
21966 * util/i386/pc/grub-install: Fix parsing of --disk-module
21967 option.
21968
21969 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21970
21971 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
21972 when embedding.
21973
21974 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
21975
21976 * util/grub-mkconfig.in (package_version): New variable.
21977 Use it do display the version.
21978
21979 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21980
21981 * kern/file.c (grub_file_open): Revert to previous check with
21982 grub_errno.
21983
21984 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21985
21986 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
21987 from help line. It's out of sync with code.
21988
21989 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21990
21991 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
21992 entries on failed boot.
21993
21994 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21995
21996 * kern/file.c (grub_file_open): Fix an error check.
21997
21998 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
21999
22000 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
22001 partition map couldn't be identified.
22002
22003 2009-07-23 Pavel Roskin <proski@gnu.org>
22004
22005 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
22006 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
22007 case of little endian words becomes just an optimization.
22008 Respect const modifier.
22009 (md5_final): Use code that doesn't depend on endianness.
22010
22011 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
22012 to avoid loss of upper bits if align is unsigned and shorter
22013 than addr.
22014
22015 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22016
22017 UUID support for UFS
22018
22019 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
22020 (grub_ufs_uuid): New function.
22021 (grub_ufs_fs): add .uuid
22022
22023 2009-07-21 Pavel Roskin <proski@gnu.org>
22024
22025 * kern/dl.c (grub_dl_check_header): Make static.
22026
22027 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
22028
22029 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
22030 add drivemap for Vista. It breaks Windows 7.
22031
22032 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22033
22034 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
22035 128 bytes
22036
22037 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22038
22039 Add BFS support
22040
22041 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
22042 (grub_fstest_SOURCES): Likewise.
22043 (pkglib_MODULES): Add befs.mod.
22044 (befs_mod_SOURCES): New variable.
22045 (befs_mod_CFLAGS): Likewise.
22046 (befs_mod_LDFLAGS): Likewise.
22047 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22048 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22050 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22051 (grub_setup_SOURCES): Likewise.
22052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22053 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22054 (grub_setup_SOURCES): Likewise.
22055 * fs/befs.c: New file.
22056 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
22057 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
22058 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
22059 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
22060 (B_KEY_INDEX_ALIGN): New declaration.
22061 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
22062 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
22063 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
22064 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
22065 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
22066 (grub_afs_mount) [MODE_BFS]: Likewise.
22067 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
22068 (grub_afs_fs): Use GRUB_AFS_FSNAME
22069 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
22070 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
22071 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
22072 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
22073
22074 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
22075
22076 * util/getroot.c (find_root_device): Add support for MacOSX.
22077 * util/hostdisk.c: Likewise.
22078
22079 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22080
22081 * font/font.c (find_glyph): Check whether a font is present to avoid
22082 segmentation fault.
22083
22084 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
22085
22086 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
22087
22088 2009-07-20 Pavel Roskin <proski@gnu.org>
22089
22090 * configure.ac: Trim excessively wordy excuses.
22091
22092 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22093
22094 Add symlink, mtime and label support to AtheFS.
22095
22096 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
22097 (grub_afs_iterate_dir): Handle symlinks.
22098 (grub_afs_open): Use grub_afs_read_symlink.
22099 (grub_afs_dir): Likewise.
22100 Pass mtime.
22101 (grub_afs_label): New function.
22102 (grub_afs_fs): Add grub_afs_label.
22103 (grub_afs_read_symlink): New function.
22104
22105 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22106
22107 Fix AtheFS support.
22108
22109 * fs/afs.c: Fix comments style.
22110 (grub_afs_blockrun): Declare as packed.
22111 (grub_afs_datastream): Likewise.
22112 (grub_afs_bnode): Likewise.
22113 (grub_afs_btree): Likewise.
22114 (grub_afs_sblock): Likewise.
22115 Declare `name' as char.
22116 (grub_afs_inode): Declare as packed.
22117 Change void *vnode to grub_uint32_t unused.
22118 (grub_afs_iterate_dir): Check that key_size is positive.
22119 (grub_afs_mount): Don't read superblock twice.
22120 (grub_afs_dir): Don't free node in case of error,
22121 grub_fshelp_find_file already handles this.
22122 (grub_afs_open): Likewise.
22123
22124 2009-07-19 Pavel Roskin <proski@gnu.org>
22125
22126 * Makefile.in: Remove LIBLZO and enable_lzo.
22127 * conf/i386-pc.rmk: Remove lzo support.
22128 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
22129 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
22130 support.
22131 * kern/i386/pc/lzo1x.S: Remove.
22132 * kern/i386/pc/startup.S: Remove lzo support.
22133 * util/i386/pc/grub-mkimage.c: Likewise.
22134
22135 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
22136
22137 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
22138 * fs/xfs.c (grub_xfs_dir): Likewise.
22139 * fs/afs.c (grub_afs_dir): Likewise.
22140 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
22141 (grub_iso9660_open): Likewise.
22142 * fs/jfs.c (grub_jfs_open): Likewise.
22143 * fs/ext2.c (grub_ext2_dir): Likewise.
22144 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
22145 * script/sh/lexer.c (grub_script_yylex): Likewise.
22146
22147 2009-07-16 Pavel Roskin <proski@gnu.org>
22148
22149 * configure.ac: Never add "-c" to CFLAGS.
22150
22151 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
22152
22153 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
22154 grub_cv_cc_efiemu should be used.
22155
22156 * configure.ac: Typo fixes.
22157
22158 * kern/mm.c (grub_zalloc): New function.
22159 (grub_debug_zalloc): Likewise.
22160 * include/grub/mm.h: Declare grub_zalloc() and
22161 grub_debug_zalloc().
22162 * util/misc.c (grub_zalloc): New function.
22163 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
22164 instead of grub_malloc(), remove unneeded initializations.
22165 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
22166 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
22167 * commands/parttool.c (grub_cmd_parttool): Likewise.
22168 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22169 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
22170 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
22171 * disk/usbms.c (grub_usbms_finddevs): Likewise.
22172 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
22173 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
22174 (grub_cmd_efiemu_pnvram): Likewise.
22175 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
22176 * fs/iso9660.c (grub_iso9660_mount): Likewise.
22177 (grub_iso9660_iterate_dir): Likewise.
22178 * fs/jfs.c (grub_jfs_opendir): Likewise.
22179 * fs/ntfs.c (list_file): Likewise.
22180 (grub_ntfs_mount): Likewise.
22181 * kern/disk.c (grub_disk_open): Likewise.
22182 * kern/dl.c (grub_dl_load_core): Likewise.
22183 * kern/elf.c (grub_elf_file): Likewise.
22184 * kern/env.c (grub_env_context_open): Likewise.
22185 (grub_env_set): Likewise.
22186 (grub_env_set_data_slot): Likewise.
22187 * kern/file.c (grub_file_open): Likewise.
22188 * kern/fs.c (grub_fs_blocklist_open): Likewise.
22189 * loader/i386/multiboot.c (grub_module): Likewise.
22190 * loader/xnu.c (grub_xnu_create_key): Likewise.
22191 (grub_xnu_create_value): Likewise.
22192 * normal/main.c (grub_normal_add_menu_entry): Likewise.
22193 (read_config_file): Likewise.
22194 * normal/menu_entry.c (make_screen): Likewise.
22195 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22196 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
22197 * script/sh/script.c (grub_script_parse): Likewise.
22198 * video/bitmap.c (grub_video_bitmap_create): Likewise.
22199 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
22200 * video/readers/png.c (grub_png_output_byte): Likewise.
22201 (grub_video_reader_png): Likewise.
22202
22203 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 Enable all targets that can be built by default
22206
22207 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
22208 grub-mkfont and grub-fstest if they can be built
22209
22210 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22211
22212 Fix hang and segmentation fault in grub-emu-usb
22213
22214 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
22215 * util/usb.c (grub_libusb_devices): likewise
22216 (grub_libusb_init): rename to ...
22217 (GRUB_MOD_INIT (libusb)):...this
22218 (grub_libusb_fini): rename to ..
22219 (GRUB_MOD_FINI (libusb)):...this
22220 * disk/usbms.c (grub_usbms_transfer): fix retry logic
22221 * include/grub/disk.h (grub_raid_init): removed, it's useless
22222 (grub_raid_fini): likewise
22223 (grub_lvm_init): likewise
22224 (grub_lvm_fini): likewise
22225 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
22226 by grub_init_all
22227
22228 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 Fix libusb
22231
22232 * Makefile.in (LIBUSB): new macro
22233 * genmk.rb (Utility/print_tail): new method
22234 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
22235 (top level): call util.print_tail at the end.
22236
22237 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22238
22239 Make FreeBSD accept zpool.cache
22240
22241 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
22242 type is /boot/zfs/zpool.cache
22243
22244 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22245
22246 Fix 64-bit efiemu
22247
22248 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
22249 correct wrong typedef
22250 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
22251
22252 2009-07-15 Pavel Roskin <proski@gnu.org>
22253
22254 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
22255 * kern/disk.c (struct grub_disk_cache): Likewise.
22256
22257 * commands/probe.c (options): Typo fix.
22258
22259 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
22260 Increase to 0x5a to accommodate FAT32. Adjust other offsets
22261 accordingly.
22262 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
22263
22264 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
22265 the end of "Error" to make the message more readable.
22266
22267 * boot/i386/pc/boot.S (kernel_segment): Remove.
22268 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
22269 for destination.
22270
22271 * boot/i386/pc/boot.S (boot_version): Remove.
22272 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
22273 Remove.
22274
22275 * include/grub/i386/pc/boot.h: Sort all offsets.
22276 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
22277 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
22278 * boot/i386/pc/boot.S: Assert location of every offset listed in
22279 include/grub/i386/pc/boot.h.
22280
22281 2009-07-13 Pavel Roskin <proski@gnu.org>
22282
22283 * include/grub/i386/coreboot/machine.h: Rename
22284 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
22285 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
22286 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
22287
22288 * kern/dl.c: Force native word size to suppress warnings when
22289 compiling grub-emu.
22290
22291 * kern/device.c (grub_device_iterate): Change struct part_ent to
22292 hold the name, not a pointer to it. Use one grub_malloc() per
22293 partition, not two. Free partition_name if grub_malloc() fails.
22294 Set ents to NULL only before grub_partition_iterate() is called.
22295
22296 2009-07-11 Bean <bean123ch@gmail.com>
22297
22298 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
22299 childname.
22300
22301 2009-07-10 Bean <bean123ch@gmail.com>
22302 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
22303
22304 * kern/ieee1275/openfw.c (grub_children_iterate)
22305 (grub_devalias_iterate): Fix size evaluation for property or path
22306 strings, which was broken since r2132.
22307
22308 2009-07-07 Pavel Roskin <proski@gnu.org>
22309
22310 * commands/search.c (search_file): Merge into ...
22311 (search_fs): ... this. Accept search type as argument.
22312 (grub_cmd_search): Pass search type to search_fs().
22313
22314 * include/grub/util/console.h: New file.
22315 * util/console.c: Use it instead of grub/machine/console.h.
22316 * util/grub-emu.c: Likewise.
22317
22318 * lib/arg.c (find_long_option): Remove.
22319 (find_long): Add `len' argument, make `s' const char *.
22320 (grub_arg_parse): Parse long options in place, not in a
22321 temporary buffer.
22322
22323 2009-07-06 Pavel Roskin <proski@gnu.org>
22324
22325 * commands/search.c (search_fs): Fix potential NULL pointer
22326 dereference.
22327
22328 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22329 function pointer.
22330
22331 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22332
22333 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22334 comparison.
22335
22336 2009-07-05 Pavel Roskin <proski@gnu.org>
22337
22338 * include/grub/i386/linux.h (struct linux_kernel_params):
22339 Restore padding3, it's still needed.
22340
22341 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22342 FreeBSD.
22343 * util/osdetect.lua: Likewise.
22344
22345 2009-07-05 Bean <bean123ch@gmail.com>
22346
22347 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22348
22349 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22350 (grub_lua_getenv): Likewise.
22351 (grub_lua_setenv): Likewise.
22352 (save_errno): New function.
22353 (push_result): Likewise.
22354 (grub_lua_enum_device): Likewise.
22355 (grub_lua_enum_file): Likewise.
22356 (grub_lua_file_open): Likewise.
22357 (grub_lua_file_close): Likewise.
22358 (grub_lua_file_seek): Likewise.
22359 (grub_lua_file_read): Likewise.
22360 (grub_lua_file_getline): Likewise.
22361 (grub_lua_file_getsize): Likewise.
22362 (grub_lua_file_getpos): Likewise.
22363 (grub_lua_file_eof): Likewise.
22364 (grub_lua_file_exist): Likewise.
22365 (grub_lua_add_menu): Likewise.
22366
22367 * script/lua/grub_lua.h (isupper): New inline function.
22368 (islower): Likewise.
22369 (ispunct): Likewise.
22370 (isxdigit): Likewise.
22371 (strcspn): Change to normal function.
22372 (strpbkr): New function declaration.
22373 (memchr): Likewise.
22374
22375 * script/lua/grub_main.c (scan_str): New function.
22376 (strcspn): Likewise.
22377 (strpbrk): Likewise.
22378 (memchr): Likewise.
22379
22380 * script/lua/linit.c (lualibs): Enable the string library.
22381
22382 * util/osdetect.lua: New file.
22383
22384 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22385
22386 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22387 `capabilities' member.
22388
22389 2009-07-02 Pavel Roskin <proski@gnu.org>
22390
22391 * genparttoollist.sh: Add missing newline at the end.
22392
22393 2009-07-01 Pavel Roskin <proski@gnu.org>
22394
22395 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22396
22397 * util/hostdisk.c (open_device): Remove `const' from
22398 `sysctl_size', as sysctlbyname() can change it (in this case it
22399 doesn't actually happen).
22400
22401 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22402 using signed long int constants.
22403
22404 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22405 constant to avoid a warning on FreeBSD.
22406
22407 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22408 where it's needed.
22409
22410 * Makefile.in: Install include/grub/machine symlink.
22411
22412 * Makefile.in: When installing symlinks, use "cp -fR", which
22413 works on FreeBSD and MacOSX.
22414 From Yves Blusseau <cl7m42e02@sneakemail.com>
22415
22416 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22417 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22418
22419 * util/misc.c: Move grub_reboot() and grub_halt() ...
22420 * util/grub-emu.c: ... here. Make main_env static.
22421 * include/grub/util/misc.h: Remove main_env.
22422
22423 * kern/mm.c: Use correct format to print size_t.
22424
22425 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22426 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22427 * kern/powerpc/dl.c: Likewise.
22428 * kern/sparc64/dl.c: Likewise.
22429 * kern/x86_64/dl.c: Likewise.
22430
22431 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22432
22433 Fix grub-emu build on sparc64-ieee1275.
22434
22435 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22437
22438 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22439
22440 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22441 (grub_reboot, grub_halt): New functions.
22442
22443 * util/i386/pc/misc.c: Delete. Update all users.
22444 * util/sparc64/ieee1275/misc.c: Likewise.
22445 * util/powerpc/ieee1275/misc.c: Likewise.
22446
22447 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22448
22449 * conf/i386.rmk (setjmp_mod_SOURCES)
22450 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22451 * conf/common.rmk (setjmp_mod_SOURCES)
22452 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22453 to use $(target_cpu).
22454 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22455 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22456 * conf/powerpc-ieee1275.rmk: Likewise.
22457 * conf/sparc64-ieee1275.rmk: Likewise.
22458
22459 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22460 $(target_cpu) for kern/$(target_cpu)/dl.c.
22461 * conf/i386-efi.rmk: Likewise.
22462 * conf/i386-ieee1275.rmk: Likewise.
22463 * conf/x86_64-efi.rmk: Likewise.
22464 * conf/i386-coreboot.rmk: Likewise.
22465 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22466 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22467 kern/$(target_cpu)/cache.S.
22468 * conf/sparc64-ieee1275.rmk: Likewise.
22469
22470 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22471
22472 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22473 type to `grub_uint8_t', and adjust `padding9' accordingly.
22474
22475 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22476
22477 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22478
22479 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22480 assembly in final jump, using register constraints.
22481
22482 (grub_linux_boot): For text mode, initialize `have_vga' using
22483 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22484
22485 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22486 right before the final jump.
22487
22488 Set `video_mode' to 0x3.
22489
22490 Document initialization of `video_page', `video_mode' and
22491 `video_ega_bx'.
22492
22493 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22494
22495 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22496 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22497 and set GRUB_LINUX_FLAG_QUIET appropriately.
22498
22499 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22500
22501 Fix build on Debian / sparc.
22502
22503 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22504
22505 2009-06-28 Pavel Roskin <proski@gnu.org>
22506
22507 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22508 fix a warning.
22509
22510 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22511
22512 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22513
22514 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22515 `err'.
22516
22517 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22518
22519 Revert r2338.
22520
22521 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22522 file can't be opened. grub_file_open() is already supposed to set
22523 grub_errno / grub_errmsg appropriately.
22524 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22525
22526 2009-06-27 Pavel Roskin <proski@gnu.org>
22527 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22528
22529 * include/grub/dl.h: Include grub/elf.h.
22530 (struct grub_dl): Add symtab field.
22531 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22532 GRUB_MODULES_MACHINE_READONLY.
22533 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22534 of the header for read-only modules.
22535 (grub_dl_unload): Free mod->symtab for read-only modules.
22536 * kern/i386/dl.c: Use mod->symtab.
22537 * kern/powerpc/dl.c: Likewise.
22538 * kern/sparc64/dl.c: Likewise.
22539 * kern/x86_64/dl.c: Likewise.
22540
22541 * conf/i386-qemu.rmk: New file.
22542 * kern/i386/qemu/startup.S: Likewise.
22543 * kern/i386/qemu/mmap.c: Likewise.
22544 * boot/i386/qemu/boot.S: Likewise.
22545 * include/grub/i386/qemu/time.h: Likewise.
22546 * include/grub/i386/qemu/serial.h: Likewise.
22547 * include/grub/i386/qemu/kernel.h: Likewise.
22548 * include/grub/i386/qemu/console.h: Likewise.
22549 * include/grub/i386/qemu/boot.h: Likewise.
22550 * include/grub/i386/qemu/init.h: Likewise.
22551 * include/grub/i386/qemu/machine.h: Likewise.
22552 * include/grub/i386/qemu/loader.h: Likewise.
22553 * include/grub/i386/qemu/memory.h: Likewise.
22554
22555 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22556 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22557 [qemu] (pkglib_IMAGES): Add `boot.img'.
22558 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22559 [qemu] (boot_img_FORMAT): New variables.
22560 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22561 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22562 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22563 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22564 [qemu] (kernel_img_FORMAT): New variables.
22565
22566 * configure.ac: Recognise `i386-qemu'.
22567
22568 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22569 (for no compression).
22570 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22571 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22572 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22573 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22574 ifdefs).
22575
22576 2009-06-27 Pavel Roskin <proski@gnu.org>
22577
22578 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22579 read.
22580 * efiemu/prepare32.c: Likewise.
22581 * efiemu/prepare64.c: Likewise.
22582
22583 2009-06-26 Pavel Roskin <proski@gnu.org>
22584
22585 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22586 * include/grub/elf.h: Define symbols without "32" or "64" based
22587 on GRUB_TARGET_WORDSIZE.
22588 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22589 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22590 ELF definitions.
22591 * efiemu/loadcore64.c: Likewise.
22592 * loader/i386/bsd32.c: Likewise.
22593 * loader/i386/bsd64.c: Likewise.
22594 * kern/dl.c: Remove own ELF definitions.
22595 * util/i386/efi/grub-mkimage.c: Likewise.
22596
22597 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22598
22599 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22600 segment 0x0 unconditionally, because the reference generated by
22601 GAS is an absolute address.
22602
22603 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22604
22605 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22606 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22607
22608 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22609
22610 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22611 indexes. Check for -f explicitly.
22612 (search_file): Improve error message.
22613 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22614
22615 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22616
22617 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22618 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22619
22620 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22621
22622 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22623 * conf/i386-ieee1275.rmk: Likewise.
22624 * conf/i386-coreboot.rmk: Likewise.
22625
22626 * kern/i386/pc/startup.S (grub_stop): Remove function.
22627 * kern/i386/ieee1275/startup.S: Likewise.
22628 * kern/i386/coreboot/startup.S: Likewise.
22629 * kern/i386/misc.S (grub_stop): New function.
22630
22631 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22632
22633 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22634 * kern/i386/realmode.S (real_to_prot): ... to here.
22635
22636 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22637
22638 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22639 with `kernel.img'.
22640 (kernel_elf_SOURCES): Rename to ...
22641 (kernel_img_SOURCES): ... this.
22642 (kernel_elf_HEADERS): Rename to ...
22643 (kernel_img_HEADERS): ... this. Update all users.
22644 (kernel_elf_ASFLAGS): Rename to ...
22645 (kernel_img_ASFLAGS): ... this.
22646 (kernel_elf_CFLAGS): Rename to ...
22647 (kernel_img_CFLAGS): ... this.
22648 (kernel_elf_LDFLAGS): Rename to ...
22649 (kernel_img_LDFLAGS): ... this.
22650 * conf/i386-coreboot.rmk: Likewise.
22651 * conf/powerpc-ieee1275.rmk: Likewise.
22652
22653 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22654 with "kernel.img".
22655
22656 2009-06-21 Pavel Roskin <proski@gnu.org>
22657
22658 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22659 to match nested functions.
22660 * loader/sparc64/ieee1275/linux.c: Likewise.
22661
22662 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22663
22664 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22665
22666 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22667 all i386 platforms.
22668
22669 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22670
22671 Fix asm file handling on ELF, and remove workarounds.
22672
22673 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
22674 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
22675 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
22676 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
22677
22678 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22679
22680 Load BSD ELF modules
22681
22682 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
22683 and loader/i386/bsd64.c
22684 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
22685 (FREEBSD_MODTYPE_ELF_MODULE): New definition
22686 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
22687 (grub_freebsd_load_elfmodule32): New declaration
22688 (grub_freebsd_load_elfmoduleobj64): Likewise
22689 (grub_freebsd_load_elf_meta32): Likewise
22690 (grub_freebsd_load_elf_meta64): Likewise
22691 (grub_freebsd_add_meta): Likewise
22692 (grub_freebsd_add_meta_module): Likewise
22693 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
22694 (grub_freebsd_add_meta_module): Likewise and move module-specific
22695 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
22696 (grub_cmd_freebsd): Add elf-kernel specific parts
22697 based on grub_freebsd_add_meta_module
22698 (grub_cmd_freebsd_module): Add type parsing moved from
22699 grub_freebsd_add_meta_module
22700 (grub_cmd_freebsd_module_elf): New function
22701 (cmd_freebsd_module_elf): New variable
22702 (GRUB_MOD_INIT): Register freebsd_module_elf
22703 * loader/i386/bsd32.c: New file
22704 * loader/i386/bsd64.c: Likewise
22705 * loader/i386/bsdXX.c: Likewise
22706 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
22707 (grub_elf64_load): Likewise
22708 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
22709 All users updated
22710 (grub_elf64_load_hook_t): Likewise
22711
22712 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
22713
22714 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
22715 variable.
22716 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
22717 don't write a menu entry for recovery mode.
22718
22719 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22720
22721 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
22722 after it's no longer needed.
22723
22724 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22725
22726 * include/grub/i386/loader.h (grub_linux_prot_size)
22727 (grub_linux_tmp_addr, grub_linux_real_addr)
22728 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
22729 GRUB_MACHINE_PCBIOS.
22730 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
22731 common grub_util_info() call to ...
22732 (generate_image): ... here.
22733 Fix use of uninitialized memory, comparison of signed with
22734 unsigned integers and memory leak.
22735 Remove bogus module address message.
22736
22737 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
22740 grub_raid_register
22741 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
22742
22743 2009-06-19 Pavel Roskin <proski@gnu.org>
22744
22745 * configure.ac: Remove stray AC_MSG_CHECKING.
22746
22747 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
22748
22749 * disk/scsi.c (grub_scsi_open): use continue instead of big if
22750
22751 2009-06-18 Pavel Roskin <proski@gnu.org>
22752
22753 * conf/common.rmk: Add fs_file.mod.
22754 * disk/fs_file.c: New file.
22755 * include/grub/disk.h (enum grub_disk_dev_id): Add
22756 GRUB_DISK_DEVICE_FILE_ID.
22757
22758 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22759
22760 Fix build with Apple's toolchain. Part 2
22761
22762 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
22763 a fake start
22764
22765 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22766
22767 Fix build with Apple's toolchain. Part 1
22768
22769 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
22770 for long calls
22771 * configure.ac: remove a leftover AC_MSG_RESULT
22772 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
22773 Apple's toolchain
22774
22775 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22776
22777 Fix warnings
22778
22779 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
22780 (decomp_block): initialize ch
22781 use grub_memcpy instead of memcpy
22782
22783 2009-06-17 Pavel Roskin <proski@gnu.org>
22784
22785 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
22786 version, use declarations needed to use vga_text as the startup
22787 console.
22788
22789 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
22790 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
22791 the kernel.
22792 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
22793 and grub_at_keyboard_fini(), it's done on module load and
22794 unload.
22795
22796 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
22797
22798 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
22799 file can't be found.
22800 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22801
22802 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22803
22804 Fix newline handling
22805
22806 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
22807 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
22808 (grub_script_yylex): don't segfault on unterminated script
22809 newline terminates command and variable
22810
22811 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22812
22813 avoid double grub_adjust_range call. Bug reported by David Simner
22814
22815 * kern/disk.c (grub_disk_write): change to raw disk access before
22816 calling disk_read
22817
22818 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
22819
22820 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
22821 spaces, for the benefit of help2man.
22822 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22823
22824 2009-06-16 Pavel Roskin <proski@gnu.org>
22825
22826 * kern/i386/halt.c: Include grub/machine/init.h.
22827 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
22828
22829 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
22830
22831 * util/grub.d/30_os-prober.in: Use ${root} in the generated
22832 drivemap menuentry.
22833
22834 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
22835
22836 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
22837 `echo' command.
22838
22839 2009-06-16 Pavel Roskin <proski@gnu.org>
22840
22841 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
22842 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
22843 save %dx, we only need %dl and we never change it.
22844 * boot/i386/pc/cdboot.S: Don't set the root drive.
22845 * boot/i386/pc/pxeboot.S: Likewise.
22846 * include/grub/i386/pc/boot.h: Remove
22847 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
22848 GRUB_BOOT_MACHINE_DRIVE_CHECK.
22849 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
22850 * kern/i386/pc/init.c (make_install_device): Remove references
22851 to grub_root_drive.
22852 * kern/i386/pc/startup.S: Likewise.
22853 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
22854
22855 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22856
22857 xnu_uuid command
22858
22859 * commands/xnu_uuid.c: new file
22860 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
22861 (xnu_uuid_mod_SOURCES): new variable
22862 (xnu_uuid_mod_CFLAGS): likewise
22863 (xnu_uuid_mod_LDFLAGS): likewise
22864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22865 * conf/i386-ieee1275.rmk: likewise
22866 * conf/i386-pc.rmk: likewise
22867 * conf/powerpc-ieee1275.rmk: likewise
22868 * conf/sparc64-ieee1275.rmk: likewise
22869 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
22870
22871 2009-06-16 Pavel Roskin <proski@gnu.org>
22872
22873 * configure.ac: Avoid '==' in test command, it's not portable.
22874
22875 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22876
22877 Probe command
22878
22879 * commands/probe.c: new file
22880 * conf/common.rmk (pkglib_MODULES): add probe.mod
22881 (probe_mod_SOURCES): new variable
22882 (probe_mod_CFLAGS): likewise
22883 (probe_mod_LDFLAGS): likewise
22884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22885 * conf/i386-ieee1275.rmk: likewise
22886 * conf/i386-pc.rmk: likewise
22887 * conf/powerpc-ieee1275.rmk: likewise
22888 * conf/sparc64-ieee1275.rmk: likewise
22889
22890 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
22891
22892 Fix handling of string like \"hello\" and "a
22893 b"
22894
22895 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
22896 (grub_script_yylex): fix parsing of quoting, escaping and newline
22897
22898 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
22899
22900 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
22901 handling
22902
22903 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
22904
22905 * util/grub-mkconfig.in: Fix parsing of --output option.
22906
22907 2009-06-12 Pavel Roskin <proski@gnu.org>
22908
22909 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
22910 genmk.rb don't need to be generated or installed.
22911
22912 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22913
22914 * commands/i386/pc/drivemap_int13h.S: add more comments
22915
22916 2009-06-11 Pavel Roskin <proski@gnu.org>
22917
22918 * Makefile.in (uninstall): Uninstall manuals.
22919
22920 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
22921 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
22922 and update-grub_lib in two places.
22923 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
22924
22925 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22926 a compiler warning.
22927
22928 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22929 `entry_lo' to fix variable shadowing.
22930
22931 2009-06-11 Christian Franke <franke@computer.org>
22932
22933 * kern/misc.c (__enable_execute_stack): Add missing return type
22934 to prevent gcc warning.
22935
22936 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22937
22938 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22939
22940 2009-06-11 Pavel Roskin <proski@gnu.org>
22941
22942 * Makefile.in: Don't rely on any scripts being executable.
22943 Always use $(SHELL) to run shell scripts.
22944
22945 * configure.ac: Always define ___main if using -nostdlib. This
22946 fixes tests on Cygwin.
22947
22948 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22949
22950 UDF fix
22951
22952 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22953 is in bytes and not in blocks
22954
22955 2009-06-11 Pavel Roskin <proski@gnu.org>
22956
22957 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
22958 warning.
22959
22960 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22961
22962 * util/grub.d/30_os-prober.in: Fix a comment. Source
22963 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
22964 to set the root device. Place drivemap command in the generated
22965 chain entry.
22966
22967 2009-06-11 Pavel Roskin <proski@gnu.org>
22968
22969 * configure.ac: Remove host_m32. Issues with 64-bit utilities
22970 have long been resolved.
22971
22972 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
22973
22974 * util/grub.d/10_linux.in: Capitalise "Linux".
22975
22976 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
22977
22978 2009-06-11 Pavel Roskin <proski@gnu.org>
22979
22980 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
22981 fix a gcc warning and ensure that the function won't ever exit.
22982
22983 * kern/i386/ieee1275/init.c: Add missing prototype for
22984 grub_stop_floppy().
22985
22986 * loader/ieee1275/multiboot2.c [__i386__]: Include
22987 grub/cpu/multiboot.h.
22988
22989 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
22990 casts to short - they are not portable and cause warnings. Fix
22991 use of uninitialized values in input_buf. Use ARRAY_SIZE.
22992
22993 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
22994
22995 Drivemap fixes
22996
22997 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
22998 new function
22999 (grub_get_root_biosnumber_saved): new variable
23000 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
23001 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
23002 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
23003 %dx after the call if necessary
23004 * conf/common.rmk (pkglib_MODULES): remove boot.mod
23005 (boot_mod_SOURCES): remove
23006 (boot_mod_CFLAGS): remove
23007 (boot_mod_LDFLAGS): remove
23008 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
23009 (boot_mod_SOURCES): new variable
23010 (boot_mod_CFLAGS): likewise
23011 (boot_mod_LDFLAGS): likewise
23012 * conf/i386-efi.rmk: likewise
23013 * conf/i386-ieee1275.rmk: likewise
23014 * conf/i386-pc.rmk: likewise
23015 * conf/powerpc-ieee1275.rmk: likewise
23016 * conf/sparc64-ieee1275.rmk: likewise
23017 * conf/x86_64-efi.rmk: likewise
23018 * include/grub/i386/pc/biosnum.h: new file
23019 * lib/i386/pc/biosnum.c: likewise
23020 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
23021 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
23022 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
23023
23024 2009-06-10 Pavel Roskin <proski@gnu.org>
23025
23026 * io/gzio.c (test_header): Don't reuse one buffer for all data.
23027 Use separate variables. Read only the file size at the end, but
23028 not the checksum that we don't use.
23029
23030 * kern/file.c (grub_file_read): Use void pointer for the buffer.
23031 Adjust all callers.
23032
23033 * kern/ieee1275/openfw.c: Remove libc includes.
23034 * kern/ieee1275/cmain.c: Likewise.
23035 * include/grub/ieee1275/ieee1275.h: Likewise.
23036
23037 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
23038 compiler warnings.
23039
23040 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23041
23042 * Makefile.in: Remove all trailing whitespace.
23043 * conf/i386-pc.rmk: Likewise.
23044 * conf/powerpc-ieee1275.rmk: Likewise.
23045 * conf/sparc64-ieee1275.rmk: Likewise.
23046 * docs/grub.texi: Likewise.
23047 * docs/texinfo.tex: Likewise.
23048 * disk/fs_uuid.c: Likewise.
23049 * disk/lvm.c: Likewise.
23050 * disk/scsi.c: Likewise.
23051 * disk/ata.c: Likewise.
23052 * disk/ieee1275/ofdisk.c: Likewise.
23053 * disk/i386/pc/biosdisk.c: Likewise.
23054 * disk/host.c: Likewise.
23055 * disk/raid.c: Likewise.
23056 * disk/efi/efidisk.c: Likewise.
23057 * disk/usbms.c: Likewise.
23058 * disk/memdisk.c: Likewise.
23059 * disk/loopback.c: Likewise.
23060 * kern/powerpc/dl.c: Likewise.
23061 * kern/device.c: Likewise.
23062 * kern/dl.c: Likewise.
23063 * kern/sparc64/dl.c: Likewise.
23064 * kern/ieee1275/ieee1275.c: Likewise.
23065 * kern/term.c: Likewise.
23066 * kern/fs.c: Likewise.
23067 * kern/i386/dl.c: Likewise.
23068 * kern/i386/pc/startup.S: Likewise.
23069 * kern/i386/pc/init.c: Likewise.
23070 * kern/i386/pc/mmap.c: Likewise.
23071 * kern/i386/pc/lzo1x.S: Likewise.
23072 * kern/i386/ieee1275/init.c: Likewise.
23073 * kern/i386/realmode.S: Likewise.
23074 * kern/i386/tsc.c: Likewise.
23075 * kern/partition.c: Likewise.
23076 * kern/corecmd.c: Likewise.
23077 * kern/file.c: Likewise.
23078 * kern/efi/efi.c: Likewise.
23079 * kern/efi/init.c: Likewise.
23080 * kern/efi/mm.c: Likewise.
23081 * kern/main.c: Likewise.
23082 * kern/err.c: Likewise.
23083 * kern/env.c: Likewise.
23084 * kern/disk.c: Likewise.
23085 * kern/generic/millisleep.c: Likewise.
23086 * kern/generic/rtc_get_time_ms.c: Likewise.
23087 * kern/misc.c: Likewise.
23088 * kern/parser.c: Likewise.
23089 * genmk.rb: Likewise.
23090 * configure.ac: Likewise.
23091 * boot/i386/pc/diskboot.S: Likewise.
23092 * boot/i386/pc/pxeboot.S: Likewise.
23093 * boot/i386/pc/boot.S: Likewise.
23094 * boot/i386/pc/lnxboot.S: Likewise.
23095 * boot/i386/pc/cdboot.S: Likewise.
23096 * parttool/pcpart.c: Likewise.
23097 * video/readers/tga.c: Likewise.
23098 * video/video.c: Likewise.
23099 * video/bitmap.c: Likewise.
23100 * lib/envblk.c: Likewise.
23101 * lib/i386/setjmp.S: Likewise.
23102 * fs/xfs.c: Likewise.
23103 * fs/afs.c: Likewise.
23104 * fs/fat.c: Likewise.
23105 * fs/ntfs.c: Likewise.
23106 * fs/udf.c: Likewise.
23107 * fs/affs.c: Likewise.
23108 * fs/iso9660.c: Likewise.
23109 * fs/hfs.c: Likewise.
23110 * fs/fshelp.c: Likewise.
23111 * fs/ext2.c: Likewise.
23112 * fs/jfs.c: Likewise.
23113 * fs/reiserfs.c: Likewise.
23114 * fs/hfsplus.c: Likewise.
23115 * fs/minix.c: Likewise.
23116 * fs/cpio.c: Likewise.
23117 * fs/sfs.c: Likewise.
23118 * fs/ufs.c: Likewise.
23119 * efiemu/prepare.c: Likewise.
23120 * efiemu/loadcore_common.c: Likewise.
23121 * efiemu/runtime/efiemu.sh: Likewise.
23122 * efiemu/runtime/efiemu.S: Likewise.
23123 * efiemu/runtime/efiemu.c: Likewise.
23124 * efiemu/pnvram.c: Likewise.
23125 * efiemu/main.c: Likewise.
23126 * efiemu/i386/pc/cfgtables.c: Likewise.
23127 * efiemu/i386/loadcore64.c: Likewise.
23128 * efiemu/i386/loadcore32.c: Likewise.
23129 * efiemu/loadcore.c: Likewise.
23130 * efiemu/symbols.c: Likewise.
23131 * efiemu/mm.c: Likewise.
23132 * include/grub/autoefi.h: Likewise.
23133 * include/grub/datetime.h: Likewise.
23134 * include/grub/term.h: Likewise.
23135 * include/grub/hfs.h: Likewise.
23136 * include/grub/lvm.h: Likewise.
23137 * include/grub/i386/tsc.h: Likewise.
23138 * include/grub/i386/linux.h: Likewise.
23139 * include/grub/i386/xnu.h: Likewise.
23140 * include/grub/i386/efiemu.h: Likewise.
23141 * include/grub/i386/pc/biosdisk.h: Likewise.
23142 * include/grub/i386/pc/memory.h: Likewise.
23143 * include/grub/i386/pc/vbe.h: Likewise.
23144 * include/grub/parttool.h: Likewise.
23145 * include/grub/video.h: Likewise.
23146 * include/grub/memory.h: Likewise.
23147 * include/grub/fs.h: Likewise.
23148 * include/grub/partition.h: Likewise.
23149 * include/grub/xnu.h: Likewise.
23150 * include/grub/efi/api.h: Likewise.
23151 * include/grub/efi/pe32.h: Likewise.
23152 * include/grub/efi/memory.h: Likewise.
23153 * include/grub/multiboot.h: Likewise.
23154 * include/grub/usbdesc.h: Likewise.
23155 * include/grub/multiboot2.h: Likewise.
23156 * include/grub/acpi.h: Likewise.
23157 * include/grub/efiemu/efiemu.h: Likewise.
23158 * include/grub/disk.h: Likewise.
23159 * include/grub/ieee1275/ieee1275.h: Likewise.
23160 * include/grub/net.h: Likewise.
23161 * include/grub/machoload.h: Likewise.
23162 * include/grub/macho.h: Likewise.
23163 * include/multiboot.h: Likewise.
23164 * genmoddep.awk: Likewise.
23165 * normal/main.c: Likewise.
23166 * normal/menu_entry.c: Likewise.
23167 * normal/menu_viewer.c: Likewise.
23168 * normal/completion.c: Likewise.
23169 * normal/cmdline.c: Likewise.
23170 * normal/misc.c: Likewise.
23171 * normal/datetime.c: Likewise.
23172 * bus/usb/usbtrans.c: Likewise.
23173 * bus/usb/ohci.c: Likewise.
23174 * bus/usb/uhci.c: Likewise.
23175 * bus/usb/usb.c: Likewise.
23176 * mmap/efi/mmap.c: Likewise.
23177 * mmap/i386/pc/mmap_helper.S: Likewise.
23178 * mmap/i386/pc/mmap.c: Likewise.
23179 * mmap/i386/mmap.c: Likewise.
23180 * mmap/i386/uppermem.c: Likewise.
23181 * mmap/mmap.c: Likewise.
23182 * commands/acpi.c: Likewise.
23183 * commands/echo.c: Likewise.
23184 * commands/blocklist.c: Likewise.
23185 * commands/loadenv.c: Likewise.
23186 * commands/usbtest.c: Likewise.
23187 * commands/boot.c: Likewise.
23188 * commands/parttool.c: Likewise.
23189 * commands/search.c: Likewise.
23190 * commands/cat.c: Likewise.
23191 * commands/i386/pc/play.c: Likewise.
23192 * commands/i386/pc/drivemap.c: Likewise.
23193 * commands/i386/pc/vbeinfo.c: Likewise.
23194 * commands/i386/pc/acpi.c: Likewise.
23195 * commands/i386/pc/vbetest.c: Likewise.
23196 * commands/ls.c: Likewise.
23197 * commands/cmp.c: Likewise.
23198 * commands/test.c: Likewise.
23199 * commands/efi/acpi.c: Likewise.
23200 * commands/gptsync.c: Likewise.
23201 * commands/help.c: Likewise.
23202 * partmap/amiga.c: Likewise.
23203 * partmap/apple.c: Likewise.
23204 * partmap/acorn.c: Likewise.
23205 * partmap/pc.c: Likewise.
23206 * partmap/sun.c: Likewise.
23207 * partmap/gpt.c: Likewise.
23208 * script/sh/lexer.c: Likewise.
23209 * script/sh/function.c: Likewise.
23210 * font/font.c: Likewise.
23211 * font/font_cmd.c: Likewise.
23212 * loader/powerpc/ieee1275/linux.c: Likewise.
23213 * loader/efi/chainloader.c: Likewise.
23214 * loader/multiboot_loader.c: Likewise.
23215 * loader/macho.c: Likewise.
23216 * loader/i386/multiboot.c: Likewise.
23217 * loader/i386/linux.c: Likewise.
23218 * loader/i386/pc/linux.c: Likewise.
23219 * loader/i386/pc/multiboot2.c: Likewise.
23220 * loader/i386/pc/chainloader.c: Likewise.
23221 * loader/i386/pc/xnu.c: Likewise.
23222 * loader/i386/bsd_trampoline.S: Likewise.
23223 * loader/i386/efi/linux.c: Likewise.
23224 * loader/i386/multiboot_elfxx.c: Likewise.
23225 * loader/i386/bsd_helper.S: Likewise.
23226 * loader/i386/bsd.c: Likewise.
23227 * loader/i386/linux_trampoline.S: Likewise.
23228 * loader/i386/xnu_helper.S: Likewise.
23229 * loader/i386/xnu.c: Likewise.
23230 * loader/i386/bsd_pagetable.c: Likewise.
23231 * loader/i386/multiboot_helper.S: Likewise.
23232 * loader/xnu.c: Likewise.
23233 * loader/xnu_resume.c: Likewise.
23234 * io/gzio.c: Likewise.
23235 * term/efi/console.c: Likewise.
23236 * term/terminfo.c: Likewise.
23237 * term/ieee1275/ofconsole.c: Likewise.
23238 * term/i386/pc/serial.c: Likewise.
23239 * term/i386/pc/vesafb.c: Likewise.
23240 * term/i386/pc/vga.c: Likewise.
23241 * term/usb_keyboard.c: Likewise.
23242 * term/gfxterm.c: Likewise.
23243 * aclocal.m4: Likewise.
23244 * util/lvm.c: Likewise.
23245 * util/grub.d/30_os-prober.in: Likewise.
23246 * util/grub.d/10_hurd.in: Likewise.
23247 * util/console.c: Likewise.
23248 * util/grub-macho2img.c: Likewise.
23249 * util/grub-probe.c: Likewise.
23250 * util/hostfs.c: Likewise.
23251 * util/i386/pc/grub-mkimage.c: Likewise.
23252 * util/i386/pc/grub-setup.c: Likewise.
23253 * util/i386/efi/grub-mkimage.c: Likewise.
23254 * util/grub-mkconfig.in: Likewise.
23255 * util/raid.c: Likewise.
23256 * util/resolve.c: Likewise.
23257 * util/grub-mkdevicemap.c: Likewise.
23258 * util/grub-emu.c: Likewise.
23259 * util/getroot.c: Likewise.
23260 * util/hostdisk.c: Likewise.
23261 * util/usb.c: Likewise.
23262 * util/grub-editenv.c: Likewise.
23263 * util/misc.c: Likewise.
23264
23265 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23266
23267 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
23268 `genparttoollist.sh'.
23269 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
23270 Add `*.sh' to the list find searches for and change `mdate.sh'
23271 to `mdate-sh'.
23272
23273 2009-06-10 Pavel Roskin <proski@gnu.org>
23274
23275 * include/grub/multiboot2.h: Provide compatibility defines for
23276 multiboot2.h.
23277 * include/multiboot2.h: Include stdint.h only if needed, using
23278 angle brackets.
23279 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
23280 grub/multiboot2.h.
23281 * loader/ieee1275/multiboot2.c: Likewise.
23282 * loader/multiboot2.c: Likewise.
23283 * loader/multiboot_loader.c: Likewise.
23284
23285 * configure.ac: Use -nostdlib when probing for the target. It
23286 should not be required to have libc for the target.
23287
23288 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
23289 they fail without libc headers for the target.
23290 * include/grub/powerpc/libgcc.h: Use weak attribute for all
23291 exports.
23292 * include/grub/sparc64/libgcc.h: Likewise. Don't use
23293 preprocessor conditionals.
23294
23295 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
23296 build system doesn't need to be aware of the tar.c internals.
23297
23298 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
23299
23300 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
23301
23302 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
23303
23304 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
23305 disk limit to 26 for IDE, Virtio, Xen and SCSI.
23306
23307 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
23308
23309 * util/i386/pc/grub-install.in: Change the error message if UUIDs
23310 aren't available if ata.mod gets used.
23311
23312 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
23313
23314 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
23315 initialising controller.
23316 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23317
23318 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23319
23320 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23321 to choose between ata and biosdisk module on i386-pc.
23322
23323 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23324
23325 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23326 Subclass and Programming Interface fields in terms of the 3 byte
23327 Class Code register.
23328 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23329
23330 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23331 interface is OHCI. Add grub_dprintf for symmetry with
23332 bus/usb/uhci.c.
23333 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23334 interface is UHCI. Add interf variable for programming
23335 interface. Print interface with class/subclass.
23336
23337 * bus/usb/ohci.c: Set interf with correct field.
23338
23339 * bus/usb/uhci.c: Remove unneeded doubled lines.
23340 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23341 Remove whitespace inside comment.
23342
23343 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23344
23345 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23346 as fallback an equivalent option without depth.
23347
23348 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23349
23350 Not fail if unable to retrieve C/H/S on LBA disks
23351
23352 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23353 if unable to retrieve C/H/S on LBA disks
23354
23355 2009-06-08 Pavel Roskin <proski@gnu.org>
23356
23357 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23358 about aliasing.
23359
23360 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23361
23362 * Makefile.in (uninstall): Remove all $lib_DATA files.
23363
23364 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23365
23366 Bugfix: install on partitionless device
23367
23368 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23369 is a whole disk
23370
23371 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23372
23373 * Makefile.in (uninstall): Remove all $include_DATA files.
23374
23375 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23376
23377 * commands/true.c: New file. Implement the true and false commands.
23378 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23379 (true_mod_SOURCES): New variable.
23380 (true_mod_CFLAGS): Likewise.
23381 (true_mod_LDFLAGS): Likewise.
23382
23383 2009-06-05 Colin D Bennett <colin@gibibit.com>
23384
23385 Optimized font character lookup using binary search instead of linear
23386 search. Fonts now are required to have the character index ordered by
23387 code point.
23388
23389 * font/font.c (load_font_index): Verify that fonts have ordered
23390 character indices.
23391 (find_glyph): Use binary search instead of linear search to find a
23392 character in a font.
23393
23394 2009-06-05 Michael Scherer <misc@mandriva.org>
23395
23396 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23397 uses case sensitive btree.
23398 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23399 only for case insensitive filesystems.
23400
23401 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23404 * conf/common.rmk (search_mod_CFLAGS): likewise
23405
23406 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23407
23408 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23409 compensate a compiler bug
23410
23411 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23412
23413 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23414 instead of '\b'
23415
23416 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23417
23418 Definitions for creating asm symbols with Apple's CC
23419
23420 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23421 [APPLE_CC] (VARIABLE): likewise
23422
23423 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23424
23425 Disable lnxboot.img when compiled
23426 with Apple's CC
23427
23428 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23429 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23430 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23431 [! APPLE_CC] (CODE_LENG): skip
23432 [! APPLE_CC] (setup_sects): likewise
23433 [! APPLE_CC]: skip filling
23434
23435 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23436
23437 Address in trampolines based on 32-bit registers when compiled
23438 with Apple's CC
23439
23440 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23441 for addresses
23442 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23443
23444 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23447
23448 * kern/misc.c [APPLE_CC] (memcpy): new function
23449 [APPLE_CC] (memmove): likewise
23450 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23451 (memcpy): define alias conditionally on !APPLE_CC
23452 (memset): likewise
23453 (abort): likewise
23454 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23455 APPLE_CC are defined
23456 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23457 (grub_assert_fail): make prototype conditional
23458
23459 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23460
23461 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23462
23463 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23464 grub-macho2img
23465 (CLEANFILES): add grub-macho2img
23466 (grub_macho2img_SOURCES): new variable
23467 * kern/i386/pc/startup.S (bss_start): new variable
23468 (bss_end): likewise
23469 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23470 * util/grub-macho2img.c: new file
23471
23472 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23473
23474 Use objconv when compiling with Apple's CC
23475
23476 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23477 (efiemu64.o): likewise
23478 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23479 when compiling with Apple's CC
23480 (efiemu64_s.o): likewise
23481 * configure.ac: check for objconv when compiling with Apple's CC
23482 * genmk.rb: use objconv for modules when compiled with Apple's CC
23483
23484 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23485
23486 Define segment as well as section when compiling with
23487 Apple's CC
23488
23489 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23490 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23491 (efiemu_convert_pointer): likewise
23492 (efiemu_set_virtual_address_map): likewise
23493 (efiemu_convert_pointer): likewise
23494 (efiemu_getcrc32): likewise
23495 (init_crc32_table): likewise
23496 (reflect): likewise
23497 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23498 (GRUB_MOD_DEP): likewise
23499
23500 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 Allow a compilation without -mcmodel=large
23503
23504 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23505 when compiled without -mcmodel=large
23506 (filter_memory_map): remove memory post 4 GiB when compiled
23507 without -mcmodel=large
23508 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23509 TARGET_CFLAGS when -mcmodel=large isn't supported
23510
23511 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23512
23513 Remove nested functions in efiemu core
23514
23515 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23516
23517 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23518
23519 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23520
23521 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23522 temporary storage
23523 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23524 using Apple's CC
23525 (grub_cpu_is_tsc_supported): likewise
23526 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23527
23528 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23529
23530 Absolute addressing through constant with Apple's cc
23531
23532 * kern/i386/pc/startup.S: Define necessary constants
23533 and address through it when using ABS with Apple's CC
23534 * boot/i386/pc/diskboot.S: likewise
23535 * boot/i386/pc/boot.S: likewise
23536 * boot/i386/pc/lnxboot.S: likewise
23537 * boot/i386/pc/cdboot.S: likewise
23538 * mmap/i386/pc/mmap_helper.S: likewise
23539 * commands/i386/pc/drivemap_int13h.S: likewise
23540
23541 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23542
23543 Check if compiler is apple cc
23544
23545 * Makefile.in (ASFLAGS): new variable
23546 (TARGET_ASFLAGS): likewise
23547 (TARGET_MODULE_FORMAT): likewise
23548 (TARGET_APPLE_CC): likewise
23549 (OBJCONV): likewise
23550 (TARGET_IMG_CFLAGS): likewise
23551 (TARGET_CPPFLAGS): add includedir
23552 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23553 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23554 Check for linker script only if compiler isn't Apple's CC
23555 (TARGET_MODULE_FORMAT): set
23556 (TARGET_APPLE_CC): likewise
23557 (TARGET_ASFLAGS): likewise
23558 (ASFLAGS): likewise
23559 Check for objcopy only if compiler isn't Apple's CC
23560 Check for BSS symbol only if compiler isn't Apple's CC
23561 * genmk.rb: adapt nm options if we use Apple's utils
23562 * aclocal.m4 (grub_apple_cc): new test
23563 (grub_apple_target_cc): likewise
23564
23565 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23566
23567 Simplify sed expressions and improve awk
23568
23569 * Makefile.in (install-local): simplify sed expression
23570 * gencmdlist.sh: likewise
23571 * genmoddep.awk: avoid adding module as a dependency of itself
23572
23573 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23574
23575 Add missing start symbols
23576
23577 * boot/i386/pc/boot.S: add start
23578 * boot/i386/pc/pxeboot.S: likewise
23579
23580 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23581
23582 Fix wrong assumptions with grub-mkimage on EFI
23583
23584 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23585 (relocate_addresses): consider both r_addend and value at offset
23586 (make_mods_section): zerofill modinfo and header
23587 (convert_elf): write prefix here
23588
23589 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23590
23591 Use .asciz instead of .string
23592
23593 * i386/pc/diskboot.S: use .asciz instead of .string
23594 * i386/pc/boot.S: likewise
23595 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23596 (GRUB_MOD_NAME): likewise
23597
23598 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23599
23600 gfxpayload support
23601
23602 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23603 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23604 (grub_video_setup): remove
23605 (grub_video_set_mode): new prototype
23606 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23607 (vid_mode): remove
23608 (linux_vesafb_res): compile only on PCBIOS
23609 (grub_linux_boot): support gfxpayload
23610 * loader/i386/pc/xnu.c (video_hook): new function
23611 (grub_xnu_set_video): support gfxpayload
23612 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23613 (DEFAULT_VIDEO_HEIGHT): likewise
23614 (DEFAULT_VIDEO_FLAGS): likewise
23615 (DEFAULT_VIDEO_MODE): new definition
23616 (video_hook): new function
23617 (grub_gfxterm_init): use grub_video_set_mode
23618 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23619 loading xnu
23620 * video/video.c (grub_video_setup): removed
23621 (grub_video_set_mode): new function based on grub_gfxterm_init and
23622 grub_video_setup
23623
23624 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 Avoid calling biosdisk in drivemap
23627
23628 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23629 (revparse_biosdisk): likewise
23630 (list_mappings): derive name from id directly
23631 (grub_cmd_drivemap): use tryparse_diskstring
23632
23633 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23634
23635 Script fixes
23636
23637 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23638 (grub_lexer_param): add tokenonhold
23639 (grub_script_create_cmdline): remove cmdline. All callers updated
23640 (grub_script_function_create): make functionname
23641 grub_script_arg. All callers updated
23642 (grub_script_execute_argument_to_string): new prototype
23643 * kern/parser.c (state_transitions): reorder
23644 (grub_parser_cmdline_state): fix a bug and make more compact
23645 * script/sh/execute.c (grub_script_execute_argument_to_string):
23646 make global
23647 (grub_script_execute_cmdline): use new format
23648 * script/sh/function.c (grub_script_function_create): make functionname
23649 grub_script_arg. All callers updated
23650 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
23651 (grub_script_yylex): remove
23652 (grub_script_yylex2): renamed to ...
23653 (grub_script_yylex): ...renamed
23654 parse the expressions like a${b}c
23655 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
23656 (GRUB_PARSER_TOKEN_VAR): remove
23657 (GRUB_PARSER_TOKEN_NAME): likewise
23658 ("if"): declare as typeless
23659 ("while"): likewise
23660 ("function"): likewise
23661 ("else"): likewise
23662 ("then"): likewise
23663 ("fi"): likewise
23664 (text): remove
23665 (argument): likewise
23666 (script): accept empty scripts and make exit on error
23667 (arguments): use GRUB_PARSER_TOKEN_ARG
23668 (function): likewise
23669 (command): move error handling to script
23670 (menuentry): move grub_script_lexer_ref before
23671 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
23672 argument. All callers updated
23673
23674 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23675
23676 Prevent GRUB from probing floppies during boot.
23677
23678 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
23679 * commands/search.c (options): Add --no-floppy.
23680 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
23681 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
23682 --no-floppy when searching for UUIDs.
23683
23684 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23685
23686 Simplify the code duplication in commands/search.c.
23687
23688 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23689 (search_fs): ... this. Update all users.
23690
23691 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23692
23693 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23694
23695 2009-05-28 Pavel Roskin <proski@gnu.org>
23696
23697 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23698 Remove the original symlink explicitly.
23699
23700 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
23701 just one slash. That's how grub_fshelp_find_file() does it.
23702
23703 2009-05-26 Pavel Roskin <proski@gnu.org>
23704
23705 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
23706 to `str'.
23707
23708 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
23709 possibly unused.
23710
23711 2009-05-25 Christian Franke <franke@computer.org>
23712
23713 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
23714 register.
23715 (grub_atapi_identify): Add wait after drive select.
23716 (grub_ata_identify): Do more strict status register check before
23717 calling grub_atapi_identify (). Suppress error message if status
23718 register is 0x00 after command failure. Add status register
23719 check after PIO read to avoid bogus identify due to stuck DRQ.
23720 Thanks to Pavel Roskin for testing.
23721 (grub_device_initialize): Remove unsafe status register check.
23722 Thanks to 'phcoder' for problem report and patch.
23723 Prevent sign extension in debug message.
23724
23725 2009-05-23 Colin D Bennett <colin@gibibit.com>
23726
23727 Cleaned up `include/grub/normal.h'. Grouped prototypes by
23728 definition file, and functions defined in `normal/menu.c' have had
23729 their prototypes moved to `include/grub/menu.h' for consistency.
23730
23731 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
23732 from normal.h.
23733 (grub_menu_get_entry): Likewise.
23734 (grub_menu_get_timeout): Likewise.
23735 (grub_menu_set_timeout): Likewise.
23736 (grub_menu_execute_entry): Likewise.
23737 (grub_menu_execute_with_fallback): Likewise.
23738 (grub_menu_entry_run): Likewise.
23739
23740 * include/grub/normal.h: Re-ordered and grouped function
23741 prototypes by file that the function is defined in.
23742 (grub_menu_execute_callback): Removed; moved to menu.h.
23743 (grub_menu_get_entry): Likewise.
23744 (grub_menu_get_timeout): Likewise.
23745 (grub_menu_set_timeout): Likewise.
23746 (grub_menu_execute_entry): Likewise.
23747 (grub_menu_execute_with_fallback): Likewise.
23748 (grub_menu_entry_run): Likewise.
23749 (grub_menu_addentry): Renamed from this ...
23750 (grub_normal_add_menu_entry): ... to this.
23751
23752 * normal/main.c (grub_menu_addentry): Renamed from this ...
23753 (grub_normal_add_menu_entry): ... to this.
23754
23755 * script/sh/execute.c (grub_script_execute_menuentry): Update
23756 reference to renamed grub_menu_addentry function.
23757
23758 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
23759
23760 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
23761
23762 2009-05-22 Pavel Roskin <proski@gnu.org>
23763
23764 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
23765 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
23766 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
23767 compiling for the i386 targets, but not for the utilities.
23768
23769 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
23770 to grub_uint8_t.
23771 (grub_root_drive): Likewise.
23772 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
23773 remove alignment.
23774 (grub_root_drive): Change size to byte.
23775 (grub_start_addr): Remove.
23776 (grub_end_addr): Likewise.
23777 (grub_apm_bios_info): Likewise.
23778
23779 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
23780
23781 * normal/i386: Remove.
23782 * normal/powerpc: Likewise.
23783 * normal/sparc64: Likewise.
23784 * normal/x86_64: Likewise.
23785
23786 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
23789 * loader/i386/linux_trampoline.S: Fix indentation
23790 * loader/i386/xnu_helper.S: Likewise
23791
23792 2009-05-18 Colin D Bennett <colin@gibibit.com>
23793
23794 Display error messages when parsing a Lua statement fails.
23795 Previously, executing a syntactically invalid statement like
23796 ")foo" or "bar;" would silently fail.
23797
23798 * script/lua/grub_main.c (handle_lua_error): New function.
23799 (grub_lua_parse_line): Improved reporting of Lua parser and
23800 execution errors.
23801
23802 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23803
23804 Remove -Werror which causes build to fail on some systems
23805
23806 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
23807 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
23808 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
23809
23810 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23811
23812 trampoline for linux on 64-bit platform
23813
23814 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
23815 loader/i386/efi/linux_trampoline.S
23816 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
23817 declaration
23818 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
23819 here
23820 * loader/i386/linux_trampoline.S: moved here
23821 * loader/i386/efi/linux.c (allocate_pages): reserve space for
23822 trampoline
23823 (jumpvector): removed
23824 (grub_linux_trampoline_start): new declaration
23825 (grub_linux_trampoline_end): likewise
23826 (grub_linux_boot): use trampoline when on 64-bit platform
23827 * loader/i386/linux.c: likewise
23828
23829 2009-05-16 Pavel Roskin <proski@gnu.org>
23830
23831 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
23832 const to avoid a warning.
23833 (grub_lua_setenv): Likewise.
23834 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
23835 lmsg to fix a warning.
23836
23837 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23838
23839 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
23840 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23841 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
23842 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23843 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23844 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23845 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23846 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23847
23848 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23849
23850 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
23851
23852 2009-05-16 Bean <bean123ch@gmail.com>
23853
23854 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
23855 (lua_mod_SOURCES): New variable.
23856 (lua_mod_CFLAGS): Likewise.
23857 (lua_mod_LDFLAGS): Likewise.
23858
23859 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
23860 (setjmp_mod_SOURCES): New variable.
23861 (setjmp_mod_CFLAGS): Likewise.
23862 (setjmp_LDFLAGS): Likewise.
23863
23864 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
23865 (setjmp_mod_SOURCES): New variable.
23866 (setjmp_mod_CFLAGS): Likewise.
23867 (setjmp_LDFLAGS): Likewise.
23868
23869 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23870 (setjmp_mod_SOURCES): New variable.
23871 (setjmp_mod_CFLAGS): Likewise.
23872 (setjmp_LDFLAGS): Likewise.
23873
23874 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23875 (setjmp_mod_SOURCES): New variable.
23876 (setjmp_mod_CFLAGS): Likewise.
23877 (setjmp_LDFLAGS): Likewise.
23878
23879 * normal/i386/setjmp.S: Moved from here ...
23880 * lib/i386/setjmp.S: ... Moved here
23881 * normal/x86_64/setjmp.S: Moved from here ...
23882 * lib/x86_64/setjmp.S: ... Moved here
23883 * normal/powerpc/setjmp.S: Moved from here ...
23884 * lib/powerpc/setjmp.S: ... Moved here
23885 * normal/sparc64/setjmp.S: Moved from here ...
23886 * lib/sparc64/setjmp.S: ... Moved here
23887
23888 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
23889 returns_twice in mingw.
23890
23891 * script/lua/grub_lib.c: New file.
23892 * script/lua/grub_lib.h: Likewise.
23893 * script/lua/grub_lua.h: Likewise.
23894 * script/lua/grub_main.c: Likewise.
23895 * script/lua/lapi.c: Likewise.
23896 * script/lua/lapi.h: Likewise.
23897 * script/lua/lauxlib.c: Likewise.
23898 * script/lua/lauxlib.h: Likewise.
23899 * script/lua/lbaselib.c: Likewise.
23900 * script/lua/lcode.c: Likewise.
23901 * script/lua/lcode.h: Likewise.
23902 * script/lua/ldblib.c: Likewise.
23903 * script/lua/ldebug.c: Likewise.
23904 * script/lua/ldebug.h: Likewise.
23905 * script/lua/ldo.c: Likewise.
23906 * script/lua/ldo.h: Likewise.
23907 * script/lua/ldump.c: Likewise.
23908 * script/lua/lfunc.c: Likewise.
23909 * script/lua/lfunc.h: Likewise.
23910 * script/lua/lgc.c: Likewise.
23911 * script/lua/lgc.h: Likewise.
23912 * script/lua/linit.c: Likewise.
23913 * script/lua/liolib.c: Likewise.
23914 * script/lua/llex.c: Likewise.
23915 * script/lua/llex.h: Likewise.
23916 * script/lua/llimits.h: Likewise.
23917 * script/lua/lmathlib.c: Likewise.
23918 * script/lua/lmem.c: Likewise.
23919 * script/lua/lmem.h: Likewise.
23920 * script/lua/loadlib.c: Likewise.
23921 * script/lua/lobject.c: Likewise.
23922 * script/lua/lobject.h: Likewise.
23923 * script/lua/lopcodes.c: Likewise.
23924 * script/lua/lopcodes.h: Likewise.
23925 * script/lua/loslib.c: Likewise.
23926 * script/lua/lparser.c: Likewise.
23927 * script/lua/lparser.h: Likewise.
23928 * script/lua/lstate.c: Likewise.
23929 * script/lua/lstate.h: Likewise.
23930 * script/lua/lstring.c: Likewise.
23931 * script/lua/lstring.h: Likewise.
23932 * script/lua/lstrlib.c: Likewise.
23933 * script/lua/ltable.c: Likewise.
23934 * script/lua/ltable.h: Likewise.
23935 * script/lua/ltablib.c: Likewise.
23936 * script/lua/ltm.c: Likewise.
23937 * script/lua/ltm.h: Likewise.
23938 * script/lua/lua.h: Likewise.
23939 * script/lua/luaconf.h: Likewise.
23940 * script/lua/lualib.h: Likewise.
23941 * script/lua/lundump.c: Likewise.
23942 * script/lua/lundump.h: Likewise.
23943 * script/lua/lvm.c: Likewise.
23944 * script/lua/lvm.h: Likewise.
23945 * script/lua/lzio.c: Likewise.
23946 * script/lua/lzio.h: Likewise.
23947
23948 2009-05-16 Bean <bean123ch@gmail.com>
23949
23950 * include/grub/kernel.h (grub_module_header_types): Add type
23951 OBJ_TYPE_CONFIG.
23952
23953 * kern/main.c (grub_load_config): New function.
23954 (grub_main): Call grub_load_config to read boot config.
23955
23956 * grub-mkimage (generate_image): New parameter config_path.
23957 (options): New option --config.
23958 (main): Parse --config option, and pass it to generate_image.
23959
23960 2009-05-14 Christian Franke <franke@computer.org>
23961
23962 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
23963 This fixes build on Cygwin.
23964
23965 2009-05-14 Pavel Roskin <proski@gnu.org>
23966
23967 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
23968 jump. This saves two bytes, so the typical case of 2 swapped
23969 drives would fit 32 bytes.
23970
23971 2009-05-13 Pavel Roskin <proski@gnu.org>
23972
23973 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
23974 grub_uint32_t to avoid a warning.
23975
23976 * loader/i386/linux.c (allocate_pages): When assigning
23977 real_mode_mem, cast through grub_size_t to fix a warning. The
23978 code already makes sure that the value would fit a pointer.
23979 (grub_linux_setup_video): Cast render_target->data to
23980 grub_size_t to fix a warning.
23981
23982 2009-05-13 Javier Martín <lordhabbit@gmail.com>
23983
23984 * commands/i386/pc/drivemap.c: New file - implement drivemap
23985 command.
23986 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
23987 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
23988
23989 2009-05-13 Pavel Roskin <proski@gnu.org>
23990
23991 * util/i386/pc/grub-setup.c (setup): Remove unused variable
23992 embedding_area_exists.
23993
23994 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
23995
23996 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
23997 it easier to understand / work with.
23998 Improve warning messages for cases where there's no embedding area,
23999 or when it is too small (or core.img too large).
24000
24001 2009-05-13 Pavel Roskin <proski@gnu.org>
24002
24003 * loader/i386/pc/multiboot2.c: Add necessary includes for
24004 grub_multiboot2_real_boot().
24005
24006 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
24007 PX record is always little-endian. We only need the lower 2
24008 bytes of the mode.
24009
24010 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
24011 facilitate code reuse.
24012 (grub_cpio_mount): Use "struct head", not a char buffer. This
24013 fixes a warning reported by gcc 4.4.
24014
24015 * kernel/disk.c (grub_disk_read): Use void pointer for the
24016 buffer.
24017 (grub_disk_write): Use const void pointer for the buffer.
24018 Adjust all callers. Remove unnecessary casts.
24019
24020 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
24021
24022 * util/i386/pc/grub-install.in: Update copyright year.
24023
24024 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24025
24026 gptsync
24027
24028 * commands/gptsync.c: new file
24029 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
24030 (gptsync_mod_SOURCES): new variable
24031 (gptsync_mod_CFLAGS): likewise
24032 (gptsync_mod_LDFLAGS): likewise
24033 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
24034 new definition
24035 (GRUB_PC_PARTITION_TYPE_HFS): likewise
24036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
24037 * conf/i386-ieee1275.rmk: likewise
24038 * conf/i386-pc.rmk: likewise
24039 * conf/powerpc-ieee1275.rmk: likewise
24040
24041 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24042
24043 Fixed grub-emu
24044
24045 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
24046 (grub_dl_ref): likewise
24047
24048 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
24049
24050 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
24051 split in two functions (one for msdos and one for gpt).
24052
24053 2009-05-08 Pavel Roskin <proski@gnu.org>
24054
24055 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
24056 not modified.
24057
24058 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
24059 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
24060 Initialize them with -1. Add sanity check for bad1. Eliminate
24061 nerr variable.
24062
24063 2009-05-08 David S. Miller <davem@davemloft.net>
24064
24065 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
24066
24067 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
24068
24069 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
24070 existence.
24071
24072 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
24073
24074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24075 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
24076
24077 2009-05-05 David S. Miller <davem@davemloft.net>
24078
24079 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
24080
24081 2009-05-05 Pavel Roskin <proski@gnu.org>
24082
24083 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
24084 of grub_dl_ref() and grub_dl_unref().
24085 * commands/parttool.c: Remove preprocessor conditionals around
24086 grub_dl_ref() and grub_dl_unref().
24087 * fs/affs.c: Likewise.
24088 * fs/afs.c: Likewise.
24089 * fs/cpio.c: Likewise.
24090 * fs/ext2.c: Likewise.
24091 * fs/fat.c: Likewise.
24092 * fs/hfs.c: Likewise.
24093 * fs/hfsplus.c: Likewise.
24094 * fs/iso9660.c: Likewise.
24095 * fs/jfs.c: Likewise.
24096 * fs/minix.c: Likewise.
24097 * fs/ntfs.c: Likewise.
24098 * fs/reiserfs.c: Likewise.
24099 * fs/sfs.c: Likewise.
24100 * fs/udf.c: Likewise.
24101 * fs/ufs.c: Likewise.
24102 * fs/xfs.c: Likewise.
24103 * include/grub/dl.h: Likewise.
24104 * loader/xnu.c: Likewise.
24105
24106 2009-05-04 Pavel Roskin <proski@gnu.org>
24107
24108 * commands/acpi.c: Remove unused variable my_mod.
24109 * partmap/amiga.c: Likewise.
24110 * partmap/apple.c: Likewise.
24111 * partmap/gpt.c: Likewise.
24112 * partmap/pc.c: Likewise.
24113 * partmap/sun.c: Likewise.
24114 * term/gfxterm.c: Likewise.
24115 * term/i386/pc/vesafb.c: Likewise.
24116 * term/i386/pc/vga.c: Likewise.
24117
24118 2009-05-04 David S. Miller <davem@davemloft.net>
24119
24120 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
24121 pointer args to grub_ieee1275_get_property().
24122
24123 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
24124
24125 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
24126 devices, and do not traverse down under controller nodes.
24127
24128 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
24129 (grub_ofdisk_open): Use it to un-escape "," characters.
24130 * kern/disk.c (find_part_sep): New.
24131 (grub_disk_open): Use it to find the first non-escaped ','
24132 character in the disk name.
24133 * util/ieee1275/devicemap.c (escape_of_path): New.
24134 (grub_util_emit_devicemap_entry): Use it.
24135 * util/sparc64/ieee1275/grub-install.in: Update script to
24136 strip partition specifiers properly by not triggering on
24137 '\' escaped ',' characters.
24138
24139 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24140
24141 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
24142 to 0x300.
24143 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
24144 resolutions.
24145 (linux_vesafb_modes): Add a lot of additional modes to the list (based
24146 on documentation from Wikipedia).
24147
24148 2009-05-04 Pavel Roskin <proski@gnu.org>
24149
24150 * disk/ata.c: Spelling fixes.
24151 * disk/raid.c: Likewise.
24152 * disk/usbms.c: Likewise.
24153 * disk/dmraid_nvidia.c: Likewise.
24154 * kern/ieee1275/openfw.c: Likewise.
24155 * kern/ieee1275/init.c: Likewise.
24156 * kern/ieee1275/cmain.c: Likewise.
24157 * boot/i386/pc/cdboot.S: Likewise.
24158 * video/readers/png.c: Likewise.
24159 * video/i386/pc/vbe.c: Likewise.
24160 * fs/udf.c: Likewise.
24161 * fs/hfs.c: Likewise.
24162 * fs/reiserfs.c: Likewise.
24163 * efiemu/runtime/efiemu.c: Likewise.
24164 * efiemu/main.c: Likewise.
24165 * efiemu/mm.c: Likewise.
24166 * include/grub/elf.h: Likewise.
24167 * include/grub/xnu.h: Likewise.
24168 * include/grub/usbdesc.h: Likewise.
24169 * include/grub/usb.h: Likewise.
24170 * include/grub/script_sh.h: Likewise.
24171 * include/grub/lib/LzmaEnc.h: Likewise.
24172 * include/grub/efiemu/efiemu.h: Likewise.
24173 * include/grub/command.h: Likewise.
24174 * normal/menu.c: Likewise.
24175 * normal/main.c: Likewise.
24176 * normal/datetime.c: Likewise.
24177 * bus/usb/uhci.c: Likewise.
24178 * mmap/i386/uppermem.c: Likewise.
24179 * mmap/mmap.c: Likewise.
24180 * commands/acpi.c: Likewise.
24181 * commands/test.c: Likewise.
24182 * partmap/apple.c: Likewise.
24183 * font/font.c: Likewise.
24184 * loader/sparc64/ieee1275/linux.c: Likewise.
24185 * loader/macho.c: Likewise.
24186 * loader/i386/bsd_trampoline.S: Likewise.
24187 * loader/i386/bsd.c: Likewise.
24188 * loader/xnu.c: Likewise.
24189 * term/i386/pc/vesafb.c: Likewise.
24190 * term/usb_keyboard.c: Likewise.
24191 * util/resolve.c: Likewise.
24192 * util/getroot.c: Likewise.
24193
24194 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24195
24196 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
24197
24198 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24199
24200 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
24201 build error.
24202
24203 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24204
24205 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
24206 parameter only available on BIOS.
24207
24208 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24209
24210 Removed wrong semicolon in declaration
24211
24212 * grub/misc.h (grub_dprintf): remove semicolon
24213
24214 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24215
24216 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
24217 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
24218 is done by grub_cmd_linux() now).
24219 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
24220 restore video to text mode.
24221 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
24222 indicates lack of "vga=" parameter. "vga=0" is mapped to
24223 `GRUB_LINUX_VID_MODE_NORMAL'.
24224
24225 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24226
24227 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
24228 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
24229 and `normal/script.c'. Add `kern/rescue_reader.c',
24230 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
24231 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
24232 `grub_script.tab.c'.
24233
24234 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24235 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24237 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24238 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24239
24240 * Makefile.in: Remove duplicated 2008 in Copyright line.
24241
24242 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24243
24244 * util/misc.c (grub_util_warn): New function. Emits a warning
24245 unconditionally.
24246 * include/grub/util/misc.h (grub_util_warn): New declaration.
24247
24248 * util/i386/pc/grub-install.in: Understand --force and pass it down
24249 to grub-setup.
24250
24251 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
24252 down to setup().
24253 (setup): Improve error messages and add warnings when requested to
24254 install in odd layouts. Refuse to install using blocklists unless
24255 --force was set.
24256
24257 2009-05-04 martin f. krafft <madduck@madduck.net>
24258
24259 * disk/raid.c (grub_raid_scan_device): Improve debug message.
24260
24261 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24262
24263 Updated copyright year
24264
24265 * fs/hfsplus.c: updated copyright year
24266
24267 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24268
24269 HFS+ UUID
24270
24271 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
24272 in the space previously used by unused3
24273 (grub_hfsplus_uuid): new function
24274 (grub_hfsplus_fs): added uuid field
24275
24276 2009-05-03 Pavel Roskin <proski@gnu.org>
24277
24278 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
24279 suppress warnings. It's no longer needed.
24280 * disk/host.c: Likewise.
24281 * disk/ata_pthru.c: Likewise.
24282 * disk/loopback.c: Likewise.
24283 * hook/datehook.c: Likewise.
24284 * parttool/pcpart.c: Likewise.
24285 * fs/i386/pc/pxe.c: Likewise.
24286 * fs/ntfscomp.c: Likewise.
24287 * efiemu/main.c: Likewise.
24288 * mmap/mmap.c: Likewise.
24289 * commands/crc.c: Likewise.
24290 * commands/hexdump.c: Likewise.
24291 * commands/hdparm.c: Likewise.
24292 * commands/acpi.c: Likewise.
24293 * commands/echo.c: Likewise.
24294 * commands/minicmd.c: Likewise.
24295 * commands/blocklist.c: Likewise.
24296 * commands/memrw.c: Likewise.
24297 * commands/loadenv.c: Likewise.
24298 * commands/usbtest.c: Likewise.
24299 * commands/lsmmap.c: Likewise.
24300 * commands/boot.c: Likewise.
24301 * commands/parttool.c: Likewise.
24302 * commands/configfile.c: Likewise.
24303 * commands/search.c: Likewise.
24304 * commands/ieee1275/suspend.c: Likewise.
24305 * commands/cat.c: Likewise.
24306 * commands/i386/pc/pxecmd.c: Likewise.
24307 * commands/i386/pc/play.c: Likewise.
24308 * commands/i386/pc/halt.c: Likewise.
24309 * commands/i386/pc/vbeinfo.c: Likewise.
24310 * commands/i386/pc/vbetest.c: Likewise.
24311 * commands/lspci.c: Likewise.
24312 * commands/date.c: Likewise.
24313 * commands/handler.c: Likewise.
24314 * commands/ls.c: Likewise.
24315 * commands/test.c: Likewise.
24316 * commands/cmp.c: Likewise.
24317 * commands/efi/loadbios.c: Likewise.
24318 * commands/efi/fixvideo.c: Likewise.
24319 * commands/halt.c: Likewise.
24320 * commands/help.c: Likewise.
24321 * commands/reboot.c: Likewise.
24322 * hello/hello.c: Likewise.
24323 * script/sh/main.c: Likewise.
24324 * loader/xnu.c: Likewise.
24325 * term/terminfo.c: Likewise.
24326 * term/i386/pc/serial.c: Likewise.
24327 * term/usb_keyboard.c: Likewise.
24328
24329 2009-05-03 David S. Miller <davem@davemloft.net>
24330
24331 * normal/menu.c: Include grub/parser.h
24332
24333 2009-05-03 Pavel Roskin <proski@gnu.org>
24334
24335 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24336 not char*.
24337 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24338 Suggested by Javier Martín <lordhabbit@gmail.com>
24339
24340 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24341 efiemu??.o doesn't exist.
24342 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24343 copying.
24344
24345 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24346
24347 FreeBSD 64-bit support
24348
24349 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24350 and loader/i386/bsd_trampoline.S
24351 (bsd_mod_ASFLAGS): new variable
24352 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24353 (FREEBSD_MODTYPE_KERNEL64): likewise
24354 (grub_bsd64_trampoline_start): likewise
24355 (grub_bsd64_trampoline_end): likewise
24356 (grub_bsd64_trampoline_selfjump): likewise
24357 (grub_bsd64_trampoline_gdt): likewise
24358 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24359 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24360 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24361 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24362 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24363 of "attrib" member
24364 * loader/i386/bsd_pagetable.c: new file
24365 * loader/i386/bsd_trampoline.S: likewise
24366 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24367 (ALIGN_VAR): likewise
24368 (entry_hi): new variable
24369 (kern_end_mdofs): likewise
24370 (is_64bit): likewise
24371 (grub_freebsd_add_meta): use ALIGN_VAR
24372 (grub_e820_mmap): new declaration
24373 (grub_freebsd_add_mmap): new function
24374 (grub_freebsd_add_meta_module): support 64 bit kernels
24375 (grub_freebsd_list_modules): use ALIGN_VAR
24376 (gdt_descriptor): new declaration
24377 (grub_freebsd_boot): support 64 bit kernels
24378 (grub_bsd_elf64_hook): new function
24379 (grub_bsd_load_elf): support elf64
24380
24381 2009-05-03 Bean <bean123ch@gmail.com>
24382
24383 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24384 after we get the result of if statement.
24385
24386 2009-05-03 Bean <bean123ch@gmail.com>
24387
24388 * Makefile.in (enable_efiemu): New variable.
24389
24390 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24391 set.
24392 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24393 path.
24394 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24395 path, add -mno-red-zone option.
24396 (efiemu64_s.o): Likewise.
24397 (efiemu64.o): Use macro $^ for source file.
24398
24399 * configure.ac (--enable-efiemu): New option.
24400
24401 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24402
24403 xnu support
24404
24405 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24406 (pkglib_MODULES): add xnu.mod
24407 (xnu_mod_SOURCES): new variable
24408 (xnu_mod_CFLAGS): likewise
24409 (xnu_mod_LDFLAGS): likewise
24410 (xnu_mod_ASFLAGS): likewise
24411 * conf/i386-pc.rmk: likewise
24412 * conf/x86_64-efi.rmk: likewise
24413 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24414 new declaration
24415 * include/grub/i386/macho.h: new file
24416 * include/grub/i386/xnu.h: likewise
24417 * include/grub/macho.h: likewise
24418 * include/grub/machoload.h: likewise
24419 * include/grub/x86_64/macho.h: likewise
24420 * include/grub/x86_64/xnu.h: likewise
24421 * include/grub/xnu.h: likewise
24422 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24423 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24424 * loader/i386/efi/xnu.c: new file
24425 * loader/i386/pc/xnu.c: likewise
24426 * loader/i386/xnu.c: likewise
24427 * loader/i386/xnu_helper.S: likewise
24428 * loader/macho.c: likewise
24429 * loader/xnu.c: likewise
24430 * loader/xnu_resume.c: likewise
24431 * util/grub-dumpdevtree: likewise
24432 * include/grub/i386/pit.h: include grub/err.h
24433 (grub_pit_wait): export
24434 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24435
24436 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24437
24438 Efiemu
24439
24440 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24441 _linux_efi, linux_efi.
24442 new files in grub-emu
24443 new targets efiemu32.o and efiemu64.o
24444 * loader/linux_normal_efiemu.c: likewise
24445 * loader/i386/efi/linux.c: added preliminary efiemu support
24446 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24447 files to copy
24448 * include/grub/autoefi.h: new file
24449 * include/grub/i386/efiemu.h: likewise
24450 * include/grub/i386/pc/efiemu.h: likewise
24451 * include/grub/efi/api.h: add LL suffix when necessary
24452 new definitions relating to tables
24453 * include/grub/efiemu/efiemu.h: new file
24454 * include/grub/efiemu/runtime.h: likewise
24455 * efiemu/prepare.c: likewise
24456 * efiemu/loadcore_common.c: likewise
24457 * efiemu/loadcore64.c: likewise
24458 * efiemu/runtime/efiemu.sh: likewise
24459 * efiemu/runtime/efiemu.S: likewise
24460 * efiemu/runtime/efiemu.c: likewise
24461 * efiemu/runtime/config.h: likewise
24462 * efiemu/prepare32.c: likewise
24463 * efiemu/main.c: likewise
24464 * efiemu/modules/pnvram.c: likewise
24465 * efiemu/modules/i386: likewise
24466 * efiemu/modules/i386/pc: likewise
24467 * efiemu/modules/acpi.c: likewise
24468 * efiemu/i386/pc/cfgtables.c: likewise
24469 * efiemu/i386/loadcore64.c: likewise
24470 * efiemu/i386/loadcore32.c: likewise
24471 * efiemu/prepare64.c: likewise
24472 * efiemu/loadcore.c: likewise
24473 * efiemu/symbols.c: likewise
24474 * efiemu/mm.c: likewise
24475 * efiemu/loadcore32.c: likewise
24476
24477 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24478
24479 ACPI spoofing
24480
24481 * commands/acpi.c: new file
24482 * commands/i386/pc/acpi.c: likewise
24483 * commands/efi/acpi.c: likewise
24484 * include/grub/acpi.h: likewise
24485 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24486 (acpi_mod_SOURCES): new variable
24487 (acpi_mod_CFLAGS): likewise
24488 (acpi_mod_LDFLAGS): likewise
24489 * conf/i386-efi.rmk: likewise
24490 * conf/x86_64-efi.rmk: likewise
24491
24492 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24493
24494 Missing part from mmap patch
24495
24496 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24497 (grub_mmap_unregister)
24498 (grub_mmap_free_and_unregister): use grub_mmap_register
24499
24500 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24501
24502 Mmap services
24503
24504 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24505 * loader/i386/linux.c (find_mmap_size): likewise
24506 (allocate_pages): likewise
24507 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24508 (grub_fill_multiboot_mmap): likewise
24509 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24510 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24511 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24512 (OPENBSD_MMAP_RESERVED): likewise
24513 * include/grub/i386/pc/memory.h: include grub/memory.h
24514 (grub_lower_mem): removed
24515 (grub_upper_mem): likewise
24516 (GRUB_MACHINE_MEMORY_ACPI): new definition
24517 (GRUB_MACHINE_MEMORY_NVS): likewise
24518 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24519 (GRUB_MACHINE_MEMORY_HOLE): likewise
24520 (grub_machine_mmap_register): likewise
24521 (grub_machine_mmap_unregister): likewise
24522 (grub_machine_get_upper): likewise
24523 (grub_machine_get_lower): likewise
24524 (grub_machine_get_post64): likewise
24525 * include/grub/i386/efi/memory.h: new file
24526 * include/grub/x86_64/efi/memory.h: likewise
24527 * include/grub/efi/memory.h: likewise
24528 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24529 (mmap_mod_SOURCES): new variable
24530 (mmap_mod_LDFLAGS): likewise
24531 (mmap_mod_ASFLAGS): likewise
24532 * conf/i386-coreboot.rmk: likewise
24533 * conf/i386-ieee1275.rmk: likewise
24534 * conf/i386-efi.rmk: likewise
24535 * conf/x86_64-efi.rmk: likewise
24536 * include/grub/types.h (UINT_TO_PTR): new macro
24537 (PTR_TO_UINT32): likewise
24538 (PTR_TO_UINT64): likewise
24539 * include/grub/memory.h: new file
24540 * mmap/i386/pc/mmap.c: likewise
24541 * mmap/i386/pc/mmap_helper.S: likewise
24542 * mmap/i386/uppermem.c: likewise
24543 * mmap/mmap.c: likewise
24544 * mmap/efi/mmap.c: likewise
24545 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24546 grub_upper_mem
24547 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24548 (grub_upper_mem): likewise
24549 (grub_machine_init): don't use grub_upper_mem,
24550 make grub_lower_mem local
24551 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24552 grub_mmap_iterate and grub_mmap_get_upper
24553 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24554
24555 2009-05-02 Bean <bean123ch@gmail.com>
24556
24557 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24558 script/sh/parser.y.
24559 (pkglib_MODULES): Add normal.mod and sh.mod.
24560 (normal_SOURCES): New variable.
24561 (normal_mod_CFLAGS): Likewise.
24562 (normal_mod_LDFLAGS): Likewise.
24563 (sh_mod_SOURCES): Likewise.
24564 (sh_mod_CFLAGS): Likewise.
24565 (sh_mod_LDFLAGS): Likewise.
24566
24567 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24568 script/sh/lexer.c_DEPENDENCIES.
24569 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24570 kern/rescue_reader.c and kern/rescue_parser.c.
24571 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24572 (grub_emu_SOURCES): Change source files.
24573 (pkglib_MODULES): Remove normal.mod.
24574 (normal_SOURCES): Removed.
24575 (normal_mod_CFLAGS): Likewise.
24576 (normal_mod_LDFLAGS): Likewise.
24577 * conf/i386-coreboot.rmk: Likewise.
24578 * conf/i386-efi.rmk: Likewise.
24579 * conf/i386-ieee1276.rmk: Likewise.
24580 * conf/powerpc-ieee1275.rmk: Likewise.
24581 * conf/sparc64-ieee1275.rmk: Likewise.
24582 * conf/x86_64-efi.rmk: Likewise.
24583
24584 * include/grub/command.h (grub_command_execute): New inline function.
24585
24586 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24587
24588 * include/grub/normal.h: Remove <grub/setjmp.h>.
24589 (grub_fs_module_list): Moved to normal/autofs.c.
24590 (grub_exit_env): Removed.
24591 (grub_command_execute): Likewise.
24592 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24593 parameter script.
24594 (read_command_list): New function declaration.
24595 (read_fs_list): Likewise.
24596
24597 * include/parser.h: Include <grub/reader.h>.
24598 (grub_parser_split_cmdline): Change type of getline parameter.
24599 (grub_parser): New structure.
24600 (grub_parser_class): New variable.
24601 (grub_parser_execute): New function declaration.
24602 (grub_register_rescue_parser): Likewise.
24603 (grub_parser_register): New inline function.
24604 (grub_parser_unregister): Likewise.
24605 (grub_parser_get_current): Likewise.
24606 (grub_parser_set_current): Likewise.
24607
24608 * include/grub/reader.h: New file.
24609 * kern/reader.c: Likewise.
24610 * kern/rescue_parser.c: Likewise.
24611 * kern/rescue_reader.c: Likewise.
24612 * normal/autofs.c: Likewise.
24613 * normal/dyncmd.c: Likewise.
24614
24615 * include/grub/rescue.h: Removed.
24616 * normal/command.h: Likewise.
24617
24618 * include/grub/script.h: Moved to ...
24619 * include/grub/script_sh.h: ... Moved here.
24620 * normal/execute.c: Moved to ...
24621 * script/sh/execute.c: ... Moved here.
24622 * normal/function.c: Moved to ...
24623 * script/sh/function.c: ... Moved here.
24624 * normal/lexer.c: Moved to ...
24625 * script/sh/lexer.c: ... Moved here.
24626 * normal/parser.y: Moved to ...
24627 * script/sh/parser.y: ... Moved here.
24628 * normal/script.c: Moved to ...
24629 * script/sh/script.c: ... Moved here.
24630
24631 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24632 <grub/reader.h>.
24633 (grub_exit_env): Removed.
24634 (fs_module_list): Moved to normal/autofs.c.
24635 (grub_file_getline): Don't handle comment here.
24636 (free_menu): Skip removed field entry->commands.
24637 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24638 script parameter.
24639 (read_config_file): Removed nested parameter, change getline function.
24640 (grub_enter_normal_mode): Removed.
24641 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24642 (read_command_list): Likewise.
24643 (autoload_fs_module): Moved to normal/autofs.c.
24644 (read_fs_list): Likewise.
24645 (reader_nested): New variable.
24646 (grub_normal_execute): Run parser.sh to switch to sh parser.
24647 (grub_cmd_rescue): Removed.
24648 (cmd_normal): Removed.
24649 (grub_cmd_normal): Unregister itself at the beginning. Don't register
24650 rescue command.
24651 (grub_cmdline_run): New function.
24652 (grub_normal_reader_init): Likewise.
24653 (grub_normal_read_line): Likewise.
24654 (grub_env_write_pager): Likewise.
24655 (cmdline): New variable.
24656 (grub_normal_reader): Likewise.
24657 (GRUB_MOD_INIT): Register normal reader and set as current, register
24658 pager hook, register normal command with grub_register_command_prio,
24659 so that it won't show up in command.lst.
24660 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
24661 grub_fs_autoload_hook.
24662
24663 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
24664 (grub_menu_execute_entry): Replace grub_script_execute with
24665 grub_parser_execute, change parameter to grub_command_execute.
24666
24667 * normal/menu_text.c: Remove <grub/script.h>.
24668
24669 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
24670 and <grub/parser.h>.
24671 (run): Change editor_getline to use new parser interface. Change
24672 parameter to grub_command_execute.
24673
24674 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
24675 <grub/reader.h> and <grub/parser.h>.
24676 (grub_load_normal_mode): Execute normal command.
24677 (grub_main): Call grub_register_core_commands,
24678 grub_register_rescue_parser and grub_register_rescue_reader, use
24679 grub_reader_loop to enter input loop.
24680
24681 * kern/parser.c (grub_parser_split_cmdline): Change type of
24682 getline parameter.
24683 (grub_parser_class): New variable.
24684 (grub_parser_execute): New function.
24685
24686 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24687 * loader/multiboot2.c: Likewise.
24688 * loader/sparc64/ieee1275/linux.c: Likewise.
24689
24690 * util/grub-emu.c (read_command_list): New dummy function.
24691
24692 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24693
24694 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24695 count to 16 for CCISS and IDA.
24696
24697 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24698
24699 * normal/menu_text.c (grub_wait_after_message): Print a newline
24700 after waiting for user input.
24701
24702 * loader/i386/linux.c: Include `<grub/normal.h>'.
24703 (grub_cmd_linux): Improve the error message about `ask' mode, by
24704 waiting for user input so it's not missed (we can do this, since
24705 user requested interaction).
24706
24707 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24708
24709 Added missing lst to grub-mkrescue
24710
24711 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
24712 and ${input_dir}/parttool.lst
24713
24714 2009-04-30 David S. Miller <davem@davemloft.net>
24715
24716 * util/hostdisk.c (device_is_wholedisk): New function.
24717 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
24718 zero only if device_is_wholedisk() returns true.
24719
24720 * util/hostdisk.c (convert_system_partition_to_system_disk):
24721 Handle virtual disk devices named /dev/vdiskX as found on sparc
24722 and powerpc.
24723
24724 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
24725 lettered partition specifier is found, convert to numbered.
24726
24727 2009-04-29 David S. Miller <davem@davemloft.net>
24728
24729 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
24730 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24731
24732 * normal/command.c: Add missing newline at end of file.
24733
24734 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
24735 warnings.
24736 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
24737 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
24738 grub_ofdisk_read): Likewise, and deal similarly with the fact that
24739 ihandles have a 32-bit type but need to be stored in a "void *".
24740
24741 2009-04-28 Pavel Roskin <proski@gnu.org>
24742
24743 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
24744 not disk. Adjust all dependencies.
24745 (grub_fs_uuid_close): Use grub_device_close(), not
24746 grub_disk_close().
24747
24748 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
24749 parent's partition, don't copy it by reference, as it gets freed
24750 on close.
24751
24752 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24753
24754 Preboot hooks support
24755
24756 * commands/boot.c (struct grub_preboot_t): new declaration
24757 (preboots_head): new variable
24758 (preboots_tail): likewise
24759 (grub_loader_register_preboot_hook): new function
24760 (grub_loader_unregister_preboot_hook): likewise
24761 (grub_loader_set): launch preboot hooks
24762 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
24763 (grub_loader_register_preboot_hook): new declaration
24764 (grub_loader_unregister_preboot_hook): likewise
24765
24766 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24767
24768 Warning fix
24769
24770 * disk/scsi.c (grub_scsi_open): added missing cast when
24771 calling grub_dprintf
24772
24773 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
24774
24775 Bug and warning fixes
24776
24777 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
24778 declaration
24779 * commands/test.c (test_parse): fixed bug with file tests and corrected
24780 declaration of find_file
24781
24782 2009-04-26 Pavel Roskin <proski@gnu.org>
24783
24784 * Makefile.in: Don't install empty manual pages if help2man is
24785 missing. Use help2man option for output, not shell redirection.
24786
24787 2009-04-26 David S. Miller <davem@davemloft.net>
24788
24789 * util/grub-mkdevicemap.c (make_device_map): Add missing
24790 NESTED_FUNC_ATTR to process_device().
24791
24792 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24793
24794 Test command
24795
24796 * commands/test.c: rewritten to use bash-like test
24797
24798 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24799
24800 Parttool autoloading and improvements
24801
24802 * Makefile.in (pkglib_DATA): add parttool.lst
24803 (parttool.lst): new target
24804 * genmk.rb: generate parttool-*
24805 (CLEANFILES): add #{parttool}
24806 (PARTTOOLFILES): new variable
24807 * genparttoollist.sh: new file
24808 * parttool/pcpart.c (grub_pcpart_boot): more feedback
24809 (grub_pcpart_type): likewise
24810 * commands/parttool.c (helpmsg): new variable
24811 (grub_cmd_parttool): output help if not enough arguments are supplied
24812 autoload modules
24813 (GRUB_MOD_INIT(parttool)): use helpmsg
24814
24815 2009-04-24 David S. Miller <davem@davemloft.net>
24816
24817 Avoiding opening same device multiple times in device iterator.
24818
24819 * kern/device.c: (grub_device_iterate): Define struct part_ent,
24820 and use it to build a list of partitions in iterate_disk() and
24821 iterate_partition().
24822
24823 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
24824 on disk->data.
24825
24826 * disk/ieee1275/nand.c (grub_nand_iterate): Return
24827 grub_devalias_iterate() result instead of unconditional 0.
24828 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
24829 Also, capture hook return value, either directly or via
24830 grub_children_iterate(), and propagate to caller.
24831 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
24832 grub_children_iterate): Return value is now 'int' instead of
24833 'grub_err_t'.
24834 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
24835 like a proper iterator, stopping when hooks return non-zero.
24836 (grub_devalias_iterate): Likewise.
24837
24838 2009-04-23 David S. Miller <davem@davemloft.net>
24839
24840 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
24841
24842 2009-04-22 David S. Miller <davem@davemloft.net>
24843
24844 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
24845 is larger than address_cells, use that value for address_cells too.
24846
24847 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
24848 IEEE1275_MAX_PATH_LEN): Define.
24849 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
24850 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
24851 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
24852 'devtype'. Explicitly NULL terminate devalias expansion.
24853
24854 * util/sparc64/ieee1275/misc.c: New file.
24855 * util/sparc64/ieee1275/grub-setup.c: New file.
24856 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
24857 * util/sparc64/ieee1275/grub-mkimage.c: New file.
24858 * util/sparc64/ieee1275/grub-install.in: New file.
24859 * util/ieee1275/ofpath.c: New file.
24860 * util/ieee1275/devicemap.c: New file.
24861 * util/devicemap.c: New file.
24862 * util/deviceiter.c: New file.
24863 * kern/sparc64/ieee1275/init.c: New file.
24864 * include/grub/util/ofpath.h: New file.
24865 * include/grub/util/deviceiter.h: New file.
24866 * util/grub-mkdevicemap.c: Include deviceiter.h.
24867 Implement using grub_util_emit_devicemap_entry and
24868 grub_util_iterate_devices.
24869 * conf/i386-corebook.rmk: Build util/deviceiter.c and
24870 util/devicemap.c into grub-mkdevicemap
24871 * conf/i386-efi.rmk: Likewise.
24872 * conf/i386-ieee1275.rmk: Likewise.
24873 * conf/i386-pc.rmk: Likewise.
24874 * conf/powerpc-ieee1275.rmk: Likewise.
24875 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
24876 images and installation utilities. Build kernel as image
24877 instead of as elf binary. Use common rules as much as possible.
24878
24879 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24880
24881 Correct GPT definition
24882
24883 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24884 of "attrib" member
24885
24886 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
24887
24888 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
24889
24890 2009-04-19 David S. Miller <davem@davemloft.net>
24891
24892 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
24893 (grub_rescue_cmd_linux): Rename to...
24894 (grub_cmd_linux): and fix prototype.
24895 (grub_rescue_cmd_initrd): Rename to...
24896 (grub_cmd_initrd): and fix prototype.
24897 (cmd_linux, cmd_initrd): New.
24898 (GRUB_MOD_INIT(linux)): Use grub_register_command().
24899 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
24900
24901 2009-04-17 Pavel Roskin <proski@gnu.org>
24902
24903 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
24904 format.
24905 (grub_ohci_transfer): Likewise.
24906
24907 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
24908
24909 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
24910 return without a value. Fix inconsistent indentation.
24911
24912 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
24913 match struct grub_fs.
24914
24915 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
24916 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
24917 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
24918 * commands/lspci.c (grub_lspci_iter): Likewise.
24919
24920 2009-04-16 Bean <bean123ch@gmail.com>
24921
24922 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
24923 value.
24924
24925 2009-04-15 Pavel Roskin <proski@gnu.org>
24926
24927 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
24928 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
24929 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
24930 definitions.
24931
24932 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24933
24934 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
24935 that no multiple data or metadata areas are supported and `Unknown
24936 metadata header'.
24937
24938 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24939
24940 Move loader out of the kernel
24941
24942 * kern/loader.c: moved to ...
24943 * commands/boot.c: ... moved here
24944 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
24945 * commands/boot.c (grub_cmd_boot): moved here. All users updated
24946 * include/grub/kernel.h (grub_machine_fini): export
24947 * include/grub/loader.h (grub_loader_is_loaded): update declaration
24948 (grub_loader_set): likewise
24949 (grub_loader_unset): likewise
24950 (grub_loader_boot): likewise
24951 * conf/common.rmk: new module boot.mod
24952 (pkglib_MODULES): add boot.mod
24953 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
24954 (grub_emu_SOURCES): likewise
24955 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
24956 (grub_emu_SOURCES): likewise
24957 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
24958 (grub_emu_SOURCES): likewise
24959 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
24960 (grub_emu_SOURCES): likewise
24961 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
24962 (grub_emu_SOURCES): likewise
24963 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
24964 (grub_emu_SOURCES): likewise
24965 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
24966 (grub_emu_SOURCES): likewise
24967
24968 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24969
24970 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
24971
24972 * kern/misc.c (grub_itoa): Removed function
24973 (grub_ltoa): likewise
24974 (grub_vsprintf): use grub_lltoa
24975
24976 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24977
24978 Restore grub-emu
24979
24980 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
24981 * conf/i386-coreboot.rmk: likewise
24982 * conf/i386-ieee1275.rmk: likewise
24983 * conf/powerpc-ieee1275.rmk: likewise
24984
24985 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24986
24987 * INSTALL: Add that `./autogen.sh' needs to be run before
24988 `./configure.'.
24989
24990 2009-04-14 Bean <bean123ch@gmail.com>
24991
24992 * Makefile.in (pkglib_DATA): Add handler.lst.
24993 (handler.lst): New rule.
24994
24995 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
24996 * conf/i386-coreboot.rmk: Likewise.
24997 * conf/i386-ieee1275.rmk: Likewise.
24998 * conf/i386-efi.rmk: Likewise.
24999 * conf/x86_64-efi.rmk: Likewise.
25000 * conf/powerpc-ieee1275.rmk: Likewise.
25001 * conf/sparc64-ieee1275.rmk: Likewise.
25002
25003 * genhandlerlist.sh: New file.
25004
25005 * genmk.rb: Add rules to generate handler.lst.
25006
25007 * include/grub/normal.h (grub_file_getline): New function definition.
25008 (read_handler_list): Likewise.
25009 (free_handler_list): Likewise.
25010
25011 * include/grub/term.h (grub_term_register_input): Add name parameter
25012 for auto generation of handler.lst.
25013 (grub_term_register_output): Likewise.
25014
25015 * normal/handler.c: New file.
25016
25017 * normal/main.c (get_line): Renamed to grub_file_getline.
25018 (read_config_file): Use the newly renamed grub_file_getline.
25019 (read_command_list): Likewise.
25020 (read_fs_list): Likewise.
25021 (grub_normal_execute): Call read_handler_list to parse handler.lst.
25022 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
25023
25024 * term/efi/console.c (grub_console_init): Add name parameter for auto
25025 generation of handler.lst.
25026 * term/gfxterm.c: Likewise.
25027 * term/i386/pc/at_keyboard.c: Likewise.
25028 * term/i386/pc/console.c: Likewise.
25029 * term/i386/pc/serial.c: Likewise.
25030 * term/i386/pc/vesafb.c: Likewise.
25031 * term/i386/pc/vga.c: Likewise.
25032 * term/i386/pc/vga_text.c: Likewise.
25033 * term/ieee1275/ofconsole.c: Likewise.
25034 * term/usb_keyboard.c: Likewise.
25035
25036 2009-04-14 Bean <bean123ch@gmail.com>
25037
25038 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
25039 properly with null character.
25040
25041 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25042
25043 * configure: Remove.
25044 * config.h.in: Likewise.
25045 * stamp-h.in: Likewise.
25046 * DISTLIST: Likewise.
25047 * conf/common.mk: Likewise.
25048 * conf/i386-coreboot.mk: Likewise.
25049 * conf/i386-efi.mk: Likewise.
25050 * conf/i386-ieee1275.mk: Likewise.
25051 * conf/i386.mk: Likewise.
25052 * conf/i386-pc.mk: Likewise.
25053 * conf/powerpc-ieee1275.mk: Likewise.
25054 * conf/sparc64-ieee1275.mk: Likewise.
25055 * conf/x86_64-efi.mk: Likewise.
25056
25057 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
25058 develop on GRUB.
25059
25060 2009-04-14 John Stanley <jpsinthemix@verizon.net>
25061 David S. Miller <davem@davemloft.net>
25062
25063 * util/hostdisk.c (make_device_name): Fix buffer length
25064 calculations.
25065
25066 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25067
25068 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
25069 <sys/param.h> and <sys/sysctl.h>.
25070 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
25071 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
25072 opening the device and reset them afterwards.
25073
25074 2009-04-13 Pavel Roskin <proski@gnu.org>
25075
25076 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
25077 Reported by John Stanley <jpsinthemix@verizon.net>
25078
25079 2009-04-13 Robert Millan <rmh@aybabtu.com>
25080
25081 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
25082 that name for menuentries when appropriate.
25083
25084 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25085
25086 * util/grub.d/10_freebsd.in: Add a missing `fi'.
25087
25088 2009-04-13 Robert Millan <rmh@aybabtu.com>
25089
25090 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
25091 to Linux, simply abort telling the user it's no longer supported.
25092
25093 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25094
25095 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
25096 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
25097 `freebsd_loadenv' only when devices.hints exist.
25098
25099 2009-04-13 Pavel Roskin <proski@gnu.org>
25100
25101 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
25102
25103 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25104
25105 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
25106 partition number.
25107 (grub_drive): Likewise.
25108
25109 2009-04-13 David S. Miller <davem@davemloft.net>
25110
25111 * kern/sparc64/ieee1275/ieee1275.c: New file.
25112 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
25113 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
25114 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
25115 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
25116 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
25117 grub_ieee1275_alloc_physmem): Declare new exported functions.
25118
25119 * include/grub/sparc64/ieee1275/loader.h: New file.
25120 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25121 * include/grub/sparc64/kernel.h: Likewise.
25122 * loader/sparc64/ieee1275/linux.c: Likewise.
25123
25124 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
25125 (grub_fstest_SOURCES): Likewise.
25126
25127 * util/hostdisk.c (make_device_name): Do not make any assumptions
25128 about the length of drive names.
25129
25130 * kern/dl.c (grub_dl_load_file): Close file immediately when
25131 we are done using it.
25132
25133 2009-04-12 David S. Miller <davem@davemloft.net>
25134
25135 * kern/misc.c (grub_ltoa): Fix cast when handling negative
25136 values. Noticed by Pavel Roskin.
25137
25138 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
25139 target compiler.
25140
25141 * genmk.rb: Add more flexible image type specification, also
25142 pass --strip-unneeded to objcopy.
25143 * conf/i386-pc.rmk: Use *_FORMAT.
25144 * conf/i386-pc.mk: Rebuilt.
25145
25146 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
25147 (OFDISK_HASH_SZ): Define.
25148 (ofdisk_hash): New hash table.
25149 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
25150 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
25151 instead of device phandle which is not unique.
25152
25153 * kern/sparc64/ieee1275/init.c: Delete, replace with...
25154 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
25155 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
25156 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
25157 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
25158 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
25159 GRUB_KERNEL_MACHINE_DATA_END): Define.
25160 (grub_kernel_image_size, grub_total_module_size): Declare.
25161
25162 2009-04-12 Pavel Roskin <proski@gnu.org>
25163
25164 * configure.ac: Change the logic when we check for target tools.
25165 Do it when the target is specified and it's different from the
25166 specified value of the host.
25167
25168 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
25169
25170 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
25171 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
25172 GNU/kFreeBSD. Check if a device is a character device. Use
25173 DIOCGMEDIASIZE to get the size.
25174 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
25175 support for GNU/kFreeBSD.
25176 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
25177 is a character device instead of a block device. Add support for
25178 FreeBSD device names.
25179
25180 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
25181 is a character device instead of a block device.
25182
25183 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
25184 is a character device instead of a block device.
25185
25186 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
25187
25188 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
25189 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
25190 FreeBSD. Check if a device is a character device. Use
25191 DIOCGMEDIASIZE to get the size.
25192 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
25193 support for FreeBSD.
25194 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
25195 is a character device instead of a block device. Add support for
25196 FreeBSD device names.
25197
25198 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
25199 a character device instead of a block device.
25200 (grub_util_check_char_device): New function.
25201
25202 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
25203 a character device instead of a block device.
25204
25205 * include/grub/util/getroot.h (grub_util_check_char_device): New
25206 prototype.
25207
25208 2009-04-11 David S. Miller <davem@davemloft.net>
25209
25210 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
25211 static libgcc.
25212 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
25213 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
25214 function, if present.
25215 (__bswapdi2): Likewise.
25216
25217 * include/grub/sparc64/ieee1275/boot.h: New file.
25218 * boot/sparc64/ieee1275/boot.S: Likewise.
25219 * boot/sparc64/ieee1275/diskboot.S: Likewise.
25220
25221 * kern/misc.c (grub_ltoa): New function.
25222 (grub_vsprintf): Use it to format 'long' integers.
25223
25224 2009-04-10 David S. Miller <davem@davemloft.net>
25225
25226 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
25227 slots are of type grub_ieee1275_cell_t.
25228 (grub_nand_read): Likewise.
25229 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
25230 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
25231 macros are used to compare values in arg/ret block of the call.
25232 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25233 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
25234 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
25235 grub_ieee1275_instance_to_path, grub_ieee1275_write,
25236 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
25237 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
25238 grub_ieee1275_close, grub_ieee1275_set_property,
25239 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
25240 grub_ieee1275_cell_t.
25241 * kern/ieee1275/openfw.c (grub_map): Likewise.
25242 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
25243 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
25244
25245 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
25246 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
25247 (grub_devalias_iterate): Likewise.
25248
25249 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25250
25251 UFS improvements
25252
25253 * fs/ufs.c (INODE_NBLOCKS): new definition
25254 (struct grub_ufs_dirent): added fields for non-BSD dirents
25255 (grub_ufs_get_file_block): fixed double indirect handling
25256 (grub_ufs_lookup_symlink): use more robust way to determine whether
25257 symlink is inline
25258 (grub_ufs_find_file): support for non-BSD dirents
25259 (grub_ufs_dir): support for non-BSD dirents
25260
25261 2009-04-10 Bean <bean123ch@gnail.com>
25262
25263 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
25264 attribute, otherwise the size would be wrong for i386 platform.
25265
25266 * include/grub/pci.h (grub_pci_read_word): New inline function.
25267 (grub_pci_read_byte): Likewise.
25268 (grub_pci_write): Likewise.
25269 (grub_pci_write_word): Likewise.
25270 (grub_pci_write_byte): Likewise.
25271
25272 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
25273
25274 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
25275 (find_framebuf): Scan pci to locate the frame buffer address.
25276
25277 * commands/efi/fixvideo.c: New file.
25278
25279 * commands/efi/loadbios.c: Likewise.
25280
25281 * commands/memrw.c: Likewise.
25282
25283 * util/grub-dumpbios.in: Likewise.
25284
25285 * conf/common.rmk (grub-dumpbios): New utility.
25286 (pkglib_MODULES): New module memrw.mod.
25287 (memrw_mod_SOURCE): New macro.
25288 (memrw_mod_CFLAGS): Likewise.
25289 (memrw_mod_LDFLAGS): Likewise.
25290
25291 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
25292 fixvideo.mod.
25293 (loadbios_mod_SOURCE): New macro.
25294 (loadbios_mod_CFLAGS): Likewise.
25295 (loadbios_mod_LDFLAGS): Likewise.
25296 (fixvideo_mod_SOURCE): Likewise.
25297 (fixvideo_mod_CFLAGS): Likewise.
25298 (fixvideo_mod_LDFLAGS): Likewise.
25299
25300 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
25301 fixvideo.mod.
25302 (loadbios_mod_SOURCE): New macro.
25303 (loadbios_mod_CFLAGS): Likewise.
25304 (loadbios_mod_LDFLAGS): Likewise.
25305 (fixvideo_mod_SOURCE): Likewise.
25306 (fixvideo_mod_CFLAGS): Likewise.
25307 (fixvideo_mod_LDFLAGS): Likewise.
25308
25309 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
25310
25311 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
25312
25313 2009-04-07 David S. Miller <davem@davemloft.net>
25314
25315 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
25316 support for R_SPARC_OLO10 relocations. Fix compile warning for
25317 R_SPARC_WDISP30 case.
25318 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
25319
25320 2009-04-06 Pavel Roskin <proski@gnu.org>
25321
25322 * include/grub/misc.h (ARRAY_SIZE): New macro.
25323 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25324 New macro.
25325 * loader/i386/linux.c (allocate_pages): Use free_pages().
25326 (grub_linux_unload): Don't use free_pages().
25327 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25328 wrong index. Treat all other modes as text modes.
25329 (grub_cmd_linux): Initialize vid_mode unconditionally to
25330 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25331
25332 * commands/help.c (print_command_help): Use cmd->prio, not
25333 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25334
25335 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25336
25337 Parttool
25338
25339 * parttool/pcpart.c: new file
25340 * commands/parttool.c: likewise
25341 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25342 (parttool_mod_SOURCES): new variable
25343 (parttool_mod_CFLAGS): likewise
25344 (parttool_mod_LDFLAGS): likewise
25345 (pcpart_mod_SOURCES): likewise
25346 (pcpart_mod_CFLAGS): likewise
25347 (pcpart_mod_LDFLAGS): likewise
25348 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25349 and parttool/pcpart.c
25350 * conf/i386-efi.rmk: likewise
25351 * conf/i386-ieee1275.rmk: likewise
25352 * conf/i386-pc.rmk: likewise
25353 * conf/powerpc-ieee1275.rmk: likewise
25354 * conf/sparc64-ieee1275.rmk: likewise
25355 * conf/x86_64-ieee1275.rmk: likewise
25356
25357 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25358
25359 Support for mtime and further expandability of dir command
25360
25361 * include/grub/lib/datetime.h: moved to ...
25362 * include/grub/datetime.h: ... moved here and added
25363 declaration of grub_unixtime2datetime. All users updated
25364 * include/grub/fs.h: new syntax for dir and mtime functions in
25365 struct grub_fs
25366 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25367 and GRUB_FSHELP_FLAGS_MASK
25368 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25369 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25370 (grub_ext2_mtime): new function
25371 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25372 (grub_hfsplus_mtime): new function
25373 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25374 (GRUB_UFS_ATTR_FILE): likewise
25375 (GRUB_UFS_ATTR_LNK): likewise
25376 (struct grub_ufs_sblock): new fields mtime
25377 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25378 all users updated
25379 (grub_ufs_dir): mtime support
25380 (grub_ufs_mtime): new function
25381 * fs/affs.c (grub_affs_dir): use new dir syntax
25382 * fs/afs.c (grub_afs_dir): likewise
25383 * fs/cpio.c (grub_cpio_dir): likewise
25384 * fs/fat.c (grub_fat_find_dir): likewise
25385 * fs/hfs.c (grub_hfs_dir): likewise
25386 * fs/iso9660.c (grub_iso9660_dir): likewise
25387 * fs/jfs.c (grub_jfs_dir): likewise
25388 * fs/minix.c (grub_minix_dir): likewise
25389 * fs/ntfs.c (grub_ntfs_dir): likewise
25390 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25391 * fs/sfs.c (grub_sfs_dir): likewise
25392 * fs/xfs.c (grub_xfs_dir): likewise
25393 * util/hostfs.c (grub_hostfs_dir): likewise
25394 * lib/datetime.c: moved to ...
25395 * normal/datetime.c: ... moved here
25396 (grub_unixtime2datetime): new function
25397 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25398 * normal/completion.c (iterate_dir): use new dir syntax
25399 * normal/misc.c (grub_normal_print_device_info): tell the
25400 last modification time of a volume
25401 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25402 * conf/common.rmk: added lib/datetime.c to ls.mod
25403 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25404 (normal_mod_SOURCES): likewise
25405 (datetime_mod_SOURCES): Removed lib/datetime.c
25406 * conf/i386-efi.rmk: likewise
25407 * conf/i386-ieee1275.rmk: likewise
25408 * conf/i386-pc.rmk: likewise
25409 * conf/powerpc-ieee1275.rmk: likewise
25410 * conf/sparc64-ieee1275.rmk: likewise
25411 * conf/x86_64-efi.rmk: likewise
25412
25413 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25414
25415 Trim trailing spaces in FAT label and support mtools-like labels
25416
25417 * fs/fat.c (grub_fat_iterate_dir): New function based
25418 on grub_fat_find_dir
25419 (grub_fat_find_dir): use grub_fat_iterate_dir
25420 (grub_fat_label): likewise
25421
25422 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25423
25424 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25425 and command.h
25426 remove extraneous kernel_elf_HEADERS
25427
25428 2009-04-04 Bean <bean123ch@gnail.com>
25429
25430 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25431
25432 * util/misc.c: Likewise.
25433
25434 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25435
25436 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25437 instead of grub_printf.
25438
25439 2009-04-03 Robert Millan <rmh@aybabtu.com>
25440
25441 * loader/i386/linux.c (grub_linux_setup_video): Fill
25442 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25443 values from `mode info' structure instead of hardcoded
25444 values.
25445
25446 2009-04-01 Pavel Roskin <proski@gnu.org>
25447
25448 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25449 unused now.
25450 * genmk.rb: Likewise.
25451 * configure.ac: Likewise.
25452
25453 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25454
25455 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25456 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25457
25458 2009-04-01 David S. Miller <davem@davemloft.net>
25459
25460 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25461 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25462 (grub_setjmp): Mark with 'returns_twice' attribute.
25463 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25464 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25465 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25466
25467 2009-04-01 Robert Millan <rmh@aybabtu.com>
25468
25469 Reapply fix from 2008-07-28 which was accidentally reverted; also
25470 perform the same fix to a similar check in same function.
25471
25472 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25473 with the same number are found, just use issue a warning with
25474 grub_dprintf(), as this error has been reported to be non-fatal.
25475
25476 2009-03-31 Pavel Roskin <proski@gnu.org>
25477
25478 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25479 for cross-compilation.
25480
25481 2009-03-30 Robert Millan <rmh@aybabtu.com>
25482
25483 Fix i386-ieee1275 build.
25484
25485 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25486 Remove declaration.
25487
25488 2009-03-30 Pavel Roskin <proski@gnu.org>
25489
25490 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25491 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25492 zero-terminated, rely only on the strlen value. Fix comparison
25493 of strings differing in length.
25494
25495 2009-03-30 Robert Millan <rmh@aybabtu.com>
25496
25497 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25498 checking for abi version. Improve error messages on BIOS to notify
25499 user about `linux16' command.
25500
25501 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25502
25503 Leak fixes
25504
25505 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25506 in case of collision
25507 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25508
25509 2009-03-29 Robert Millan <rmh@aybabtu.com>
25510
25511 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25512 set `vid_mode' accordingly.
25513 (grub_linux_boot): Process `vid_mode' and set video mode.
25514
25515 2009-03-29 Robert Millan <rmh@aybabtu.com>
25516
25517 * util/grub.d/10_linux.in (linux_entry): New function.
25518 Factorize generation of Linux boot entries.
25519
25520 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25521
25522 Make the format of Environment Block plain text. The boot loader
25523 part is not tested well yet.
25524
25525 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25526 (buffer): Removed.
25527 (envblk): Likewise.
25528 (usage): Remove "info" and "clear". Add "unset". Update the
25529 description of "set", as this does not delete variables any
25530 longer.
25531 (create_envblk_file): Complete rewrite.
25532 (open_envblk_file): Likewise.
25533 (cmd_info): Removed.
25534 (cmd_list): Likewise.
25535 (cmd_set): Likewise.
25536 (cmd_clear): Likewise.
25537 (list_variables): New function.
25538 (write_envblk): Likewise.
25539 (set_variables): Likewise.
25540 (unset_variables): Likewise.
25541 (main): Complete rewrite.
25542
25543 * commands/loadenv.c (buffer): Removed.
25544 (envblk): Likewise.
25545 (open_envblk_file): New function.
25546 (read_envblk_file): Complete rewrite.
25547 (grub_cmd_load_env): Likewise.
25548 (grub_cmd_list_env): Likewise.
25549 (struct blocklist): New struct.
25550 (free_blocklists): New function.
25551 (check_blocklists): Likewise.
25552 (write_blocklists): Likewise.
25553 (grub_cmd_save_env): Complete rewrite.
25554
25555 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25556 a plain text signature.
25557 (GRUB_ENVBLK_MAXLEN): Removed.
25558 (struct grub_envblk): Complete rewrite.
25559 (grub_envblk_find): Removed.
25560 (grub_envblk_insert): Likewise.
25561 (grub_envblk_open): New prototype.
25562 (grub_envblk_set): Likewise.
25563 (grub_envblk_delete): Put const to VALUE.
25564 (grub_envblk_iterate): Put const to NAME and VALUE.
25565 (grub_envblk_close): New prototype.
25566 (grub_envblk_buffer): New inline function.
25567 (grub_envblk_size): Likewise.
25568
25569 * lib/envblk.c: Include grub/mm.h.
25570 (grub_env_find): Removed.
25571 (grub_envblk_open): New function.
25572 (grub_envblk_close): Likewise.
25573 (escaped_value_len): Likewise.
25574 (find_next_line): Likewise.
25575 (grub_envblk_insert): Removed.
25576 (grub_envblk_set): New function.
25577 (grub_envblk_delete): Complete rewrite.
25578 (grub_envblk_iterate): Likewise.
25579
25580 2009-03-28 Robert Millan <rmh@aybabtu.com>
25581
25582 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25583 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25584 variables. Use 16-bit loader.
25585 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25586 loader.
25587 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25588 (grub_linux16_boot): ... this. Update all users.
25589 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25590 (grub_linux_boot): ... this. Update all users.
25591
25592 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25593 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25594 commands to `linux16' and `initrd16'.
25595 (GRUB_MOD_FINI(linux)): Rename to ...
25596 (GRUB_MOD_FINI(linux16)): ... this.
25597
25598 2009-03-24 Pavel Roskin <proski@gnu.org>
25599
25600 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25601 not just for compilation.
25602
25603 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25604
25605 Move multiboot helper out of kernel
25606
25607 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25608 `loader/i386/multiboot_helper.S'.
25609 * conf/i386-coreboot.rmk: Likewise
25610 * conf/i386-ieee1275.rmk: Likewise
25611
25612 * kern/i386/loader.S: Move multiboot helpers from here...
25613 * loader/i386/multiboot_helper.S: ...moved here
25614 * include/grub/i386/loader.h: Move declarations of multiboot
25615 helpers from here...
25616 * include/grub/i386/multiboot.h: ...moved here
25617 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25618
25619 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25620
25621 * kern/env.c (grub_env_context_open): Added an argument to specify
25622 whether a new context inherits exported variables from current
25623 one. This is useful when making a sandbox to interpret a config
25624 file.
25625 All callers updated.
25626
25627 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25628
25629 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25630
25631 * kern/env.c (grub_env_context_close): Fix memory leaks.
25632
25633 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25634
25635 * normal/main.c (grub_normal_execute): Added an argument
25636 BATCH to specify if an interactive interface should be provided
25637 after reading a config file.
25638 All callers updated.
25639 (read_command_list): Prevent being executed twice.
25640 (read_fs_list): Likewise.
25641
25642 * include/grub/normal.h (grub_normal_execute): Updated the
25643 prototype.
25644
25645 2009-03-22 Pavel Roskin <proski@gno.org>
25646
25647 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25648 _start.
25649 * kern/i386/pc/startup.S: Likewise.
25650 * kern/i386/efi/startup.S: Likewise.
25651 * kern/i386/ieee1275/startup.S: Likewise.
25652 * kern/i386/coreboot/startup.S: Likewise.
25653 * kern/x86_64/efi/startup.S: Likewise.
25654
25655 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
25656 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
25657 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
25658
25659 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25660
25661 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25662
25663 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25664 limit detection.
25665 Use vaddr of correct segment for entry_point.
25666
25667 2009-03-21 Bean <bean123ch@gmail.com>
25668
25669 * commands/blocklist.c: Add include file <grub/command.h>, remove
25670 <grub/normal.h> and <grub/arg.h>.
25671 (grub_cmd_blocklist): Use the new command interface.
25672 (GRUB_MOD_INIT): Likewise.
25673 (GRUB_MOD_FINI): Likewise.
25674 * commands/boot.c: Likewise.
25675 * commands/cat.c: Likewise.
25676 * commands/cmp.c: Likewise.
25677 * commands/configfile.c: Likewise.
25678 * commands/crc.c: Likewise.
25679 * commands/echo.c: Likewise.
25680 * commands/halt.c: Likewise.
25681 * commands/handler.c: Likewise.
25682 * commands/hdparm.c: Likewise.
25683 * commands/help.c: Likewise.
25684 * commands/hexdump.c: Likewise.
25685 * commands/loadenv.c: Likewise.
25686 * commands/ls.c: Likewise.
25687 * commands/lsmmap.c: Likewise.
25688 * commands/lspci.c: Likewise.
25689 * commands/loadenv.c: Likewise.
25690 * commands/read.c: Likewise.
25691 * commands/reboot.c: Likewise.
25692 * commands/search.c: Likewise.
25693 * commands/sleep.c: Likewise.
25694 * commands/test.c: Likewise.
25695 * commands/usbtest.c: Likewise.
25696 * commands/videotest.c: Likewise.
25697 * commands/i386/cpuid.c: Likewise.
25698 * commands/i386/pc/halt.c: Likewise.
25699 * commands/i386/pc/play.c: Likewise.
25700 * commands/i386/pc/pxecmd.c: Likewise.
25701 * commands/i386/pc/vbeinfo.c: Likewise.
25702 * commands/i386/pc/vbetest.c: Likewise.
25703 * commands/ieee1275/suspend.c: Likewise.
25704 * disk/loopback.c: Likewise.
25705 * font/font_cmd.c: Likewise.
25706 * hello/hello.c: Likewise.
25707 * loader/efi/appleloader.c: Likewise.
25708 * loader/efi/chainloader.c: Likewise.
25709 * loader/i386/bsd.c: Likewise.
25710 * loader/i386/efi/linux.c: Likewise.
25711 * loader/i386/ieee1275/linux.c: Likewise.
25712 * loader/i386/linux.c: Likewise.
25713 * loader/i386/pc/chainloader.c: Likewise.
25714 * loader/i386/pc/linux.c: Likewise.
25715 * loader/powerpc/ieee1275/linux.c: Likewise.
25716 * loader/multiboot_loader.c: Likewise.
25717 * term/gfxterm.c: Likewise.
25718 * term/i386/pc/serial.c: Likewise.
25719 * term/terminfo.c: Likewise.
25720
25721 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
25722 * term/i386/pc/vga.c: Likewise.
25723 * video/readers/jpeg.c: Likewise.
25724 * video/readers/png.c: Likewise.
25725 * video/readers/tga.c: Likewise.
25726
25727 * util/grub-fstest (cmd_loopback): Removed.
25728 (cmd_blocklist): Likewise.
25729 (cmd_ls): Likewise.
25730 (grub_register_command): Likewise.
25731 (grub_unregister_command): Likewise.
25732 (execute_command): Use grub_command_find to locate command and execute
25733 it.
25734
25735 * include/grub/efi/chainloader.h: Removed.
25736 * loader/efi/chainloader_normal.c: Likewise.
25737 * loader/i386/bsd_normal.c: Likewise.
25738 * loader/i386/pc/chainloader_normal.c: Likewise.
25739 * loader/i386/pc/multiboot_normal.c: Likewise.
25740 * loader/linux_normal.c: Likewise.
25741 * loader/multiboot_loader_normal.c: Likewise.
25742 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25743
25744 * gencmdlist.sh: Scan new registration command grub_register_extcmd
25745 and grub_register_command_p1.
25746
25747 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
25748 kern/command.c, lib/arg.c and commands/extcmd.c.
25749 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
25750 (minicmd_mod_SOURCES): New variable.
25751 (minicmd_mod_CFLAGS): Likewise.
25752 (minicmd_mod_LDFLAGS): Likewise.
25753 (extcmd_mod_SOURCES): Likewise.
25754 (extcmd_mod_CFLAGS): Likewise.
25755 (extcmd_mod_LDFLAGS): Likewise.
25756 (boot_mod_SOURCES): Removed.
25757 (boot_mod_CFLAGS): Likewise.
25758 (boot_mod_LDFLAGS): Likewise.
25759
25760 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
25761 kern/corecmd.c.
25762 (kernel_img_HEADERS): Add command.h.
25763 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
25764 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
25765 and lib/arg.c.
25766 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
25767 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
25768 remove the corresponding normal mode command.
25769 (normal_mod_SOURCES): Remove normal/arg.c.
25770 * conf/i386-coreboot.rmk: Likewise.
25771 * conf/i386-efi.rmk: Likewise.
25772 * conf/i386-ieee1275.rmk: Likewise.
25773 * conf/powerpc-ieee1275.rmk: Likewise.
25774 * conf/x86_64-efi.rmk: Likewise.
25775
25776 * include/grub/arg.h: Move from here ...
25777 * include/grub/lib/arg.h: ... to here.
25778
25779 * normal/arg.c: Move from here ...
25780 * lib/arg.c: ... to here.
25781
25782 * commands/extcmd.c: New file.
25783 * commands/minicmd.c: Likewise.
25784 * include/grub/command.h: Likewise.
25785 * include/grub/extcmd.h: Likewise.
25786 * kern/command.c: Likewise.
25787 * kern/corecmd.c: Likewise.
25788
25789 * kern/list.c (grub_list_iterate): Return int instead of void.
25790 (grub_list_insert): New function.
25791 (grub_prio_list_insert): Likewise.
25792
25793 * kern/rescue.c (grub_rescue_command): Removed.
25794 (grub_rescue_command_list): Likewise.
25795 (grub_rescue_register_command): Likewise.
25796 (grub_rescue_unregister_command): Likewise.
25797 (grub_rescue_cmd_boot): Move to minicmd.c
25798 (grub_rescue_cmd_help): Likewise.
25799 (grub_rescue_cmd_info): Likewise.
25800 (grub_rescue_cmd_boot): Likewise.
25801 (grub_rescue_cmd_testload): Likewise.
25802 (grub_rescue_cmd_dump): Likewise.
25803 (grub_rescue_cmd_rmmod): Likewise.
25804 (grub_rescue_cmd_lsmod): Likewise.
25805 (grub_rescue_cmd_exit): Likewise.
25806 (grub_rescue_print_devices): Moved to corecmd.c.
25807 (grub_rescue_print_files): Likewise.
25808 (grub_rescue_cmd_ls): Likewise.
25809 (grub_rescue_cmd_insmod): Likewise.
25810 (grub_rescue_cmd_set): Likewise.
25811 (grub_rescue_cmd_unset): Likewise.
25812 (attempt_normal_mode): Use grub_command_find to get normal module.
25813 (grub_enter_rescue_mode): Use grub_register_core_commands to register
25814 commands, remove grub_rescue_register_command calls.
25815
25816 * normal/command.c (grub_register_command): Removed.
25817 (grub_unregister_command): Likewise.
25818 (grub_command_find): Likewise.
25819 (grub_iterate_commands): Likewise.
25820 (rescue_command): Likewise.
25821 (export_command): Moved to corecmd.c.
25822 (set_command): Removed.
25823 (unset_command): Likewise.
25824 (insmod_command): Likewise.
25825 (rmmod_command): Likewise.
25826 (lsmod_command): Likewise.
25827 (grub_command_init): Likewise.
25828
25829 * normal/completion.c (iterate_command): Use cmd->prio to check for
25830 active command.
25831 (complete_arguments): Use grub_extcmd_t structure to find options.
25832 (grub_normal_do_completion): Change function grub_iterate_commands to
25833 grub_command_iterate.
25834
25835 * normal/execute.c (grub_script_execute_cmd): No need to parse
25836 argument here.
25837
25838 * normal/main.c (grub_dyncmd_dispatcher): New function.
25839 (read_command_list): Register unload commands as dyncmd.
25840 (grub_cmd_normal): Use new command interface, register rescue,
25841 unregister normal at entry, register normal, unregister rescue at exit.
25842
25843 * include/grub/list.h (grub_list_test_t): New type.
25844 (grub_list_iterate): Return int instead of void.
25845 (grub_list_insert): New function.
25846 (GRUB_AS_NAMED_LIST_P): New macro.
25847 (GRUB_AS_PRIO_LIST): Likewise.
25848 (GRUB_AS_PRIO_LIST_P): Likewise.
25849 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
25850 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
25851 (grub_prio_list): New structure.
25852 (grub_prio_list_insert): New function.
25853 (grub_prio_list_remove): New inline function.
25854
25855 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
25856 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
25857 (GRUB_COMMAND_FLAG_MENU): Likewise.
25858 (GRUB_COMMAND_FLAG_BOTH): Likewise.
25859 (GRUB_COMMAND_FLAG_TITLE): Likewise.
25860 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
25861 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
25862 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
25863 (grub_command): Likewise.
25864 (grub_register_command): Likewise.
25865 (grub_command_find): Likewise.
25866 (grub_iterate_commands): Likewise.
25867 (grub_command_init): Likewise.
25868 (grub_arg_parse): Likewise.
25869 (grub_arg_show_help): Likewise.
25870
25871 * include/grub/rescue.h (grub_rescue_register_command): Removed.
25872 (grub_rescue_unregister_command): Likewise.
25873
25874 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
25875 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
25876 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
25877
25878 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
25879 grub_rescue_cmd_initrd.
25880 * include/grub/i386/loader.h: Likewise.
25881 * include/grub/x86_64/loader.h: Likewise.
25882
25883 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
25884
25885 2009-03-21 Bean <bean123ch@gmail.com>
25886
25887 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
25888 instead of stat in mingw environment.
25889
25890 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
25891
25892 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
25893
25894 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
25895 AC_CONFIG_LINKS.
25896
25897 2009-03-21 Bean <bean123ch@gmail.com>
25898
25899 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
25900 out of range error.
25901
25902 2009-03-18 Michel Dänzer <michel@daenzer.net>
25903
25904 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
25905 checking inode flags for EXT4_EXTENTS_FLAG.
25906
25907 2009-03-18 Robert Millan <rmh@aybabtu.com>
25908
25909 * loader/i386/linux.c: Include `<grub/video.h>' and
25910 `<grub/i386/pc/vbe.h>'..
25911 (grub_linux_setup_video): New function. Loosely based on the EFI one.
25912 (grub_linux32_boot): Attempt to configure video settings with
25913 grub_linux_setup_video().
25914 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
25915 to avoid grub_console_fini() which would step out of graphical mode
25916 unconditionally.
25917
25918 2009-03-14 Robert Millan <rmh@aybabtu.com>
25919
25920 Fix build on powerpc.
25921 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
25922
25923 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
25924
25925 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25926 background image command.
25927
25928 2009-03-12 Colin D Bennett <colin@gibibit.com>
25929
25930 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
25931 (grub_gfxterm_putchar): Extract pairs of identical calls to
25932 draw_cursor out of conditional blocks.
25933
25934 2009-03-11 Pavel Roskin <proski@gnu.org>
25935
25936 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25937 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25938
25939 2009-03-11 Robert Millan <rmh@aybabtu.com>
25940
25941 * loader/i386/multiboot_elfxx.c
25942 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25943
25944 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25945
25946 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25947 `kern/handler.c'.
25948
25949 2009-03-11 Robert Millan <rmh@aybabtu.com>
25950
25951 * loader/i386/multiboot.c (code_size): New variable.
25952 (grub_multiboot): Define offsets by adding to `code_size' rather
25953 than subtracting from `grub_multiboot_payload_size'. Provide
25954 4-byte alignment to MBI and others by increasing
25955 `boot_loader_name_length' appropriately.
25956
25957 * loader/i386/multiboot_elfxx.c
25958 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
25959
25960 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
25961
25962 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
25963 `fs/ext2.c'.
25964
25965 2009-03-08 Robert Millan <rmh@aybabtu.com>
25966
25967 Make loader/i386/linux.c usable on i386-pc again.
25968
25969 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
25970 memory to heap.
25971 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
25972 `#error' stanza.
25973
25974 2009-03-07 Bean <bean123ch@gmail.com>
25975
25976 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
25977 allocation.
25978
25979 2009-03-06 Robert Millan <rmh@aybabtu.com>
25980
25981 Fix display issue on terminals with screen size other than 80x25
25982 (e.g. gfxterm with resolution higher than 640x480).
25983
25984 * normal/main.c (grub_normal_init_page): Display title text in a
25985 position relative to the center of the terminal instead of relying
25986 on a hardcoded offset.
25987
25988 2009-03-04 Robert Millan <rmh@aybabtu.com>
25989
25990 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
25991 installed.
25992
25993 * Makefile.in (host_kernel): New variable.
25994 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
25995 scripts instead of just the windows one.
25996 * configure.ac: Initialize and AC_SUBST `host_kernel'.
25997
25998 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25999
26000 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
26001 `kern/handler.c'.
26002 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26003 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26004 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26006 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26007 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26008
26009 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26010
26011 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
26012 or if there's no space for the disk label and print the partition number on a
26013 invalid magic.
26014
26015 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26016
26017 * util/misc.c: Include <time.h>.
26018 (grub_millisleep): New function.
26019
26020 2009-03-04 Bean <bean123ch@gmail.com>
26021
26022 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
26023 another option -mno-red-zone.
26024
26025 * commands/handler.c: Change module description.
26026
26027 * kern/handler.c: Add missing space at the end of description line.
26028
26029 * kern/list.c: Likewise.
26030
26031 2009-03-03 Robert Millan <rmh@aybabtu.com>
26032
26033 Move more components to the relocation area, and fix mbi pointer
26034 handling to use the destination rather than the origin (thanks to
26035 Vladimir Serbinenko for spotting).
26036
26037 * loader/i386/multiboot.c (mbi_dest): New variable.
26038 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
26039 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
26040 relocation area.
26041
26042 2009-03-01 Bean <bean123ch@gmail.com>
26043
26044 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
26045 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
26046 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
26047 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
26048
26049 * loader/i386/efi/linux.c (acpi_guid): New variable.
26050 (acpi_guid): Likewise.
26051 (EBDA_SEG_ADDR): New constant.
26052 (LOW_MEM_ADDR): Likewise.
26053 (FAKE_EBDA_SEG): Likewise.
26054 (fake_bios_data): New function.
26055 (grub_linux_boot): Call fake_bios_data.
26056
26057 2009-03-01 Bean <bean123ch@gmail.com>
26058
26059 * commands/terminal.c: Removed.
26060
26061 * commands/handler.c: New file.
26062
26063 * include/grub/list.h: Likewise.
26064
26065 * include/grub/handler.h: Likewise.
26066
26067 * kern/list.c: Likewise.
26068
26069 * kern/handler.c: Likewise.
26070
26071 * kern/term.h: Include header file <grub/handler.h>.
26072 (grub_term_input): Move next field to the beginning.
26073 (grub_term_output): Likewise.
26074 (grub_term_input_class): New variable.
26075 (grub_term_output_class): Likewise.
26076 (grub_term_register_input): Changed to inline function.
26077 (grub_term_register_output): Likewise.
26078 (grub_term_unregister_input): Likewise.
26079 (grub_term_unregister_output): Likewise.
26080 (grub_term_set_current_input): Likewise.
26081 (grub_term_set_current_output): Likewise.
26082 (grub_term_get_current_input): Likewise.
26083 (grub_term_get_current_output): Likewise.
26084 (grub_term_iterate_input): Removed.
26085 (grub_term_iterate_output): Likewise.
26086
26087 * kern/term.c (grub_term_list_input): Removed.
26088 (grub_term_list_output): Likewise.
26089 (grub_term_input_class): New variable.
26090 (grub_term_output_class): Likewise.
26091 (grub_cur_term_input): Change variable as macro.
26092 (grub_cur_term_output): Likewise.
26093 (grub_term_register_input): Removed.
26094 (grub_term_register_output): Likewise.
26095 (grub_term_unregister_input): Likewise.
26096 (grub_term_unregister_output): Likewise.
26097 (grub_term_set_current_input): Likewise.
26098 (grub_term_set_current_output): Likewise.
26099 (grub_term_iterate_input): Likewise.
26100 (grub_term_iterate_output): Likewise.
26101 (grub_term_get_current_input): Likewise.
26102 (grub_term_get_current_output): Likewise.
26103
26104 * util/grub-editenv.c: Include header file <grub/handler.h>.
26105 (grub_term_get_current_input): Removed.
26106 (grub_term_get_current_output): Likewise.
26107 (grub_term_input_class): New variable.
26108 (grub_term_output_class): Likewise.
26109
26110 * util/grub-fstest.c (grub_term_get_current_input): Removed.
26111 (grub_term_get_current_output): Likewise.
26112 (grub_term_input_class): New variable.
26113 (grub_term_output_class): Likewise.
26114
26115 * util/grub-probe.c (grub_term_get_current_input): Removed.
26116 (grub_term_get_current_output): Likewise.
26117 (grub_term_input_class): New variable.
26118 (grub_term_output_class): Likewise.
26119
26120 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
26121 (grub_term_get_current_output): Likewise.
26122 (grub_term_input_class): New variable.
26123 (grub_term_output_class): Likewise.
26124
26125 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
26126 (terminal_mod_SOURCES): Likewise.
26127 (terminal_mod_CFLAGS): Likewise.
26128 (terminal_mod_LDFLAGS): Likewise.
26129
26130 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
26131 handler.c.
26132 (kernel_img_SOURCES): Add list.c and handler.c.
26133 (kernel_img_HEADERS): Add list.h and handler.h.
26134
26135 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26136 handler.c.
26137 (kernel_mod_SOURCES): Add list.c and handler.c.
26138 (kernel_mod_HEADERS): Add list.h and handler.h.
26139
26140 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
26141 handler.c.
26142 (kernel_elf_SOURCES): Add list.c and handler.c.
26143 (kernel_elf_HEADERS): Add list.h and handler.h.
26144
26145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26146 handler.c.
26147 (kernel_elf_SOURCES): Add list.c and handler.c.
26148 (kernel_elf_HEADERS): Add list.h and handler.h.
26149
26150 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26151 handler.c.
26152 (kernel_mod_SOURCES): Add list.c and handler.c.
26153 (kernel_mod_HEADERS): Add list.h and handler.h.
26154
26155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26156 handler.c.
26157 (kernel_elf_SOURCES): Add list.c and handler.c.
26158 (kernel_elf_HEADERS): Add list.h and handler.h.
26159
26160 2009-02-27 Robert Millan <rmh@aybabtu.com>
26161
26162 Factorize elf32 / elf64 code in Multiboot loader. This will
26163 prevent it from getting out of sync again.
26164
26165 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
26166 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
26167 grub_multiboot_load_elf64): Move from here ...
26168 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
26169 grub_multiboot_load_elf): ... to here (new file).
26170
26171 2009-02-27 Robert Millan <rmh@aybabtu.com>
26172
26173 * util/grub.d/10_linux.in: Rename "single-user mode" to
26174 "recovery mode".
26175
26176 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
26177
26178 Don't leak in SCSI code.
26179 * disk/scsi.c (grub_scsi_close): free `scsi'.
26180
26181 2009-02-27 Robert Millan <rmh@aybabtu.com>
26182
26183 * loader/i386/pc/multiboot.c: Move from here ...
26184 * loader/i386/multiboot.c: ... to here. Update all users.
26185
26186 2009-02-27 Robert Millan <rmh@aybabtu.com>
26187
26188 Patch from Alexandre Bique <bique.alexandre@gmail.com>
26189 * util/i386/pc/grub-setup.c (setup): Fix directory path.
26190
26191 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
26192
26193 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
26194 b-tree.
26195
26196 2009-02-27 Robert Millan <rmh@aybabtu.com>
26197
26198 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
26199 `0x' qualifier as 0 when base is specified as parameter).
26200
26201 2009-02-24 Bean <bean123ch@gmail.com>
26202
26203 * configure.ac: Check for -mcmodel=large in x86_64 target.
26204
26205 * include/grub/efi/api.h (efi_call_10): New macro.
26206 (efi_wrap_10): New function.
26207
26208 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
26209 (GRUB_PE32_REL_BASED_HIGH): Likewise.
26210 (GRUB_PE32_REL_BASED_LOW): Likewise.
26211 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
26212 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
26213 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
26214 (GRUB_PE32_REL_BASED_SECTION): Likewise.
26215 (GRUB_PE32_REL_BASED_REL): Likewise.
26216 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
26217 (GRUB_PE32_REL_BASED_DIR64): Likewise.
26218 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
26219
26220 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
26221 issue.
26222
26223 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
26224 (efi_wrap_10): New function.
26225
26226 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
26227
26228 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
26229 MB/MBP model (NV chipset).
26230 (devdata_devs): Add devpath_5 to the list.
26231
26232 * load/i386/efi/linux.c (video_base): Remove variable.
26233 (RGB_MASK): New macro.
26234 (RGB_MAGIC): Likewise.
26235 (LINE_MIN): Likewise.
26236 (LINE_MAX): Likewise.
26237 (FBTEST_STEP): Likewise.
26238 (FBTEST_COUNT): Likewise.
26239 (fb_list): New variable.
26240 (grub_find_video_card): Remove function.
26241 (find_framebuf): New function.
26242 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
26243 line length.
26244
26245 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
26246 problem for x86_64.
26247
26248 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
26249
26250 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
26251
26252 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
26253 coding tool name.
26254
26255 2009-02-22 Robert Millan <rmh@aybabtu.com>
26256
26257 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
26258 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
26259 in our relocation, instead of using it directly from heap. Also
26260 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
26261
26262 2009-02-21 Robert Millan <rmh@aybabtu.com>
26263
26264 Implement USB keyboard support (based on patch by Marco Gerards)
26265
26266 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
26267 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
26268 (usb_keyboard_mod_LDFLAGS): New variables.
26269
26270 * term/usb_keyboard.c: New file.
26271
26272 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26273
26274 Corrected wrong declaration
26275
26276 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
26277
26278 2009-02-14 Christian Franke <franke@computer.org>
26279
26280 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
26281 (grub_lspci_iter): Print class code and programming interface byte.
26282
26283 2009-02-14 Christian Franke <franke@computer.org>
26284
26285 * gendistlist.sh: Ignore `.svn' directories.
26286
26287 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
26288
26289 * fs/fat.c: Add 2009 to Copyright line.
26290
26291 2009-02-14 Christian Franke <franke@computer.org>
26292
26293 * commands/hdparm.c: New file. Provides `hdparm' command
26294 which sends ATA commands via grub_disk_ata_pass_through ().
26295
26296 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
26297
26298 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
26299 and <grub/cpu/io.h> to include/grub/ata.h.
26300 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
26301 (GRUB_CDROM_SECTOR_SIZE): Remove.
26302 (GRUB_ATA_*): Move to include/grub/ata.h.
26303 (GRUB_ATAPI_*): Likewise.
26304 (enum grub_ata_commands): Likewise.
26305 (enum grub_ata_timeout_milliseconds): Likewise.
26306 (struct grub_ata_device): Likewise.
26307 (grub_ata_regset): Likewise.
26308 (grub_ata_regget): Likewise.
26309 (grub_ata_regset2): Likewise.
26310 (grub_ata_regget2): Likewise.
26311 (grub_ata_check_ready): Likewise.
26312 (grub_ata_wait_not_busy): Remove static, exported in
26313 include/grub/ata.h.
26314 (grub_ata_wait_drq): Likewise.
26315 (grub_ata_pio_read): Likewise.
26316
26317 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
26318 function for hdparm.mod.
26319
26320 * include/grub/ata.h: New file, contains declarations from
26321 disk/ata.c.
26322 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26323
26324 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26325 (grub_disk_ata_pass_through): New exported variable.
26326
26327 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26328
26329 2009-02-13 Colin D Bennett <colin@gibibit.com>
26330
26331 Support multiple fallback entries, and provide an API to support
26332 executing default+fallback menu entries. Renamed the `terminal' menu
26333 viewer to `text'.
26334
26335 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26336 variable declaration.
26337 (grub_menu_execute_callback): New structure declaration.
26338 (grub_menu_execute_callback_t): New typedef.
26339 (grub_menu_execute_with_fallback): New function declaration.
26340 (grub_menu_get_entry): Likewise.
26341 (grub_menu_get_timeout): Likewise.
26342 (grub_menu_set_timeout): Likewise.
26343
26344 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26345
26346 * normal/menu.c (grub_wait_after_message): Moved to
26347 `normal/menu_text.c'.
26348 (draw_border): Likewise.
26349 (print_message): Likewise.
26350 (print_entry): Likewise.
26351 (print_entries): Likewise.
26352 (grub_menu_init_page): Likewise.
26353 (get_entry_number): Likewise.
26354 (print_timeout): Likewise.
26355 (run_menu): Likewise.
26356 (grub_menu_execute_entry): Likewise.
26357 (show_text_menu): Likewise.
26358 (get_and_remove_first_entry_number): New function.
26359 (grub_menu_execute_with_fallback): Likewise.
26360 (get_entry): Renamed to ...
26361 (grub_menu_get_entry): .. this and made it global.
26362 (get_timeout): Renamed to ...
26363 (grub_menu_get_timeout): ... this and made it global.
26364 (set_timeout): Renamed to ...
26365 (grub_menu_set_timeout): ... this and made it global.
26366 (grub_normal_terminal_menu_viewer): Renamed to ...
26367 (grub_normal_text_menu_viewer): ... this.
26368
26369 * normal/menu_text.c: New file. Extracted text-menu-specific code
26370 from normal/menu.c.
26371
26372 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26373 (normal_mod_SOURCES): Likewise.
26374
26375 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26376 (normal_mod_SOURCES): Likewise.
26377
26378 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26379 (normal_mod_SOURCES): Likewise.
26380
26381 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26382 (normal_mod_SOURCES): Likewise.
26383
26384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26385 (normal_mod_SOURCES): Likewise.
26386
26387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26388 (normal_mod_SOURCES): Likewise.
26389
26390 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26391 (normal_mod_SOURCES): Likewise.
26392
26393 2009-02-11 Robert Millan <rmh@aybabtu.com>
26394
26395 * util/grub.d/00_header.in: Update old reference to `font' command.
26396
26397 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26398
26399 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26400
26401 Based on patch from Javier Martín.
26402
26403 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26404
26405 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26406 to avoid false positives with FAT.
26407 (grub_fstest_SOURCES): Likewise.
26408 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26411 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26412 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26413 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26414
26415 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26416
26417 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26418 bpb.version_specific.fat12_or_fat16.fstype and
26419 bpb.version_specific.fat32.fstype.
26420
26421 2009-02-08 Robert Millan <rmh@aybabtu.com>
26422
26423 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26424
26425 2009-02-08 Robert Millan <rmh@aybabtu.com>
26426
26427 * Makefile.in (host_os, host_cpu): New variables.
26428 (target_os): Remove. Update all users.
26429
26430 2009-02-08 Marco Gerards <marco@gnu.org>
26431
26432 * Makefile.in (enable_grub_emu_usb): New variable.
26433 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26434 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26435 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26436 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26437 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26438 `usbtest.mod' and `usbms.mod'.
26439 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26440 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26441 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26442 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26443 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26444 variables.
26445
26446 * disk/usbms.c: New file.
26447
26448 * include/grub/usb.h: Likewise.
26449
26450 * include/grub/usbtrans.h: Likewise.
26451
26452 * include/grub/usbdesc.h: Likewise.
26453
26454 * bus/usb/usbtrans.c: Likewise.
26455
26456 * bus/usb/ohci.c: Likewise.
26457
26458 * bus/usb/uhci.c: Likewise.
26459
26460 * bus/usb/usbhub.c: Likewise.
26461
26462 * bus/usb/usb.c: Likewise.
26463
26464 * commands/usbtest.c: Likewise.
26465
26466 * util/usb.c: Likewise.
26467
26468 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26469
26470 * configure.ac: Test for libusb presence.
26471
26472 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26473
26474 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26475
26476 * kern/mm.c: Add more comments.
26477
26478 2009-02-08 Robert Millan <rmh@aybabtu.com>
26479
26480 Patch from Javier Martín.
26481 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26482 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26483
26484 2009-02-08 Robert Millan <rmh@aybabtu.com>
26485
26486 * fs/cpio.c: Split tar functionality to ...
26487 * fs/tar.c: ... here (new file). Update all users.
26488
26489 2009-02-07 Robert Millan <rmh@aybabtu.com>
26490
26491 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26492 backward-incompatible features.
26493
26494 Based on patch from Javier Martín, with some adjustments.
26495
26496 2009-02-07 Michael Scherer <misc@mandriva.org>
26497
26498 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26499
26500 2009-02-07 Robert Millan <rmh@aybabtu.com>
26501
26502 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26503 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26504 after the RAID stuff.
26505
26506 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26507
26508 Fixes problem when running vbetest command as reported by
26509 Vladimir Serbinenko <phcoder@gmail.com>.
26510
26511 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26512
26513 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26514
26515 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26516 /dev/md/NpN style mdraid devices.
26517
26518 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26519
26520 * util/unifont2pff.rb: Remove.
26521
26522 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26523
26524 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26525 `#'.
26526
26527 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26528
26529 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26530 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26531 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26535 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26536
26537 2009-02-02 Christian Franke <franke@computer.org>
26538
26539 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26540
26541 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26542
26543 * INSTALL: Note that we now require at least autoconf 2.59 and
26544 that LZO is optional.
26545
26546 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26547
26548 Base on patch on bug #24154 created by Tomas Tintera
26549 <trosos@seznam.cz>.
26550
26551 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26552
26553 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26554
26555 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26556 <bero@arklinux.org>.
26557
26558 * normal/parser.y (script_init): Add missing semicolon.
26559
26560 2009-01-31 Colin D Bennett <colin@gibibit.com>
26561
26562 * normal/main.c: Add include to grub/menu_viewer.h.
26563 (free_menu_entry_classes): Added.
26564 (grub_normal_menu_addentry): Added class property handling.
26565 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26566 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26567
26568 * normal/menu_viewer.c: New file.
26569
26570 * normal/menu.c (run_menu_entry): Renamed to ...
26571 (grub_menu_execute_entry): ... this and made it as global.
26572 (grub_menu_run): Renamed to ...
26573 (show_text_menu): ... this and made it local.
26574 (show_text_menu): Adapt to new function names.
26575 (grub_normal_terminal_menu_viewer): New global variable.
26576
26577 * include/grub/menu.h: New file.
26578
26579 * include/grub/menu_viewer.h: New file.
26580
26581 * include/grub/normal.h: Added include to grub/menu.h.
26582 (grub_menu_entry): Moved to include/grub/menu.h.
26583 (grub_menu_entry_t): Likewise.
26584 (grub_menu): Likewise.
26585 (grub_menu_t): Likewise.
26586 (grub_normal_terminal_menu_viewer): Added.
26587 (grub_menu_execute_entry): Likewise.
26588 (grub_menu_run): Removed.
26589
26590 * DISTLIST: Added include/grub/menu.h.
26591 Added include/grub/menu_viewer.h.
26592 Added normal/menu_viewer.c.
26593
26594 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26595
26596 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26597 arglist for menutitle arguments.
26598
26599 * normal/main.c (grub_normal_menu_addentry): Likewise.
26600
26601 * normal/parser.y (menuentry): Likewise.
26602
26603 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26604
26605 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26606 (grub_script_create_cmdmenu): Likewise.
26607
26608 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26609
26610 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26611 changes.
26612
26613 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26614
26615 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26616
26617 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26618
26619 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26620
26621 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26622
26623 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26624
26625 2009-01-30 Christian Franke <franke@computer.org>
26626
26627 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26628 in option help text.
26629
26630 2009-01-27 Pavel Roskin <proski@gnu.org>
26631
26632 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26633
26634 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26635
26636 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26637
26638 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26639
26640 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26641 unregister function.
26642
26643 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26644
26645 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26646
26647 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26648
26649 * util/grub-mkfont.c (usage): Fix typo.
26650
26651 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26652
26653 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26654
26655 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26656
26657 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26658
26659 * kern/misc.c (grub_strcasecmp): New function.
26660 (grub_strcasecmp): Use grub_size_t instead of int for length.
26661 Fix return value.
26662 * include/grub/misc.h: Update function prototypes.
26663
26664 2009-01-26 Robert Millan <rmh@aybabtu.com>
26665
26666 * configure.ac: Fix cross-compilation check.
26667
26668 2009-01-22 Christian Franke <franke@computer.org>
26669
26670 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
26671 (precision) digit string. Allow `.format2' without `format1' (width).
26672 Limit input chars for `%s' output to `format2' if specified. This is
26673 compatible with standard printf ().
26674
26675 2009-01-22 Christian Franke <franke@computer.org>
26676
26677 * disk/ata.c (grub_ata_wait_status): Replace by ...
26678 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
26679 other status bits may be invalid while BSY is asserted.
26680 (grub_ata_check_ready): New function.
26681 (grub_ata_cmd): Removed.
26682 (grub_ata_wait_drq): New function.
26683 (grub_ata_strncpy): Remove inline.
26684 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
26685 and error check now done by grub_ata_wait_drq ().
26686 (grub_ata_pio_write): Likewise.
26687 (grub_atapi_identify): Set DEV before check for !BSY. Use
26688 grub_ata_wait_drq () to wait for data.
26689 (grub_ata_device_initialize): Add status register check to
26690 detect missing SATA slave devices. Add debug messages.
26691 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
26692 (grub_atapi_packet): Set DEV before check for !BSY. Replace
26693 transfer loop by grub_ata_pio_write ().
26694 (grub_ata_identify): Set DEV before check for !BSY. Use
26695 grub_ata_wait_drq () to wait for data.
26696 (grub_ata_setaddress): Set DEV before check for !BSY.
26697 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
26698 read/write in one loop. Fix invalid command on write. Fix incomplete
26699 command on (size % batch) == 0. Add missing error check after write of
26700 last block. Add debug messages.
26701 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
26702
26703 2009-01-19 Christian Franke <franke@computer.org>
26704
26705 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
26706 (GRUB_ATAPI_IREASON_*): Likewise.
26707 (grub_ata_pio_write): Fix timeout error return.
26708 (grub_atapi_identify): Add grub_ata_wait () after cmd.
26709 (grub_atapi_wait_drq): New function.
26710 (grub_atapi_packet): New parameter `size'.
26711 Use grub_atapi_wait_drq () and direct write instead of
26712 grub_ata_pio_write ().
26713 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
26714 reads the number of bytes requested by the device for each DRQ
26715 assertion.
26716 (grub_atapi_write): Remove old implementation, return not
26717 implemented instead.
26718
26719 2009-01-19 Christian Franke <franke@computer.org>
26720
26721 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
26722 of 512 to calculate data size.
26723 (grub_scsi_read12): Likewise.
26724 (grub_scsi_write10): Likewise.
26725 (grub_scsi_write12): Likewise.
26726 (grub_scsi_read): Adjust size according to blocksize.
26727 Add checks for invalid blocksize and unaligned transfer.
26728
26729 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
26730
26731 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
26732
26733 * term/gfxterm.c (write_char): Fix background rendering for wide
26734 width glyphs.
26735
26736 2009-01-19 Robert Millan <rmh@aybabtu.com>
26737
26738 * config.guess: Update to latest version from config git.
26739 * config.sub: Likewise.
26740
26741 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
26742
26743 * Makefile.in: Change font compilation to use new grub-mkfont instead
26744 of java version.
26745
26746 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
26747 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26748 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26749 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26750 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26751 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26752 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26753 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26754 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26755
26756 2009-01-16 Christian Franke <franke@computer.org>
26757
26758 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
26759 (enum grub_ata_timeout_milliseconds): New enum.
26760 (grub_ata_wait_status): Add parameter milliseconds.
26761 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
26762 recovery from timed-out commands.
26763 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
26764 return grub_errno instead of REG_ERROR.
26765 (grub_ata_pio_write): Add parameter milliseconds.
26766 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
26767 Pass milliseconds to grub_ata_wait_status () and
26768 grub_ata_pio_read ().
26769 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
26770 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
26771 grub_ata_wait_status (). Fix IDENTIFY timeout check.
26772 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
26773 It is not suitable for device detection, because DEV bit is ignored,
26774 the command may run too long, and not all devices set the signature
26775 properly.
26776 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
26777 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
26778 Fix device selection, DEV bit must be set first to address the registers
26779 of the correct device.
26780 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
26781 grub_ata_pio_read/write ().
26782 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
26783 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
26784
26785 2009-01-13 Carles Pina i Estany <carles@pina.cat>
26786
26787 * util/grub-editenv.c (main): Use fseeko(), not fseek().
26788
26789 2009-01-13 Bean <bean123ch@gmail.com>
26790
26791 * util/grub-mkfont.c (write_font): forget to remove some debug code.
26792
26793 2009-01-13 Bean <bean123ch@gmail.com>
26794
26795 * Makefile.in: (enable_grub_mkfont): New variable.
26796 (freetype_cflags): Likewise.
26797 (freetype_libs): Likewise.
26798
26799 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
26800 (grub_mkfont_SOURCES): New variable.
26801 (grub_mkfont_CFLAGS): Likewise.
26802 (grub_mkfont_LDFLAGS): Likewise.
26803
26804 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
26805 library if `--enable-grub-mkfont' is requested.
26806 (enable_grub_mkfont): New variable.
26807 (freetype_cflags): Likewise.
26808 (freetype_libs): Likewise.
26809
26810 * util/grub-mkfont.c: New file.
26811
26812 2009-01-12 Christian Franke <franke@computer.org>
26813
26814 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
26815 mode check. Fix setting of compat_use[].
26816
26817 2009-01-10 Robert Millan <rmh@aybabtu.com>
26818
26819 Update a few copyright years which we forgot to do in 2008 (only for
26820 files whose changes made in 2008 were copyright-significant)
26821
26822 * Makefile.in: Add 2008 to Copyright line.
26823 * disk/ieee1275/ofdisk.c: Likewise.
26824 * disk/efi/efidisk.c: Likewise.
26825 * kern/dl.c: Likewise.
26826 * kern/sparc64/ieee1275/init.c: Likewise.
26827 * kern/mm.c: Likewise.
26828 * kern/efi/mm.c: Likewise.
26829 * boot/i386/pc/boot.S: Likewise.
26830 * genfslist.sh: Likewise.
26831 * fs/iso9660.c: Likewise.
26832 * fs/hfs.c: Likewise.
26833 * fs/jfs.c: Likewise.
26834 * fs/minix.c: Likewise.
26835 * fs/ufs.c: Likewise.
26836 * gensymlist.sh.in: Likewise.
26837 * genkernsyms.sh.in: Likewise.
26838 * include/grub/misc.h: Likewise.
26839 * include/grub/types.h: Likewise.
26840 * include/grub/symbol.h: Likewise.
26841 * include/grub/elf.h: Likewise.
26842 * include/grub/kernel.h: Likewise.
26843 * include/grub/disk.h: Likewise.
26844 * include/grub/dl.h: Likewise.
26845 * include/grub/i386/linux.h: Likewise.
26846 * include/grub/i386/pc/biosdisk.h: Likewise.
26847 * include/grub/efi/api.h: Likewise.
26848 * include/grub/efi/pe32.h: Likewise.
26849 * include/grub/util/misc.h: Likewise.
26850 * normal/execute.c: Likewise.
26851 * normal/arg.c: Likewise.
26852 * normal/completion.c: Likewise.
26853 * normal/lexer.c: Likewise.
26854 * normal/parser.y: Likewise.
26855 * normal/misc.c: Likewise.
26856 * commands/i386/pc/vbeinfo.c: Likewise.
26857 * commands/hexdump.c: Likewise.
26858 * commands/terminal.c: Likewise.
26859 * commands/ls.c: Likewise.
26860 * commands/help.c: Likewise.
26861 * partmap/pc.c: Likewise.
26862 * loader/efi/chainloader.c: Likewise.
26863 * loader/multiboot_loader.c: Likewise.
26864 * loader/i386/pc/multiboot2.c: Likewise.
26865 * term/efi/console.c: Likewise.
26866 * term/i386/pc/serial.c: Likewise.
26867 * util/lvm.c: Likewise.
26868 * util/console.c: Likewise.
26869 * util/i386/efi/grub-mkimage.c: Likewise.
26870 * util/raid.c: Likewise.
26871
26872 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
26873
26874 * commands/videotest.c: Removed include to grub/machine/memory.h.
26875
26876 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
26877 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
26878 (video_mod_SOURCES): Removed.
26879 (video_mod_CFLAGS): Likewise.
26880 (video_mod_LDFLAGS): Likewise.
26881 (gfxterm_mod_SOURCES): Likewise.
26882 (gfxterm_mod_CFLAGS): Likewise.
26883 (gfxterm_mod_LDFLAGS): Likewise.
26884 (videotest_mod_SOURCES): Likewise.
26885 (videotest_mod_CFLAGS): Likewise.
26886 (videotest_mod_LDFLAGS): Likewise.
26887 (bitmap_mod_SOURCES): Likewise.
26888 (bitmap_mod_CFLAGS): Likewise.
26889 (bitmap_mod_LDFLAGS): Likewise.
26890 (tga_mod_SOURCES): Likewise.
26891 (tga_mod_CFLAGS): Likewise.
26892 (tga_mod_LDFLAGS): Likewise.
26893 (jpeg_mod_SOURCES): Likewise.
26894 (jpeg_mod_CFLAGS): Likewise.
26895 (jpeg_mod_LDFLAGS): Likewise.
26896 (png_mod_SOURCES): Likewise.
26897 (png_mod_CFLAGS): Likewise.
26898 (png_mod_LDFLAGS): Likewise.
26899
26900 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
26901 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
26902 (video_mod_SOURCES): Added.
26903 (video_mod_CFLAGS): Likewise.
26904 (video_mod_LDFLAGS): Likewise.
26905 (videotest_mod_SOURCES): Likewise.
26906 (videotest_mod_CFLAGS): Likewise.
26907 (videotest_mod_LDFLAGS): Likewise.
26908 (bitmap_mod_SOURCES): Likewise.
26909 (bitmap_mod_CFLAGS): Likewise.
26910 (bitmap_mod_LDFLAGS): Likewise.
26911 (tga_mod_SOURCES): Likewise.
26912 (tga_mod_CFLAGS): Likewise.
26913 (tga_mod_LDFLAGS): Likewise.
26914 (jpeg_mod_SOURCES): Likewise.
26915 (jpeg_mod_CFLAGS): Likewise.
26916 (jpeg_mod_LDFLAGS): Likewise.
26917 (png_mod_SOURCES): Likewise.
26918 (png_mod_CFLAGS): Likewise.
26919 (png_mod_LDFLAGS): Likewise.
26920 (gfxterm_mod_SOURCES): Likewise.
26921 (gfxterm_mod_CFLAGS): Likewise.
26922 (gfxterm_mod_LDFLAGS): Likewise.
26923
26924 * term/gfxterm.c: Removed include to grub/machine/memory.h,
26925 grub/machine/console.h.
26926
26927 2009-01-04 Jerone Young <jerone@gmail.com>
26928
26929 Make on screen instructions clearer
26930
26931 Based on patch created by Jidanni <jidanni@jidanni.org>
26932
26933 * normal/menu.c: print clearer instructions on the screen
26934
26935 2009-01-02 Colin D Bennett <colin@gibibit.com>
26936
26937 New font engine.
26938
26939 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
26940 build system and fixed gfxterm.c to work with different sized fonts.
26941
26942 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26943
26944 * configure: Re-generated.
26945
26946 * DISTLIST: Removed font/manager.c.
26947 Added font/font.c.
26948 Added font/font_cmd.c.
26949
26950 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26951 compilation.
26952
26953 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
26954
26955 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
26956
26957 * kern/term.c: Changed users of grub_utf8_to_ucs4.
26958
26959 * normal/menu.c: Likewise.
26960
26961 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
26962 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
26963
26964 * include/grub/font.h: Replaced with new file.
26965
26966 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
26967 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
26968 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
26969 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
26970 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
26971 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
26972 fg_red, fg_green, fg_blue, fg_alpha.
26973 (grub_video_adapter): Removed blit_glyph.
26974 (grub_video_blit_glyph): Removed.
26975
26976 * font/manager.c: Removed file.
26977
26978 * font/font.c: New file.
26979
26980 * font/font_cmd.c: Likewise.
26981
26982 * video/video.c (grub_video_blit_glyph): Removed.
26983
26984 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
26985 (grub_video_vbe_map_rgba): Likewise.
26986 (grub_video_vbe_unmap_color_int): Likewise.
26987 (grub_video_vbe_blit_glyph): Removed.
26988 (grub_video_vbe_adapter): Removed blit_glyph.
26989
26990 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
26991 (get_pixel): Likewise.
26992 (set_pixel): Likewise.
26993
26994 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
26995
26996 * term/gfxterm.c: Adapted to new font engine.
26997
26998 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
26999
27000 * term/i386/pc/vga.c: Likewise.
27001
27002 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
27003
27004 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27005
27006 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27007
27008 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27009
27010 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27011
27012 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27013
27014 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27015
27016 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27017
27018 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27019
27020 * util/grub.d/00_header.in: Changed to use new loadfont command.
27021
27022 * util/grub-mkconfig_lib.in: Changed font extension.
27023
27024 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
27025
27026 * util/getroot.c (grub_util_get_grub_dev): Add support for
27027 /dev/md/dNNpNN style partitionable mdraid devices.
27028
27029 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
27030
27031 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
27032 at a time limit of the PXE TFTP API correctly.
27033 (grub_pxefs_close): Likewise.
27034
27035 2008-11-29 Robert Millan <rmh@aybabtu.com>
27036
27037 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
27038 grub_ata_device_initialize() calls.
27039
27040 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
27041
27042 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
27043 iteration failed.
27044 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
27045
27046 2008-11-28 Robert Millan <rmh@aybabtu.com>
27047
27048 Fix build on powerpc-ieee1275. Based on patch created by
27049 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
27050 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27051 `kern/ieee1275/mmap.c'.
27052 * include/grub/powerpc/ieee1275/memory.h: New file.
27053
27054 Provide grub-install on coreboot.
27055 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
27056 (grub_install_SOURCES): New variable.
27057 * util/i386/pc/grub-install.in: Add a few condition checks to make it
27058 usable on coreboot.
27059
27060 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
27061
27062 * util/grub-fstest.c (grub_term_get_current_input): Change return type
27063 to `grub_term_input_t'.
27064 (grub_term_get_current_output): Change return type to
27065 `grub_term_output_t'.
27066
27067 2008-11-22 Robert Millan <rmh@aybabtu.com>
27068
27069 Fix breakage on coreboot due to declaration mismatch.
27070 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
27071 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
27072 grub_vga_text_cls().
27073
27074 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
27075 comments. Avoid copying one more byte than necessary (just in case).
27076
27077 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
27078 to 0x200000 (avoids trouble with some OFW implementations, and matches
27079 with the one in Yaboot).
27080 Reported by Manoel Abranches
27081
27082 2008-11-20 Robert Millan <rmh@aybabtu.com>
27083
27084 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
27085 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
27086
27087 * util/grub-mkconfig_lib.in (grub_warn): New function.
27088 (convert_system_path_to_grub_path): Use grub_warn() when issuing
27089 warnings, to obtain consistent formatting.
27090 * util/grub.d/00_header.in: Likewise.
27091 * util/update-grub_lib.in: Likewise.
27092
27093 * loader/i386/linux.c (allocate_pages): Fix a warning.
27094 Move comment text to `#error' stanza.
27095
27096 Harmonize ieee1275's grub_available_iterate() with the generic
27097 grub_machine_mmap_iterate() interface (fixes a recently-introduced
27098 build problem on i386-ieee1275):
27099 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
27100 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
27101 parameter `type'. Update all users of this function.
27102 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27103 `kern/ieee1275/mmap.c'.
27104 * kern/ieee1275/init.c
27105 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
27106 with ...
27107 (grub_machine_mmap_iterate): ... this.
27108 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
27109 return type to `grub_err_t'. Update all implementations of this
27110 function prototype.
27111 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
27112 Likewise.
27113
27114 Add `lsmmap' command (lists firmware-provided memory map):
27115 * commands/lsmmap.c: New file.
27116 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
27117 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
27118 variables.
27119 * conf/powerpc-ieee1275.rmk: Likewise.
27120 * conf/i386-coreboot.rmk: Likewise.
27121 * conf/i386-ieee1275.rmk: Likewise.
27122
27123 2008-11-19 Robert Millan <rmh@aybabtu.com>
27124
27125 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
27126 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
27127 constraints to initrd allocation (based on code from
27128 loader/i386/pc/linux.c). Without them, initrd was allocated too high
27129 for Linux to find it.
27130
27131 2008-11-14 Robert Millan <rmh@aybabtu.com>
27132
27133 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
27134 order to cope with duplicate slashes.
27135
27136 2008-11-14 Robert Millan <rmh@aybabtu.com>
27137
27138 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
27139 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
27140 don't want to mess with lower memory, because it is used in the Linux
27141 loader.
27142
27143 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
27144 an appropriate place in lower memory, between 0x10000 and 0x90000,
27145 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
27146 is in our heap (probably as a result of it being corrupted during
27147 decompression). Add #error instance with comment to explain why this
27148 loader isn't currently usable on PC/BIOS.
27149
27150 2008-11-14 Robert Millan <rmh@aybabtu.com>
27151
27152 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
27153 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
27154
27155 2008-11-12 Robert Millan <rmh@aybabtu.com>
27156
27157 Make loader/i386/linux.c buildable on i386-pc (although disabled).
27158
27159 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
27160 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
27161 from here ...
27162 * include/grub/i386/pc/memory.h: ... to here.
27163
27164 2008-11-12 Robert Millan <rmh@aybabtu.com>
27165
27166 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
27167 split).
27168
27169 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
27170 (grub_console_cur_color, grub_console_real_putchar)
27171 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27172 (grub_console_setcolorstate, grub_console_setcolor)
27173 (grub_console_getcolor): Move from here ...
27174 * include/grub/i386/vga_common.h: ... to here (new file).
27175
27176 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
27177 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
27178 `<grub/i386/io.h>'.
27179 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
27180 `<grub/i386/vga_common.h>'.
27181
27182 2008-11-12 Robert Millan <rmh@aybabtu.com>
27183
27184 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
27185 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
27186 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
27187 variables.
27188 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27189 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
27190
27191 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
27192 grub_console_init() with call to grub_vga_text_init().
27193 (grub_machine_fini): Replace call to
27194 grub_console_fini() with call to grub_vga_text_fini() and
27195 grub_at_keyboard_fini().
27196
27197 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
27198 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27199 (grub_console_setcolorstate, grub_console_setcolor)
27200 (grub_console_getcolor): New function prototypes.
27201
27202 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
27203 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
27204 (grub_vga_text_setcursor): Static-ize.
27205 (grub_vga_text_term): New structure.
27206 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
27207
27208 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
27209 (grub_console_cur_color, grub_console_standard_color)
27210 (grub_console_normal_color, grub_console_highlight_color)
27211 (map_char, grub_console_putchar, grub_console_getcharwidth)
27212 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
27213 (grub_console_getcolor): Move from here ...
27214 * term/i386/vga_common.c: ... to here (same function names).
27215
27216 2008-11-12 Robert Millan <rmh@aybabtu.com>
27217
27218 Use newly-added Multiboot support in coreboot.
27219
27220 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27221 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
27222
27223 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
27224 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
27225 (codestart): Store the MBI in `startup_multiboot_info' when we're
27226 being loaded using Multiboot.
27227
27228 * kern/i386/coreboot/init.c (grub_machine_init): Move
27229 grub_at_keyboard_init() call to beginning of function (useful for
27230 debugging). Call grub_machine_mmap_init() before attempting to use
27231 grub_machine_mmap_iterate().
27232 (grub_lower_mem, grub_upper_mem): Move from here ...
27233 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
27234 here (new file).
27235
27236 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
27237 function prototype.
27238
27239 2008-11-12 Robert Millan <rmh@aybabtu.com>
27240
27241 Fix a regression introduced by the at_keyboard.mod split. Because
27242 some terminals are default on some platforms and non-default on
27243 others, the first terminal being registered determines which is
27244 going to be default.
27245
27246 * kern/term.c (grub_term_register_input): If this is the first
27247 terminal being registered, set it as the current one.
27248 (grub_term_register_output): Likewise.
27249
27250 * term/efi/console.c (grub_console_init): Do not call
27251 grub_term_set_current_output() or grub_term_set_current_input().
27252 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
27253 * term/i386/pc/console.c (grub_console_init): Likewise.
27254 (grub_console_fini): Do not call grub_term_set_current_input()
27255 (but leave grub_term_set_current_output() to restore text mode).
27256
27257 2008-11-10 Robert Millan <rmh@aybabtu.com>
27258
27259 * util/grub.d/00_header.in: Add backward compatibility check for
27260 versions of terminal.mod that don't understand `terminal_input' or
27261 `terminal_output'.
27262
27263 2008-11-09 Robert Millan <rmh@aybabtu.com>
27264
27265 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
27266 `terminal_input' / `terminal_output', not `terminal'.
27267
27268 2008-11-08 Robert Millan <rmh@aybabtu.com>
27269
27270 * Makefile.in (include_DATA): Fix srcdir=. assumption.
27271 (DISTCLEANFILES): Add `build_env.mk'.
27272
27273 2008-11-08 Robert Millan <rmh@aybabtu.com>
27274
27275 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
27276 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27277 members. Update all users.
27278 * util/console.c (grub_ncurses_term): Split in ...
27279 (grub_ncurses_term_input): ... this, and ...
27280 (grub_ncurses_term_output): ... this. Update all users.
27281 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
27282
27283 2008-11-08 Robert Millan <rmh@aybabtu.com>
27284
27285 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
27286 (PKGDATA): Add $(pkgdata_SRCDIR).
27287 (pkglib_BUILDDIR): New variable.
27288 (pkgdata_SRCDIR): New variable.
27289 (build_env.mk): New target.
27290 (include_DATA): New variable.
27291 (install-local): Install $(include_DATA) files in $(includedir).
27292
27293 2008-11-07 Pavel Roskin <proski@gnu.org>
27294
27295 * gendistlist.sh: Use C locale for sorting to ensure consistent
27296 output on all systems.
27297
27298 * util/grub.d/00_header.in: Remove incorrect space before
27299 "serial".
27300
27301 2008-11-07 Robert Millan <rmh@aybabtu.com>
27302
27303 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
27304 per specification.
27305 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
27306 * loader/multiboot_loader.c (find_multi_boot2_header): New function
27307 (based on find_multi_boot1_header).
27308 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
27309 using find_multi_boot2_header(), and abort if neither Multiboot or
27310 Multiboot headers were found.
27311
27312 2008-11-07 Robert Millan <rmh@aybabtu.com>
27313
27314 Modularize at_keyboard.mod:
27315
27316 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
27317 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27318 (at_keyboard_mod_LDFLAGS): New variables.
27319
27320 Actual terminal split:
27321
27322 * include/grub/term.h (struct grub_term): Split in ...
27323 (struct grub_term_input): ... this, and ...
27324 (struct grub_term_output): ... this. Update all users.
27325 (grub_term_set_current): Split in ...
27326 (grub_term_set_current_input): ... this, and ...
27327 (grub_term_set_current_output): ... this.
27328 (grub_term_get_current): Split in ...
27329 (grub_term_get_current_input): ... this, and ...
27330 (grub_term_get_current_output): ... this.
27331 (grub_term_register): Split in ...
27332 (grub_term_register_input): ... this, and ...
27333 (grub_term_register_output): ... this.
27334 (grub_term_unregister): Split in ...
27335 (grub_term_unregister_input): ... this, and ...
27336 (grub_term_unregister_output): ... this.
27337 (grub_term_iterate): Split in ...
27338 (grub_term_iterate_input): ... this, and ...
27339 (grub_term_iterate_output): ... this.
27340
27341 * kern/term.c (grub_term_list): Split in ...
27342 (grub_term_list_input): ... this, and ...
27343 (grub_term_list_output): ... this. Update all users.
27344 (grub_cur_term): Split in ...
27345 (grub_cur_term_input): ... this, and ...
27346 (grub_cur_term_output): ... this. Update all users.
27347 (grub_term_set_current): Split in ...
27348 (grub_term_set_current_input): ... this, and ...
27349 (grub_term_set_current_output): ... this.
27350 (grub_term_get_current): Split in ...
27351 (grub_term_get_current_input): ... this, and ...
27352 (grub_term_get_current_output): ... this.
27353 (grub_term_register): Split in ...
27354 (grub_term_register_input): ... this, and ...
27355 (grub_term_register_output): ... this.
27356 (grub_term_unregister): Split in ...
27357 (grub_term_unregister_input): ... this, and ...
27358 (grub_term_unregister_output): ... this.
27359 (grub_term_iterate): Split in ...
27360 (grub_term_iterate_input): ... this, and ...
27361 (grub_term_iterate_output): ... this.
27362
27363 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27364 a check for input and one for output (and only attempt to get keys
27365 from user when input works).
27366
27367 * util/grub-probe.c (grub_term_get_current): Split in ...
27368 (grub_term_get_current_input): ... this, and ...
27369 (grub_term_get_current_output): ... this.
27370 * util/grub-fstest.c: Likewise.
27371 * util/i386/pc/grub-setup.c: Likewise.
27372 * util/grub-editenv.c: Likewise.
27373
27374 Portability adjustments:
27375
27376 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27377 `term/i386/pc/at_keyboard.c'.
27378 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27379 grub_keyboard_controller_init() (now handled by terminal .init).
27380 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27381 grub_at_keyboard_init().
27382 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27383 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27384 at_keyboard.mod via input terminal interface).
27385 * include/grub/i386/coreboot/console.h: Convert into a stub for
27386 `<grub/i386/pc/console.h>'.
27387
27388 Migrate full terminals to new API:
27389
27390 * term/efi/console.c (grub_console_term): Split into ...
27391 (grub_console_term_input): ... this, and ...
27392 (grub_console_term_output): ... this. Update all users.
27393 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27394 (grub_ofconsole_init): Split into ...
27395 (grub_ofconsole_init_input): ... this, and ...
27396 (grub_ofconsole_init_output): ... this.
27397 (grub_ofconsole_term): Split into ...
27398 (grub_ofconsole_term_input): ... this, and ...
27399 (grub_ofconsole_term_output): ... this. Update all users.
27400 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27401 (grub_serial_term_input): ... this, and ...
27402 (grub_serial_term_output): ... this. Update all users.
27403 * term/i386/pc/console.c (grub_console_term): Split into ...
27404 (grub_console_term_input): ... this, and ...
27405 (grub_console_term_output): ... this. Update all users.
27406 (grub_console_term_input): Only enable it on PC/BIOS platform.
27407 (grub_console_init): Remove grub_keyboard_controller_init() call.
27408
27409 Migrate input terminals to new API:
27410
27411 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27412 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27413 i386-specific anyway).
27414 (grub_console_checkkey): Rename to ...
27415 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27416 users.
27417 (grub_keyboard_controller_orig): New variable.
27418 (grub_console_getkey): Rename to ...
27419 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27420 users.
27421 (grub_keyboard_controller_init): Static-ize. Save original
27422 controller value so that it can be restored ...
27423 (grub_keyboard_controller_fini): ... here (new function).
27424 (grub_at_keyboard_term): New structure.
27425 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27426 functions.
27427
27428 Migrate output terminals to new API:
27429
27430 * term/i386/pc/vga.c (grub_vga_term): Change type to
27431 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27432 members. Update all users.
27433 * term/gfxterm.c (grub_video_term): Change type to
27434 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27435 members. Update all users.
27436 * include/grub/i386/pc/console.h (grub_console_checkkey)
27437 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27438 etc).
27439
27440 Migrate `terminal' command and userland tools to new API:
27441
27442 * commands/terminal.c (grub_cmd_terminal): Split into ...
27443 (grub_cmd_terminal_input): ... this, and ...
27444 (grub_cmd_terminal_output): ... this.
27445 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27446 `terminal_input' and `terminal_output'.
27447 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27448 `terminal_input' / `terminal_output' API.
27449 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27450 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27451 provided ${GRUB_TERMINAL}, convert it).
27452
27453 2008-11-04 Robert Millan <rmh@aybabtu.com>
27454
27455 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27456 for FreeBSD.
27457 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27458
27459 2008-11-03 Bean <bean123ch@gmail.com>
27460
27461 * kern/elf.c (grub_elf32_load): Revert to previous code.
27462 (grub_elf64_load): Likewise.
27463
27464 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27465
27466 2008-11-01 Robert Millan <rmh@aybabtu.com>
27467
27468 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27469 (TARGET_CPPFLAGS): Likewise.
27470 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27471
27472 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27473
27474 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27475
27476 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27477
27478 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27479 addition of objects until the code is not going to be able to fail.
27480
27481 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27482
27483 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27484 (add a missing NULL check, and correct them by moving the pointer
27485 operations after the actual check).
27486
27487 2008-10-29 Robert Millan <rmh@aybabtu.com>
27488
27489 * util/i386/pc/grub-install.in: Handle empty string as output from
27490 make_system_path_relative_to_its_root().
27491
27492 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27493
27494 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27495 circular metadata worst case scenario. If the metadata is circular
27496 then copy the wrap in place.
27497 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27498 project lib/format_text/layout.h
27499 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27500
27501 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27502
27503 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27504
27505 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27506
27507 * util/update-grub_lib.in: Mention filename in warning message.
27508
27509 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27510
27511 * NEWS: Update for rename of update-grub to grub-mkconfig.
27512
27513 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27514
27515 * util/update-grub_lib.in: Copy to ...
27516 * util/grub-mkconfig_lib.in: ... this. Update all users.
27517 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27518 * util/update-grub.in: Rename to ...
27519 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27520 option. Add `--output' option to allow users to specify the generated
27521 configuration file. Default to stdout.
27522 (update_grub_dir): Rename to ...
27523 (grub_mkconfig_dir): ... this.
27524 (grub_cfg): Default to an empty string.
27525 * conf/common.rmk (update-grub): Rename to ...
27526 (grub-mkconfig): ... this.
27527 (update-grub_lib): Copy to ...
27528 (grub-mkconfig_lib): ... this.
27529 (update-grub_SCRIPTS): Copy to ...
27530 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27531 (update-grub_DATA): Rename to ...
27532 (grub-mkconfig_DATA): ... this.
27533
27534 2008-09-28 Robert Millan <rmh@aybabtu.com>
27535
27536 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27537 to `modified'. Add the real `created' field.
27538 (grub_iso9660_uuid): Use `modified' rather than `created' for
27539 constructing the UUID.
27540
27541 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27542
27543 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27544 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27545
27546 2008-09-28 Bean <bean123ch@gmail.com>
27547
27548 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27549 Thanks to Christian Franke for finding this bug.
27550
27551 2008-09-25 Robert Millan <rmh@aybabtu.com>
27552
27553 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27554 instances of grub_util_get_disk_name() (see previous commit).
27555
27556 2008-09-25 Robert Millan <rmh@aybabtu.com>
27557
27558 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27559 `util/i386/get_disk_name.c'.
27560 * conf/i386-efi.rmk: Likewise.
27561 * conf/x86_64-efi.rmk: Likewise.
27562 * conf/i386-coreboot.rmk: Likewise.
27563 * conf/i386-ieee1275.rmk: Likewise.
27564 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27565 `util/ieee1275/get_disk_name.c'.
27566 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27567 * util/ieee1275/get_disk_name.c: Remove file.
27568 * util/i386/get_disk_name.c: Remove file.
27569 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27570 "hd%d" for device.map entries, rather than using
27571 grub_util_get_disk_name().
27572
27573 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27574
27575 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27576 warning.
27577 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27578
27579 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27580
27581 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27582 Changed to 0x5100.
27583 (GRUB_TERM_PPAGE): Changed to 0x4900.
27584
27585 2008-09-24 Robert Millan <rmh@aybabtu.com>
27586
27587 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27588 macros (they were i386-pc specific).
27589 * include/grub/sparc64/ieee1275/console.h: Likewise.
27590 * include/grub/efi/console.h: Likewise.
27591
27592 2008-09-22 Bean <bean123ch@gmail.com>
27593
27594 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27595 resident and in attribute list.
27596
27597 * include/grub/ntfs.h (BMP_LEN): Removed.
27598
27599 2008-09-22 Bean <bean123ch@gmail.com>
27600
27601 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27602 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27603
27604 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27605 error occurs, as grub_disk_open will call grub_disk_close, which will
27606 call p->close (scsi).
27607
27608 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27609
27610 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27611 (AC_PREREQ): Bumped to 2.59.
27612 (AC_TRY_COMPILE): Replace obsolete macro with ...
27613 (AC_COMPILE_IFELSE): ... this.
27614 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27615 (AC_LINK_IFELSE): ... this.
27616
27617 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27618
27619 * autogen.sh: Add a call to `gendistlist.sh'.
27620
27621 2008-09-19 Christian Franke <franke@computer.org>
27622
27623 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27624 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27625 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27626 Export __enable_execute_stack() to modules.
27627 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27628 New function.
27629
27630 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27631
27632 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27633 Sort the list.
27634
27635 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27636
27637 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27638 #include <grub/util/hostdisk.h>.
27639
27640 2008-09-08 Robert Millan <rmh@aybabtu.com>
27641
27642 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27643 segments when their filesz is zero (grub_file_read() interprets
27644 zero-size as "read until EOF", which results in memory corruption).
27645 Use `lowest_segment' rather than 0 for calculating the current
27646 segment load address.
27647
27648 2008-09-08 Robert Millan <rmh@aybabtu.com>
27649
27650 * util/hostdisk.c (open_device): Replace a grub_util_info() call
27651 with grub_dprintf("hostdisk", ...), as it was so verbose that it
27652 clobbered useful information.
27653
27654 2008-09-08 Robert Millan <rmh@aybabtu.com>
27655
27656 * include/grub/util/biosdisk.h: Move to ...
27657 * include/grub/util/hostdisk.h: ... here. Update all users.
27658 * util/biosdisk.c: Move to ...
27659 * util/hostdisk.c: ... here. Update all users.
27660
27661 2008-09-07 Robert Millan <rmh@aybabtu.com>
27662
27663 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27664 variables.
27665 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
27666 and length can be stored directly in the `mbi->mmap_addr' and
27667 `mbi->mmap_length' struct fields.
27668
27669 2008-09-07 Robert Millan <rmh@aybabtu.com>
27670
27671 * conf/i386.rmk: New file. Provides declaration for building
27672 `cpuid.mod'.
27673 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27674 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27675 variables.
27676 Include `conf/i386.mk'.
27677 * conf/i386-efi.rmk: Likewise.
27678 * conf/x86_64-efi.rmk: Likewise.
27679 * conf/i386-coreboot.rmk: Likewise.
27680 * conf/i386-ieee1275.rmk: Likewise.
27681
27682 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27683
27684 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27685 Adds optimization support for BGR based modes.
27686
27687 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
27688 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27689 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27690 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27691 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27692 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27693 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27694 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27695 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27696 (grub_video_i386_vbeblit_index_index): Likewise.
27697 (grub_video_i386_vbeblit_replace_directN): Added.
27698 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27699 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27700 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27701 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27702 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27703 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27704 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27705 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27706 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27707 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27708 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27709 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27710 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27711
27712 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
27713 (grub_video_i386_vbefill_R8G8B8): Likewise.
27714 (grub_video_i386_vbefill_index): Likewise.
27715 (grub_video_i386_vbefill_direct32): Added.
27716 (grub_video_i386_vbefill_direct24): Likewise.
27717 (grub_video_i386_vbefill_direct16): Likewise.
27718 (grub_video_i386_vbefill_direct8): Likewise.
27719
27720 * include/grub/video.h (grub_video_blit_format): Removed
27721 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
27722 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
27723 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
27724 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
27725 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
27726
27727 * video/video.c (grub_video_get_blit_format): Updated to use new
27728 blit formats. Added handling for 16 bit color modes.
27729
27730 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
27731 fillers.
27732 (common_blitter): Updated to use new blitters.
27733
27734 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
27735 Removed.
27736 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27737 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27738 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27739 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27740 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27741 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27742 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27743 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27744 (grub_video_i386_vbeblit_index_index): Likewise.
27745 (grub_video_i386_vbeblit_replace_directN): Added.
27746 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27747 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27748 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27749 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27750 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27751 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27752 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27753 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27754 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27755 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27756 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27757 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27758 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27759
27760 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
27761 (grub_video_i386_vbefill_R8G8B8): Likewise.
27762 (grub_video_i386_vbefill_index): Likewise.
27763 (grub_video_i386_vbefill_direct32): Added.
27764 (grub_video_i386_vbefill_direct24): Likewise.
27765 (grub_video_i386_vbefill_direct16): Likewise.
27766 (grub_video_i386_vbefill_direct8): Likewise.
27767
27768 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
27769 types.
27770
27771 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
27772 types.
27773
27774 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
27775 blitter types.
27776
27777 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
27778 types.
27779
27780 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27781
27782 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
27783 RAID level 1.
27784
27785 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27786
27787 * fs/iso9660.c (grub_iso9660_date): New structure.
27788 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
27789 (grub_iso9660_uuid): New function.
27790
27791 2008-09-05 Bean <bean123ch@gmail.com>
27792
27793 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
27794
27795 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
27796 insensitive bit for names in Win32 and Win32 & DOS namespace.
27797
27798 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
27799
27800 * include/grub/types.h (LONG_MAX): Likewise.
27801
27802 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27803
27804 * util/getroot.c: Include <config.h>.
27805 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
27806 add support for /dev/md/N devices and handle LVM double dash escaping.
27807
27808 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27809
27810 * config.guess: Update to latest version from config git.
27811 * config.sub: Likewise.
27812
27813 2008-09-03 Robert Millan <rmh@aybabtu.com>
27814
27815 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
27816 `disk->total_sectors'.
27817
27818 2008-09-01 Colin D Bennett <colin@gibibit.com>
27819
27820 * include/grub/normal.h: Fixed incorrect comment for
27821 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
27822
27823 2008-09-01 Colin D Bennett <colin@gibibit.com>
27824
27825 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
27826 values with defines.
27827
27828 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
27829 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
27830 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
27831 (GRUB_VBE_MODEATTR_COLOR): Likewise.
27832 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
27833 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
27834 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
27835 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
27836 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
27837 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
27838 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
27839 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
27840 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
27841 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
27842 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
27843 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
27844 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
27845 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
27846 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
27847
27848 2008-08-31 Robert Millan <rmh@aybabtu.com>
27849
27850 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
27851 declaration.
27852 (grub_multiboot): Fix a few warnings.
27853
27854 2008-08-31 Robert Millan <rmh@aybabtu.com>
27855
27856 * loader/i386/pc/multiboot.c: Update comment not to say that
27857 boot_device support is unimplemented.
27858
27859 2008-08-31 Robert Millan <rmh@aybabtu.com>
27860
27861 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
27862 or memory map support are unimplemented.
27863
27864 2008-08-31 Colin D Bennett <colin@gibibit.com>
27865
27866 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
27867
27868 2008-08-31 Colin D Bennett <colin@gibibit.com>
27869
27870 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
27871 total video memory in 'vbeinfo' output; show color format details for
27872 each video mode.
27873
27874 2008-08-30 Pavel Roskin <proski@gnu.org>
27875
27876 * util/genmoddep.c: Remove for real this time.
27877 * DISTLIST: Remove util/genmoddep.c.
27878
27879 2008-08-30 Robert Millan <rmh@aybabtu.com>
27880
27881 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
27882 as required by Multiboot spec (it was already 4-byte aligned, but
27883 only by chance).
27884
27885 2008-08-29 Pavel Roskin <proski@gnu.org>
27886
27887 * kern/powerpc/ieee1275/crt0.S: Rename to ...
27888 * kern/powerpc/ieee1275/startup.S: ... this.
27889 * conf/powerpc-ieee1275.rmk: Adjust for the above.
27890 * DISTLIST: Likewise.
27891
27892 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
27893 grub/cpu/kernel.h. Add start label for consistency with other
27894 platforms. Add grub_prefix immediately after start. Add jump
27895 to the code after grub_prefix.
27896 * include/grub/powerpc/kernel.h: Provide valid values for
27897 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
27898
27899 2008-08-29 Bean <bean123ch@gmail.com>
27900
27901 * configure.ac: Change host_os to cygwin for mingw.
27902 (asprintf): New check for function.
27903
27904 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
27905 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
27906
27907 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
27908 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
27909 sync, sleep and grub_util_get_disk_size for mingw.
27910
27911 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
27912 to get size in mingw.
27913 (open_device): Use flag O_BINARY if it's defined.
27914 (find_root_device): Add dummy code for mingw.
27915
27916 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
27917 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
27918 (get_scsi_disk_name): Return 0 for mingw.
27919
27920 * util/hostfs.c: #include <grub/util/misc.h>.
27921 (grub_hostfs_open): Use "rb" flag to open file, use
27922 grub_util_get_disk_size to get disk size for mingw.
27923
27924 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
27925 (asprintf): New function if HAVE_ASPRINTF is not set.
27926 (sync): New function for mingw.
27927 (sleep): Likewise.
27928 (grub_util_get_disk_size): Likewise.
27929
27930 2008-08-28 Pavel Roskin <proski@gnu.org>
27931
27932 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27933 kern/time.c.
27934
27935 2008-08-28 Robert Millan <rmh@aybabtu.com>
27936
27937 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27938
27939 2008-08-28 Robert Millan <rmh@aybabtu.com>
27940
27941 Change find_grub_drive() syntax so it doesn't prevent it from
27942 detecting NULL names as errors.
27943
27944 * util/biosdisk.c (find_grub_drive): Move free slot search code
27945 from here ...
27946 (find_free_slot): ... to here.
27947 (read_device_map): Use find_free_slot() to search for free slots.
27948
27949 2008-08-27 Marco Gerards <marco@gnu.org>
27950
27951 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
27952 (scsi_mod_SOURCES): New variable.
27953 (scsi_mod_CFLAGS): Likewise
27954 (scsi_mod_LDFLAGS): Likewise.
27955
27956 * disk/scsi.c: New file.
27957
27958 * include/grub/scsi.h: Likewise.
27959
27960 * include/grub/scsicmd.h: Likewise.
27961
27962 * disk/ata.c: Include <grub/scsi.h>.
27963 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
27964 instead.
27965 (grub_ata_iterate): Skip ATAPI devices.
27966 (grub_ata_open): Only handle ATAPI devices.
27967 (struct grub_atapi_read): Removed.
27968 (grub_atapi_readsector): Likewise.
27969 (grub_ata_read): No longer handle ATAPI devices.
27970 (grub_ata_write): Likewise.
27971 (grub_atapi_iterate): New function.
27972 (grub_atapi_read): Likewise.
27973 (grub_atapi_write): Likewise.
27974 (grub_atapi_open): Likewise.
27975 (grub_atapi_close): Likewise.
27976 (grub_atapi_dev): New variable.
27977 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
27978 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
27979
27980 * include/grub/disk.h (enum grub_disk_dev_id): Add
27981 `GRUB_DISK_DEVICE_SCSI_ID'.
27982
27983 2008-08-26 Robert Millan <rmh@aybabtu.com>
27984
27985 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
27986 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
27987 descriptive.
27988
27989 2008-08-23 Bean <bean123ch@gmail.com>
27990
27991 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
27992 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27993 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
27994 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
27995 dm_nv.mod.
27996 (raid5rec_mod_SOURCES): New macro.
27997 (raid5rec_mod_CFLAGS): Likewise.
27998 (raid5rec_mod_LDFLAGS): Likewise.
27999 (raid6rec_mod_SOURCES): Likewise.
28000 (raid6rec_mod_CFLAGS): Likewise.
28001 (raid6rec_mod_LDFLAGS): Likewise.
28002 (mdraid_mod_SOURCES): Likewise.
28003 (mdraid_mod_CFLAGS): Likewise.
28004 (mdraid_mod_LDFLAGS): Likewise.
28005 (dm_nv_mod_SOURCES): Likewise.
28006 (dm_nv_mod_CFLAGS): Likewise.
28007 (dm_nv_mod_LDFLAGS): Likewise.
28008
28009 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
28010 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28011 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28012
28013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
28014 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28015
28016 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28017
28018 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28019
28020 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28021
28022 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28023
28024 * disk/raid5_recover.c: New file.
28025
28026 * disk/raid6_recover.c: Likewise.
28027
28028 * disk/mdraid_linux.c: Likewise.
28029
28030 * disk/dmraid_nvidia.c: Likewise.
28031
28032 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
28033 ULONG_MAX.
28034
28035 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
28036 calculate the size of raid device.
28037 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
28038 different layout of raid5.
28039 (grub_raid_scan_device): Remove code specific to mdraid.
28040 (grub_raid_list): New variable.
28041 (free_array): New function.
28042 (grub_raid_register): Likewise.
28043 (grub_raid_unregister): Likewise.
28044 (grub_raid_rescan): Likewise.
28045 (GRUB_MOD_INIT): Don't iterate device here.
28046 (GRUB_MOD_FINI): Use free_array to release resource.
28047
28048 * include/grub/raid.h: Remove macro and structure specific to mdraid.
28049 (grub_raid5_recover_func_t): New function variable type.
28050 (grub_raid6_recover_func_t): Likewise.
28051 (grub_raid5_recover_func): New variable.
28052 (grub_raid6_recover_func): Likewise.
28053 (grub_raid_register): New function.
28054 (grub_raid_unregister): Likewise.
28055 (grub_raid_rescan): Likewise.
28056 (grub_raid_block_xor): Likewise.
28057
28058 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
28059 (CMD_CRC): New macro.
28060 (part): Removed.
28061 (read_file): Handle device as well as file.
28062 (cmd_crc): New function.
28063 (fstest): Handle multiple disks.
28064 (options): Remove part, raw and long, add root and diskcount.
28065 (usage): Add crc, remove -p, -r, -l, add -r and -c.
28066 (main): Find the first non option entry and ignore subsequent options,
28067 add handling for the new options, support multiple disks.
28068
28069 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
28070
28071 2008-08-23 Bean <bean123ch@gmail.com>
28072
28073 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
28074
28075 * genfslist.sh: Ignore kernel.mod.
28076
28077 * genpartmaplist.sh: Likewise.
28078
28079 2008-08-23 Robert Millan <rmh@aybabtu.com>
28080
28081 * util/getroot.c (find_root_device): Skip anything that starts with
28082 a dot, not just directories. This avoids things like /dev/.tmp.md0.
28083
28084 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
28085
28086 * util/update-grub.in (GRUB_GFXMODE): Export variable.
28087 * util/grub.d/00_header.in: Allow the administrator to change default
28088 gfxmode via ${GRUB_GFXMODE}.
28089
28090 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
28091
28092 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
28093
28094 2008-08-21 Robert Millan <rmh@aybabtu.com>
28095
28096 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
28097 loader.
28098 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
28099 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
28100
28101 2008-08-20 Carles Pina i Estany <carles@pina.cat>
28102
28103 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
28104 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
28105
28106 2008-08-19 Robert Millan <rmh@aybabtu.com>
28107
28108 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
28109 (struct grub_virtual_screen): Remove `cursor_color'.
28110 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
28111 initialization.
28112 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
28113
28114 2008-08-18 Robert Millan <rmh@aybabtu.com>
28115
28116 Unify (identical) linux_normal.c files.
28117 * loader/i386/efi/linux_normal.c: Move from here ...
28118 * loader/linux_normal.c: ... to here. Update all users.
28119 * loader/i386/pc/linux_normal.c: Delete. Update all users.
28120 * loader/i386/ieee1275/linux_normal.c: Likewise.
28121
28122 2008-08-18 Robert Millan <rmh@aybabtu.com>
28123
28124 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
28125 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
28126 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
28127 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
28128 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
28129 New macros.
28130 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
28131 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
28132 (GRUB_LINUX_CL_END_OFFSET): ... to here.
28133 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
28134 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
28135 (GRUB_EFI_CL_END_OFFSET): Rename to ...
28136 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
28137 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
28138 Initialize `params->video_cursor_x' and `params->video_cursor_y'
28139 portably using grub_getxy().
28140 Replace `-EFI' with `-bzImage' in boot message.
28141
28142 2008-08-17 Robert Millan <rmh@aybabtu.com>
28143
28144 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
28145
28146 2008-08-17 Robert Millan <rmh@aybabtu.com>
28147
28148 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
28149
28150 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
28151 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
28152 (grub_machine_mmap_iterate): New function declaration.
28153 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
28154 structure.
28155 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
28156 macros.
28157
28158 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
28159 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
28160 Move e820 parsing from here ...
28161 * kern/i386/pc/mmap.c: New file.
28162 (grub_machine_mmap_iterate): ... to here.
28163
28164 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
28165 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
28166 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
28167 (grub_available_iterate): Redeclare to return `void', and redeclare
28168 its hook to use grub_uint64_t as addr and size parameters, and rename
28169 to ...
28170 (grub_machine_mmap_iterate): ... this. Update all users.
28171
28172 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
28173 to make it more readable. Rename to ...
28174 (grub_machine_mmap_iterate): ... this.
28175
28176 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
28177 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
28178 (grub_multiboot): Allocate an extra region after the payload, and fill
28179 it with a Multiboot memory map. Adjust a.out loader to calculate size
28180 with the extra space.
28181 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
28182 with the extra space.
28183
28184 2008-08-17 Carles Pina i Estany <carles@pina.cat>
28185
28186 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
28187
28188 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
28189
28190 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
28191 mdate-sh to the list `find' searches for.
28192 * DISTLIST: Regenerated.
28193
28194 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
28195
28196 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
28197 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
28198 genmoddep.awk, gensymlist.sh.in.
28199 (DISTDIRS): Add bus, docs, hook, lib.
28200 * DISTLIST: Regenerated.
28201 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
28202
28203 2008-08-16 Robert Millan <rmh@aybabtu.com>
28204
28205 * disk/raid.c (grub_raid_init): Handle/report errors set by
28206 grub_device_iterate().
28207 * disk/lvm.c (grub_lvm_init): Likewise.
28208
28209 2008-08-15 Bean <bean123ch@gmail.com>
28210
28211 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28212 and datehook.mod.
28213 (datetime_mod_SOURCES): New macro.
28214 (datetime_mod_CFLAGS): Likewise.
28215 (datetime_mod_LDFLAGS): Likewise.
28216 (date_mod_SOURCES): Likewise.
28217 (date_mod_CFLAGS): Likewise.
28218 (date_mod_LDFLAGS): Likewise.
28219 (datehook_mod_SOURCES): Likewise.
28220 (datehook_mod_CFLAGS): Likewise.
28221 (datehook_mod_LDFLAGS): Likewise.
28222
28223 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28224 and datehook.mod.
28225 (datetime_mod_SOURCES): New macro.
28226 (datetime_mod_CFLAGS): Likewise.
28227 (datetime_mod_LDFLAGS): Likewise.
28228 (date_mod_SOURCES): Likewise.
28229 (date_mod_CFLAGS): Likewise.
28230 (date_mod_LDFLAGS): Likewise.
28231 (datehook_mod_SOURCES): Likewise.
28232 (datehook_mod_CFLAGS): Likewise.
28233 (datehook_mod_LDFLAGS): Likewise.
28234
28235 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28236 and datehook.mod.
28237 (datetime_mod_SOURCES): New macro.
28238 (datetime_mod_CFLAGS): Likewise.
28239 (datetime_mod_LDFLAGS): Likewise.
28240 (date_mod_SOURCES): Likewise.
28241 (date_mod_CFLAGS): Likewise.
28242 (date_mod_LDFLAGS): Likewise.
28243 (datehook_mod_SOURCES): Likewise.
28244 (datehook_mod_CFLAGS): Likewise.
28245 (datehook_mod_LDFLAGS): Likewise.
28246
28247 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28248 and datehook.mod.
28249 (datetime_mod_SOURCES): New macro.
28250 (datetime_mod_CFLAGS): Likewise.
28251 (datetime_mod_LDFLAGS): Likewise.
28252 (date_mod_SOURCES): Likewise.
28253 (date_mod_CFLAGS): Likewise.
28254 (date_mod_LDFLAGS): Likewise.
28255 (datehook_mod_SOURCES): Likewise.
28256 (datehook_mod_CFLAGS): Likewise.
28257 (datehook_mod_LDFLAGS): Likewise.
28258
28259 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28260 and datehook.mod.
28261 (datetime_mod_SOURCES): New macro.
28262 (datetime_mod_CFLAGS): Likewise.
28263 (datetime_mod_LDFLAGS): Likewise.
28264 (date_mod_SOURCES): Likewise.
28265 (date_mod_CFLAGS): Likewise.
28266 (date_mod_LDFLAGS): Likewise.
28267 (datehook_mod_SOURCES): Likewise.
28268 (datehook_mod_CFLAGS): Likewise.
28269 (datehook_mod_LDFLAGS): Likewise.
28270
28271 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
28272
28273 * commands/date.c: New file.
28274
28275 * hook/datehook.c: Likewise.
28276
28277 * include/grub/lib/datetime.h: Likewise.
28278
28279 * include/grub/i386/cmos.h: Likewise.
28280
28281 * lib/datetime.c: Likewise.
28282
28283 * lib/i386/datetime.c: Likewise.
28284
28285 * lib/efi/datetime.c: Likewise.
28286
28287 2008-08-14 Robert Millan <rmh@aybabtu.com>
28288
28289 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
28290 (grub_mkelfimage_SOURCES): New variable.
28291 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
28292
28293 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
28294 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
28295 * conf/powerpc-ieee1275.rmk: Likewise.
28296 * conf/i386-ieee1275.rmk: Likewise.
28297
28298 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
28299 * kern/i386/coreboot/init.c: Likewise.
28300
28301 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
28302 with `<grub/cpu/kernel.h>'.
28303 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
28304 to ...
28305 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
28306 * kern/i386/coreboot/startup.S: Likewise.
28307
28308 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
28309 (GRUB_MOD_GAP): Remove.
28310 * include/grub/powerpc/kernel.h: New file.
28311 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
28312 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28313 * include/grub/i386/kernel.h: New file.
28314 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
28315 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
28316 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28317
28318 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
28319 `grub-mkelfimage'.
28320 Use --directory when invoking grub_mkimage.
28321
28322 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28323 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28324 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28325 and GRUB_KERNEL_CPU_PREFIX.
28326
28327 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28328
28329 * include/grub/err.h (grub_err_printf): New function prototype.
28330 * util/misc.c (grub_err_printf): New function.
28331 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28332 grub_printf.
28333 * kern/err.c (grub_print_error): Use grub_err_printf.
28334
28335 2008-08-13 Robert Millan <rmh@aybabtu.com>
28336
28337 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28338
28339 2008-08-13 Robert Millan <rmh@aybabtu.com>
28340
28341 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28342 boot entry.
28343
28344 2008-08-12 Robert Millan <rmh@aybabtu.com>
28345
28346 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28347 of the relocation code from here ...
28348 (grub_multiboot): ... to here.
28349 (forward_relocator, backward_relocator): Move from here ...
28350 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28351 (grub_multiboot_backward_relocator): ... to here.
28352 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28353 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28354 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28355 (grub_multiboot_forward_relocator_end)
28356 (grub_multiboot_backward_relocator)
28357 (grub_multiboot_backward_relocator_end): New variables.
28358
28359 2008-08-12 Bean <bean123ch@gmail.com>
28360
28361 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28362
28363 2008-08-11 Robert Millan <rmh@aybabtu.com>
28364
28365 * kern/i386/linuxbios/startup.S: Move from here ...
28366 * kern/i386/coreboot/startup.S: ... to here.
28367
28368 * kern/i386/linuxbios/init.c: Move from here ...
28369 * kern/i386/coreboot/init.c: ... to here.
28370
28371 * kern/i386/linuxbios/table.c: Move from here ...
28372 * kern/i386/coreboot/mmap.c: ... to here.
28373
28374 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28375
28376 2008-08-11 Robert Millan <rmh@aybabtu.com>
28377
28378 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28379 errors. Leave it to the upper layer to handle them.
28380
28381 2008-08-09 Christian Franke <franke@computer.org>
28382
28383 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28384 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28385 Install `grub.d/10_windows' only on Cygwin.
28386 * configure.ac: Add subst of `target_os'.
28387 Check `target_os' also before setting TARGET_OBJ2ELF.
28388 Add `--enable-grub-pe2elf'.
28389
28390 2008-08-08 Robert Millan <rmh@aybabtu.com>
28391
28392 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28393 (grub_last_time): Change type to grub_uint64_t.
28394 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28395 (grub_disk_close): Likewise.
28396
28397 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28398 (run_menu): Migrate code from to using grub_get_time_ms().
28399
28400 * util/misc.c (grub_get_time_ms): New function.
28401
28402 2008-08-08 Marco Gerards <marco@gnu.org>
28403
28404 * disk/ata.c (grub_ata_regget): Change return type to
28405 `grub_uint8_t'.
28406 (grub_ata_regget2): Likewise.
28407 (grub_ata_wait_status): New function.
28408 (grub_ata_wait_busy): Removed function, updated all users to use
28409 `grub_ata_wait_status'.
28410 (grub_ata_wait_drq): Likewise.
28411 (grub_ata_cmd): New function.
28412 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28413 error handling.
28414 (grub_ata_pio_write): Add error handling.
28415 (grub_atapi_identify): Likewise.
28416 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28417 handling.
28418 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28419 handling. Actually use the detected registers. Reorder the
28420 detection logic such that it is easier to read.
28421 (grub_ata_pciinit): Do not assign the same ID to each controller.
28422 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28423 handling.
28424 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28425
28426 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28427
28428 2008-08-08 Marco Gerards <marco@gnu.org>
28429
28430 * NEWS: Update.
28431
28432 2008-08-07 Bean <bean123ch@gmail.com>
28433
28434 * include/grub/x86_64/pci.h: New file.
28435
28436 2008-08-07 Christian Franke <franke@computer.org>
28437
28438 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28439 (TIMER2_GATE): Likewise.
28440 (grub_pit_wait): Add enable/disable of the timer2 gate
28441 bit of port 0x61. This fixes a possible infinite loop.
28442
28443 2008-08-07 Bean <bean123ch@gmail.com>
28444
28445 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28446 kern/i386/tsc.c and kern/i386/pit.c.
28447
28448 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28449 x86_64 platform.
28450
28451 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28452 <grub/i386/tsc.h>.
28453
28454 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28455
28456 2008-08-07 Bean <bean123ch@gmail.com>
28457
28458 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28459
28460 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28461
28462 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28463 multiple inclusion. Add #include <grub/types.h>.
28464
28465 2008-08-06 Christian Franke <franke@computer.org>
28466
28467 * conf/common.rmk: Build and install `10_windows'.
28468 * util/grub.d/10_windows.in: New script.
28469
28470 2008-08-06 Pavel Roskin <proski@gnu.org>
28471
28472 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28473
28474 2008-08-06 Robert Millan <rmh@aybabtu.com>
28475
28476 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28477 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28478
28479 2008-08-06 Bean <bean123ch@gmail.com>
28480
28481 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28482 (grub_pxefs_fs_int): Remove dummy definition.
28483 (grub_pxefs_open): Use data->block_size to store the current block
28484 size setting.
28485 (grub_pxefs_read): Use block size stored in data->block_size. As the
28486 value of grub_pxe_blksize can be changed after the file is opened.
28487
28488 2008-08-06 Bean <bean123ch@gmail.com>
28489
28490 * fs/i386/pc/pxe.c (curr_file): new variable.
28491 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28492 require the dummy internal file system anymore.
28493 (grub_pxefs_read): Removed.
28494 (grub_pxefs_close): Likewise.
28495 (grub_pxefs_fs_int): Likewise.
28496 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28497 connection when we switch file.
28498 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28499
28500 2008-08-06 Robert Millan <rmh@aybabtu.com>
28501
28502 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28503 `halt.mod'.
28504 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28505 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28506
28507 * kern/i386/halt.c: New file.
28508 * kern/i386/reboot.c: Likewise.
28509 * include/grub/i386/reboot.h: Likewise.
28510 * include/grub/i386/halt.h: Likewise.
28511
28512 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28513 Include `<grub/cpu/halt.h>'.
28514 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28515 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28516
28517 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28518 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28519 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28520 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28521 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28522 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28523 from here ...
28524 * include/grub/i386/at_keyboard.h: ... to here.
28525
28526 2008-08-05 Robert Millan <rmh@aybabtu.com>
28527
28528 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28529 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28530 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28531 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28532 `kern/generic/millisleep.c'.
28533
28534 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28535 instead of grub_get_rtc().
28536 (grub_tsc_init): Initialize `tsc_boot_time'.
28537
28538 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28539 (grub_machine_init): Use grub_tsc_init() rather than
28540 installing an RTC-based handler via grub_install_get_time_ms().
28541
28542 * kern/i386/pit.c: New file.
28543 * include/grub/i386/pit.h: Likewise.
28544
28545 2008-08-05 Bean <bean123ch@gmail.com>
28546
28547 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28548
28549 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28550 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28551 (pxe_mod_SOURCES): New macro.
28552 (pxe_mod_CFLAGS): Likewise.
28553 (pxe_mod_LDFLAGS): Likewise.
28554 (pxecmd_mod_SOURCES): Likewise.
28555 (pxecmd_mod_CFLAGS): Likewise.
28556 (pxecmd_mod_LDFLAGS): Likewise.
28557
28558 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28559 (grub_pxe_call): Likewise.
28560
28561 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28562
28563 * commands/i386/pc/pxecmd.c: New file.
28564
28565 * fs/i386/pc/pxe.c: Likewise.
28566
28567 * include/grub/i386/pc/pxe.h: Likewise.
28568
28569 2008-08-05 Bean <bean123ch@gmail.com>
28570
28571 * util/console.c (grub_console_cur_color): New variable.
28572 (grub_console_standard_color): Likewise.
28573 (grub_console_normal_color): Likewise.
28574 (grub_console_highlight_color): Likewise.
28575 (color_map): Likewise.
28576 (use_color): Likewise.
28577 (NUM_COLORS): New macro.
28578 (grub_ncurses_setcolorstate): Handle color properly.
28579 (grub_ncurses_setcolor): Don't change color here, just remember the
28580 settings, color will be set in grub_ncurses_setcolorstate.
28581 (grub_ncurses_getcolor): New function.
28582 (grub_ncurses_init): Initialize color pairs.
28583 (grub_ncurses_term): New member grub_ncurses_getcolor.
28584
28585 2008-08-05 Colin D Bennett <colin@gibibit.com>
28586
28587 High resolution timer support. Implemented for x86 CPUs using TSC.
28588 Extracted generic grub_millisleep() so it's linked in only as needed.
28589 This requires a Pentium compatible CPU; if the RDTSC instruction is
28590 not supported, then it falls back on the generic grub_get_time_ms()
28591 implementation that uses the machine's RTC.
28592
28593 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28594 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28595 `kern/generic/millisleep.c'.
28596
28597 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28598 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28599
28600 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28601 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28602
28603 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28604
28605 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28606 `kern/generic/millisleep.c'.
28607
28608 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28609
28610 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28611
28612 * kern/generic/rtc_get_time_ms.c: New file.
28613
28614 * kern/generic/millisleep.c: New file.
28615
28616 * kern/misc.c: Don't include
28617 <kern/time.h> anymore.
28618 (grub_millisleep_generic): Removed.
28619
28620 * commands/sleep.c (grub_interruptible_millisleep): Uses
28621 grub_get_time_ms() instead of grub_get_rtc().
28622
28623 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28624 function.
28625 (grub_cpu_is_cpuid_supported): New inline function.
28626 (grub_cpu_is_tsc_supported): New inline function.
28627 (grub_tsc_init): New function prototype.
28628 (grub_tsc_get_time_ms): New function prototype.
28629
28630 * kern/i386/tsc.c (grub_get_time_ms): New file.
28631
28632 * include/grub/time.h: Include <grub/types.h.
28633 (grub_millisleep_generic): Removed.
28634 (grub_get_time_ms): New prototype.
28635 (grub_install_get_time_ms): New prototype.
28636 (grub_rtc_get_time_ms): New prototype.
28637
28638 * kern/time.c (grub_get_time_ms): New function.
28639 (grub_install_get_time_ms): New function.
28640
28641 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28642 <grub/time.h> anymore.
28643 (grub_millisleep): Removed.
28644 (grub_machine_init): Call grub_tsc_init.
28645
28646 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28647 get_time_ms() implementation.
28648
28649 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
28650 (ieee1275_get_time_ms): New function.
28651 (grub_machine_init): Install get_time_ms() implementation.
28652
28653 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28654 (grub_machine_init): Call grub_tsc_init().
28655 (grub_millisleep): Removed.
28656
28657 * kern/ieee1275/init.c (grub_millisleep): Removed.
28658 (grub_machine_init): Install ieee1275_get_time_ms()
28659 implementation.
28660 (ieee1275_get_time_ms): New function.
28661 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28662 real work.
28663
28664 2008-08-05 Marco Gerards <marco@gnu.org>
28665
28666 * disk/ata.c: Include <grub/pci.h>.
28667 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
28668 (grub_ata_initialize): Rewritten.
28669 (grub_ata_device_initialize): New function.
28670
28671 2008-08-04 Pavel Roskin <proski@gnu.org>
28672
28673 * kern/main.c: Include grub/mm.h.
28674
28675 2008-08-04 Robert Millan <rmh@aybabtu.com>
28676
28677 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28678 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28679 corruption problem).
28680
28681 2008-08-04 Robert Millan <rmh@aybabtu.com>
28682
28683 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28684 warnings introduced in my last commit.
28685
28686 2008-08-03 Robert Millan <rmh@aybabtu.com>
28687
28688 Make PCI available on all i386 architectures.
28689
28690 * include/grub/i386/pc/pci.h: Move from here ...
28691 * include/grub/i386/pci.h: ... to here.
28692
28693 * include/grub/i386/pc/pci.h: Remove.
28694 * include/grub/i386/efi/pci.h: Remove.
28695 * include/grub/x86_64/efi/pci.h: Remove.
28696
28697 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28698 `<grub/cpu/pci.h>'.
28699
28700 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
28701 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
28702 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
28703
28704 * conf/i386-ieee1275.rmk: Likewise.
28705
28706 2008-08-03 Robert Millan <rmh@aybabtu.com>
28707
28708 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
28709 (grub_console_setcursor): Make it possible to set cursor off.
28710
28711 2008-08-03 Robert Millan <rmh@aybabtu.com>
28712
28713 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
28714 of modules instead of assuming which platform provides what.
28715 * util/update-grub.in: Likewise.
28716
28717 2008-08-03 Robert Millan <rmh@aybabtu.com>
28718
28719 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
28720 instead of `grub_install_dos_part' to determine whether a drive needs
28721 to be prepended to prefix (`grub_install_dos_part' is not reliable,
28722 because it can be overridden when loading GRUB via Multiboot).
28723
28724 2008-08-02 Robert Millan <rmh@aybabtu.com>
28725
28726 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
28727
28728 2008-08-02 Robert Millan <rmh@aybabtu.com>
28729
28730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
28731 of informational grub_dprintf() calls.
28732
28733 2008-08-02 Robert Millan <rmh@aybabtu.com>
28734
28735 * disk/memdisk.c (memdisk_size): Don't initialize.
28736 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
28737
28738 * include/grub/i386/pc/kernel.h
28739 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
28740 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
28741 (grub_memdisk_image_size, grub_arch_memdisk_addr)
28742 (grub_arch_memdisk_size): Remove.
28743
28744 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
28745 field (was only used to transfer a constant). Add `type' field to
28746 support multiple module types.
28747 (grub_module_iterate): New function.
28748
28749 * kern/device.c (grub_device_open): Do not hide error messages
28750 when grub_disk_open() fails. Use grub_print_error() instead.
28751
28752 * kern/i386/pc/init.c (grub_arch_modules_addr)
28753 (grub_arch_memdisk_size): Remove functions.
28754 (grub_arch_modules_addr): Return the module address in high memory
28755 (now that it isn't copied anymore).
28756
28757 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
28758 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
28759 decompression routine (grub_total_module_size already includes that
28760 now). Don't copy modules back to low memory.
28761
28762 * kern/main.c: Include `<grub/mm.h>'.
28763 (grub_load_modules): Split out (and use) ...
28764 (grub_module_iterate): ... this function, which iterates through
28765 module objects and runs a hook.
28766 Comment out grub_mm_init_region() call, as it would cause non-ELF
28767 modules to be overwritten.
28768
28769 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
28770 the memdisk image in its own region, make it part of the module list.
28771 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
28772 (main): Parse --memdisk|-m option, and pass user-provided path as
28773 parameter to generate_image().
28774 (add_segments): Pass `memdisk_path' down to load_modules().
28775 (load_modules): Embed memdisk image in module section when requested.
28776 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
28777 `header.type' instead of `header.offset'.
28778
28779 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
28780 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
28781 (memdisk_mod_LDFLAGS): New variables.
28782 * conf/i386-coreboot.rmk: Likewise.
28783 * conf/i386-ieee1275.rmk: Likewise.
28784
28785 2008-08-02 Robert Millan <rmh@aybabtu.com>
28786
28787 * loader/i386/pc/multiboot.c (playground, forward_relocator)
28788 (backward_relocator): New variables. Used to allocate and relocate
28789 the payload, respectively.
28790 (grub_multiboot_load_elf32): Load into heap instead of requested
28791 address, install the appropriate relocator code in each bound of
28792 the payload, and set the entry point such that
28793 grub_multiboot_real_boot() will jump to one of them.
28794
28795 * kern/i386/loader.S (grub_multiboot_payload_size)
28796 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28797 (grub_multiboot_payload_entry_offset): New variables.
28798 (grub_multiboot_real_boot): Set cpu context to what the relocator
28799 expects, and jump to the relocator instead of the payload.
28800
28801 * include/grub/i386/loader.h (grub_multiboot_payload_size)
28802 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28803 (grub_multiboot_payload_entry_offset): Export.
28804
28805 2008-08-01 Bean <bean123ch@gmail.com>
28806
28807 * normal/menu_entry.c (editor_getline): Don't return the original
28808 string as result, as it will be released by lexer once it has done
28809 using it.
28810
28811 2008-08-01 Robert Millan <rmh@aybabtu.com>
28812
28813 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
28814 within menuentries, not before them.
28815 util/grub.d/10_hurd.in: Likewise.
28816
28817 2008-08-01 Bean <bean123ch@gmail.com>
28818
28819 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
28820 (bufio_mod_SOURCES): New macro.
28821 (bufio_mod_CFLAGS): Likewise.
28822 (bufio_mod_LDFLAGS): Likewise.
28823
28824 * include/grub/bufio.h: New file.
28825
28826 * io/bufio.c: Likewise.
28827
28828 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
28829 (grub_video_reader_png): Use grub_buffile_open to open file.
28830
28831 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
28832 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
28833
28834 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
28835 (grub_video_reader_tga): Use grub_buffile_open to open file.
28836
28837 * font/manager.c: Include <grub/bufio.h>.
28838 (add_font): Use grub_buffile_open to open file.
28839
28840 2008-07-31 Robert Millan <rmh@aybabtu.com>
28841
28842 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
28843 ELF segments, use a macro for arbitrarily accessing any of them instead
28844 of preparing a pointer that allows access to one at a time.
28845 (grub_multiboot_load_elf64): Likewise.
28846
28847 2008-07-31 Bean <bean123ch@gmail.com>
28848
28849 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
28850 GRUB_KERNEL_MACHINE_DATA_END.
28851
28852 2008-07-30 Robert Millan <rmh@aybabtu.com>
28853
28854 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
28855 Increase from 0x50 to 0x60.
28856 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
28857 use UUIDs to identify the root drive for them. If that's not
28858 possible, abort.
28859 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
28860 check, for cross-disk installs.
28861
28862 2008-07-30 Robert Millan <rmh@aybabtu.com>
28863
28864 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
28865 is non-empty, use it to set the `prefix' environment variable instead
28866 of the usual approach.
28867 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
28868 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
28869 environment variable instead of dummy make_install_device().
28870
28871 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
28872 (start): Insert a data section, with `grub_prefix' variable.
28873 * kern/i386/linuxbios/startup.S: Likewise.
28874
28875 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
28876 New variable reference.
28877 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
28878 New macro. Defines offset of `grub_prefix' within startup.S (relative
28879 to `start').
28880 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
28881 section within startup.S (relative to `start').
28882 * include/grub/i386/coreboot/kernel.h: Likewise.
28883
28884 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
28885 Overwrite grub_prefix with its contents, at the beginning of the
28886 first segment.
28887 (main): Understand -p|--prefix.
28888
28889 2008-07-30 Robert Millan <rmh@aybabtu.com>
28890
28891 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
28892
28893 2008-07-30 Robert Millan <rmh@aybabtu.com>
28894
28895 * term/i386/pc/vga_text.c (grub_console_cls): Use
28896 grub_console_gotoxy() to go back to beginning of the screen.
28897 Found by Patrick Georgi <patrick.georgi@coresystems.de>
28898
28899 2008-07-29 Christian Franke <franke@computer.org>
28900
28901 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28902 Add conversion of emulated mount points on Cygwin.
28903
28904 2008-07-29 Christian Franke <franke@computer.org>
28905
28906 * util/update-grub.in: Add a check for admin
28907 group on Cygwin.
28908 Remove old `grub.cfg.new' before creation.
28909 Add `-f' to `mv' to handle the different filesystem
28910 semantics of Windows.
28911
28912 2008-07-29 Bean <bean123ch@gmail.com>
28913
28914 * normal/main.c (get_line): Fix buffer overflow bug.
28915
28916 2008-07-28 Robert Millan <rmh@aybabtu.com>
28917
28918 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
28919 (struct grub_apple_header): New struct. Describes the layout of
28920 the partmap header.
28921 (apple_partition_map_iterate): Check the header magic as well as the
28922 partition magic (which was already being checked).
28923
28924 2008-07-28 Pavel Roskin <proski@gnu.org>
28925
28926 * genmk.rb: Add a warning to the beginning of the output that
28927 it's a generated file and should not be edited.
28928
28929 2008-07-28 Robert Millan <rmh@aybabtu.com>
28930
28931 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28932 with the same number are found, just use issue a warning with
28933 grub_dprintf(), as this error has been reported to be non-fatal.
28934
28935 2008-07-27 Robert Millan <rmh@aybabtu.com>
28936
28937 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28938 information.
28939
28940 2008-07-27 Bean <bean123ch@gmail.com>
28941
28942 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28943 (grub_fat_find_dir): Ignore case when comparing filename.
28944
28945 2008-07-27 Bean <bean123ch@gmail.com>
28946
28947 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
28948 smallino, as it's more descriptive, and i8count can be confused with
28949 the other field count.
28950 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
28951 inode type.
28952
28953 2008-07-27 Bean <bean123ch@gmail.com>
28954
28955 * commands/crc.c: New file.
28956
28957 * lib/crc.c: Likewise.
28958
28959 * include/grub/lib/crc.h: Likewise.
28960
28961 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
28962
28963 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
28964 (hexdump): Move this function to ...
28965
28966 * lib/hexdump.c: ... here.
28967
28968 * include/grub/hexdump.h: Renamed to ...
28969
28970 * include/grub/lib/hexdump.h: ... this.
28971
28972 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
28973
28974 * util/grub-editenv.c: Likewise.
28975
28976 * include/envblk.h: Renamed to ...
28977
28978 * include/lib/envblk.h: ... this.
28979
28980 * util/envblk.c: Renamed to ...
28981
28982 * lib/envblk.c: ... this.
28983
28984 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
28985 lib/hexdump.c.
28986 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
28987 (pkglib_MODULES): Add crc.mod.
28988 (hexdump_mod_SOURCES): Add lib/hexdump.c.
28989 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
28990 (crc_mod_SOURCES): New macro.
28991 (crc_mod_CFLAGS): Likewise.
28992 (crc_mod_LDFLAGS): Likewise.
28993
28994 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
28995
28996 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28997
28998 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28999
29000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29001
29002 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29003
29004 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
29005
29006 * commands/help.c: Include <grub/term.h>.
29007 (TERM_WIDTH): Removed. Updated all users.
29008
29009 2008-07-27 Pavel Roskin <proski@gnu.org>
29010
29011 * util/getroot.c (find_root_device): Rephrase a comment to avoid
29012 spurious warnings about a comment within a comment.
29013
29014 2008-07-25 Robert Millan <rmh@aybabtu.com>
29015
29016 * util/getroot.c (find_root_device): Skip devices that match
29017 /dev/dm-[0-9]. This lets the real device be found for any type of
29018 abstraction (LVM, EVMS, RAID..).
29019 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
29020 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
29021 device is found first, find_root_device() will now skip it.
29022
29023 2008-07-24 Pavel Roskin <proski@gnu.org>
29024
29025 * include/grub/types.h: Use __builtin_bswap32() and
29026 __builtin_bswap64() with gcc 4.3 and newer.
29027
29028 2008-07-24 Christian Franke <franke@computer.org>
29029
29030 * util/i386/pc/grub-install.in: If `--debug' is specified,
29031 pass `--verbose' to grub-setup.
29032 Abort script if make_system_path_relative_to_its_root() fails.
29033
29034 2008-07-24 Bean <bean123ch@gmail.com>
29035
29036 * configure.ac: Fixed a bug caused by the previous cygwin patch,
29037 variable `target_platform' should be `platform'.
29038
29039 2008-07-24 Bean <bean123ch@gmail.com>
29040
29041 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
29042 (grub_png_init_fixed_block): New function.
29043 (grub_png_decode_image_data): Handle fixed huffman code compression.
29044
29045 2008-07-24 Bean <bean123ch@gmail.com>
29046
29047 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
29048 (grub_pe2elf_SOURCES): New macro.
29049 (CLEANFILES): Add grub-pe2elf.
29050
29051 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
29052 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
29053 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
29054 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
29055 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
29056 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
29057 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
29058 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
29059 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
29060 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
29061 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
29062 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
29063 (GRUB_PE32_DT_FUNCTION): Likewise.
29064 (GRUB_PE32_REL_I386_DIR32): Likewise.
29065 (GRUB_PE32_REL_I386_REL32): Likewise.
29066 (grub_pe32_symbol): New structure.
29067 (grub_pe32_reloc): Likewise.
29068
29069 * util/grub-pe2elf.c: New file.
29070
29071 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
29072 start symbol in non pc platform.
29073
29074 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
29075
29076 The following patches are from Christian Franke.
29077
29078 * include/grub/dl.h: Remove .previous, gas supports this only
29079 for ELF format.
29080
29081 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
29082 Remove .type, gas supports this only for ELF format.
29083
29084 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
29085 nullbytes in symbol table. This fixes an infinite loop if table is
29086 zero filled.
29087
29088 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
29089 TARGET_IMG_LDFLAGS and EXEEXT.
29090
29091 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
29092 TARGET_IMG_LDFLAGS_AC.
29093 (grub_CHECK_STACK_ARG_PROBE): New function.
29094
29095 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
29096
29097 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
29098
29099 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
29100 to set TARGET_IMG_LD* accordingly.
29101 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
29102 Add call to grub_CHECK_STACK_ARG_PROBE.
29103 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
29104
29105 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
29106
29107 * genmk.rb: Add EXEEXT to CLEANFILES.
29108
29109 2008-07-23 Robert Millan <rmh@aybabtu.com>
29110
29111 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
29112 define the codes for arrows and lines used for the menu).
29113 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
29114 as well.
29115
29116 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
29117 fonts, because the latter are too slow.
29118
29119 2008-07-21 Bean <bean123ch@gmail.com>
29120
29121 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
29122 a20. Run keyboard test last, as it will cause macbook to halt.
29123
29124 2008-07-18 Pavel Roskin <proski@gnu.org>
29125
29126 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
29127 load foreign architecture modules correctly anyway. Keep
29128 support for loading host architecture modules, whether we
29129 compile them or not.
29130
29131 2008-07-17 Pavel Roskin <proski@gnu.org>
29132
29133 * configure.ac: Use -m32 or -m64 regardless of whether we had to
29134 change target_cpu. The compiler default can mismatch target_cpu
29135 in any case.
29136
29137 * disk/efi/efidisk.c: Fix format warnings on x86_64.
29138 * kern/efi/efi.c: Likewise.
29139
29140 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
29141 target compiler is functional.
29142 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
29143 are set up.
29144
29145 * configure.ac: Default to efi platform for x86_64-apple. Allow
29146 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
29147 adjustments from the rest, only do them if target is not
29148 explicitly given. Merge other adjustments with the final sanity
29149 check. Remove an extraneous check for supported CPU. Be
29150 specific which CPU and which platform is not supported.
29151
29152 * configure.ac: Default to pc platform for x86_64.
29153
29154 2008-07-17 Robert Millan <rmh@aybabtu.com>
29155
29156 Partial LinuxBIOS -> Coreboot rename.
29157
29158 * conf/i386-linuxbios.rmk: Renamed to ...
29159 * conf/i386-coreboot.rmk: ... this.
29160 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
29161 * configure.ac: Accept "coreboot" as input platform (but maintain
29162 compatibility with "linuxbios").
29163 * include/grub/i386/linuxbios: Renamed to ...
29164 * include/grub/i386/coreboot: ... this.
29165
29166 2008-07-17 Bean <bean123ch@gmail.com>
29167
29168 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
29169 (appleldr_mod_SOURCE): New variable.
29170 (appleldr_mod_CFLAGS): Likewise.
29171 (appleldr_mod_LDFLAGS): Likewise.
29172 (pci_mod_SOURCES): Likewise.
29173 (pci_mod_CFLAGS): Likewise.
29174 (pci_mod_LDFLAGS): Likewise.
29175 (lspci_mod_SOURCES): Likewise.
29176 (lspci_mod_CFLAGS): Likewise.
29177 (lspci_mod_LDFLAGS): Likewise.
29178
29179 * conf/x86_64-efi.rmk: New file.
29180
29181 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
29182 macro.
29183 (grub_efidisk_write): Likewise.
29184
29185 * include/efi/api.h (efi_call_0): New macro.
29186 (efi_call_1): Likewise.
29187 (efi_call_2): Likewise.
29188 (efi_call_3): Likewise.
29189 (efi_call_4): Likewise.
29190 (efi_call_5): Likewise.
29191 (efi_call_6): Likewise.
29192
29193 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
29194 grub_rescue_cmd_chainloader.
29195
29196 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
29197 (grub_pe32_optional_header): Change some fields based on i386 or
29198 x86_64 platform.
29199 (GRUB_PE32_PE32_MAGIC): Likewise.
29200
29201 * include/grub/efi/uga_draw.h: New file.
29202
29203 * include/grub/elf.h (STN_ABS): New constant.
29204 (R_X86_64_NONE): Relocation constant for x86_64.
29205 (R_X86_64_64): Likewise.
29206 (R_X86_64_PC32): Likewise.
29207 (R_X86_64_GOT32): Likewise.
29208 (R_X86_64_PLT32): Likewise.
29209 (R_X86_64_COPY): Likewise.
29210 (R_X86_64_GLOB_DAT): Likewise.
29211 (R_X86_64_JUMP_SLOT): Likewise.
29212 (R_X86_64_RELATIVE): Likewise.
29213 (R_X86_64_GOTPCREL): Likewise.
29214 (R_X86_64_32): Likewise.
29215 (R_X86_64_32S): Likewise.
29216 (R_X86_64_16): Likewise.
29217 (R_X86_64_PC16): Likewise.
29218 (R_X86_64_8): Likewise.
29219 (R_X86_64_PC8): Likewise.
29220
29221 * include/grub/i386/efi/pci.h: New file.
29222
29223 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
29224 Change it value based on platform.
29225 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
29226 (GRUB_E820_RAM): Likewise.
29227 (GRUB_E820_RESERVED): Likewise.
29228 (GRUB_E820_ACPI): Likewise.
29229 (GRUB_E820_NVS): Likewise.
29230 (GRUB_E820_EXEC_CODE): Likewise.
29231 (GRUB_E820_MAX_ENTRY): Likewise.
29232 (grub_e820_mmap): New structure.
29233 (linux_kernel_header): Change the efi field according to different
29234 kernel version, also field from linux_kernel_header.
29235
29236 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
29237
29238 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
29239 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
29240 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
29241 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
29242 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
29243 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
29244 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
29245 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
29246 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
29247 (GRUB_PCI_ADDR_IO_MASK): Likewise.
29248
29249 * include/grub/x86_64/efi/kernel.h: New file.
29250
29251 * include/grub/x86_64/efi/loader.h: Likewise.
29252
29253 * include/grub/x86_64/efi/machine.h: Likewise.
29254
29255 * include/grub/x86_64/efi/pci.h: Likewise.
29256
29257 * include/grub/x86_64/efi/time.h: Likewise.
29258
29259 * include/grub/x86_64/linux.h: Likewise.
29260
29261 * include/grub/x86_64/setjmp.h: Likewise.
29262
29263 * include/grub/x86_64/time.h: Likewise.
29264
29265 * include/grub/x86_64/types.h: Likewise.
29266
29267 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
29268 GRUB_TARGET_SIZEOF_VOID_P.
29269
29270 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
29271 (grub_efi_locate_handle): Likewise.
29272 (grub_efi_open_protocol): Likewise.
29273 (grub_efi_set_text_mode): Likewise.
29274 (grub_efi_stall): Likewise.
29275 (grub_exit): Likewise.
29276 (grub_reboot): Likewise.
29277 (grub_halt): Likewise.
29278 (grub_efi_exit_boot_services): Likewise.
29279 (grub_get_rtc): Likewise.
29280
29281 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
29282 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
29283 (grub_efi_allocate_pages): Wrap efi calls.
29284 (grub_efi_free_pages): Wrap efi calls.
29285 (grub_efi_get_memory_map): Wrap efi calls.
29286
29287 * kern/x86_64/dl.c: New file.
29288
29289 * kern/x86_64/efi/callwrap.S: Likewise.
29290
29291 * kern/x86_64/efi/startup.S: Likewise.
29292
29293 * loader/efi/appleloader.c: Likewise.
29294
29295 * loader/efi/chainloader.c (cmdline): New variable.
29296 (grub_chainloader_unload): Wrap efi calls.
29297 (grub_chainloader_boot): Likewise.
29298 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
29299 command line.
29300
29301 * loader/efi/chainloader_normal.c (chainloader_command):
29302 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
29303 command line.
29304
29305 * loader/i386/efi/linux.c (allocate_pages): Change allocation
29306 method.
29307 (grub_e820_add_region): New function.
29308 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
29309 booting.
29310 (grub_find_video_card): New function.
29311 (grub_linux_setup_video): New function.
29312 (grub_rescue_cmd_linux): Probe for video information.
29313
29314 * normal/x86_64/setjmp.S: New file.
29315
29316 * term/efi/console.c (map_char): New function.
29317 (grub_console_putchar): Map unicode char.
29318 (grub_console_checkkey): Wrap efi calls.
29319 (grub_console_getkey): Likewise.
29320 (grub_console_getwh): Likewise.
29321 (grub_console_gotoxy): Likewise.
29322 (grub_console_cls): Likewise.
29323 (grub_console_setcolorstate): Likewise.
29324 (grub_console_setcursor): Likewise.
29325
29326 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29327
29328 2008-07-16 Pavel Roskin <proski@gnu.org>
29329
29330 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29331 format strings.
29332
29333 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29334 pointer, not an integer. This fixes a warning and prevents
29335 precision loss on 64-bit systems.
29336 (relocate_addresses): Remove unneeded cast.
29337
29338 2008-07-15 Pavel Roskin <proski@gnu.org>
29339
29340 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29341
29342 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29343
29344 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29345 Fix comparison between signed and unsigned.
29346
29347 * include/grub/i386/ieee1275/console.h: Declare
29348 grub_console_init() and grub_console_fini().
29349
29350 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29351 It's empty and unused.
29352
29353 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29354 beginning to avoid warnings with some compilers.
29355
29356 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29357 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29358
29359 2008-07-14 Pavel Roskin <proski@gnu.org>
29360
29361 * kern/env.c (grub_register_variable_hook): Don't copy empty
29362 string, it leaks memory. Pass "" to grub_env_set(), it should
29363 handle constant strings.
29364
29365 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29366 * commands/cmp.c (grub_cmd_cmp): Likewise.
29367 * kern/dl.c (grub_dl_flush_cache): Likewise.
29368 (grub_dl_load_core): Likewise.
29369 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29370 (grub_elf64_load_phdrs): Likewise.
29371
29372 2008-07-13 Pavel Roskin <proski@gnu.org>
29373
29374 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29375 between signed and unsigned.
29376 (LzmaEnc_Finish): Fix warning about an unused parameter.
29377
29378 2008-07-13 Bean <bean123ch@gmail.com>
29379
29380 * Makefile.in (enable_lzo): New rule.
29381
29382 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29383
29384 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29385
29386 * boot/i386/pc/lnxboot.S: #include <config.h>.
29387
29388 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29389 its value according to the compression algorithm used, lzo or lzma.
29390
29391 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29392 compression algorithm according to configure macro.
29393
29394 * kern/i386/pc/startup.S (codestart): Likewise.
29395
29396 * kern/i386/pc/lzma_decode.S: New file.
29397
29398 * include/grub/lib/LzFind.h: Likewise.
29399
29400 * include/grub/lib/LzHash.h: Likewise.
29401
29402 * include/grub/lib/LzmaDec.h: Likewise.
29403
29404 * include/grub/lib/LzmaEnc.h: Likewise.
29405
29406 * include/grub/lib/LzmaTypes.h: Likewise.
29407
29408 * lib/LzFind.c: Likewise.
29409
29410 * lib/LzmaDec.c: Likewise.
29411
29412 * lib/LzmaEnc.c: Likewise.
29413
29414 2008-07-13 Bean <bean123ch@gmail.com>
29415
29416 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29417 (grub_ext4_extent_header): New structure.
29418 (grub_ext4_extent): Likewise.
29419 (grub_ext4_extent_idx): Likewise.
29420 (grub_ext4_find_leaf): New function.
29421 (grub_ext2_read_block): Handle extents.
29422
29423 2008-07-12 Robert Millan <rmh@aybabtu.com>
29424
29425 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29426
29427 2008-07-11 Robert Millan <rmh@aybabtu.com>
29428
29429 * util/grub.d/40_custom.in: New file. Example on how to add custom
29430 entries to /etc/grub.d.
29431 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29432 40_custom (implicitly, by merging all the grub.d rules).
29433
29434 2008-07-11 Pavel Roskin <proski@gnu.org>
29435
29436 * commands/read.c (grub_getline): Fix invalid memory access.
29437 Don't add newline to the variable value.
29438
29439 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29440 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29441 (serial_hw_get_port): Check validity of the port number.
29442 (grub_cmd_serial): Check return value of serial_hw_get_port().
29443
29444 2008-07-07 Pavel Roskin <proski@gnu.org>
29445
29446 * boot/i386/pc/diskboot.S (notification_string): Replace
29447 "Loading kernel" with just "loading". This is shorter, less
29448 confusing and saves a few bytes for possible future changes.
29449
29450 2008-07-05 Pavel Roskin <proski@gnu.org>
29451
29452 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29453 size for ATAPI devices, they are undefined. Output sector
29454 number in decimal form.
29455
29456 * disk/ata.c: Use named constants for status bits.
29457
29458 2008-07-04 Pavel Roskin <proski@gnu.org>
29459
29460 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29461 grub_addr_t before casting it to the void pointer to fix a
29462 warning. Non-addressable regions are discarded earlier.
29463 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29464 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29465 (check_signature): Don't shadow table_header.
29466 (grub_linuxbios_table_iterate): Cast numeric constants to
29467 grub_linuxbios_table_header_t.
29468 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29469 grub_stop().
29470
29471 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29472 prevent warnings.
29473
29474 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29475 pointer, which can cause warnings. Support 64-bit addresses.
29476
29477 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29478 of sizeof(long). This fixes PowerPC image generation on x86_64.
29479
29480 2008-07-04 Robert Millan <rmh@aybabtu.com>
29481
29482 This fixes a performance issue when pc & gpt partmap iterators
29483 didn't abort iteration even after our hook found what it was
29484 looking for (often causing expensive probes of non-existent drives).
29485
29486 Some callers relied on previous buggy behaviour, since they would
29487 raise an error when their own hooks caused early abortion of its
29488 iteration.
29489
29490 * kern/device.c (grub_device_open): Improve error message.
29491 * disk/lvm.c (grub_lvm_open): Likewise.
29492 * disk/raid.c (grub_raid_open): Likewise.
29493
29494 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29495 when hook requests it, independently of grub_errno.
29496 (pc_partition_map_probe): Do not fail when find_func() caused
29497 early abortion of pc_partition_map_iterate().
29498
29499 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29500 when hook requests it, independently of grub_errno.
29501 (gpt_partition_map_probe): Do not fail when find_func() caused
29502 early abortion of gpt_partition_map_iterate().
29503
29504 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29505 when hook requests it, independently of grub_errno. Do not fail when
29506 part_map_iterate_hook() caused early abortion of p->iterate().
29507
29508 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29509 when grub_partition_iterate() returned with non-zero.
29510
29511 2008-07-03 Pavel Roskin <proski@gnu.org>
29512
29513 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29514 like we do in grub_ata_pio_read().
29515 (grub_ata_readwrite): Always write individual sectors. Fix the
29516 sector count for the remainder.
29517 (grub_ata_write): Enable writing to ATA devices. Correctly
29518 report error for ATAPI devices.
29519
29520 2008-07-02 Pavel Roskin <proski@gnu.org>
29521
29522 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29523 warning.
29524
29525 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29526 for every read sector, we already increment it for the whole
29527 batch. This fixes reading more than 256 sectors at once.
29528
29529 * util/grub-editenv.c (cmd_info): Cast argument to long
29530 explicitly. ptrdiff_t reduces to int on i386.
29531
29532 * util/grub-editenv.c (main): Be specific which parameter is
29533 missing.
29534
29535 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29536 (memdisk): Make memdisk_orig_addr a pointer.
29537
29538 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29539 for file offsets, use grub_off_t instead. Fix printf format
29540 warnings.
29541
29542 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29543 there. Real unexpected warnings should not drown in the noise
29544 about known problems.
29545
29546 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29547 grub_disk_addr_t for memory addresses.
29548
29549 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29550 explicitly to fix a warning.
29551
29552 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29553
29554 * Makefile.in (MODULE_LDFLAGS): New variable.
29555 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29556 the linker accepts --build-id=none.
29557 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29558 MODULE_LDFLAGS.
29559 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29560
29561 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29562 those in Linux XFS code. Provide a way to access 64-bit parent
29563 inode.
29564 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29565 the end of struct grub_xfs_dir_header.
29566
29567 2008-07-02 Bean <bean123ch@gmail.com>
29568
29569 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29570 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29571 and GRUB_IEEE1275_FLAG_NO_ANSI.
29572
29573 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29574 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29575 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29576
29577 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29578 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29579
29580 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29581 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29582
29583 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29584 esc sequence on non ANSI terminal.
29585 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29586
29587 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29588 beginning of file.
29589
29590 2008-07-02 Bean <bean123ch@gmail.com>
29591
29592 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29593 (grub_editenv_SOURCES): New variable.
29594 (pkglib_MODULES): Add loadenv.mod.
29595 (loadenv_mod_SOURCES): New variable.
29596 (loadenv_mod_CFLAGS): Likewise.
29597 (loadenv_mod_LDFLAGS): Likewise.
29598
29599 * include/grub/envblk.h: New file.
29600
29601 * util/envblk.c: New file.
29602
29603 * util/grub-editenv.c: New file.
29604
29605 * commands/loadenv.c: New file.
29606
29607 2008-07-01 Pavel Roskin <proski@gnu.org>
29608
29609 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29610 not unsigned char. This fixes warnings and is consistent with
29611 other tags.
29612
29613 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29614
29615 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29616
29617 * term/tparm.c (analyze): Always set *popcount.
29618
29619 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29620 cast to fix a warning.
29621
29622 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29623 cast to suppress a warning.
29624
29625 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29626 grub_fshelp_read_file() expects.
29627
29628 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29629 write uuid as a 32-bit value in CPU byte order, so declare and
29630 use it as such.
29631
29632 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29633 long if the format specifier expects it.
29634 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29635 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29636 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29637 long to fix a warning.
29638 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29639 grub_dprintf() arguments to fix warnings.
29640
29641 2008-06-30 Pavel Roskin <proski@gnu.org>
29642
29643 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29644 install_bsd_part immediately before core.img is embedded or
29645 modified on disk. This fixes core.img verification if core.img
29646 cannot be embedded.
29647
29648 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
29649 core_path to calculate the blocklist.
29650 Patch from Javier Martín <lordhabbit@gmail.com>
29651
29652 2008-06-29 Robert Millan <rmh@aybabtu.com>
29653
29654 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
29655 block to disk block.
29656 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
29657 Patch from Niels Böhm <bitbucket@arcor.de>
29658
29659 2008-06-29 Robert Millan <rmh@aybabtu.com>
29660
29661 * util/update-grub_lib.in (font_path): Search for fonts in
29662 /boot/grub first, which is more likely to be readable (we aren't
29663 deciding where fonts live, just looking for them).
29664
29665 2008-06-26 Pavel Roskin <proski@gnu.org>
29666
29667 * util/biosdisk.c (read_device_map): Don't leave dead map
29668 entries for devices failing stat() check.
29669
29670 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
29671 core_path_dev for the core.img path on the target device.
29672
29673 2008-06-26 Robert Millan <rmh@aybabtu.com>
29674
29675 * disk/fs_uuid.c: New file.
29676 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
29677 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
29678 (fs_uuid_mod_LDFLAGS): New variables.
29679 * include/grub/disk.h (grub_disk_dev_id): Add
29680 `GRUB_DISK_DEVICE_UUID_ID'.
29681 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
29682 implement iterate().
29683
29684 2008-06-26 Robert Millan <rmh@aybabtu.com>
29685
29686 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
29687 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
29688 Linux image includes no initrd.
29689
29690 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29691
29692 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
29693 call to resolve the core image location that effectively appended the
29694 name twice.
29695
29696 2008-06-21 Robert Millan <rmh@aybabtu.com>
29697
29698 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29699 call from here ...
29700
29701 * util/grub.d/10_hurd.in: ... to here ...
29702 * util/grub.d/10_linux.in: ... and here.
29703
29704 2008-06-19 Robert Millan <rmh@aybabtu.com>
29705
29706 * kern/main.c (grub_main): Export `prefix' variable immediately
29707 after it has been set by grub_machine_set_prefix().
29708
29709 2008-06-19 Robert Millan <rmh@aybabtu.com>
29710
29711 * commands/search.c (search_label, search_fs_uuid, search_file): Print
29712 search result when not saving to variable, not the other way around.
29713 When saving to variable, abort iteration as soon as a match is found.
29714
29715 2008-06-19 Robert Millan <rmh@aybabtu.com>
29716
29717 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
29718 check for partition that provides /boot/grub. Its logic is flawed,
29719 as it prevents prepare_grub_to_access_device() from being called
29720 multiple times.
29721
29722 2008-06-19 Robert Millan <rmh@aybabtu.com>
29723
29724 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
29725 "insmod" command directly when abstraction modules are needed,
29726 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
29727 since it had already been processed).
29728
29729 2008-06-19 Pavel Roskin <proski@gnu.org>
29730
29731 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
29732 changed. This is needed in case GRUB_LIBDIR changes.
29733 * conf/i386-ieee1275.rmk: Likewise.
29734 * conf/i386-linuxbios.rmk: Likewise.
29735 * conf/i386-pc.rmk: Likewise.
29736 * conf/powerpc-ieee1275.rmk: Likewise.
29737
29738 2008-06-18 Pavel Roskin <proski@gnu.org>
29739
29740 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
29741 kernel_elf_symlist.c to symlist.c for consistency with other
29742 architectures. Update all users.
29743 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29744
29745 2008-06-18 Robert Millan <rmh@aybabtu.com>
29746
29747 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
29748 it in prefix.
29749
29750 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
29751 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
29752 a RAID device, run setup() for all members independently on whether
29753 LVM abstraction is being used.
29754 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
29755 If grub-mkimage has set `*install_dos_part == -2', don't override this
29756 value.
29757 Perform *install_dos_part adjustments independently on whether
29758 we're embedding or not.
29759 Clarify error message when image is too big for embedding.
29760 Remove duplicate *install_dos_part stanza.
29761
29762 2008-06-17 Robert Millan <rmh@aybabtu.com>
29763
29764 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
29765 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
29766 variables.
29767 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
29768 values in grub_ofconsole_normal_color and
29769 grub_ofconsole_highlight_color (they're not directly related to
29770 background and foreground).
29771 (grub_ofconsole_setcolorstate): Extract background and foreground
29772 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
29773
29774 2008-06-17 Robert Millan <rmh@aybabtu.com>
29775
29776 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
29777 /boot/grub for the check in last commit, not /boot (they could be
29778 different partitions).
29779
29780 2008-06-16 Robert Millan <rmh@aybabtu.com>
29781
29782 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
29783 asked to setup access for the same partition that provides /boot,
29784 don't bother using UUIDs since our root already has the value we
29785 want.
29786
29787 2008-06-16 Robert Millan <rmh@aybabtu.com>
29788
29789 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
29790 I2O devices.
29791 Patch from Sven Mueller <sven@debian.org>.
29792
29793 2008-06-16 Robert Millan <rmh@aybabtu.com>
29794
29795 * util/update-grub.in: Check for $EUID instead of $UID.
29796 Reported by Vincent Zweije.
29797
29798 2008-06-16 Bean <bean123ch@gmail.com>
29799
29800 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
29801 (grub_ext2_read_block): Likewise.
29802 (grub_ext2_read_inode): Likewise.
29803 (grub_ext2_mount): Likewise.
29804 (grub_ext2_close): Likewise.
29805 (grub_ext3_get_journal): Removed.
29806
29807 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
29808 (grub_reiserfs_read_symlink): Likewise.
29809 (grub_reiserfs_mount): Likewise.
29810 (grub_reiserfs_open): Likewise.
29811 (grub_reiserfs_read): Likewise.
29812 (grub_reiserfs_close): Likewise.
29813 (grub_reiserfs_get_journal): Removed.
29814
29815 * fs/fshelp.c (grub_fshelp_read): Removed.
29816 (grub_fshelp_map_block): Likewise.
29817
29818 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
29819 (grub_fshelp_journal): Likewise.
29820 (grub_fshelp_read): Likewise.
29821 (grub_fshelp_map_block): Likewise.
29822
29823 2008-06-16 Pavel Roskin <proski@gnu.org>
29824
29825 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
29826 floating point anymore.
29827 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
29828
29829 2008-06-15 Pavel Roskin <proski@gnu.org>
29830
29831 * commands/ls.c (grub_ls_list_files): Use integer calculations
29832 for human readable format, avoid floating point use.
29833 * kern/misc.c (grub_ftoa): Remove.
29834 (grub_vsprintf): Remove floating point support.
29835
29836 2008-06-15 Robert Millan <rmh@aybabtu.com>
29837
29838 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
29839 devices.
29840 Reported by Max Vozeler.
29841
29842 2008-06-15 Robert Millan <rmh@aybabtu.com>
29843
29844 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
29845 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
29846 skipped later.
29847 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
29848 the beginning of the prefix.
29849
29850 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
29851 It is assumed that if we have a memdisk, grub-mkimage has set
29852 grub_prefix to include the "(memdisk)" drive in it.
29853
29854 2008-06-15 Robert Millan <rmh@aybabtu.com>
29855
29856 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
29857 Initialize keyboard controller after registering the terminal, so that
29858 grub_printf() can be called from grub_keyboard_controller_init().
29859
29860 2008-06-15 Robert Millan <rmh@aybabtu.com>
29861
29862 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
29863 extent-btree which is written as big endian on disk.
29864 Reported by Alain Greppin <al@chilibi.org>.
29865
29866 2008-06-14 Robert Millan <rmh@aybabtu.com>
29867
29868 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
29869 * util/i386/pc/grub-install.in (modules): Likewise.
29870
29871 2008-06-13 Pavel Roskin <proski@gnu.org>
29872
29873 * commands/ls.c (grub_ls_list_files): Fix format warnings.
29874
29875 2008-06-13 Bean <bean123ch@gmail.com>
29876
29877 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
29878
29879 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
29880
29881 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
29882 to indicate sparse block.
29883
29884 2008-06-12 Pavel Roskin <proski@gnu.org>
29885
29886 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
29887 number, grub_fshelp_read() does it for us.
29888
29889 * fs/fshelp.c (grub_fshelp_read): New function. Implement
29890 linear disk read with journal translation.
29891 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
29892 * include/grub/fshelp.h: Declare grub_fshelp_read().
29893
29894 2008-06-09 Pavel Roskin <proski@gnu.org>
29895
29896 * fs/minix.c (grub_minix_mount): Handle error reading
29897 superblock.
29898
29899 2008-06-08 Robert Millan <rmh@aybabtu.com>
29900
29901 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
29902 don't append the RAID prefix afterwards.
29903 Reported by Clint Adams.
29904
29905 2008-06-08 Robert Millan <rmh@aybabtu.com>
29906
29907 Based on description from Pavel:
29908 * kern/disk.c (grub_disk_check_range): Rename to ...
29909 (grub_disk_adjust_range): ... this. Add a comment explaining the
29910 tasks performed by this function.
29911
29912 2008-06-08 Robert Millan <rmh@aybabtu.com>
29913
29914 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
29915 `num_serial' (for consistency with other variables).
29916 (struct grub_ntfs_data): Add `uuid' member.
29917 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
29918 (grub_ntfs_uuid): New function.
29919 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
29920
29921 2008-06-07 Pavel Roskin <proski@gnu.org>
29922
29923 * util/biosdisk.c (open_device): Revert last change to the
29924 function, it broke installation. The sector needs to be
29925 different dependent on which device is opened.
29926
29927 2008-06-06 Robert Millan <rmh@aybabtu.com>
29928
29929 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
29930 rest of GRUB, and breakage doesn't happen if its value were modified.
29931
29932 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29933 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
29934 a constant (same value).
29935 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
29936 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
29937
29938 2008-06-06 Robert Millan <rmh@aybabtu.com>
29939
29940 * util/biosdisk.c (open_device): Do not modify sector offset when
29941 accessing a partition. kern/disk.c already handles this for us.
29942
29943 2008-06-06 Robert Millan <rmh@aybabtu.com>
29944
29945 * util/grub-emu.c (grub_machine_init): Move code in this function from
29946 here ...
29947 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29948 segfault in case grub_printf() is called).
29949
29950 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
29951 grub_probe. Update all users not to explicitly add it again.
29952 (grub_device): New variable; contains corresponding device for grubdir.
29953 (fs_module, partmap_module, devabstraction_module): Pass
29954 `--device ${grub_device}' to grub_probe to avoid traversing /dev
29955 every time.
29956
29957 2008-06-05 Robert Millan <rmh@aybabtu.com>
29958
29959 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
29960 is found, print it (same layout as with labels).
29961
29962 2008-06-04 Robert Millan <rmh@aybabtu.com>
29963
29964 * util/biosdisk.c (get_drive): Rename to ...
29965 (find_grub_drive): ... this. Update all users.
29966
29967 (get_os_disk): Rename to ...
29968 (convert_system_partition_to_system_disk): ... this. Update all users.
29969
29970 (find_drive): Rename to ...
29971 (find_system_device): ... this. Update all users.
29972
29973 2008-06-04 Robert Millan <rmh@aybabtu.com>
29974
29975 * util/biosdisk.c (get_os_disk): Handle IDA devices.
29976 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29977 (make_device_map): Likewise.
29978
29979 2008-06-01 Robert Millan <rmh@aybabtu.com>
29980
29981 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
29982 before dereferencing it.
29983
29984 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
29985 union with fat12/fat16-specific ones. Add some new fields, including
29986 `num_serial' for both versions.
29987 (struct grub_fat_data): Add `uuid' member.
29988 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
29989 names. Initialize `data->uuid' using `num_serial'.
29990 (grub_fat_uuid): New function.
29991 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
29992
29993 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
29994 (grub_reiserfs_uuid): New function.
29995 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
29996 member.
29997
29998 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
29999 (grub_xfs_uuid): New function.
30000 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
30001
30002 2008-06-01 Robert Millan <rmh@aybabtu.com>
30003
30004 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
30005 code that is backward compatible with pre-uuid search command.
30006
30007 2008-05-31 Robert Millan <rmh@aybabtu.com>
30008
30009 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
30010 floppies after everything else, to ensure floppy drive isn't accessed
30011 unnecessarily (patch from Bean).
30012
30013 2008-05-31 Robert Millan <rmh@aybabtu.com>
30014
30015 * commands/search.c (search_label, search_fs_uuid, search_file): Do
30016 not print device names when we were asked to set a variable.
30017
30018 2008-05-31 Robert Millan <rmh@aybabtu.com>
30019
30020 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
30021 using "cursor-on" and "cursor-off" commands (understood at least by
30022 the Open Firmware flavour on OLPC).
30023
30024 2008-05-31 Michael Gorven <michael@gorven.za.net>
30025
30026 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
30027 on and off sequences.
30028
30029 2008-05-31 Robert Millan <rmh@aybabtu.com>
30030
30031 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
30032 * util/update-grub.in: Likewise.
30033
30034 2008-05-30 Pavel Roskin <proski@gnu.org>
30035
30036 * util/biosdisk.c (linux_find_partition): Simplify logic and
30037 make the code more universal. Keep special processing for
30038 devfs, but use a simple rule for all other devices. If the
30039 device ends with a number, append 'p' and the partition number.
30040 Otherwise, append only the partition number.
30041
30042 2008-05-30 Robert Millan <rmh@aybabtu.com>
30043
30044 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
30045 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
30046 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
30047 the `root' parameter to Linux.
30048
30049 2008-05-30 Robert Millan <rmh@aybabtu.com>
30050
30051 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
30052 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
30053 --fs_uuid with --fs-uuid.
30054 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
30055 all filesystems support them).
30056
30057 2008-05-30 Robert Millan <rmh@aybabtu.com>
30058
30059 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
30060 grub_printf() flags, since we're printing in units of 2 bytes.
30061
30062 2008-05-30 Robert Millan <rmh@aybabtu.com>
30063
30064 * util/grub.d/00_header.in: Remove obsolete comment referencing
30065 convert_system_path_to_grub_path().
30066 * util/update-grub.in: Likewise.
30067 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
30068 (convert_system_path_to_grub_path): Add a warning message explaining
30069 that this function is deprecated. Rely on is_path_readable_by_grub()
30070 for the readability checks.
30071 (font_path): Use is_path_readable_by_grub() for the readability
30072 check rather than convert_system_path_to_grub_path().
30073
30074 2008-05-30 Robert Millan <rmh@aybabtu.com>
30075
30076 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
30077 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
30078 converting it first.
30079 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
30080 grub.cfg for access to font file, and afterwards call it again to set
30081 the root device.
30082
30083 2008-05-30 Robert Millan <rmh@aybabtu.com>
30084
30085 * commands/search.c (options): Add --fs_uuid option.
30086 (search_fs_uuid): New function.
30087 (grub_cmd_search): Fix --set argument passing.
30088 Use search_fs_uuid() when requested via --fs_uuid.
30089 (grub_search_init): Update help message.
30090 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
30091 and redeclare it as an array of 16-bit words.
30092 (grub_ext2_uuid): New function.
30093 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
30094 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
30095 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
30096 (GRUB_DEVICE_BOOT_UUID): New variables.
30097 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
30098 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
30099 whenever possible.
30100 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
30101 just assume `root' variable has the right value.
30102 * util/grub.d/10_linux.in: Likewise.
30103 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
30104 via PRINT_FS_UUID.
30105 (main): Recognise `-t fs_uuid' argument.
30106
30107 2008-05-30 Robert Millan <rmh@aybabtu.com>
30108
30109 * util/biosdisk.c (map): Redefine structure to hold information
30110 about GRUB drive name.
30111 (get_drive): Reimplement without assuming (and verifying) BIOS-like
30112 drive names.
30113 (call_hook): Remove.
30114 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
30115 member. Assume drive has partitions.
30116 (grub_util_biosdisk_open): Access device names via `.device' struct
30117 member.
30118 (open_device): Likewise.
30119 (find_drive): Likewise.
30120 (read_device_map): Adjust map[] usage to match the new struct
30121 definition. Don't check for duplicates (still possible, but not cheap
30122 anymore).
30123 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
30124 (make_device_name): Remove assumption of BIOS-like drive names.
30125
30126 2008-05-30 Pavel Roskin <proski@gnu.org>
30127
30128 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
30129 compiling execute.c doesn't need grub_script.tab.h anymore.
30130 (normal/command.c_DEPENDENCIES): Likewise.
30131 (normal/function.c_DEPENDENCIES): Likewise.
30132 * conf/i386-ieee1275.rmk: Likewise.
30133 * conf/i386-linuxbios.rmk: Likewise.
30134 * conf/i386-pc.rmk: Likewise.
30135 * conf/powerpc-ieee1275.rmk: Likewise.
30136 * conf/sparc64-ieee1275.rmk: Likewise.
30137
30138 2008-05-29 Pavel Roskin <proski@gnu.org>
30139
30140 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
30141 when scanning metadata for volume group name.
30142
30143 * include/grub/script.h: Don't include grub_script.tab.h. It's
30144 a generated file, which may only be included from the files with
30145 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
30146 use union YYSTYPE, as the later allows forward declaration.
30147 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
30148
30149 2008-05-29 Robert Millan <rmh@aybabtu.com>
30150
30151 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
30152 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
30153 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
30154 (grub_console_checkkey): Add grub_dprintf() call to report unknown
30155 scan codes.
30156
30157 2008-05-29 Robert Millan <rmh@aybabtu.com>
30158
30159 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
30160 control key combinations.
30161
30162 2008-05-29 Robert Millan <rmh@aybabtu.com>
30163
30164 * util/powerpc/ieee1275/grub-install.in: Move from here ...
30165 * util/ieee1275/grub-install.in: ... to here.
30166 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
30167 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
30168 (grub_install_SOURCES): Likewise.
30169
30170 2008-05-29 Robert Millan <rmh@aybabtu.com>
30171
30172 * fs/affs.c: Update copyright year.
30173 * fs/ext2.c: Likewise.
30174 * fs/fshelp.c: Likewise.
30175 * fs/hfsplus.c: Likewise.
30176 * fs/ntfs.c: Likewise.
30177 * fs/xfs.c: Likewise.
30178 * include/grub/fshelp.h: Likewise.
30179 * util/grub-mkdevicemap.c: Likewise.
30180
30181 2008-05-28 Robert Millan <rmh@aybabtu.com>
30182
30183 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
30184 might need to be fatfs to support some firmware implementations
30185 (e.g. OFW or EFI).
30186
30187 2008-05-28 Robert Millan <rmh@aybabtu.com>
30188
30189 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
30190 devices.
30191 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30192 (make_device_map): Likewise.
30193
30194 2008-05-20 Bean <bean123ch@gmail.com>
30195
30196 * fs/fshelp.c (grub_fshelp_map_block): New function.
30197 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
30198 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
30199
30200 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
30201 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
30202 (grub_fshelp_journal): New structure.
30203 (grub_fshelp_map_block): New function prototype.
30204 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
30205 (grub_fshelp_map_block): Likewise.
30206
30207 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
30208 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
30209 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
30210 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
30211 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
30212 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
30213 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
30214 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
30215 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
30216 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
30217 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
30218 (grub_ext2_sblock): New members for journal support.
30219 (grub_ext3_journal_header): New structure.
30220 (grub_ext3_journal_revoke_header): Likewise.
30221 (grub_ext3_journal_block_tag): Likewise.
30222 (grub_ext3_journal_sblock): Likewise.
30223 (grub_fshelp_node): New members logfile and journal.
30224 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
30225 grub_fshelp_map_block to get real block number.
30226 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
30227 number.
30228 (grub_ext2_read_inode): Likewise.
30229 (grub_ext3_get_journal): New function.
30230 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
30231 (grub_ext2_close): Release memory used by journal.
30232
30233 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
30234 (REISERFS_MAGIC_DESC_BLOCK): New macro.
30235 (grub_reiserfs_transaction_header): Renamed to
30236 grub_reiserfs_description_block, replace field data with real_blocks.
30237 (grub_reiserfs_commit_block): New structure.
30238 (grub_reiserfs_data): New member journal.
30239 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
30240 number.
30241 (grub_reiserfs_read_symlink): Likewise.
30242 (grub_reiserfs_iterate_dir): Likewise.
30243 (grub_reiserfs_open): Likewise.
30244 (grub_reiserfs_read): Likewise.
30245 (grub_reiserfs_get_journal): New function.
30246 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
30247 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
30248 using grub_reiserfs_get_journal.
30249 (grub_reiserfs_close): Release memory used by journal.
30250
30251 * fs/affs.c (grub_affs_read_block): Change block type to
30252 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
30253
30254 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
30255
30256 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
30257
30258 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
30259
30260 * fs/udf.c (grub_udf_read_block): Change block type to
30261 grub_disk_addr_t. Use type cast to avoid warning.
30262
30263 * fs/xfs.c (grub_xfs_read_block): Likewise.
30264
30265 2008-05-16 Christian Franke <franke@computer.org>
30266
30267 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
30268 to ensure that break with ESC will always work.
30269 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
30270 Remove ESC from keyboard queue.
30271
30272 2008-05-16 Christian Franke <franke@computer.org>
30273
30274 * util/biosdisk.c: [__CYGWIN__] Add includes.
30275 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
30276 (get_os_disk): Move variable declarations to OS specific
30277 parts to avoid warning.
30278 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
30279 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
30280 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
30281 Cygwin.
30282 * util/getroot.c: [__CYGWIN__] Add includes.
30283 (strip_extra_slashes): Fix "/" case.
30284 [__CYGWIN__] (get_win32_path): New function.
30285 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
30286 [__CYGWIN__] (find_root_device): Disable.
30287 [__CYGWIN__] (get_bootsec_serial): New function.
30288 [__CYGWIN__] (find_cygwin_root_device): Likewise.
30289 [__linux__] (grub_guess_root_device): Add early returns to simplify
30290 structure.
30291 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
30292 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
30293 check for Linux only.
30294
30295 2008-05-15 Bean <bean123ch@gmail.com>
30296
30297 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
30298 keyboard hang problem in apple's intel mac.
30299
30300 2008-05-09 Robert Millan <rmh@aybabtu.com>
30301
30302 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
30303 devices.
30304 * util/grub-mkdevicemap.c (get_virtio_disk_name)
30305 (make_device_map): Likewise.
30306 Reported by Aurelien Jarno <aurel32@debian.org>
30307
30308 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
30309
30310 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
30311 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
30312 (make_device_map): Output entries for xvd type disks.
30313
30314 2008-05-07 Robert Millan <rmh@aybabtu.com>
30315
30316 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
30317 devices.
30318 * util/grub-mkdevicemap.c (get_cciss_disk_name)
30319 (make_device_map): Likewise.
30320 Reported by Roland Dreier <rdreier@cisco.com>
30321
30322 2008-05-07 Robert Millan <rmh@aybabtu.com>
30323
30324 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30325 grub_strstr() call. Correct a few mistakes in failure path handling.
30326
30327 2008-05-06 Robert Millan <rmh@aybabtu.com>
30328
30329 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30330 Do not print a trailing slash (therefore, the root directory is an
30331 empty string).
30332 (convert_system_path_to_grub_path): Do not remove trailing slash
30333 from make_system_path_relative_to_its_root() output.
30334
30335 * util/i386/pc/grub-install.in: Add trailing slash to output from
30336 make_system_path_relative_to_its_root().
30337
30338 2008-05-06 Robert Millan <rmh@aybabtu.com>
30339
30340 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30341 ensures that output lines aren't intermangled with those sent to
30342 stderr (via grub_util_info()).
30343 * util/grub-probe.c (grub_refresh): Likewise.
30344 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30345
30346 2008-05-05 Christian Franke <franke@computer.org>
30347
30348 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30349 Add Cygwin device names.
30350 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30351 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30352 (check_device): Return error instead of success on empty name.
30353 (make_device_map): Move label inside linux specific code to
30354 prevent compiler warning.
30355
30356 2008-04-30 Robert Millan <rmh@aybabtu.com>
30357
30358 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30359 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30360 first boot option.
30361 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30362
30363 2008-04-29 Robert Millan <rmh@aybabtu.com>
30364
30365 * docs/grub.cfg: New file (example GRUB configuration).
30366
30367 2008-04-26 Robert Millan <rmh@aybabtu.com>
30368
30369 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30370 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30371 and `disk/ieee1275/nand.c'.
30372
30373 2008-04-25 Bean <bean123ch@gmail.com>
30374
30375 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30376 i386-linuxbios.
30377
30378 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30379 change the buffer size to 4096 for cdrom device.
30380
30381 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30382 and nand.mod.
30383 (_linux_mod_SOURCES): New variable.
30384 (_linux_mod_CFLAGS): Likewise.
30385 (_linux_mod_LDFLAGS): Likewise.
30386 (linux_mod_SOURCES): Likewise.
30387 (linux_mod_CFLAGS): Likewise.
30388 (linux_mod_LDFLAGS): Likewise.
30389 (nand_mod_SOURCES): Likewise.
30390 (nand_mod_CFLAGS): Likewise.
30391 (nand_mod_LDFLAGS): Likewise.
30392
30393 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30394 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30395 type property. (nand device in olpc don't have this property)
30396
30397 * include/grub/disk.h (grub_disk_dev_id): New macro
30398 GRUB_DISK_DEVICE_NAND_ID.
30399
30400 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30401 function prototype.
30402 (grub_rescue_cmd_initrd): Likewise.
30403
30404 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30405 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30406 ofw_cif_handler and ofw_idt, adjust padding number.
30407
30408 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30409 GRUB_MACHINE_IEEE1275 is defined.
30410
30411 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30412 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30413
30414 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30415 on nested function heap_init.
30416 (grub_upper_mem): New variable for i386-ieee1275.
30417 (grub_get_extended_memory): New function for i386-ieee1275.
30418 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30419
30420 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30421 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30422 property.
30423
30424 * loader/i386/ieee1275/linux.c: New file.
30425
30426 * loader/i386/ieee1275/linux_normal.c: New file.
30427
30428 * disk/ieee1275/nand.c: New file.
30429
30430 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30431
30432 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30433 value.
30434 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30435
30436 2008-04-18 Robert Millan <rmh@aybabtu.com>
30437
30438 Restructures early code path on ieee1275 to unify grub_main() as
30439 the first C function that is executed in every platform.
30440
30441 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30442 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30443 cmain().
30444 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30445 * kern/ieee1275/cmain.c (cmain): Rename to ...
30446 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30447 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30448 at the beginning.
30449
30450 2008-04-18 Robert Millan <rmh@aybabtu.com>
30451
30452 * util/update-grub.in: Fix syntax error when setting
30453 `GRUB_PRELOAD_MODULES'.
30454 Reported by Stephane Chazelas <stephane@artesyncp.com>
30455
30456 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30457
30458 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30459 section into account, newer toolchains generate unique build ids
30460 * configure.ac: remove the test for --build-id=none acceptance,
30461 we want build ids to be preserved
30462 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30463 far from other sections don't cause the raw binary images grow
30464 size
30465
30466 2008-04-15 Robert Millan <rmh@aybabtu.com>
30467
30468 * disk/lvm.c: Update copyright year.
30469 * kern/misc.c: Likewise.
30470
30471 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30472
30473 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30474 there is no memory left for physical volume name.
30475
30476 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30477
30478 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30479 volume name mapping to support bigger than 9 character names properly.
30480
30481 2008-04-13 Robert Millan <rmh@aybabtu.com>
30482
30483 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30484 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30485
30486 2008-04-13 Christian Franke <franke@computer.org>
30487
30488 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30489 to create a floppy emulation boot CD when non emulation mode
30490 does not work.
30491 Enable Joliet CD filesystem extension.
30492
30493 2008-04-13 Robert Millan <rmh@aybabtu.com>
30494
30495 * kern/misc.c (grub_strncat): Fix off-by-one error.
30496 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30497
30498 * kern/env.c (grub_env_context_close): Clear current context, not
30499 previous one.
30500 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30501
30502 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30503
30504 2008-04-13 Robert Millan <rmh@aybabtu.com>
30505
30506 Improve robustness when handling LVM.
30507
30508 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30509 (and leave `*p' unmodified).
30510 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30511 through it.
30512 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30513 iterating through it.
30514 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30515 through it.
30516 (grub_lvm_scan_device): Check the return value (and fail gracefully
30517 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30518 Don't assume `vg->pvs != NULL' when iterating through it.
30519
30520 2008-04-13 Robert Millan <rmh@aybabtu.com>
30521
30522 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30523 * genmk.rb (partmap): New variable.
30524 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30525 (#{partmap}): New target rule.
30526 * genpartmaplist.sh: New file.
30527 * Makefile.in (pkglib_DATA): Add partmap.lst.
30528 (partmap.lst): New target rule.
30529 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30530 modules (including all partition maps), instead of preloading them.
30531
30532 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30533
30534 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30535 `linux-boot-prober' (if installed) to detect other operating
30536 systems which are installed on the computer and add them to
30537 the boot menu.
30538 * conf/common.rmk: Build and install 30_os-prober.
30539
30540 2008-04-12 Robert Millan <rmh@aybabtu.com>
30541
30542 * kern/powerpc/ieee1275/init.c: Move from here ...
30543 * kern/ieee1275/init.c: ... to here. Update all users.
30544
30545 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30546 * kern/ieee1275/cmain.c: ... to here. Update all users.
30547
30548 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30549 * kern/ieee1275/openfw.c: ... to here. Update all users.
30550
30551 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30552 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30553
30554 2008-04-10 Pavel Roskin <proski@gnu.org>
30555
30556 * configure.ac: Always use "_cv_" in cache variables for
30557 compatibility with Autoconf 2.62.
30558
30559 2008-04-07 Robert Millan <rmh@aybabtu.com>
30560
30561 Revert grub/machine/init.h addition by Pavel (since it breaks on
30562 i386-ieee1275 and others):
30563 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30564 * util/powerpc/ieee1275/misc.c: Likewise.
30565
30566 2008-04-07 Robert Millan <rmh@aybabtu.com>
30567
30568 * util/grub-probe.c (probe): Improve error message.
30569
30570 2008-04-07 Robert Millan <rmh@aybabtu.com>
30571
30572 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30573 (this prevents the presence of a bogus entry from ruining the whole
30574 thing).
30575
30576 2008-04-06 Pavel Roskin <proski@gnu.org>
30577
30578 * util/biosdisk.c: Include grub/util/biosdisk.h.
30579 * util/grub-fstest.c (execute_command): Make static.
30580 * util/grub-mkdevicemap.c (check_device): Likewise.
30581 * util/i386/pc/misc.c: Include grub/machine/init.h.
30582 * util/powerpc/ieee1275/misc.c: Likewise.
30583 * util/lvm.c: Include grub/util/lvm.h.
30584 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30585 grub/cache.h.
30586 * util/raid.c: Include grub/util/raid.h.
30587 (grub_util_getdiskname): Make static.
30588
30589 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30590 grub_hostfs_fini(), as they are called from grub_init_all() and
30591 grub_fini_all() respectively. This fixes an infinite loop in
30592 grub-fstest due to double registration of hostfs.
30593 Reported by Christian Franke <Christian.Franke@t-online.de>
30594
30595 2008-04-05 Pavel Roskin <proski@gnu.org>
30596
30597 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30598 all 8 functions. Otherwise, probe function 0 only.
30599
30600 2008-04-04 Pavel Roskin <proski@gnu.org>
30601
30602 * commands/lspci.c (grub_lspci_iter): Print the bus number
30603 correctly.
30604
30605 * commands/lspci.c (grub_pci_classes): Fix typos.
30606 (grub_lspci_iter): Don't print func twice. Print vendor ID
30607 before device ID, as it's normally done.
30608
30609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30610 Fix signedness warnings.
30611 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30612 Likewise.
30613 * util/ieee1275/get_disk_name.c: Include config.h so that
30614 _GNU_SOURCE is defined and getline() is declared. Mark an
30615 unused argument as such. Fix a signedness warning.
30616
30617 2008-04-02 Pavel Roskin <proski@gnu.org>
30618
30619 * genkernsyms.sh.in: Use more robust assignments for CC and
30620 srcdir. Quote srcdir.
30621 * gensymlist.sh.in: Likewise. Assert at the compile time that
30622 the symbol table is not empty.
30623
30624 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30625 * fs/cpio.c (grub_cpio_read): Likewise.
30626
30627 2008-04-01 Pavel Roskin <proski@gnu.org>
30628
30629 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30630 * disk/host.c (grub_host_open): Likewise.
30631 * disk/loopback.c (grub_loopback_open): Likewise.
30632 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30633 disk->id as in disk/host.c, not a multi-character constant.
30634
30635 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30636 later is obsolete, potentially dangerous and sets a bad example.
30637 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30638 * util/misc.c (grub_util_get_image_size): Likewise.
30639
30640 * disk/loopback.c (options): Improve help for "--partitions".
30641
30642 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30643 options to align them with the short options, e.g. "echo -e".
30644
30645 2008-03-31 Bean <bean123ch@gmail.com>
30646
30647 * video/reader/png.c (grub_png_data): New member is_16bit and
30648 image_data.
30649 (grub_png_decode_image_header): Detect 16 bit png image.
30650 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
30651 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
30652 (grub_video_reader_png): Release memory occupied by image_data.
30653
30654 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30655 4096 bytes.
30656 (grub_nfs_mount): Skip the test for sector per cluster.
30657
30658 * include/grub/ntfs.h (MAX_SPC): Removed.
30659
30660 2008-03-31 Bean <bean123ch@gmail.com>
30661
30662 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
30663 (grub_probe_SOURCES): Add fs/afs.c.
30664 (grub_fstest_SOURCES): Likewise.
30665 (afs_mod_SOURCES): New variable.
30666 (afs_mod_CFLAGS): Likewise.
30667 (afs_mod_LDFLAGS): Likewise.
30668
30669 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30670 (grub_emu_SOURCES): Likewise.
30671
30672 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30673
30674 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30675
30676 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30677
30678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30679
30680 * fs/afs.c: New file.
30681
30682 2008-03-30 Pavel Roskin <proski@gnu.org>
30683
30684 * disk/host.c: Include grub/misc.h to fix a warning.
30685 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
30686 warnings about implicit declarations.
30687
30688 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30689 variable.
30690 * include/grub/i386/loader.h: Change declaration of
30691 grub_linux_boot() to match what grub_loader_set() expects.
30692 * util/getroot.c (grub_guess_root_device): Return const char* to
30693 fix a warning.
30694 * util/grub-probe.c (probe): Fix a warning about uninitialized
30695 abstraction_name variable.
30696 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
30697 second argument as unused to fix a warning.
30698
30699 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30700 missing grub_error() call.
30701
30702 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30703 2.60 and newer uses it to define datadir.
30704
30705 * commands/sleep.c: Fix warning about implicit declaration.
30706 * disk/memdisk.c: Likewise.
30707 * loader/aout.c: Likewise.
30708 * loader/i386/bsd_normal.c: Likewise.
30709 * util/grub-probe.c: Likewise.
30710
30711 * commands/i386/cpuid.c (has_longmode): Make static.
30712 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
30713 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
30714
30715 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
30716 GDT. This is more robust, as %ds can change.
30717 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
30718 calling real_to_prot().
30719 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
30720
30721 2008-03-28 Pavel Roskin <proski@gnu.org>
30722
30723 * kern/i386/pc/startup.S: Assert that uncompressed functions
30724 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
30725 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
30726 code, as they push parts of the code (error handlers) beyond
30727 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
30728 code as correctness and size.
30729
30730 2008-03-28 Pavel Roskin <proski@gnu.org>
30731
30732 * kern/i386/pc/startup.S
30733 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
30734 data block address to the real mode, keep offset minimal. This
30735 works around a bug in AWARD BIOS on old Athlon systems, which
30736 makes CD detection hang.
30737
30738 2008-03-26 Pavel Roskin <proski@gnu.org>
30739
30740 * normal/color.c (grub_parse_color_name_pair): Make `name' a
30741 const.
30742 * include/grub/normal.h: Add grub_parse_color_name_pair()
30743 declaration.
30744
30745 2008-03-24 Bean <bean123ch@gmail.com>
30746
30747 * disk/i386/pc/biosdisk.c (cd_start): Removed.
30748 (cd_count): Removed.
30749 (cd_drive): New variable.
30750 (grub_biosdisk_get_drive): Don't check for (cdN) device.
30751 (grub_biosdisk_call_hook): Likewise.
30752 (grub_biosdisk_iterate): Change cdrom detection method.
30753 (grub_biosdisk_open): Replace cd_start with cd_drive.
30754 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
30755 detect cdrom device.
30756
30757 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
30758 Removed.
30759 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
30760 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
30761 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
30762 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
30763 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
30764 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
30765 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
30766 (grub_biosdisk_cdrp): New structure.
30767 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
30768
30769 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
30770
30771 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
30772 device.
30773
30774 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
30775 New function.
30776
30777 2008-03-20 Robert Millan <rmh@aybabtu.com>
30778
30779 Remove 2 TiB limit in ata.mod.
30780 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
30781 (grub_ata_dumpinfo): Print sector count with 0x%llx.
30782 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
30783 grub_uint64_t instead of grub_uint32_t.
30784
30785 2008-03-05 Bean <bean123ch@gmail.com>
30786
30787 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
30788 (grub_multiboot): Set boot device.
30789
30790 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
30791
30792 2008-03-02 Bean <bean123ch@gmail.com>
30793
30794 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
30795 symlink_buffer.
30796
30797 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
30798
30799 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
30800 texinfo.tex.
30801
30802 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
30803 modified.
30804
30805 * docs/fdl.texi: New file.
30806
30807 * docs/mdate-sh: New file. Copied from gnulib.
30808 * docs/texinfo.tex: Likewise.
30809
30810 * config.guess: Updated from gnulib.
30811 * install-sh: Likewise.
30812
30813 2008-02-28 Robert Millan <rmh@aybabtu.com>
30814
30815 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
30816 (aout_mod_SOURCES): New variable.
30817 (aout_mod_CFLAGS): Likewise.
30818 (aout_mod_LDFLAGS): Likewise.
30819
30820 * conf/i386-ieee1275.rmk: Likewise.
30821
30822 2008-02-28 Robert Millan <rmh@aybabtu.com>
30823
30824 * util/update-grub.in: Reorganise terminal validity check. Accept
30825 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
30826 Based on suggestion by Franklin PIAT.
30827
30828 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
30829
30830 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
30831 function.
30832 * util/getroot.c (grub_util_check_block_device): New function that
30833 returns the given argument if it is a block device and returns NULL else.
30834 * util/grub-probe.c (argument_is_device): New variable.
30835 (probe): Promote device_name from a variable to an argument. Receive
30836 device_name from grub_util_check_block_device() if path is NULL and from
30837 grub_guess_root_device() else. Do not free() device_name anymore.
30838 (options): Introduce new parameter '-d, --device'.
30839 (main): Add description of the new parameter to the help screen.
30840 Rename path variable to argument. Set argument_is_device if the '-d'
30841 option is given. Pass argument to probe() depending on
30842 argument_is_device.
30843
30844 2008-02-24 Bean <bean123ch@gmail.com>
30845
30846 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
30847 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
30848 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
30849 (GRUB_ISO9660_VOLDESC_PART): Likewise.
30850 (GRUB_ISO9660_VOLDESC_END): Likewise.
30851 (grub_iso9660_primary_voldesc): New member escape.
30852 (grub_iso9660_data): New member joliet.
30853 (grub_iso9660_convert_string): New function.
30854 (grub_iso9660_mount): Detect joliet extension.
30855 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
30856 (grub_iso9660_iso9660_label): Likewise.
30857
30858 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
30859 (grub_setup_SOURCES): Add fs/udf.c.
30860 (grub_fstest_SOURCES): Likewise.
30861 (udf_mod_SOURCES): New variable.
30862 (udf_mod_CFLAGS): Likewise.
30863 (udf_mod_LDFLAGS): Likewise.
30864
30865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
30866 (grub_emu_SOURCES): Likewise.
30867
30868 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30869
30870 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30871
30872 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30873
30874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30875
30876 * fs/udf.c: New file.
30877
30878 2008-02-24 Robert Millan <rmh@aybabtu.com>
30879
30880 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
30881 (normal/lexer.c_DEPENDENCIES): New variables.
30882 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30883 (normal/lexer.c_DEPENDENCIES): Likewise.
30884 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
30885 (normal/lexer.c_DEPENDENCIES): Likewise.
30886 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
30887 (normal/lexer.c_DEPENDENCIES): Likewise.
30888 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30889 (normal/lexer.c_DEPENDENCIES): Likewise.
30890 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30891 (normal/lexer.c_DEPENDENCIES): Likewise.
30892
30893 2008-02-23 Robert Millan <rmh@aybabtu.com>
30894
30895 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
30896 since they were intended to be in hex. This didn't break previously
30897 because of a bug in gpt_partition_map_iterate() (see below).
30898
30899 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
30900 when checking the validity of GPT header.
30901 Remove `partno', since it always provides the same information as `i'.
30902
30903 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
30904
30905 * include/grub/efi/time.h: Fix a wrong comment.
30906
30907 2008-02-19 Pavel Roskin <proski@gnu.org>
30908
30909 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
30910 message.
30911
30912 2008-02-19 Bean <bean123ch@gmail.com>
30913
30914 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
30915 (aout_mod_SOURCES): New variable.
30916 (aout_mod_CFLAGS): Likewise.
30917 (aout_mod_LDFLAGS): Likewise.
30918 (_bsd_mod_SOURCES): New variable.
30919 (_bsd_mod_CFLAGS): Likewise.
30920 (_bsd_mod_LDFLAGS): Likewise.
30921 (bsd_mod_SOURCES): New variable.
30922 (bsd_mod_CFLAGS): Likewise.
30923 (bsd_mod_LDFLAGS): Likewise.
30924
30925 * include/grub/aout.h: New file.
30926
30927 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30928
30929 * include/grub/i386/bsd.h: New file.
30930
30931 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30932 to make it public.
30933
30934 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
30935 function is called, so that it's possible to change it inside the hook.
30936 (grub_elf64_load): Likewise.
30937 (grub_elf_file): Don't close the file if elf header is not found.
30938 (grub_elf_close): Close the file if grub_elf_file fails (The new
30939 grub_elf_file won't close it).
30940 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
30941 (grub_elf64_size): Likewise.
30942
30943 * kern/i386/loader.S (grub_unix_real_boot): New function.
30944
30945 * loader/aout.c: New file.
30946
30947 * loader/i386/bsd.c: New file.
30948
30949 * loader/i386/bsd_normal.c: New file.
30950
30951 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30952
30953 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30954 can test other formats.
30955
30956 2008-02-19 Robert Millan <rmh@aybabtu.com>
30957
30958 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
30959 (grub_gpt_partition_type_empty): Redefine with macro from
30960 `<grub/gpt_partition.h>'.
30961 (gpt_partition_map_iterate): Adjust partition type comparison.
30962
30963 Export `entry' as partmap-specific `part.data' struct.
30964 (grub_gpt_header, grub_gpt_partentry): Move from here ...
30965
30966 * include/grub/gpt_partition.h (grub_gpt_header)
30967 (grub_gpt_partentry): ... to here (new file).
30968
30969 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
30970
30971 (grub_gpt_partition_type_bios_boot): New const variable, defined
30972 with macro from `<grub/gpt_partition.h>'.
30973
30974 (setup): Replace `first_start' with `embed_region', which keeps
30975 track of the embed region (and is partmap-agnostic).
30976
30977 Replace find_first_partition_start() with find_usable_region(),
30978 which finds a usable region for embedding using partmap-specific
30979 knowledge (supports PC/MSDOS and GPT).
30980
30981 Fix all assumptions that the embed region start at sector 1, using
30982 `embed_region.start' from now on. Similarly, use `embed_region.end'
30983 rather than `first_start' to calculate available size.
30984
30985 In grub_util_info() message, replace "into after the MBR" with an
30986 indication of the specific sector our embed region starts at.
30987
30988 2008-02-19 Robert Millan <rmh@aybabtu.com>
30989
30990 * DISTLIST: Replace `commands/ieee1275/halt.c' and
30991 `commands/ieee1275/reboot.c' with `commands/halt.c' and
30992 `commands/reboot.c'.
30993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30994 (halt_mod_SOURCES): Likewise.
30995 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30996 (halt_mod_SOURCES): Likewise.
30997
30998 2008-02-17 Christian Franke <franke@computer.org>
30999
31000 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
31001
31002 2008-02-17 Robert Millan <rmh@aybabtu.com>
31003
31004 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31005 set `first_start' to 0 for non-PC/MSDOS partition maps.
31006
31007 2008-02-16 Robert Millan <rmh@aybabtu.com>
31008
31009 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31010 do not assume partition map is PC/MSDOS before performing checks that
31011 are specific to that layout.
31012
31013 2008-02-13 Robert Millan <rmh@aybabtu.com>
31014
31015 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
31016 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
31017 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
31018
31019 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
31020
31021 * configure.ac: Only a cosmetic change on the handling of
31022 -fno-stack-protector.
31023
31024 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
31025
31026 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
31027 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
31028 reboot.c.
31029 (grub_install_SOURCES): Add halt.mod and reboot.mod.
31030 (halt_mod_SOURCES): New variable.
31031 (halt_mod_CFLAGS): Likewise.
31032 (halt_mod_LDFLAGS): Likewise.
31033 (reboot_mod_SOURCES): Likewise.
31034 (reboot_mod_CFLAGS): Likewise.
31035 (reboot_mod_LDFLAGS): Likewise.
31036
31037 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
31038 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
31039 reboot.c.
31040 (halt_mod_SOURCES): Likewise.
31041 (reboot_mod_SOURCES): Likewise.
31042
31043 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
31044 commands/i386/pc/reboot.c by commands/reboot.c.
31045 (reboot_mod_SOURCES): Likewise.
31046
31047 * commands/i386/pc/reboot.c: merge this file ...
31048
31049 * commands/ieee1275/reboot.c: ... and this file ...
31050
31051 * commands/reboot.c: ... to this file.
31052 Add some precompiler directive to include the correct header for
31053 each machine.
31054
31055 * commands/ieee1275/halt.c: move this file ...
31056
31057 * commands/halt.c: ... to here.
31058 Add some precompiler directive to include the correct header for
31059 each machine.
31060
31061 * include/grub/efi/efi.h (grub_reboot): New function declaration.
31062 (grub_halt): Likewise.
31063
31064 * kern/efi/efi.c (grub_reboot): New function.
31065 (grub_halt): Likewise.
31066
31067 2008-02-12 Robert Millan <rmh@aybabtu.com>
31068
31069 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
31070 /dev (like it is done for /dev/mapper). This doesn't provide support
31071 for EVMS, but at least it is now easy to identify the problem when it
31072 arises.
31073
31074 2008-02-11 Robert Millan <rmh@aybabtu.com>
31075
31076 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
31077 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
31078 comparing it with -1, not 0.
31079
31080 2008-02-10 Robert Millan <rmh@aybabtu.com>
31081
31082 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
31083 `disk/lvm.c'.
31084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31085 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31086
31087 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
31088 `disk/lvm.c' to the end of the list.
31089 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31090 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31091
31092 2008-02-10 Robert Millan <rmh@aybabtu.com>
31093
31094 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
31095 grub_print_error() instead. This will let user know why we're entering
31096 rescue mode.
31097 Based on suggestions from Sam Morris.
31098
31099 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
31100
31101 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
31102 on remaining N args, instead of "--" arg N times.
31103
31104 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
31105
31106 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
31107 (fill_with_default_glyph): Changed to use unknown_glyph for fill
31108 pattern for unknown glyphs.
31109
31110 2008-02-09 Robert Millan <rmh@aybabtu.com>
31111
31112 * configure.ac: Probe for `help2man'.
31113 * Makefile.in (builddir): New variable.
31114 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
31115 or otherwise add a few flags/options to it.
31116 (install-local): For every executable utility or script that is
31117 installed, invoke $(HELP2MAN) to install a manpage based on --help
31118 output.
31119
31120 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
31121 that it doesn't prevent --help from working in build tree.
31122
31123 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
31124 with `bug-grub@gnu.org'.
31125 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
31126 * util/update-grub.in (usage): New function.
31127 Implement proper argument check, with support for --help and --version
31128 (as well as existing -y).
31129
31130 2008-02-09 Christian Franke <franke@computer.org>
31131
31132 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
31133 avoid overwriting previous output.
31134 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
31135
31136 2008-02-09 Robert Millan <rmh@aybabtu.com>
31137
31138 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
31139 drawing the menu.
31140
31141 2008-02-09 Robert Millan <rmh@aybabtu.com>
31142
31143 * commands/sleep.c: New file.
31144 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
31145 (sleep_mod_SOURCES): New variable.
31146 (sleep_mod_CFLAGS): Likewise.
31147 (sleep_mod_LDFLAGS): Likewise.
31148
31149 2008-02-09 Robert Millan <rmh@aybabtu.com>
31150
31151 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
31152 situations in which we can deduce the RAID size and the superblock
31153 doesn't match it.
31154
31155 2008-02-09 Robert Millan <rmh@aybabtu.com>
31156
31157 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
31158 and return a grub_diskmemberlist_t composed of LVM physical volumes.
31159 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
31160
31161 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
31162 and return a grub_diskmemberlist_t composed of physical array members.
31163 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
31164
31165 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
31166 prototype.
31167 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
31168 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
31169 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
31170
31171 * util/grub-probe.c (probe): Move partmap probing code from here ...
31172 (probe_partmap): ... to here.
31173 (probe): Use probe_partmap() once for the disk we're probing, and
31174 additionally, when such disk contains a memberlist() struct member,
31175 once for each disk that is contained in the structure returned by
31176 memberlist().
31177
31178 2008-02-09 Robert Millan <rmh@aybabtu.com>
31179
31180 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
31181 environment variable to 'all' in order to obtain debug output from
31182 non-util/ code.
31183 * util/i386/pc/grub-setup.c (main): Likewise.
31184
31185 2008-02-08 Robert Millan <rmh@aybabtu.com>
31186
31187 * disk/raid.c (grub_raid_scan_device): Check for
31188 `array->device[sb.this_disk.number]' rather than for
31189 `array->device[sb.this_disk.number]->name', since the latter is not
31190 guaranteed to be accessible.
31191
31192 2008-02-08 Robert Millan <rmh@aybabtu.com>
31193
31194 * disk/raid.c: Update copyright.
31195 * fs/cpio.c: Likewise.
31196 * include/grub/raid.h: Likewise.
31197 * loader/i386/pc/multiboot.c: Likewise.
31198 * util/hostfs.c: Likewise.
31199
31200 2008-02-08 Robert Millan <rmh@aybabtu.com>
31201
31202 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
31203 to a grub_disk_t array.
31204 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
31205 `device[x]'.
31206 (grub_raid_scan_device): Replace `device[x].name' accesses with
31207 `device[x]->name'. Simplify initialization of `array->device[x]'.
31208
31209 2008-02-08 Robert Millan <rmh@aybabtu.com>
31210
31211 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
31212 grub_dprintf() calls.
31213 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
31214 error message.
31215
31216 2008-02-07 Christian Franke <franke@computer.org>
31217
31218 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
31219 instead of fseek and ftell to support large files.
31220 (grub_hostfs_read): Likewise.
31221
31222 2008-02-07 Robert Millan <rmh@aybabtu.com>
31223
31224 Patch from Jeroen Dekkers.
31225 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
31226 failure, since successfully reading all array members might not be
31227 required.
31228
31229 2008-02-06 Robert Millan <rmh@aybabtu.com>
31230
31231 * util/grub-probe.c (probe): Simplify partmap probing (with the
31232 assumption that the first word up to the underscore equals to
31233 the module name).
31234
31235 2008-02-06 Christian Franke <franke@computer.org>
31236
31237 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
31238 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
31239 last block of a cpio or tar stream.
31240 Check for "TRAILER!!!" instead of any empty data
31241 block to detect last block of a cpio stream.
31242 (grub_cpio_dir): Fix constness of variable np.
31243 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
31244 cpio or tar trailer is detected. This fixes a crash
31245 on open of a non existing file.
31246
31247 2008-02-05 Bean <bean123ch@gmail.com>
31248
31249 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
31250 address of entry.
31251 (grub_multiboot_load_elf64): Likewise.
31252 (grub_multiboot): Initialize mbi structure.
31253
31254 * util/grub-fstest.c: Don't include unused header file script.h.
31255
31256 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
31257 of file.
31258 (grub_fstest_SOURCES): Likewise.
31259
31260 2008-02-05 Robert Millan <rmh@aybabtu.com>
31261
31262 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
31263 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
31264 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
31265 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
31266
31267 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
31268 (translation_table): Replace hardcoded values with macros
31269 provided by `<grub/term.h>'.
31270
31271 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
31272 (keyboard_map): Correct/add a few values, with macros provided
31273 by `<grub/term.h>'.
31274 (keyboard_map_shift): Zero values that don't differ from their
31275 `keyboard_map' equivalents.
31276 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
31277 Discard the second scan code that is always sent by Caps lock.
31278 Only use `keyboard_map_shift' when it provides a non-zero value,
31279 otherwise fallback to `keyboard_map'.
31280
31281 2008-02-04 Bean <bean123ch@gmail.com>
31282
31283 * Makefile.in (enable_grub_fstest): New variable.
31284
31285 * conf/common.rmk (grub_fstest_init.lst): New rule.
31286 (grub_fstest_init.h): Likewise.
31287 (grub_fstest_init.c): Likewise.
31288 (util/grub-fstest.c_DEPENDENCIES): New variable.
31289 (grub_fstest_SOURCES): Likewise.
31290
31291 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
31292
31293 * util/grub-fstest.c: New file.
31294
31295 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31296
31297 Make grub-setup handle a separate root device.
31298
31299 * util/i386/pc/grub-setup.c (setup): Always open the root device,
31300 so that the root device can be compared with the destination
31301 device.
31302 When embedding the core image, if the root and destination devices
31303 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
31304 0xFF.
31305 When not embedding, set ROOT_DRIVE to 0xFF.
31306
31307 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31308
31309 Add support for having a grub directory in a different drive. This
31310 is still only the data handling part.
31311
31312 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
31313 (codestart): Save %dh in GRUB_ROOT_DRIVE.
31314 (grub_root_drive): New variable.
31315
31316 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
31317 instead of GRUB_BOOT_DRIVE to construct a device name. Set
31318 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
31319 as it was.
31320
31321 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31322
31323 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31324 macro.
31325 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31326
31327 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31328 is bogus, because PXE booting does not specify any drive
31329 correctly.
31330
31331 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31332 am not sure if this is really correct.
31333
31334 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31335 is always identical to the boot drive when booting from a CD.
31336
31337 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31338 longer.
31339 (root_drive): New variable.
31340 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31341 (setup_sectors): Push %dx right after popping it, because %dh will
31342 be modified later.
31343 (copy_buffer): Restore %dx.
31344
31345 2008-02-03 Robert Millan <rmh@aybabtu.com>
31346
31347 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31348 use `cdboot.img' for cdrom images.
31349
31350 2008-02-03 Robert Millan <rmh@aybabtu.com>
31351
31352 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31353 only setup gfxterm when `font' command has succeeded.
31354
31355 2008-02-03 Robert Millan <rmh@aybabtu.com>
31356
31357 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31358 (grub_rescue_cmd_multiboot_loader)
31359 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31360
31361 2008-02-03 Pavel Roskin <proski@gnu.org>
31362
31363 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31364 %edx and %esi from stack only after grub_gate_a20() is called.
31365 grub_gate_a20() clobbers %edx.
31366
31367 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31368
31369 * configure.ac (AC_INIT): Bumped to 1.96.
31370
31371 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31372 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31373 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31374 video/readers/png.c.
31375
31376 2008-02-03 Bean <bean123ch@gmail.com>
31377
31378 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31379 (cdboot_img_SOURCES): New variable.
31380 (cdboot_img_ASFLAGS): New variable.
31381 (cdboot_img_LDFLAGS): New variable.
31382
31383 * boot/i386/pc/cdboot.S: New file.
31384
31385 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31386 (cd_count): Likewise.
31387 (grub_biosdisk_get_drive): Add support for cd device.
31388 (grub_biosdisk_call_hook): Likewise.
31389 (grub_biosdisk_iterate): Likewise.
31390 (grub_biosdisk_open): Likewise.
31391 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31392 (grub_biosdisk_rw): Support reading from cd device.
31393 (GRUB_MOD_INIT): Iterate cd devices.
31394
31395 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31396 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31397 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31398
31399 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31400
31401 2008-02-02 Robert Millan <rmh@aybabtu.com>
31402
31403 * commands/read.c: New file.
31404 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31405 (read_mod_SOURCES): New variable.
31406 (read_mod_CFLAGS): Likewise.
31407 (read_mod_LDFLAGS): Likewise.
31408
31409 2008-02-02 Robert Millan <rmh@aybabtu.com>
31410
31411 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31412 determining whether menu has to be displayed.
31413
31414 2008-02-02 Marco Gerards <marco@gnu.org>
31415
31416 * bus/pci.c: New file.
31417
31418 * include/grub/pci.h: Likewise.
31419
31420 * include/grub/i386/pc/pci.h: Likewise.
31421
31422 * commands/lspci.c: Likewise.
31423
31424 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31425 `lspci.mod'.
31426 (pci_mod_SOURCES): New variable.
31427 (pci_mod_CFLAGS): Likewise.
31428 (pci_mod_LDFLAGS): Likewise.
31429 (lspci_mod_SOURCES): Likewise.
31430 (lspci_mod_CFLAGS): Likewise.
31431 (lspci_mod_LDFLAGS): Likewise.
31432
31433 2008-02-02 Bean <bean123ch@gmail.com>
31434
31435 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31436 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31437
31438 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31439 (grub_xfs_btree_node): New structure.
31440 (grub_xfs_btree_root): New structure.
31441 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31442 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31443 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31444 (GRUB_XFS_EXTENT_SIZE): Likewise.
31445 (grub_xfs_read_block): Support btree format type.
31446 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31447 Use directory block as basic unit.
31448
31449 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31450
31451 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31452 __attribute__ ((__regparm__ (1))).
31453
31454 2008-02-01 Robert Millan <rmh@aybabtu.com>
31455
31456 Correct a mistake in previous commit.
31457
31458 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31459 top.
31460 (normal/command.c_DEPENDENCIES): New variable.
31461
31462 2008-02-01 Robert Millan <rmh@aybabtu.com>
31463
31464 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31465 top.
31466 (normal/command.c_DEPENDENCIES): New variable.
31467 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31468 * conf/i386-ieee1275.rmk: Likewise.
31469 * conf/i386-linuxbios.rmk: Likewise.
31470 * conf/i386-pc.rmk: Likewise.
31471 * conf/sparc64-ieee1275.rmk: Likewise.
31472 * conf/powerpc-ieee1275.rmk: Likewise.
31473 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31474
31475 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31476
31477 2008-02-01 Robert Millan <rmh@aybabtu.com>
31478
31479 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31480 call at beginning of function.
31481
31482 2008-01-31 Pavel Roskin <proski@gnu.org>
31483
31484 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31485 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31486 (grub_mkrescue_SOURCES): Likewise.
31487 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31488
31489 2008-01-30 Robert Millan <rmh@aybabtu.com>
31490
31491 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31492 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31493 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31494 (grub_probe_SOURCES): ... to here.
31495
31496 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31497 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31498 * conf/i386-ieee1275.rmk: Likewise.
31499 * conf/i386-linuxbios.rmk: Likewise.
31500 * conf/powerpc-ieee1275.rmk: Likewise.
31501
31502 2008-01-30 Tristan Gingold <gingold@free.fr>
31503
31504 * kern/rescue.c: Silently accept empty lines.
31505
31506 2008-01-29 Bean <bean123ch@gmail.com>
31507
31508 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31509 (real_code_2): Code cleanup and change comment style.
31510 (move_memory): Avoid using 32-bit address mode.
31511
31512 2008-01-29 Bean <bean123ch@gmail.com>
31513
31514 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31515 (png_mod_SOURCES): New variable.
31516 (png_mod_CFLAGS): Likewise.
31517 (png_mod_LDFLAGS): Likewise.
31518
31519 * video/readers/png.c: New file.
31520
31521 2008-01-28 Robert Millan <rmh@aybabtu.com>
31522
31523 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31524 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31525 `ifndef GRUB_MOD_GAP' hack.
31526 * util/elf/grub-mkimage.c (add_segments): Likewise.
31527
31528 2008-01-27 Robert Millan <rmh@aybabtu.com>
31529
31530 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31531 `GRUB_MOD_GAP' for platforms in which it's not defined.
31532 * util/elf/grub-mkimage.c (add_segments): Likewise.
31533
31534 2008-01-27 Robert Millan <rmh@aybabtu.com>
31535
31536 Get grub-emu to build again (including parallel builds).
31537
31538 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31539 Split into ...
31540 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31541 (normal/execute.c_DEPENDENCIES): ... this, ...
31542 (grub-emu_DEPENDENCIES): ... and this.
31543
31544 * conf/i386-efi.rmk: Likewise.
31545 * conf/i386-linuxbios.rmk: Likewise.
31546 * conf/i386-ieee1275.rmk: Likewise.
31547 * conf/powerpc-ieee1275.rmk: Likewise.
31548 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31549
31550 2008-01-27 Robert Millan <rmh@aybabtu.com>
31551
31552 * NEWS: Add a few items.
31553
31554 2008-01-27 Robert Millan <rmh@aybabtu.com>
31555
31556 Fix parallel builds with grub-emu. Based on earlier commit for
31557 grub-probe and grub-setup.
31558
31559 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31560 (util/grub-emu.c_DEPENDENCIES): ... this.
31561 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31562 (util/grub-emu.c_DEPENDENCIES): ... this.
31563 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31564 (util/grub-emu.c_DEPENDENCIES): ... this.
31565 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31566 (util/grub-emu.c_DEPENDENCIES): ... this.
31567 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31568 (util/grub-emu.c_DEPENDENCIES): ... this.
31569
31570 2008-01-27 Pavel Roskin <proski@gnu.org>
31571
31572 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31573 to create a gap between _end and the modules added to the image
31574 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31575 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31576 * util/elf/grub-mkimage.c (add_segments): Likewise.
31577
31578 2008-01-26 Pavel Roskin <proski@gnu.org>
31579
31580 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31581 just return an error.
31582
31583 2008-01-26 Bean <bean123ch@gmail.com>
31584
31585 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31586 (grub_reiserfs_get_item): Save offset of the next item.
31587 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31588
31589 2008-01-25 Robert Millan <rmh@aybabtu.com>
31590
31591 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31592 make all filesystem sources appear together (possibly fixing omissions
31593 while at it).
31594 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31595 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31596 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31598
31599 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31600 add `kern/file.c'.
31601 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31602 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31603 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31604 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31605
31606 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31607 (probe): Add a sanity check to make sure of our ability to read
31608 requested files when probing for filesystem type.
31609
31610 * genmk.rb: Update copyright year (2007).
31611
31612 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31613 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31614 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31615 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31616 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31617 : Remove function prototypes.
31618
31619 2008-01-25 Robert Millan <rmh@aybabtu.com>
31620
31621 Revert my previous commits (based on wrong assumption of how grub_errno
31622 works).
31623
31624 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31625 * kern/file.c (grub_file_open): Likewise.
31626
31627 2008-01-24 Pavel Roskin <proski@gnu.org>
31628
31629 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31630 that hang if GRUB tries to setup colors.
31631 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31632 colors for firmwares that don't support it.
31633 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31634 Recognize Open Hack'Ware, set flags to work around its
31635 limitations.
31636
31637 2008-01-24 Robert Millan <rmh@aybabtu.com>
31638
31639 * kern/file.c (grub_file_open): Do not account previous failures of
31640 unrelated functions when grub_errno is checked for.
31641 Reported by Oleg Strikov.
31642
31643 2008-01-24 Bean <bean123ch@gmail.com>
31644
31645 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31646 (grub_ufs_sblock): New member volume name.
31647 (grub_ufs_find_file): Fix string copy bug.
31648 (grub_ufs_label): Implement this function properly.
31649
31650 * fs/hfs.c (grub_hfs_cnid_type): New enum.
31651 (grub_hfs_iterate_records): Use the correct file number for extents
31652 and catalog file. Fix problem in next index calculation.
31653 (grub_hfs_find_node): Replace recursive function call with loop.
31654 (grub_hfs_iterate_dir): Replace recursive function call with loop.
31655
31656 2008-01-23 Robert Millan <rmh@aybabtu.com>
31657
31658 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
31659 `<grub/symbol.h>' and `<grub/multiboot.h>'.
31660 (grub_multiboot2_real_boot): New function prototype.
31661
31662 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31663 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31664
31665 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31666 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31667
31668 2008-01-23 Robert Millan <rmh@aybabtu.com>
31669
31670 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31671 #ifdef'ed out grub_printf().
31672
31673 2008-01-23 Robert Millan <rmh@aybabtu.com>
31674
31675 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
31676 grub_dprintf calls, since they make "debug=all" mode unusable.
31677 (grub_console_checkkey): Likewise.
31678
31679 2008-01-23 Robert Millan <rmh@aybabtu.com>
31680
31681 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
31682 `term/i386/pc/at_keyboard.c'.
31683 (pkglib_MODULES): Add `serial.mod'.
31684 (serial_mod_SOURCES): New variable.
31685 (serial_mod_CFLAGS): Likewise.
31686 (serial_mod_LDFLAGS): Likewise.
31687
31688 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
31689 `<grub/powerpc/ieee1275/console.h>'.
31690 (grub_keyboard_controller_init): New function prototype.
31691 (grub_console_checkkey): Likewise.
31692 (grub_console_getkey): Likewise.
31693
31694 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31695 keyboard on i386.
31696
31697 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31698 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31699
31700 2008-01-23 Robert Millan <rmh@aybabtu.com>
31701
31702 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31703 present, "(memdisk)/boot/grub" becomes the default prefix.
31704
31705 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
31706 a memdisk tarball with all the modules. Add --overlay=DIR option that
31707 allows users to overlay additional files into the image.
31708
31709 2008-01-23 Robert Millan <rmh@aybabtu.com>
31710
31711 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
31712 and `machine/memory.h'.
31713 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
31714 (_multiboot_mod_SOURCES): New variable.
31715 (_multiboot_mod_CFLAGS): Likewise.
31716 (_multiboot_mod_LDFLAGS): Likewise.
31717 (multiboot_mod_SOURCES): Likewise.
31718 (multiboot_mod_CFLAGS): Likewise.
31719 (multiboot_mod_LDFLAGS): Likewise.
31720
31721 * include/grub/i386/ieee1275/loader.h: New file.
31722
31723 * include/grub/i386/ieee1275/machine.h: Likewise.
31724
31725 * include/grub/i386/ieee1275/memory.h: Likewise.
31726
31727 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
31728 variable declaration.
31729 (grub_os_area_size): Likewise.
31730
31731 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
31732 (grub_lower_mem, grub_upper_mem): New variables.
31733 (grub_stop_floppy): New function (just to make
31734 grub_multiboot2_real_boot() happy).
31735
31736 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
31737 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
31738 (grub_stop): New function.
31739 Include `"../realmode.S"' and `"../loader.S"'.
31740
31741 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
31742 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
31743
31744 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
31745 rely on grub_multiboot2_real_boot() for final boot.
31746
31747 2008-01-22 Robert Millan <rmh@aybabtu.com>
31748
31749 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
31750 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
31751 device that doesn't look like an SD card.
31752 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31753 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
31754 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
31755 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
31756 found.
31757
31758 2008-01-22 Robert Millan <rmh@aybabtu.com>
31759
31760 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
31761 avoid claiming over our own code.
31762
31763 2008-01-22 Bean <bean123ch@gmail.com>
31764
31765 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
31766 (jpeg_mod_SOURCES): New variable.
31767 (jpeg_mod_CFLAGS): Likewise.
31768 (jpeg_mod_LDFLAGS): Likewise.
31769
31770 * video/readers/jpeg.c : New file.
31771
31772 2008-01-22 Bean <bean123ch@gmail.com>
31773
31774 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
31775 there are no more items.
31776
31777 2008-01-21 Robert Millan <rmh@aybabtu.com>
31778
31779 * kern/mm.c (grub_mm_init_region): Improve debug message.
31780
31781 2008-01-21 Robert Millan <rmh@aybabtu.com>
31782
31783 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
31784 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
31785 address.
31786 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
31787 a C macro.
31788 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
31789 Indicates start of upper memory.
31790 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
31791 (generate_image): Abort when image size is big enough to corrupt
31792 upper memory.
31793
31794 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
31795 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
31796 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31797 instead of hardcoding 0xA0000.
31798 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
31799 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31800 instead of hardcoding 0xA0000.
31801
31802 2008-01-21 Robert Millan <rmh@aybabtu.com>
31803
31804 * disk/memdisk.c (memdisk_size): New variable.
31805 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
31806 `memdisk_size'.
31807 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
31808 image to dynamic memory.
31809 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
31810 `memdisk_size'. Free memdisk block.
31811
31812 2008-01-21 Robert Millan <rmh@aybabtu.com>
31813
31814 Fix detection of very small filesystems (like tar).
31815
31816 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
31817 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
31818 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
31819 a problem with this disk).
31820
31821 2008-01-21 Robert Millan <rmh@aybabtu.com>
31822
31823 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
31824 on grub_biosdisk_rw_standard() error.
31825
31826 2008-01-21 Robert Millan <rmh@aybabtu.com>
31827
31828 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
31829 recent changes.
31830 * kern/elf.c: Likewise.
31831 * kern/ieee1275/ieee1275.c: Likewise.
31832 * kern/powerpc/ieee1275/openfw.c: Likewise.
31833 * term/ieee1275/ofconsole.c: Likewise.
31834
31835 2008-01-21 Robert Millan <rmh@aybabtu.com>
31836
31837 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
31838
31839 * include/grub/kernel.h (grub_arch_memdisk_addr)
31840 (grub_arch_memdisk_size): Moved from here ...
31841
31842 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
31843 (grub_arch_memdisk_size): ... to here.
31844
31845 2008-01-21 Robert Millan <rmh@aybabtu.com>
31846
31847 Mostly based on bugfix from Bean.
31848
31849 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
31850 attribute with hook() parameter.
31851 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
31852 declaration.
31853 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
31854 attribute with hook() parameter.
31855 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
31856 declaration.
31857
31858 2008-01-21 Robert Millan <rmh@aybabtu.com>
31859
31860 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
31861 (pkglib_MODULES): Add `memdisk.mod'.
31862 (memdisk_mod_SOURCES): New variable.
31863 (memdisk_mod_CFLAGS): Likewise.
31864 (memdisk_mod_LDFLAGS): Likewise.
31865
31866 * disk/memdisk.c: New file.
31867
31868 * include/grub/disk.h (grub_disk_dev_id): Add
31869 `GRUB_DISK_DEVICE_MEMDISK_ID'.
31870
31871 * include/grub/i386/pc/kernel.h
31872 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
31873 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
31874 (grub_kernel_image_size): New variable declaration.
31875 (grub_total_module_size): Likewise.
31876 (grub_memdisk_image_size): Likewise.
31877
31878 * include/grub/i386/pc/memory.h
31879 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
31880
31881 * include/grub/kernel.h: Include `<grub/symbol.h>'.
31882 (grub_arch_memdisk_addr): New variable declaration.
31883 (grub_arch_memdisk_size): Likewise.
31884
31885 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
31886 (grub_arch_memdisk_size): Likewise.
31887
31888 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
31889 (codestart): Replace hardcoded `0x100000' with
31890 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
31891
31892 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
31893 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
31894 not NULL, append the contents of the file it refers to, at the end of
31895 the compressed kernel image. Initialize `grub_memdisk_image_size'
31896 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
31897 (options): Add "memdisk"|'m' option.
31898 (main): Parse --memdisk|-m option, and pass user-provided path as
31899 parameter to generate_image().
31900
31901 2008-01-20 Robert Millan <rmh@aybabtu.com>
31902
31903 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
31904 grub_dprintf() calls from here ...
31905 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
31906
31907 2008-01-20 Robert Millan <rmh@aybabtu.com>
31908
31909 Fix detection of "real mode" when /options/real-mode? doesn't exist.
31910
31911 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
31912 declaration.
31913 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
31914 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
31915 `GRUB_IEEE1275_FLAG_REAL_MODE'.
31916 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
31917 property).
31918 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
31919 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
31920
31921 2008-01-19 Robert Millan <rmh@aybabtu.com>
31922
31923 Get rid of confusing function (superseded by
31924 `grub_ieee1275_get_integer_property')
31925 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
31926 prototype.
31927 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31928 function.
31929 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
31930 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
31931 in native endianness from grub_ieee1275_get_integer_property().
31932
31933 2008-01-19 Robert Millan <rmh@aybabtu.com>
31934
31935 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
31936 command after "shut-down", since implementations differ on which
31937 the command for halt is.
31938
31939 2008-01-19 Robert Millan <rmh@aybabtu.com>
31940
31941 * include/grub/i386/linuxbios/console.h: Add header protection.
31942 (grub_keyboard_controller_init): New function prototype.
31943 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
31944 (KEYBOARD_COMMAND_READ): Likewise.
31945 (KEYBOARD_COMMAND_WRITE): Likewise.
31946 (KEYBOARD_SCANCODE_SET1): Likewise.
31947 (grub_keyboard_controller_write): New function.
31948 (grub_keyboard_controller_read): Likewise.
31949 (grub_keyboard_controller_init): Likewise.
31950
31951 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31952 (grub_console_init): On coreboot/LinuxBIOS, call
31953 grub_keyboard_controller_init().
31954
31955 2008-01-19 Robert Millan <rmh@aybabtu.com>
31956
31957 PowerPC changes provided by Pavel Roskin.
31958
31959 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
31960 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
31961 don't rely on cmain() doing it.
31962 * kern/i386/ieee1275/startup.S (_start): Store %eax in
31963 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
31964
31965 2008-01-16 Robert Millan <rmh@aybabtu.com>
31966
31967 * include/grub/i386/linuxbios/memory.h
31968 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
31969 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
31970 receive `table_header' as argument. Instead, probe for it in the
31971 known memory ranges where it can be present.
31972 (grub_available_iterate): Do not pass a fixed `table_header' address
31973 to grub_linuxbios_table_iterate().
31974
31975 2008-01-15 Robert Millan <rmh@aybabtu.com>
31976
31977 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
31978 * conf/i386-ieee1275.rmk: New file.
31979 * include/grub/i386/ieee1275/console.h: Likewise.
31980 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
31981 * include/grub/i386/ieee1275/kernel.h: Likewise.
31982 * include/grub/i386/ieee1275/time.h: Likewise.
31983 * kern/i386/ieee1275/init.c: Likewise.
31984 * kern/i386/ieee1275/startup.S: Likewise.
31985
31986 2008-01-15 Robert Millan <rmh@aybabtu.com>
31987
31988 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
31989 when pointers are 32-bit (but still do set it to one when they are
31990 64-bit).
31991
31992 2008-01-15 Robert Millan <rmh@aybabtu.com>
31993
31994 * include/grub/ieee1275/ieee1275.h
31995 (grub_ieee1275_get_integer_property): New function prototype.
31996
31997 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
31998 (grub_ieee1275_get_integer_property): New function. Wraps around
31999 grub_ieee1275_get_property() to handle endianness.
32000
32001 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
32002 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
32003 where appropriate.
32004 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
32005 (grub_map): Likewise.
32006 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
32007
32008 2008-01-15 Bean <bean123ch@gmail.com>
32009
32010 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
32011 (grub_script_execute_cmdline): Reset grub_errno.
32012
32013 * normal/main.c (read_config_file): Reset grub_errno.
32014
32015 * normal/parse.y (script_init): New.
32016 (script): Move function and menuentry here.
32017 (delimiter): New.
32018 (command): Add delimiter at the end of command.
32019 (commands): Adjust to match the new command.
32020 (commandblock): Remove grub_script_lexer_record_start.
32021 (menuentry): Add grub_script_lexer_record_start, use the new commands.
32022 (if): Use the new commands.
32023
32024 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
32025
32026 2008-01-15 Robert Millan <rmh@aybabtu.com>
32027
32028 * normal/menu.c (run_menu): Move timeout message from here ...
32029 (print_timeout): ... to here.
32030 (run_menu): Use print_timeout() once during initial draw to print
32031 the whole message, and again in every clock tick to update only
32032 the number of seconds.
32033
32034 2008-01-15 Robert Millan <rmh@aybabtu.com>
32035
32036 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
32037 actual size of `available' from grub_ieee1275_get_property(), and
32038 restrict parsing to that bound.
32039
32040 2008-01-15 Christian Franke <franke@computer.org>
32041
32042 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
32043 (argp_program_version): Remove variable.
32044 (argp_program_bug_address): Likewise.
32045 (options): Convert from struct argp_option to struct option.
32046 (struct arguments): Remove.
32047 (parse_opt): Remove.
32048 (usage): New function.
32049 (main): Replace struct args members by simple variables.
32050 Replace argp_parse() by getopt_long().
32051 Add switch to evaluate options.
32052 Add missing "(...)" around root_dev in prefix string.
32053
32054 2008-01-14 Robert Millan <rmh@aybabtu.com>
32055
32056 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
32057 for grub_ieee1275_exit(), in order to improve portability.
32058
32059 2008-01-14 Robert Millan <rmh@aybabtu.com>
32060
32061 * util/grub.d/10_linux.in (prefix): Define.
32062 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
32063
32064 2008-01-13 Pavel Roskin <proski@gnu.org>
32065
32066 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
32067 grub_errno if no errors have been detected.
32068
32069 2008-01-12 Robert Millan <rmh@aybabtu.com>
32070
32071 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
32072 (grub_util_get_dev_abstraction): New function prototype.
32073
32074 * util/getroot.c: Include `<grub/util/getroot.h>'
32075 (grub_util_get_grub_dev): Move detection of abstraction type to ...
32076 (grub_util_get_dev_abstraction): ... here (new function).
32077
32078 * util/grub-probe.c: Convert PRINT_* to an enum. Add
32079 `PRINT_ABSTRACTION'.
32080 (probe): Probe for abstraction type when requested.
32081 (main): Understand `--target=abstraction'.
32082
32083 * util/i386/efi/grub-install.in: Add abstraction module to core
32084 image when it is found to be necessary.
32085 * util/i386/pc/grub-install.in: Likewise.
32086 * util/powerpc/ieee1275/grub-install.in: Likewise.
32087
32088 * util/update-grub_lib.in (font_path): Return system path without
32089 converting to GRUB path.
32090 * util/update-grub.in: Convert system path returned by font_path()
32091 to a GRUB path. Use `grub-probe -t abstraction' to determine what
32092 abstraction module is needed for loading fonts (if any). Export
32093 that as `GRUB_PRELOAD_MODULES'.
32094 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
32095 insmod commands).
32096
32097 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
32098
32099 Remove some unused code from reiserfs.
32100
32101 * fs/reiserfs.c (struct grub_reiserfs_key)
32102 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
32103 (struct grub_reiserfs_node_body): Removed.
32104 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32105 Likewise.
32106 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32107 Likewise.
32108 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32109 Likewise.
32110 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32111 Likewise.
32112 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32113 Likewise.
32114 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
32115 Likewise.
32116 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32117 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32118 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32119
32120 2008-01-10 Robert Millan <rmh@aybabtu.com>
32121
32122 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
32123 Determines if a file is garbage left by packaging systems, etc.
32124 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
32125 for processing /etc/grub.d scripts.
32126 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
32127 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
32128 as a condition for processing Linux images.
32129
32130 2008-01-10 Pavel Roskin <proski@gnu.org>
32131
32132 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
32133 to compile reiserfs.c on PowerPC.
32134
32135 2008-01-10 Robert Millan <rmh@aybabtu.com>
32136
32137 * kern/device.c (grub_device_iterate): Do not abort device iteration
32138 when one of the devices cannot be opened.
32139 * kern/disk.c (grub_disk_open): Do not account previous failures of
32140 unrelated functions when grub_errno is checked for.
32141
32142 2008-01-08 Robert Millan <rmh@aybabtu.com>
32143
32144 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
32145 `! grub_linux_is_bzimage', change order of address comparison to make
32146 it more intuitive, and improve "too big zImage" error message.
32147
32148 2008-01-08 Robert Millan <rmh@aybabtu.com>
32149
32150 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
32151 `$(update-grub_DATA)'.
32152 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
32153 targets.
32154
32155 2008-01-07 Robert Millan <rmh@aybabtu.com>
32156
32157 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
32158 which instruction is modified by grub-setup during installation
32159 (since it wasn't obvious by only looking at this file).
32160
32161 2008-01-07 Robert Millan <rmh@aybabtu.com>
32162
32163 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
32164 listing actual TODO items.
32165
32166 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32167
32168 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
32169 correctly.
32170 (grub_reiserfs_get_key_offset): Likewise.
32171 (grub_reiserfs_set_key_offset): Likewise.
32172 (grub_reiserfs_set_key_type): Likewise.
32173 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
32174
32175 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
32176 better to remove the bitfield version completely.
32177
32178 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32179
32180 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
32181 allocated from the heap, due to the fshelp implementation.
32182 (grub_reiserfs_dir): Free NODE, due to the same reason.
32183
32184 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32185
32186 Mostly from Vincent Pelletier:
32187
32188 * fs/reiserfs.c: New file.
32189
32190 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
32191 (reiserfs_mod_SOURCES): New variable.
32192 (reiserfs_mod_CFLAGS): Likewise.
32193 (reiserfs_mod_LDFLAGS): Likewise.
32194
32195 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
32196 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
32197 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
32198 normal/color.c.
32199
32200 2008-01-06 Robert Millan <rmh@aybabtu.com>
32201
32202 * normal/color.c: Remove `<grub/env.h>'.
32203
32204 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
32205
32206 * include/grub/normal.h: Include <grub/env.h>.
32207
32208 2008-01-05 Robert Millan <rmh@aybabtu.com>
32209
32210 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
32211 usage example with `(hd0,1)'.
32212 Reported by Samuel Thibault.
32213
32214 2008-01-05 Robert Millan <rmh@aybabtu.com>
32215
32216 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
32217 (grub_linux_boot_zimage): Rename to ...
32218 (grub_linux_boot): ... this.
32219 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
32220 (grub_linux_boot_zimage): Conditionalize zImage copy.
32221
32222 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
32223 (grub_linux_boot_bzimage): Remove prototype.
32224 (grub_linux_boot_zimage): Rename to ...
32225 (grub_linux_boot): ... this.
32226
32227 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
32228 (grub_linux_boot): Remove function.
32229
32230 2008-01-05 Robert Millan <rmh@aybabtu.com>
32231
32232 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
32233 (grub_env_write_color_highlight): Likewise.
32234 (grub_wait_after_message): Likewise.
32235
32236 * normal/color.c: New file.
32237
32238 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32239 (normal_mod_DEPENDENCIES): Likewise.
32240
32241 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32242 (normal_mod_DEPENDENCIES): Likewise.
32243
32244 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32245 (normal_mod_DEPENDENCIES): Likewise.
32246
32247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32248 (normal_mod_DEPENDENCIES): Likewise.
32249
32250 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
32251 for waiting after a message is printed.
32252 * normal/main.c (read_config_file): Likewise.
32253 (grub_normal_init): Register grub_env_write_color_normal() and
32254 grub_env_write_color_highlight() hooks. Mark `color_normal' and
32255 `color_highlight' variables as global.
32256
32257 * normal/menu.c (grub_wait_after_message): New function.
32258 (grub_color_menu_normal): New variable. Replaces ...
32259 (GRUB_COLOR_MENU_NORMAL): ... this macro.
32260 (grub_color_menu_highlight): New variable. Replaces ...
32261 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
32262 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
32263 `GRUB_TERM_COLOR_STANDARD'.
32264 (print_message): Use `grub_setcolorstate' to reload colors. Rename
32265 `normal_code' and `highlight_code' to `old_color_normal' and
32266 `old_color_highlight', respectively.
32267 (grub_menu_init_page): Update colors when drawing the menu, based on
32268 `menu_color_normal' and `menu_color_highlight' variables.
32269 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
32270 a message is printed.
32271
32272 2008-01-05 Robert Millan <rmh@aybabtu.com>
32273
32274 * kern/env.c (grub_env_context_open): Propagate hooks for global
32275 variables to new context.
32276
32277 * kern/main.c (grub_set_root_dev): Export `root' variable.
32278
32279 2008-01-05 Robert Millan <rmh@aybabtu.com>
32280
32281 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
32282 discs unconditionally, since udev and others have options to provide
32283 them.
32284
32285 2008-01-05 Robert Millan <rmh@aybabtu.com>
32286
32287 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
32288
32289 2008-01-04 Christian Franke <franke@computer.org>
32290
32291 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
32292 of eisa_mmap.
32293
32294 2008-01-03 Pavel Roskin <proski@gnu.org>
32295
32296 * kern/i386/linuxbios/init.c: Put "void" to all function
32297 declarations with no arguments.
32298 * kern/powerpc/ieee1275/init.c: Likewise.
32299 * term/i386/pc/at_keyboard.c: Likewise.
32300 * term/i386/pc/vga_text.c: Likewise.
32301 * util/grub-mkdevicemap.c: Likewise.
32302
32303 2008-01-02 Robert Millan <rmh@aybabtu.com>
32304
32305 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
32306 message when loaded image is out of bounds.
32307 (grub_multiboot_load_elf64): Likewise.
32308
32309 2008-01-02 Pavel Roskin <proski@gnu.org>
32310
32311 * util/grub.d/10_linux.in: Try version without ".old" when
32312 looking for initrd. It's better to use initrd from the newer
32313 kernel of the same version than no initrd at all.
32314
32315 2008-01-01 Robert Millan <rmh@aybabtu.com>
32316
32317 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
32318
32319 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32320
32321 * include/grub/video.h: Added grub_video_unmap_color and
32322 grub_video_get_active_render_target.
32323 (grub_video_adapter): Added unmap_color and get_active_render_target.
32324
32325 * video/video.c: Added grub_video_unmap_color and
32326 grub_video_get_active_render_target.
32327 (grub_video_get_info): Changed method to accept NULL pointer as an
32328 argument to allow detection of active video adapter.
32329
32330 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32331 grub_video_vbe_unmap_color_int.
32332 Added grub_video_vbe_unmap_color and
32333 grub_video_vbe_get_active_render_target.
32334 (grub_video_vbe_adapter): Added unmap_color and
32335 get_active_render_target.
32336
32337 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32338 with grub_video_vbe_unmap_color_int.
32339
32340 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32341 (DEFAULT_NORMAL_COLOR): Likewise.
32342 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32343 (DEFAULT_FG_COLOR): Removed.
32344 (DEFAULT_BG_COLOR): Likewise.
32345 (DEFAULT_CURSOR_COLOR): Changed value.
32346 (grub_virtual_screen): Added standard_color_setting,
32347 normal_color_setting, highlight_color_setting and term_color.
32348 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32349 (bitmap_width): Added.
32350 (bitmap_height): Likewise.
32351 (bitmap): Likewise.
32352 (set_term_color): Likewise.
32353 (grub_virtual_screen_setup): Changed to use new terminal coloring
32354 settings.
32355 (grub_gfxterm_init): Added init for bitmap.
32356 (grub_gfxterm_fini): Added destroy for bitmap.
32357 (redraw_screen_rect): Updated to use background bitmap and new
32358 terminal coloring.
32359 (scroll_up): Added optimization for case when there is no bitmap.
32360 (grub_gfxterm_cls): Fixed to use correct background color.
32361 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32362 coloring.
32363 (grub_virtual_screen_setcolor): Likewise.
32364 (grub_virtual_screen_getcolor): Added.
32365 (grub_gfxterm_background_image_cmd): Likewise.
32366 (grub_video_term): Added setcolor and getcolor.
32367 (MOD_INIT): Added registration of background_image command.
32368 (MOD_TERM): Added unregistration for background_image command.
32369
32370 2007-12-30 Pavel Roskin <proski@gnu.org>
32371
32372 * loader/multiboot_loader.c: Fix multiboot command
32373 unregistration. Fix all typos in the word "multiboot".
32374
32375 2007-12-29 Pavel Roskin <proski@gnu.org>
32376
32377 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32378 support for initrd names used in Fedora.
32379
32380 2007-12-26 Bean <bean123ch@gmail.com>
32381
32382 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32383 (cpio_mod_SOURCES): New variable.
32384 (cpio_mod_CFLAGS): Likewise.
32385 (cpio_mod_LDFLAGS): Likewise.
32386
32387 * fs/cpio.c: New file.
32388
32389 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32390
32391 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32392
32393 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32394
32395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32396
32397 2007-12-25 Robert Millan <rmh@aybabtu.com>
32398
32399 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32400 (grub_getcolor): New function.
32401
32402 * kern/term.c (grub_getcolor): New function.
32403 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32404 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32405 (print_entry): Set normal and highlight colors to
32406 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32407 respectively, before printing and restore them to old
32408 values afterwards.
32409 (grub_menu_init_page): Likewise. Fill an additional colored space
32410 that would otherwise be left blank.
32411
32412 * term/efi/console.c (grub_console_getcolor): New function.
32413 (struct grub_console_term.getcolor): New variable.
32414 * term/i386/pc/console.c (grub_console_getcolor): New function.
32415 (struct grub_console_term.getcolor): New variable.
32416 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32417 (struct grub_console_term.getcolor): New variable.
32418
32419 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32420 (struct grub_console_term.setcolor): Remove variable.
32421 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32422 (struct grub_console_term.setcolor): Remove variable.
32423 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32424 (struct grub_console_term.setcolor): Remove variable.
32425 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32426 (struct grub_console_term.setcolor): Remove variable.
32427
32428 2007-12-25 Robert Millan <rmh@aybabtu.com>
32429
32430 * configure.ac: Search for possible unifont.hex locations, and
32431 define UNIFONT_HEX if found.
32432
32433 * Makefile.in (UNIFONT_HEX): Define variable.
32434 (DATA): Rename to ...
32435 (PKGLIB): ... this. Update all users.
32436 (PKGDATA): New variable.
32437 (pkgdata_IMAGES): Rename to ...
32438 (pkglib_IMAGES): ... this. Update all users.
32439 (pkgdata_MODULES): Rename to ...
32440 (pkglib_MODULES): ... this. Update all users.
32441 (pkgdata_PROGRAMS): Rename to ...
32442 (pkglib_PROGRAMS): ... this. Update all users.
32443 (pkgdata_DATA): Rename to ...
32444 (pkglib_DATA): ... this. Update all users.
32445 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32446 (unicode.pff, ascii.pff): New rules.
32447 (all-local): Add `$(PKGDATA)' dependency.
32448 (install-local): Process `$(PKGDATA)'.
32449
32450 * util/update-grub_lib.in (font_path): Search for *.pff files in
32451 a few more locations, including `${pkgdata}'.
32452
32453 2007-12-23 Robert Millan <rmh@aybabtu.com>
32454
32455 Patch from Bean <bean123ch@gmail.com>:
32456 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32457 `size'.
32458
32459 2007-12-21 Bean <bean123ch@gmail.com>
32460
32461 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32462 (ntfscomp_mod_SOURCES): New variable.
32463 (ntfscomp_mod_CFLAGS): Likewise.
32464 (ntfscomp_mod_LDFLAGS): Likewise.
32465
32466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32467 (grub_probe_SOURCES): Likewise.
32468 (grub_emu_SOURCES): Likewise.
32469
32470 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32471 (grub_emu_SOURCES): Likewise.
32472
32473 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32474 (grub_emu_SOURCES): Likewise.
32475
32476 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32477 (grub_emu_SOURCES): Likewise.
32478
32479 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32480 (read_run_list): Renamed to grub_ntfs_read_run_list.
32481 (decomp_nextvcn): Moved to ntfscomp.c.
32482 (decomp_getch): Likewise.
32483 (decomp_get16): Likewise.
32484 (decomp_block): Likewise.
32485 (read_block): Likewise.
32486 (read_data): Partially moved to ntfscomp.c.
32487 (fixup): Change unsigned to grub_uint16_t.
32488 (read_mft): Change unsigned long to grub_uint32_t.
32489 (read_attr): Likewise.
32490 (read_data): Likewise.
32491 (read_run_data): Likewise.
32492 (read_run_list): Likewise.
32493 (read_mft): Likewise.
32494
32495 * fs/ntfscomp.c: New file.
32496
32497 * include/grub/ntfs.h: New file.
32498
32499 2007-12-16 Robert Millan <rmh@aybabtu.com>
32500
32501 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32502 IDE disk check, since Linux is known to support 20 IDE disks.
32503 Reported by Colin Watson.
32504
32505 2007-12-15 Bean <bean123ch@gmail.com>
32506
32507 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32508 (lnxboot_img_SOURCES): New variable.
32509 (lnxboot_img_ASFLAGS): Likewise.
32510 (lnxboot_img_LDFLAGS): Likewise.
32511
32512 * boot/i386/pc/lnxboot.S: New file.
32513
32514 2007-11-24 Pavel Roskin <proski@gnu.org>
32515
32516 * configure.ac: Test if '--build-id=none' is supported by the
32517 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32518 objcopy to generate incorrect binary files (binutils
32519 2.17.50.0.18-1 as shipped by Fedora 8).
32520 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32521 linking, so that build ID doesn't break the test.
32522
32523 2007-11-24 Pavel Roskin <proski@gnu.org>
32524
32525 * include/grub/i386/time.h: use "void" in the argument list
32526 of grub_cpu_idle().
32527 * include/grub/powerpc/time.h: Likewise.
32528 * include/grub/sparc64/time.h: Likewise.
32529
32530 2007-11-18 Christian Franke <franke@computer.org>
32531
32532 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32533 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32534 This fixes the problem that function keys did not work in grub-emu.
32535
32536 2007-11-18 Christian Franke <franke@computer.org>
32537
32538 * disk/host.c (grub_host_open): Remove attribute unused from
32539 name parameter. Add check for "host". This fixes the problem
32540 that grub-emu does not find partitions.
32541
32542 2007-11-18 Christian Franke <franke@computer.org>
32543
32544 * util/hostfs.c (is_dir): New function.
32545 (grub_hostfs_dir): Handle missing dirent.d_type case.
32546 (grub_hostfs_read): Add missing fseek().
32547 (grub_hostfs_label): Clear label pointer. This fixes a crash
32548 of grub-emu on "ls (host)".
32549
32550 2007-11-18 Christian Franke <franke@computer.org>
32551
32552 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32553 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32554 to 64 bit boundary by default.
32555
32556 2007-11-18 Bean <bean123ch@gmail.com>
32557
32558 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32559 (hexdump_mod_SOURCES): New variable.
32560 (hexdump_mod_CFLAGS): Likewise.
32561 (hexdump_mod_LDFLAGS): Likewise.
32562
32563 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32564
32565 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32566
32567 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32568
32569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32570
32571 * include/grub/hexdump.h: New file.
32572
32573 * commands/hexdump.c: New file.
32574
32575 2007-11-10 Robert Millan <rmh@aybabtu.com>
32576
32577 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32578 in grub_outb() calls.
32579 (beep_on): Likewise.
32580
32581 2007-11-10 Christian Franke <franke@computer.org>
32582
32583 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32584 (grub_menu_run): Likewise.
32585
32586 2007-11-10 Robert Millan <rmh@aybabtu.com>
32587
32588 * include/grub/i386/efi/machine.h: New file.
32589 * include/grub/i386/linuxbios/machine.h: Likewise.
32590 * include/grub/i386/pc/machine.h: Likewise.
32591 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32592 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32593
32594 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32595 (serial_hw_io_addr): New variable.
32596 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32597 instead of `(unsigned short *) 0x400'.
32598
32599 2007-11-10 Bean <bean123ch@gmail.com>
32600
32601 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32602
32603 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32604
32605 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32606 (vga_mod_SOURCES): Added.
32607 (vga_mod_CFLAGS): Likewise.
32608 (vga_mod_LDFLAGS): Likewise.
32609
32610 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32611 grub_outb() calls.
32612 (set_map_mask): Likewise.
32613 (set_read_map): Likewise.
32614 (set_read_address): Likewise.
32615 (vga_font): Removed variable.
32616 (get_vga_glyph): Removed function.
32617 (invalidate_char): Likewise.
32618 (write_char): Changed to use grub_font_get_glyph() for font
32619 information.
32620 (grub_vga_putchar): Likewise.
32621 (grub_vga_getcharwidth): Likewise.
32622
32623 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32624
32625 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32626 flags.
32627 (pxeboot_img_LDFLAGS): Likewise.
32628 (diskboot_img_LDFLAGS): Likewise.
32629 (kernel_img_LDFLAGS): Likewise.
32630
32631 2007-11-06 Robert Millan <rmh@aybabtu.com>
32632
32633 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32634 in grub_outb() calls.
32635 (serial_hw_init): Likewise.
32636
32637 2007-11-05 Robert Millan <rmh@aybabtu.com>
32638
32639 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32640 spaces. Skip non-regular files.
32641
32642 2007-11-05 Robert Millan <rmh@aybabtu.com>
32643
32644 * kern/disk.c (grub_disk_firmware_fini)
32645 (grub_disk_firmware_is_tainted): New variables.
32646
32647 * include/grub/disk.h (grub_disk_firmware_fini)
32648 (grub_disk_firmware_is_tainted): Likewise.
32649
32650 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
32651 (grub_disk_biosdisk_fini): ... to here.
32652 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
32653 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
32654 is set. Register grub_disk_biosdisk_fini() in
32655 `grub_disk_firmware_fini'.
32656
32657 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
32658 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
32659 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
32660 to finish existing firmware disk interface.
32661
32662 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
32663 (ata_mod_SOURCES): New variable.
32664 (ata_mod_CFLAGS): Likewise.
32665 (ata_mod_LDFLAGS): Likewise.
32666
32667 2007-11-05 Robert Millan <rmh@aybabtu.com>
32668
32669 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32670 (grub_ata_wait): Reimplement using grub_millisleep().
32671
32672 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32673 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32674
32675 2007-11-03 Marco Gerards <marco@gnu.org>
32676
32677 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
32678 (CRTC_ADDR_PORT): New macro.
32679 (CRTC_DATA_PORT): Likewise.
32680 (CRTC_CURSOR): Likewise.
32681 (CRTC_CURSOR_ADDR_HIGH): Likewise.
32682 (CRTC_CURSOR_ADDR_LOW): Likewise.
32683 (update_cursor): New function.
32684 (grub_console_real_putchar): Call `update_cursor'.
32685 (grub_console_gotoxy): Likewise.
32686 (grub_console_cls): Set the default color when clearing the
32687 screen.
32688 (grub_console_setcursor): Implemented.
32689
32690 2007-11-03 Marco Gerards <marco@gnu.org>
32691
32692 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32693 become activate.
32694 (grub_ata_pio_write): Likewise.
32695
32696 (grub_atapi_identify): Wait after issuing an ATA command.
32697 (grub_atapi_packet): Likewise.
32698 (grub_ata_identify): Likewise.
32699 (grub_ata_readwrite): Likewise.
32700
32701 2007-11-03 Marco Gerards <marco@gnu.org>
32702
32703 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
32704 (grub_ata_pio_write): Likewise.
32705 (grub_ata_readwrite): Use `grub_error', instead of
32706 returning `grub_errno'.
32707
32708 2007-11-03 Marco Gerards <marco@gnu.org>
32709
32710 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
32711 grub_ata_pio_write once for every single sector, instead of for
32712 multiple sectors.
32713
32714 2007-10-31 Robert Millan <rmh@aybabtu.com>
32715
32716 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
32717
32718 * conf/i386-linuxbios.rmk: New file.
32719
32720 * kern/i386/pc/hardware.c: Likewise.
32721 * term/i386/pc/at_keyboard.c: Likewise.
32722 * term/i386/pc/vga_text.c: Likewise.
32723
32724 * include/grub/i386/linuxbios/boot.h: Likewise.
32725 * include/grub/i386/linuxbios/console.h: Likewise.
32726 * include/grub/i386/linuxbios/init.h: Likewise.
32727 * include/grub/i386/linuxbios/kernel.h: Likewise.
32728 * include/grub/i386/linuxbios/loader.h: Likewise.
32729 * include/grub/i386/linuxbios/memory.h: Likewise.
32730 * include/grub/i386/linuxbios/serial.h: Likewise.
32731 * include/grub/i386/linuxbios/time.h: Likewise.
32732
32733 * kern/i386/linuxbios/init.c: Likewise.
32734 * kern/i386/linuxbios/startup.S: Likewise.
32735 * kern/i386/linuxbios/table.c: Likewise.
32736
32737 2007-10-31 Marco Gerards <marco@gnu.org>
32738
32739 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
32740 (ata_mod_SOURCES): New variable.
32741 (ata_mod_CFLAGS): Likewise.
32742 (ata_mod_LDFLAGS): Likewise.
32743
32744 * disk/ata.c: New file.
32745
32746 * include/grub/disk.h (grub_disk_dev_id): Add
32747 `GRUB_DISK_DEV_ATA_ID'.
32748
32749 2007-10-31 Robert Millan <rmh@aybabtu.com>
32750
32751 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
32752 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
32753
32754 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
32755 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
32756
32757 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
32758 `<grub/types.h>'.
32759
32760 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
32761
32762 2007-10-27 Robert Millan <rmh@aybabtu.com>
32763
32764 * include/grub/types.h (ULONG_MAX): Define macro.
32765
32766 2007-10-22 Robert Millan <rmh@aybabtu.com>
32767
32768 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
32769 `"../realmode.S"'.
32770 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
32771
32772 2007-10-22 Robert Millan <rmh@aybabtu.com>
32773
32774 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
32775 (pkgdata_MODULES): Add `biosdisk.mod'.
32776 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
32777 variables.
32778
32779 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
32780 (grub_biosdisk_init): Replace with ...
32781 (GRUB_MOD_INIT(biosdisk)): ... this.
32782 (grub_biosdisk_fini): Replace with ...
32783 (GRUB_MOD_FINI(biosdisk)): ... this.
32784
32785 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
32786 (grub_machine_init): Remove call to grub_biosdisk_init().
32787 (grub_machine_fini): Remove call to grub_machine_fini().
32788
32789 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
32790
32791 2007-10-22 Robert Millan <rmh@aybabtu.com>
32792
32793 * include/grub/time.h: New file.
32794 * include/grub/i386/time.h: Likewise.
32795 * include/grub/powerpc/time.h: Likewise.
32796 * include/grub/sparc64/time.h: Likewise.
32797
32798 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
32799 instances to ...
32800 (KERNEL_MACHINE_TIME_HEADER): ... this.
32801 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32802 instances to ...
32803 (KERNEL_MACHINE_TIME_HEADER): ... this.
32804 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32805 instances to ...
32806 (KERNEL_MACHINE_TIME_HEADER): ... this.
32807
32808 * kern/i386/efi/init.c: Include `<grub/time.h>'.
32809 (grub_millisleep): New function.
32810 * kern/i386/pc/init.c: Include `<grub/time.h>'.
32811 (grub_millisleep): New function.
32812 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
32813 Remove `grub/machine/time.h' include.
32814 (grub_millisleep): New function.
32815 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
32816 Remove `grub/machine/time.h' include.
32817 (grub_millisleep): New function.
32818
32819 * include/grub/misc.h (grub_div_roundup): New function.
32820
32821 * kern/misc.c: Include `<grub/time.h>'.
32822 (grub_millisleep_generic): New function.
32823
32824 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
32825 Add `time.h'.
32826 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
32827 Add `time.h'.
32828 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
32829 `machine/time.h'. Add `time.h'.
32830 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32831
32832 2007-10-21 Robert Millan <rmh@aybabtu.com>
32833
32834 * include/grub/misc.h (grub_max): New function.
32835
32836 2007-10-21 Robert Millan <rmh@aybabtu.com>
32837
32838 * util/misc.c (grub_util_info): Call fflush() before returning.
32839
32840 2007-10-20 Robert Millan <rmh@aybabtu.com>
32841
32842 * genmk.rb (Image): Copy `extra_flags' from here ...
32843 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
32844
32845 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
32846 to `argc' and `args' arguments.
32847
32848 2007-10-17 Robert Millan <rmh@aybabtu.com>
32849
32850 * kern/i386/loader.S: New file.
32851
32852 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
32853 * kern/i386/loader.S (grub_linux_prot_size)... to here.
32854 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
32855 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
32856 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
32857 * kern/i386/loader.S (grub_linux_real_addr)... to here.
32858 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
32859 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
32860 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
32861 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
32862 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
32863 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
32864 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
32865 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
32866
32867 * kern/i386/realmode.S: New file.
32868
32869 * kern/i386/pc/startup.S (protstack): Moved from here ...
32870 * kern/i386/realmode.S (protstack)... to here.
32871 * kern/i386/pc/startup.S (gdt): Moved from here ...
32872 * kern/i386/realmode.S (gdt)... to here.
32873 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
32874 * kern/i386/realmode.S (prot_to_real)... to here.
32875
32876 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
32877 `kern/i386/realmode.S'.
32878
32879 2007-10-17 Robert Millan <rmh@aybabtu.com>
32880
32881 * include/grub/i386/loader.h: New file.
32882
32883 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
32884 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32885 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32886 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32887 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
32888 * include/grub/i386/loader.h (grub_linux_prot_size)
32889 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32890 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32891 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32892 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
32893
32894 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
32895
32896 2007-10-15 Robert Millan <rmh@aybabtu.com>
32897
32898 * normal/misc.c (grub_normal_print_device_info): Do not probe for
32899 filesystem when dev->disk is unset.
32900 Do probe for filesystem even when dev->disk->has_partitions is set.
32901 In case a filesystem is found, always report it.
32902 In case it isn't, if dev->disk->has_partitions is set, report that
32903 a partition table was found instead of reporting that no filesystem
32904 could be identified.
32905
32906 2007-10-12 Robert Millan <rmh@aybabtu.com>
32907
32908 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
32909 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
32910
32911 * include/grub/types.h (grub_host_to_target16): New macro.
32912 (grub_host_to_target32): Likewise.
32913 (grub_host_to_target64): Likewise.
32914 (grub_target_to_host16): Likewise.
32915 (grub_target_to_host32): Likewise.
32916 (grub_target_to_host64): Likewise.
32917
32918 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32919 Renamed from to ...
32920 (GRUB_MOD_ALIGN): ...this. Update all users.
32921
32922 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
32923 grub_host_to_target32.
32924 Replace grub_be_to_cpu32 with grub_target_to_host32.
32925 (load_modules): Likewise.
32926 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
32927 Replace grub_be_to_cpu32 with grub_target_to_host32.
32928 Replace grub_cpu_to_be16 with grub_host_to_target16.
32929 Replace grub_cpu_to_be32 grub_host_to_target32.
32930
32931 2007-10-12 Robert Millan <rmh@aybabtu.com>
32932
32933 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32934 * util/elf/grub-mkimage.c: ... here.
32935
32936 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32937 `util/powerpc/ieee1275/grub-mkimage.c'.
32938
32939 2007-10-07 Robert Millan <rmh@aybabtu.com>
32940
32941 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
32942 and make it easier to figure out.
32943 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
32944 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
32945 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
32946 leave us with less than HEAP_MIN_SIZE total heap.
32947 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
32948
32949 2007-10-03 Robert Millan <rmh@aybabtu.com>
32950
32951 * include/grub/i386/io.h: New file.
32952 * commands/i386/pc/play.c (inb): Removed.
32953 (outb): Removed.
32954 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32955 with grub_outb().
32956 * term/i386/pc/serial.c (inb): Removed.
32957 (outb): Removed.
32958 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32959 with grub_outb().
32960 * term/i386/pc/vga.c (inb): Removed.
32961 (outb): Removed.
32962 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32963 with grub_outb().
32964
32965 2007-10-02 Robert Millan <rmh@aybabtu.com>
32966
32967 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
32968 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32969 Reported by Marcin Kurek.
32970
32971 2007-09-07 Robert Millan <rmh@aybabtu.com>
32972
32973 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
32974 SmartFirmware version updates (as released by Sven Luther), and avoid
32975 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
32976 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
32977 known broken.
32978
32979 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32980
32981 From Hitoshi Ozeki:
32982 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
32983 when merging two regions.
32984
32985 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32986
32987 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
32988 * normal/completion.c (grub_normal_do_completion): Likewise.
32989 Reported by Hitoshi Ozeki.
32990
32991 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32992
32993 Do not use devices at boot in chainloading.
32994
32995 * loader/i386/pc/chainloader.c (boot_drive): New variable.
32996 (boot_part_addr): Likewise.
32997 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
32998 with BOOT_DRIVE and BOOT_PART_ADDR.
32999 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
33000 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
33001
33002 2007-08-29 Robert Millan <rmh@aybabtu.com>
33003
33004 Patch from Simon Peter <dn.tlp@gmx.net>:
33005 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
33006 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
33007 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
33008 util/i386/pc/grub-setup.c_DEPENDENCIES.
33009 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
33010 util/grub-probe.c_DEPENDENCIES.
33011 * conf/powerpc-ieee1275.rmk: Likewise.
33012
33013 2007-08-28 Robert Millan <rmh@aybabtu.com>
33014
33015 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
33016 to tell grub-mkdevicemap how to name devices.
33017 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
33018 feature).
33019
33020 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
33021 util/i386/get_disk_name.c.
33022 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
33023 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
33024 util/ieee1275/get_disk_name.c.
33025
33026 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
33027
33028 * DISTLIST: Add util/i386/get_disk_name.c and
33029 util/ieee1275/get_disk_name.c.
33030
33031 * util/grub-mkdevicemap.c: Replace device naming logic with
33032 grub_util_get_disk_name() calls.
33033
33034 2007-08-20 Robert Millan <rmh@aybabtu.com>
33035
33036 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
33037 (so that it works for both plural and singular quantities).
33038
33039 2007-08-05 Robert Millan <rmh@aybabtu.com>
33040
33041 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
33042 so that [xz] isn't taken into account when determining order.
33043
33044 2007-08-02 Marco Gerards <marco@gnu.org>
33045
33046 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
33047 `include/multiboot2.h', `include/grub/elfload.h',
33048 `include/multiboot.h', `include/grub/multiboot.h',
33049 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
33050 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
33051 `kern/elf.c', `loader/multiboot_loader.c',
33052 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
33053 `loader/i386/pc/multiboot2.c',
33054 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
33055 `util/i386/pc/grub-mkrescue.in'. Remove
33056 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
33057 `include/grub/i386/pc/util/biosdisk.h' and
33058 `include/grub/powerpc/ieee1275/multiboot.h'.
33059
33060 2007-08-02 Bean <bean123ch@gmail.com>
33061
33062 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
33063 (ntfs_mod_SOURCES): New variable.
33064 (ntfs_mod_CFLAGS): Likewise.
33065 (ntfs_mod_LDFLAGS): Likewise.
33066
33067 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
33068 (grub_probe_SOURCES): Likewise.
33069 (grub_emu_SOURCES): Likewise.
33070
33071 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33072 (grub_emu_SOURCES): Likewise.
33073
33074 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33075 (grub_emu_SOURCES): Likewise.
33076
33077 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
33078
33079 * fs/ntfs.c: New file.
33080
33081 2007-08-02 Bean <bean123ch@gmail.com>
33082
33083 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
33084
33085 * file.h (grub_file): Likewise.
33086
33087 * fshelp.h (grub_fshelp_read_file): Likewise.
33088
33089 * util/i386/pc/grub-setup.c (setup): Likewise.
33090 (save_first_sector): Likewise.
33091 (save_blocklists): Likewise.
33092
33093 * fs/affs.c (grub_affs_read_file): Likewise.
33094
33095 * fs/ext2.c (grub_ext2_read_file): Likewise.
33096
33097 * fs/fat.c (grub_fat_read_data): Likewise.
33098
33099 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
33100
33101 * fs/hfs.c (grub_hfs_read_file): Likewise.
33102
33103 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33104
33105 * fs/jfs.c (grub_jfs_read_file): Likewise.
33106
33107 * fs/minix.c (grub_minix_read_file): Likewise.
33108
33109 * fs/sfs.c (grub_sfs_read_file): Likewise.
33110
33111 * fs/ufs.c (grub_ufs_read_file): Likewise.
33112
33113 * fs/xfs.c (grub_xfs_read_file): Likewise.
33114
33115 * command/blocklist.c (read_blocklist): Likewise.
33116 (print_blocklist): Likewise.
33117
33118 2007-08-02 Marco Gerards <marco@gnu.org>
33119
33120 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
33121 `util/hostfs.c'.
33122
33123 * disk/host.c: New file.
33124
33125 * util/hostfs.c: Likewise.
33126
33127 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
33128 return `GRUB_ERR_BAD_FS'.
33129 * fs/sfs.c (grub_sfs_mount): Likewise.
33130 * fs/xfs.c (grub_xfs_mount): Likewise.
33131
33132 * include/grub/disk.h (enum grub_disk_dev_id): Add
33133 `GRUB_DISK_DEVICE_HOST_ID'.
33134
33135 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
33136
33137 2007-07-24 Jerone Young <jerone@gmail.com>
33138
33139 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
33140 modules for compilation.
33141 * conf/powerpc-ieee1275.rmk: Likewise.
33142
33143 * include/multiboot.h: Move multiboot definitions to one file. Rename
33144 many definitions to not get grub specific.
33145 * include/multiboot2.h: Create header with multiboot 2 definitions.
33146 * include/grub/multiboot.h: Header for grub specific function
33147 prototypes and definitions.
33148 * include/grub/multiboot2.h: Likewise.
33149 * include/grub/multiboot_loader.h: Likewise.
33150 * include/grub/i386/pc/multiboot.h: Removed.
33151 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
33152
33153 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
33154 and 2 to allow for one multiboot and module commands.
33155 * loader/multiboot2.c: Add multiboot2 functionality.
33156 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
33157 and definition names.
33158 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
33159 2 functions.
33160 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
33161 ieee1275 specific multiboot2 code.
33162
33163 * kern/i386/pc/startup.S: Change headers and definition names for
33164 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
33165
33166 2007-07-22 Robert Millan <rmh@aybabtu.com>
33167
33168 * geninitheader.sh: Process file specified in first parameter rather
33169 than hardcoding grub_modules_init.lst.
33170 * geninit.sh: Likewise. Also, construct header name dynamically rather
33171 than hardcoding grub_modules_init.h.
33172
33173 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
33174 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
33175 grub_probe_init.[ch] and grub_setup_init.[ch].
33176
33177 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
33178 grub_modules_init.h with grub_emu_init.h.
33179 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
33180 grub_probe_init.[ch] files.
33181 * conf/i386-efi.rmk: Likewise.
33182 * conf/i386-pc.rmk: Likewise.
33183 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
33184 grub_setup_init.[ch] files.
33185
33186 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
33187 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
33188 to initialize modules rather than a list of hardcoded functions.
33189 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
33190 grub_init_all() to initialize modules rather than a list of hardcoded
33191 functions.
33192
33193 2007-07-22 Robert Millan <rmh@aybabtu.com>
33194
33195 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
33196 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
33197
33198 2007-07-22 Robert Millan <rmh@aybabtu.com>
33199
33200 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33201 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
33202 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
33203 flag when running on SmartFirmware.
33204 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
33205 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
33206 was set.
33207
33208 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33209 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
33210 rather than decreasing it.
33211
33212 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
33213 there's not enough space to do it, fail in the same way as when it
33214 can't be done because there are no partitions.
33215
33216 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
33217 when nvsetenv failed.
33218
33219 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33220
33221 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
33222 because this rule is automatically generated.
33223 (grub-mkrescue): Removed for the same reason as above.
33224
33225 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33226
33227 Migrate to GNU General Public License Version 3.
33228
33229 * COPYING: Replaced with the plain text version of GPLv3.
33230
33231 * config.guess: Updated from gnulib.
33232 * config.sub: Likewise.
33233
33234 * geninit.sh: Output a GPLv3 copyright notice.
33235 * geninitheader.sh: Likewise.
33236 * genmodsrc.sh: Likewise.
33237 * gensymlist.sh.in: Likewise.
33238
33239 * boot/i386/pc/boot.S: Upgraded to GPLv3.
33240 * boot/i386/pc/diskboot.S: Likewise.
33241 * boot/i386/pc/pxeboot.S: Likewise.
33242 * commands/blocklist.c: Likewise.
33243 * commands/boot.c: Likewise.
33244 * commands/cat.c: Likewise.
33245 * commands/cmp.c: Likewise.
33246 * commands/configfile.c: Likewise.
33247 * commands/echo.c: Likewise.
33248 * commands/help.c: Likewise.
33249 * commands/ls.c: Likewise.
33250 * commands/search.c: Likewise.
33251 * commands/terminal.c: Likewise.
33252 * commands/test.c: Likewise.
33253 * commands/videotest.c: Likewise.
33254 * commands/i386/cpuid.c: Likewise.
33255 * commands/i386/pc/halt.c: Likewise.
33256 * commands/i386/pc/play.c: Likewise.
33257 * commands/i386/pc/reboot.c: Likewise.
33258 * commands/i386/pc/vbeinfo.c: Likewise.
33259 * commands/i386/pc/vbetest.c: Likewise.
33260 * commands/ieee1275/halt.c: Likewise.
33261 * commands/ieee1275/reboot.c: Likewise.
33262 * commands/ieee1275/suspend.c: Likewise.
33263 * disk/loopback.c: Likewise.
33264 * disk/lvm.c: Likewise.
33265 * disk/raid.c: Likewise.
33266 * disk/efi/efidisk.c: Likewise.
33267 * disk/i386/pc/biosdisk.c: Likewise.
33268 * disk/ieee1275/ofdisk.c: Likewise.
33269 * font/manager.c: Likewise.
33270 * fs/affs.c: Likewise.
33271 * fs/ext2.c: Likewise.
33272 * fs/fat.c: Likewise.
33273 * fs/fshelp.c: Likewise.
33274 * fs/hfs.c: Likewise.
33275 * fs/hfsplus.c: Likewise.
33276 * fs/iso9660.c: Likewise.
33277 * fs/jfs.c: Likewise.
33278 * fs/minix.c: Likewise.
33279 * fs/sfs.c: Likewise.
33280 * fs/ufs.c: Likewise.
33281 * fs/xfs.c: Likewise.
33282 * hello/hello.c: Likewise.
33283 * include/grub/acorn_filecore.h: Likewise.
33284 * include/grub/arg.h: Likewise.
33285 * include/grub/bitmap.h: Likewise.
33286 * include/grub/boot.h: Likewise.
33287 * include/grub/cache.h: Likewise.
33288 * include/grub/device.h: Likewise.
33289 * include/grub/disk.h: Likewise.
33290 * include/grub/dl.h: Likewise.
33291 * include/grub/elfload.h: Likewise.
33292 * include/grub/env.h: Likewise.
33293 * include/grub/err.h: Likewise.
33294 * include/grub/file.h: Likewise.
33295 * include/grub/font.h: Likewise.
33296 * include/grub/fs.h: Likewise.
33297 * include/grub/fshelp.h: Likewise.
33298 * include/grub/gzio.h: Likewise.
33299 * include/grub/hfs.h: Likewise.
33300 * include/grub/kernel.h: Likewise.
33301 * include/grub/loader.h: Likewise.
33302 * include/grub/lvm.h: Likewise.
33303 * include/grub/misc.h: Likewise.
33304 * include/grub/mm.h: Likewise.
33305 * include/grub/net.h: Likewise.
33306 * include/grub/normal.h: Likewise.
33307 * include/grub/parser.h: Likewise.
33308 * include/grub/partition.h: Likewise.
33309 * include/grub/pc_partition.h: Likewise.
33310 * include/grub/raid.h: Likewise.
33311 * include/grub/rescue.h: Likewise.
33312 * include/grub/script.h: Likewise.
33313 * include/grub/setjmp.h: Likewise.
33314 * include/grub/symbol.h: Likewise.
33315 * include/grub/term.h: Likewise.
33316 * include/grub/terminfo.h: Likewise.
33317 * include/grub/tparm.h: Likewise.
33318 * include/grub/types.h: Likewise.
33319 * include/grub/video.h: Likewise.
33320 * include/grub/efi/api.h: Likewise.
33321 * include/grub/efi/chainloader.h: Likewise.
33322 * include/grub/efi/console.h: Likewise.
33323 * include/grub/efi/console_control.h: Likewise.
33324 * include/grub/efi/disk.h: Likewise.
33325 * include/grub/efi/efi.h: Likewise.
33326 * include/grub/efi/pe32.h: Likewise.
33327 * include/grub/efi/time.h: Likewise.
33328 * include/grub/i386/linux.h: Likewise.
33329 * include/grub/i386/setjmp.h: Likewise.
33330 * include/grub/i386/types.h: Likewise.
33331 * include/grub/i386/efi/kernel.h: Likewise.
33332 * include/grub/i386/efi/loader.h: Likewise.
33333 * include/grub/i386/efi/time.h: Likewise.
33334 * include/grub/i386/pc/biosdisk.h: Likewise.
33335 * include/grub/i386/pc/boot.h: Likewise.
33336 * include/grub/i386/pc/chainloader.h: Likewise.
33337 * include/grub/i386/pc/console.h: Likewise.
33338 * include/grub/i386/pc/init.h: Likewise.
33339 * include/grub/i386/pc/kernel.h: Likewise.
33340 * include/grub/i386/pc/loader.h: Likewise.
33341 * include/grub/i386/pc/memory.h: Likewise.
33342 * include/grub/i386/pc/multiboot.h: Likewise.
33343 * include/grub/i386/pc/serial.h: Likewise.
33344 * include/grub/i386/pc/time.h: Likewise.
33345 * include/grub/i386/pc/vbe.h: Likewise.
33346 * include/grub/i386/pc/vbeblit.h: Likewise.
33347 * include/grub/i386/pc/vbefill.h: Likewise.
33348 * include/grub/i386/pc/vbeutil.h: Likewise.
33349 * include/grub/i386/pc/vga.h: Likewise.
33350 * include/grub/ieee1275/ieee1275.h: Likewise.
33351 * include/grub/ieee1275/ofdisk.h: Likewise.
33352 * include/grub/powerpc/libgcc.h: Likewise.
33353 * include/grub/powerpc/setjmp.h: Likewise.
33354 * include/grub/powerpc/types.h: Likewise.
33355 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33356 * include/grub/powerpc/ieee1275/console.h: Likewise.
33357 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33358 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33359 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33360 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33361 * include/grub/powerpc/ieee1275/time.h: Likewise.
33362 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33363 * include/grub/sparc64/libgcc.h: Likewise.
33364 * include/grub/sparc64/setjmp.h: Likewise.
33365 * include/grub/sparc64/types.h: Likewise.
33366 * include/grub/sparc64/ieee1275/console.h: Likewise.
33367 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33368 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33369 * include/grub/sparc64/ieee1275/time.h: Likewise.
33370 * include/grub/util/biosdisk.h: Likewise.
33371 * include/grub/util/getroot.h: Likewise.
33372 * include/grub/util/lvm.h: Likewise.
33373 * include/grub/util/misc.h: Likewise.
33374 * include/grub/util/raid.h: Likewise.
33375 * include/grub/util/resolve.h: Likewise.
33376 * io/gzio.c: Likewise.
33377 * kern/device.c: Likewise.
33378 * kern/disk.c: Likewise.
33379 * kern/dl.c: Likewise.
33380 * kern/elf.c: Likewise.
33381 * kern/env.c: Likewise.
33382 * kern/err.c: Likewise.
33383 * kern/file.c: Likewise.
33384 * kern/fs.c: Likewise.
33385 * kern/loader.c: Likewise.
33386 * kern/main.c: Likewise.
33387 * kern/misc.c: Likewise.
33388 * kern/mm.c: Likewise.
33389 * kern/parser.c: Likewise.
33390 * kern/partition.c: Likewise.
33391 * kern/rescue.c: Likewise.
33392 * kern/term.c: Likewise.
33393 * kern/efi/efi.c: Likewise.
33394 * kern/efi/init.c: Likewise.
33395 * kern/efi/mm.c: Likewise.
33396 * kern/i386/dl.c: Likewise.
33397 * kern/i386/efi/init.c: Likewise.
33398 * kern/i386/efi/startup.S: Likewise.
33399 * kern/i386/pc/init.c: Likewise.
33400 * kern/i386/pc/lzo1x.S: Likewise.
33401 * kern/i386/pc/startup.S: Likewise.
33402 * kern/ieee1275/ieee1275.c: Likewise.
33403 * kern/powerpc/cache.S: Likewise.
33404 * kern/powerpc/dl.c: Likewise.
33405 * kern/powerpc/ieee1275/cmain.c: Likewise.
33406 * kern/powerpc/ieee1275/crt0.S: Likewise.
33407 * kern/powerpc/ieee1275/init.c: Likewise.
33408 * kern/powerpc/ieee1275/openfw.c: Likewise.
33409 * kern/sparc64/cache.S: Likewise.
33410 * kern/sparc64/dl.c: Likewise.
33411 * kern/sparc64/ieee1275/init.c: Likewise.
33412 * kern/sparc64/ieee1275/openfw.c: Likewise.
33413 * loader/efi/chainloader.c: Likewise.
33414 * loader/efi/chainloader_normal.c: Likewise.
33415 * loader/i386/efi/linux.c: Likewise.
33416 * loader/i386/efi/linux_normal.c: Likewise.
33417 * loader/i386/pc/chainloader.c: Likewise.
33418 * loader/i386/pc/chainloader_normal.c: Likewise.
33419 * loader/i386/pc/linux.c: Likewise.
33420 * loader/i386/pc/linux_normal.c: Likewise.
33421 * loader/i386/pc/multiboot.c: Likewise.
33422 * loader/i386/pc/multiboot_normal.c: Likewise.
33423 * loader/powerpc/ieee1275/linux.c: Likewise.
33424 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33425 * normal/arg.c: Likewise.
33426 * normal/cmdline.c: Likewise.
33427 * normal/command.c: Likewise.
33428 * normal/completion.c: Likewise.
33429 * normal/execute.c: Likewise.
33430 * normal/function.c: Likewise.
33431 * normal/lexer.c: Likewise.
33432 * normal/main.c: Likewise.
33433 * normal/menu.c: Likewise.
33434 * normal/menu_entry.c: Likewise.
33435 * normal/misc.c: Likewise.
33436 * normal/parser.y: Likewise.
33437 * normal/script.c: Likewise.
33438 * normal/i386/setjmp.S: Likewise.
33439 * normal/powerpc/setjmp.S: Likewise.
33440 * normal/sparc64/setjmp.S: Likewise.
33441 * partmap/acorn.c: Likewise.
33442 * partmap/amiga.c: Likewise.
33443 * partmap/apple.c: Likewise.
33444 * partmap/gpt.c: Likewise.
33445 * partmap/pc.c: Likewise.
33446 * partmap/sun.c: Likewise.
33447 * term/gfxterm.c: Likewise.
33448 * term/terminfo.c: Likewise.
33449 * term/efi/console.c: Likewise.
33450 * term/i386/pc/console.c: Likewise.
33451 * term/i386/pc/serial.c: Likewise.
33452 * term/i386/pc/vesafb.c: Likewise.
33453 * term/i386/pc/vga.c: Likewise.
33454 * term/ieee1275/ofconsole.c: Likewise.
33455 * util/biosdisk.c: Likewise.
33456 * util/console.c: Likewise.
33457 * util/genmoddep.c: Likewise.
33458 * util/getroot.c: Likewise.
33459 * util/grub-emu.c: Likewise.
33460 * util/grub-mkdevicemap.c: Likewise.
33461 * util/grub-probe.c: Likewise.
33462 * util/lvm.c: Likewise.
33463 * util/misc.c: Likewise.
33464 * util/raid.c: Likewise.
33465 * util/resolve.c: Likewise.
33466 * util/update-grub.in: Likewise.
33467 * util/update-grub_lib.in: Likewise.
33468 * util/grub.d/00_header.in: Likewise.
33469 * util/grub.d/10_hurd.in: Likewise.
33470 * util/grub.d/10_linux.in: Likewise.
33471 * util/i386/efi/grub-install.in: Likewise.
33472 * util/i386/efi/grub-mkimage.c: Likewise.
33473 * util/i386/pc/grub-install.in: Likewise.
33474 * util/i386/pc/grub-mkimage.c: Likewise.
33475 * util/i386/pc/grub-mkrescue.in: Likewise.
33476 * util/i386/pc/grub-setup.c: Likewise.
33477 * util/i386/pc/misc.c: Likewise.
33478 * util/powerpc/ieee1275/grub-install.in: Likewise.
33479 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33480 * util/powerpc/ieee1275/misc.c: Likewise.
33481 * video/bitmap.c: Likewise.
33482 * video/video.c: Likewise.
33483 * video/i386/pc/vbe.c: Likewise.
33484 * video/i386/pc/vbeblit.c: Likewise.
33485 * video/i386/pc/vbefill.c: Likewise.
33486 * video/i386/pc/vbeutil.c: Likewise.
33487 * video/readers/tga.c: Likewise.
33488
33489 2007-07-02 Robert Millan <rmh@aybabtu.com>
33490
33491 * conf/i386-efi.rmk: Replace obsolete reference to
33492 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33493 with util/getroot.c.
33494 * conf/powerpc-ieee1275.rmk: Likewise.
33495 * conf/sparc64-ieee1275.rmk: Likewise.
33496
33497 * util/grub-emu.c (main): Fix unchecked pointer handling.
33498
33499 2007-07-02 Robert Millan <rmh@aybabtu.com>
33500
33501 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33502 invocation to fail, in order to support partition-less media.
33503
33504 * util/i386/pc/grub-install.in: Likewise.
33505
33506 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33507 which fs or partmap modules are needed (akin to its sister scripts).
33508
33509 Also use grub-probe to get rid of unportable /proc/mounts check.
33510
33511 Print the same informational message that the other scripts do, before
33512 exiting.
33513
33514 2007-06-23 Robert Millan <rmh@aybabtu.com>
33515
33516 * util/update-grub_lib.in (font_path): New function. Determine whether
33517 a font file can be found and, if so, echo the GRUB path to it.
33518
33519 * util/update-grub.in: Handle multiple terminals depending on user
33520 input, platform availability and font file presence. Propagate
33521 variables of our findings to /etc/grub.d/ children.
33522
33523 * util/grub.d/00_header.in: Handle multiple terminals, based on
33524 environment setup by update-grub.
33525
33526 2007-06-23 Robert Millan <rmh@aybabtu.com>
33527
33528 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33529
33530 2007-06-21 Robert Millan <rmh@aybabtu.com>
33531
33532 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33533 indicate end of data section in kernel image.
33534 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33535 GRUB_KERNEL_MACHINE_DATA_END.
33536
33537 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33538 space for it.
33539 * kern/i386/efi/startup.S: Likewise.
33540
33541 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33542 during image generation. Implement --prefix option to override this
33543 patch.
33544 * util/i386/efi/grub-mkimage.c: Likewise.
33545
33546 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33547 code to make path relative to its root into a separate function.
33548
33549 * util/i386/pc/grub-install.in: Use newly provided
33550 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33551 pass the result to grub-install --prefix.
33552
33553 2007-06-13 Robert Millan <rmh@aybabtu.com>
33554
33555 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33556 DEFAULT_DEVICE_MAP.
33557 * util/grub-emu.c: Use above definitions from misc.h instead of
33558 defining them.
33559 * util/grub-mkdevicemap.c: Likewise.
33560 * util/i386/pc/grub-setup.c: Likewise.
33561 * util/grub-probe.c: Likewise.
33562 (probe): Abort with grub_util_error() when either
33563 grub_guess_root_device or grub_util_get_grub_dev fails.
33564
33565 2007-06-12 Robert Millan <rmh@aybabtu.com>
33566
33567 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33568 "pager" assignment.
33569 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33570 "pcdata".
33571 * util/grub-probe.c (probe): Likewise for "drive_name".
33572
33573 2007-06-11 Robert Millan <rmh@aybabtu.com>
33574
33575 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33576 not just the cdrom one.
33577
33578 2007-06-11 Robert Millan <rmh@aybabtu.com>
33579
33580 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33581 Add --pkglibdir=DIR option to override pkglibdir.
33582 Mention --image-type=TYPE in help output.
33583 Fix --grub-mkimage (it was a no-op).
33584 Abort gracefully when no parameter is given.
33585
33586 2007-06-11 Robert Millan <rmh@aybabtu.com>
33587
33588 * util/i386/pc/grub-mkrescue.in: New file.
33589 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33590 * Makefile.in: Handle bin_SCRIPTS.
33591
33592 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33593
33594 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33595 list of video modes.
33596
33597 2007-06-06 Robert Millan <rmh@aybabtu.com>
33598
33599 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33600 file doesn't exist, or if it is in a filesystem grub can't read.
33601
33602 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33603 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33604 header comment to fit in 80 columns when the variables are resolved.
33605
33606 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33607 could be identified by update-grub. Remove redundant check for
33608 unifont.pff existence (since convert_system_path_to_grub_path now
33609 handles that).
33610
33611 2007-06-04 Robert Millan <rmh@aybabtu.com>
33612
33613 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33614
33615 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33616
33617 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33618
33619 2007-06-04 Robert Millan <rmh@aybabtu.com>
33620
33621 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33622
33623 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33624 grub_apple_partition_map_fini.
33625
33626 * util/biosdisk.c
33627 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33628 to access >2 TiB disks).
33629
33630 Print disk->total_sectors with %llu instead of %lu, since this
33631 variable is always 64-bit (prevents wrong disk size from being displayed
33632 on either >2 TiB disk or big-endian CPU).
33633
33634 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33635 into a generic case that supports all (sane) partition maps.
33636
33637 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33638 breaks big-endian.
33639
33640 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33641 and grub_apple_partition_map_fini() after that.
33642
33643 2007-06-01 Robert Millan <rmh@aybabtu.com>
33644
33645 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33646
33647 * util/grub.d/00_header.in: Only enable gfxterm when
33648 convert_system_path_to_grub_path() succeeds.
33649
33650 2007-05-20 Robert Millan <rmh@aybabtu.com>
33651
33652 * util/update-grub_lib.in: New file.
33653 * DISTLIST: Add update-grub_lib.in.
33654 * conf/common.rmk: Generate update-grub_lib and install it in
33655 $(lib_DATA).
33656 * Makefile.in: Add install routine for $(lib_DATA).
33657
33658 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
33659 function provided by update-grub_lib to support arbitrary paths of
33660 unifont.pff.
33661 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33662 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33663
33664 2007-05-19 Robert Millan <rmh@aybabtu.com>
33665
33666 * commands/i386/cpuid.c: New module.
33667 * DISTLIST: Add it.
33668 * conf/i386-efi.rmk: Enable cpuid.mod.
33669 * conf/i386-pc.rmk: Likewise.
33670
33671 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33672
33673 * kern/disk.c (grub_disk_read): Check return value of
33674 grub_realloc().
33675
33676 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33677
33678 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33679 arrays.
33680 * disk/raid.c (grub_raid_open): Likewise.
33681
33682 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33683
33684 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33685 stack instead of on the heap.
33686
33687 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33688 before doing a read on it.
33689
33690 * configure.ac: Only use -fno-stack-protector for the target
33691 environment.
33692
33693 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33694
33695 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33696 __attribute_ ((unused)) to mode_type argument.
33697
33698 * util/getroot.c (grub_guess_root_device): Fix #endif.
33699
33700 * kern/misc.c (memcmp): Fix prototype.
33701
33702 * include/grub/partition.h [GRUB_UTIL]
33703 (grub_gpt_partition_map_init): Add prototype.
33704 (grub_gpt_partition_map_fini): Likewise.
33705
33706 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
33707 at the right place.
33708
33709 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
33710 (grub_fat_read_data): Likewise.
33711 (grub_fat_find_dir): Likewise.
33712
33713 * font/manager.c (find_glyph): Make table a const.
33714 (grub_font_get_glyph): Remove bitmap from if statement.
33715
33716 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
33717
33718 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
33719 code, first search for device in /dev/mapper, then in /dev.
33720 (grub_util_get_grub_dev): New function.
33721 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
33722 prototype.
33723 * util/grub-probe.c (probe): Remove check for RAID, call
33724 grub_util_get_grub_dev() instead of
33725 grub_util_biosdisk_get_grub_dev().
33726 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
33727 grub_util_biosdisk_get_grub_dev().
33728 * util/i386/pc/grub-setup.c (main): Likewise.
33729
33730 2007-05-16 Robert Millan <rmh@aybabtu.com>
33731
33732 * DISTLIST: Update for the latest changes.
33733 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
33734 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
33735 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
33736 grub/util/biosdisk.h.
33737 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
33738 grub/util/biosdisk.h.
33739
33740 2007-05-16 Robert Millan <rmh@aybabtu.com>
33741
33742 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
33743
33744 2007-05-16 Robert Millan <rmh@aybabtu.com>
33745
33746 * util/i386/efi/grub-install.in: New.
33747 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
33748 newly added grub-install.
33749 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
33750 include.
33751 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
33752 grub/util/biosdisk.h.
33753 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
33754 grub/util/biosdisk.h.
33755
33756 2007-05-16 Robert Millan <rmh@aybabtu.com>
33757
33758 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
33759 * include/grub/util/biosdisk.h: ... here.
33760 * util/i386/pc/biosdisk.c: Moved to ...
33761 * util/biosdisk.c: ... here.
33762 * util/i386/pc/getroot.c: Moved to ...
33763 * util/getroot.c: ... here.
33764 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
33765 * util/grub-mkdevicemap.c: ... here.
33766 * util/i386/pc/grub-probe.c: Moved to ...
33767 * util/grub-probe.c: ... here.
33768
33769 2007-05-15 Robert Millan <rmh@aybabtu.com>
33770
33771 * util/update-grub.in: Remove duplicated line in grub.cfg header
33772 message.
33773
33774 2007-05-13 Robert Millan <rmh@aybabtu.com>
33775
33776 * util/update-grub.in: Fix a few assumptions about the devices holding
33777 /, /boot and /boot/grub being the same.
33778 * util/grub.d/00_header.in: Likewise.
33779 * util/grub.d/10_hurd.in: Likewise.
33780 * util/grub.d/10_linux.in: Likewise.
33781
33782 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
33783 patterns. Use that to define the `.old' suffix as older than `'.
33784
33785 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
33786
33787 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
33788 the grub.cfg header message.
33789
33790 2007-05-11 Robert Millan <rmh@aybabtu.com>
33791
33792 * util/update-grub.in: Create device.map if it doesn't already exist,
33793 before attempting to run grub-probe.
33794 Check for grub-probe and grub-mkdevicemap with the same code
33795 grub-install is using.
33796 Remove test mode.
33797
33798 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
33799
33800 * Makefile.in: Add the datarootdir autoconf variable.
33801
33802 2007-05-09 Robert Millan <rmh@aybabtu.com>
33803
33804 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
33805 fail gracefully if dev->disk->partition == NULL.
33806
33807 2007-05-07 Robert Millan <rmh@aybabtu.com>
33808
33809 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
33810 determine partition map module.
33811 * util/i386/pc/grub-install.in: Use this feature to decide which
33812 partition module to load, instead of hardcoding pc and gpt.
33813
33814 2007-05-07 Robert Millan <rmh@aybabtu.com>
33815
33816 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
33817 source directory differs from build directory.
33818
33819 2007-05-05 Robert Millan <rmh@aybabtu.com>
33820
33821 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
33822 initialisation.
33823
33824 2007-05-05 Robert Millan <rmh@aybabtu.com>
33825
33826 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
33827
33828 2007-05-05 Robert Millan <rmh@aybabtu.com>
33829
33830 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
33831 command-line arguments via ${GRUB_CMDLINE_LINUX}.
33832
33833 2007-05-05 Robert Millan <rmh@aybabtu.com>
33834
33835 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
33836 (grub_probe_SOURCES): Likewise.
33837 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
33838 GPT and initialize dos_part and bsd_part accordingly.
33839 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
33840 install_bsd_part.
33841 (main): Activate gpt module for use during partition identification,
33842 and deactivate it afterwards.
33843 * util/i386/pc/grub-install.in: Add gpt module to core.img.
33844 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
33845 partition identification, and deactivate it afterwards.
33846
33847 2007-05-05 Robert Millan <rmh@aybabtu.com>
33848
33849 * term/i386/pc/console.c (grub_console_fini): Call
33850 grub_term_set_current() before grub_term_unregister().
33851
33852 2007-05-04 Robert Millan <rmh@aybabtu.com>
33853
33854 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
33855 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
33856 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
33857 and update-grub_DATA.
33858 * conf/common.rmk: Build and install update-grub components.
33859 * conf/common.mk: Regenerate.
33860 * util/update-grub.in: New. Core of update-grub.
33861 * util/grub.d/00_header.in: New. Generates grub.cfg header.
33862 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
33863 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
33864 * util/grub.d/README: New. Document grub.d directory layout.
33865
33866 2007-05-01 Robert Millan <rmh@aybabtu.com>
33867
33868 * util/grub-emu.c: Move initialization functions
33869 grub_util_biosdisk_init() and grub_init_all() before
33870 grub_util_biosdisk_get_grub_dev(), which relies on them.
33871
33872 2007-04-19 Robert Millan <rmh@aybabtu.com>
33873
33874 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
33875 it is used later.
33876
33877 2007-04-18 Jerone Young <jerone@gmail.com>
33878
33879 * kernel/elf.c: Add missing parenthesis for conditional statement
33880 stanza.
33881
33882 2007-04-10 Jerone Young <jerone@gmail.com>
33883
33884 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
33885 continue on and look for device node with real device name.
33886
33887 2007-04-10 Jerone Young <jerone@gmail.com>
33888
33889 * configure.ac: Add argument for autoconf to use transformation
33890 ability.
33891 * Makefile.in: Add autoconf package transformation code.
33892 * util/i386/pc/grub-install.in: Likewise.
33893 * util/powerpc/ieee1275/grub-install.in: Likewise.
33894
33895 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33896
33897 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
33898 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
33899 (EXT2_REVISION): Likewise.
33900 (EXT2_INODE_SIZE): Likewise.
33901 (struct grub_ext2_block_group): Added a missing member
33902 "used_dirs".
33903 (grub_ext2_read_inode): Divide by the inode size in a superblock
33904 instead of 128 to obtain INODES_PER_BLOCK.
33905 Use the macro EXT2_INODE_SIZE instead of directly using
33906 SBLOCK->INODE_SIZE.
33907
33908 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33909
33910 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
33911 superblock instead of the structure size to compute an
33912 offset. This fixes the problem that GRUB could not read a
33913 filesystem when inode size is different from 128-byte.
33914
33915 2007-03-05 Marco Gerards <marco@gnu.org>
33916
33917 * normal/main.c (read_config_file): When "menu" is not set, create
33918 an initial context.
33919
33920 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33921
33922 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
33923 (HEAP_LIMIT): New macro.
33924 (grub_claim_heap): Claim memory up to `heaplimit'.
33925
33926 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33927
33928 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
33929 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
33930 (_start): Likewise.
33931 (grub_arch_modules_addr): Return address after `_end'.
33932 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
33933 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
33934 (add_segments): Calculate `_end' from phdr size and location.
33935 (ALIGN_UP): Moved to ...
33936 * include/grub/misc.h: here.
33937 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33938 New macro.
33939 (GRUB_IEEE1275_MODULE_BASE): Removed.
33940
33941 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33942
33943 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33944 loop boundary.
33945
33946 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33947
33948 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33949 All users updated.
33950 (grub_elf64_load_hook_t): Likewise.
33951 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33952 debug output.
33953
33954 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33955
33956 * kern/mm.c: Update copyright.
33957 (grub_mm_debug): Correct syntax error.
33958 (grub_mm_dump_free): New function.
33959 (grub_debug_free): Call `grub_free'.
33960 * include/grub/mm.h: Update copyright.
33961 (grub_mm_dump_free): Add declaration.
33962
33963 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33964
33965 * include/grub/ieee1275/ieee1275.h: Update copyright.
33966 * kern/powerpc/ieee1275/init.c: Likewise.
33967 * kern/powerpc/ieee1275/openfw.c: Likewise.
33968
33969 * loader/powerpc/ieee1275/linux.c: Likewise.
33970 * include/grub/elfload.h: Likewise.
33971 * kern/elf.c: Likewise.
33972 (grub_elf32_load): Pass `base' and `size' parameters. Update all
33973 callers.
33974 (grub_elf64_load): Likewise.
33975 (grub_elf32_load_segment): Move to a nested function.
33976 (grub_elf64_load_segment): Likewise.
33977
33978 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33979
33980 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
33981 prototype.
33982 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
33983 (grub_heap_len): Likewise.
33984 (HEAP_SIZE): New macro.
33985 (grub_claim_heap): New function.
33986 (grub_machine_init): Don't claim heap directly. Call
33987 `grub_claim_heap'.
33988 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
33989 (grub_available_iterate): New function.
33990
33991 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
33992
33993 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
33994 * configure.ac: Use it for testing the HOST and TARGET compilers.
33995
33996 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
33997
33998 * Makefile.in (enable_grub_emu): New variable.
33999 * configure.ac (--enable-grub-emu): New option.
34000 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
34001 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
34002 * conf/i386-pc.rmk: Likewise.
34003 * conf/powerpc-ieee1275.rmk: Likewise.
34004 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
34005
34006 2006-12-12 Marco Gerards <marco@gnu.org>
34007
34008 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
34009
34010 * kern/env.c (grub_env_unset): Don't free the member `value' when
34011 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
34012 pointer.
34013
34014 * normal/main.c (current_menu): Removed.
34015 (free_menu): Unset the `menu' environment variable.
34016 (grub_normal_menu_addentry): Make use of the environment variable
34017 `menu', instead of using the global `current_menu'. Allocate
34018 memory for the sourcecode of this entry.
34019 (read_config_file): New argument `nested', changed all callers.
34020 Only in the case of a new context, initialize a new menu. Set the
34021 `menu' environment variable.
34022 (grub_normal_execute): Don't set and unset the environment
34023 variable `menu' here anymore. Only free the menu when leaving the
34024 context.
34025
34026 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
34027 leak.
34028
34029 2006-12-11 Marco Gerards <marco@gnu.org>
34030
34031 * normal/menu_entry.c (run): Fix off by one bug so the last line
34032 is executed. Move the loader check to outside the loop.
34033
34034 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
34035
34036 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
34037
34038 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
34039
34040 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
34041 the number of sectors. Reported by Andrey Shuvikov
34042 <mr_hyro@yahoo.com>.
34043
34044 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
34045
34046 * kern/disk.c (grub_disk_read): When there is a read error, always
34047 try to read only the necessary data.
34048
34049 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
34050 disk/raid.c.
34051 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
34052 prototype.
34053 [GRUB_UTIL] (grub_raid_fini): Likewise.
34054 [GRUB_UTIL] (grub_lvm_init): Likewise.
34055 [GRUB_UTIL] (grub_lvm_fini): Likewise.
34056 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
34057 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
34058 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
34059 and grub_raid_fini().
34060
34061 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34062
34063 * include/grub/types.h (__unused): Rename to UNUSED.
34064 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
34065 (grub_elf64_size): Likewise.
34066
34067 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34068
34069 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
34070 grub_error_push and grub_error_pop in the error-handling path.
34071 (grub_elf32_load_segment): Only call grub_file_read with non-zero
34072 length.
34073
34074 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34075
34076 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
34077 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34079 (kernel_elf_SOURCES): Likewise.
34080 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
34081 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
34082 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34083 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34084 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
34085 (elf_mod_SOURCES): New variable.
34086 (elf_mod_CFLAGS): Likewise.
34087 (elf_mod_LDFLAGS): Likewise.
34088 * include/grub/types.h (__unused): New macro.
34089 * include/grub/elfload.h: New file.
34090 * kern/elf.c: Likewise.
34091 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
34092 (ELF32_LOADMASK): New macro.
34093 (ELF64_LOADMASK): Likewise.
34094 (vmlinux): Removed.
34095 (grub_linux_load32): New function.
34096 (grub_linux_load64): Likewise.
34097 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
34098 Use grub_elf_t instead of grub_file_t.
34099
34100 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
34101
34102 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
34103 `catch_result' to struct set_color_args.
34104
34105 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34106
34107 * normal/menu.c: Include grub/script.h.
34108 * normal/menu_entry.c: Likewise.
34109 * include/grub/normal.h: Do not include grub/script.h.
34110
34111 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34112
34113 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
34114
34115 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34116
34117 * kern/disk.c (grub_disk_open): Print debug messages when opening a
34118 disk.
34119 (grub_disk_close): Print debug messages when closing a disk.
34120 (grub_disk_read): Print debug messages when disk read fails.
34121 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
34122 filesystem type.
34123 * kern/partition.c: Include misc.h.
34124 (grub_partition_iterate): Print debug messages when detecting
34125 partition type.
34126
34127 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34128
34129 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
34130 is negative.
34131 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
34132
34133 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
34134
34135 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34136 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
34137
34138 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
34139
34140 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
34141 instead of sizeof(lv). Patch by Michael Guntsche.
34142
34143 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
34144
34145 * disk/lvm.c: Rename VGS to VG_LIST.
34146 (grub_lvm_iterate): Change VGS->LV to VG-LV.
34147 (grub_lvm_open): Likewise.
34148 Thanks to Michael Guntsche for finding this bug.
34149
34150 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34151
34152 * configure.ac (AC_INIT): Bumped to 1.95.
34153
34154 2006-10-14 Robert Millan <rmh@aybabtu.com>
34155
34156 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
34157 with "/dev/.static/dev/md".
34158
34159 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34160
34161 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
34162 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
34163 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
34164 DRIVE_NAME are always freed.
34165
34166 * util/i386/pc/biosdisk.c (make_device_name): Add one into
34167 DOS_PART, as a DOS partition is counted from one instead of zero
34168 now. Reported by Robert Millan.
34169
34170 2006-10-14 Robert Millan <rmh@aybabtu.com>
34171
34172 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
34173 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
34174 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
34175 string returned by grub_guess_root_device.
34176 * util/i386/pc/grub-setup.c: Likewise.
34177 * util/i386/pc/grub-probefs.c: Likewise.
34178
34179 * util/i386/pc/grub-probefs.c: Rename to ...
34180 * util/i386/pc/grub-probe.c: ... this.
34181 * DISTLIST: Remove grub-probefs, add grub-probe.
34182 * conf/i386-efi.rmk: Likewise.
34183 * conf/i386-pc.rmk: Likewise.
34184 * util/i386/pc/grub-install.in: Likewise.
34185
34186 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
34187 choose which information we want to print.
34188
34189 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34190
34191 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
34192 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
34193 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
34194 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
34195 video/readers/tga.c and video/i386/pc/vbeutil.c.
34196
34197 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
34198
34199 Added support for RAID and LVM.
34200
34201 * disk/lvm.c: New file.
34202 * disk/raid.c: Likewise.
34203 * include/grub/lvm.h: Likewise.
34204 * include/grub/raid.h: Likewise.
34205 * include/grub/util/lvm.h: Likewise.
34206 * include/grub/util/raid.h: Likewise.
34207 * util/lvm.c: Likewise.
34208 * util/raid.c: Likewise.
34209
34210 * include/grub/disk.h (grub_disk_dev_id): Add
34211 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
34212 (grub_disk_get_size): New prototype.
34213 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
34214 returns a partition.
34215 (grub_disk_get_size): New function.
34216
34217 * kern/i386/pc/init.c (make_install_device): Copy the prefix
34218 verbatim if grub_install_dos_part is -2.
34219
34220 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
34221 and LVM devices.
34222
34223 * util/i386/pc/grub-setup.c (setup): New argument
34224 MUST_EMBED. Force embedding of GRUB when the argument is
34225 true. Close FILE before returning.
34226 (main): Add support for RAID and LVM.
34227
34228 * conf/common.rmk: Add RAID and LVM modules.
34229 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
34230 util/lvm.c.
34231 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
34232
34233 * kern/misc.c (grub_strstr): New function.
34234 * include/grub/misc.h (grub_strstr): New prototype.
34235
34236 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
34237
34238 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
34239
34240 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
34241
34242 * kern/misc.c (grub_strtoull): Guess the base only if not
34243 specified.
34244
34245 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34246
34247 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
34248 PowerMac support.
34249
34250 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34251
34252 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
34253
34254 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
34255 Remove `flags' argument. All callers changed.
34256 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
34257 (IEEE1275_IHANDLE_INVALID): New variable.
34258 (IEEE1275_CELL_INVALID): New variable.
34259 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34260 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
34261 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
34262 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
34263 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
34264 codes from Open Firmware. All callers updated.
34265 (grub_ieee1275_next_property): Directly return Open Firmware return
34266 code.
34267 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
34268 Standardize error checking from `grub_ieee1275_get_property'.
34269 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
34270 `devalias' to `aliases'. Correct comments. Consolidate error paths.
34271
34272 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34273
34274 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
34275 `instance_to_package_args' to `instance_to_path_args'.
34276
34277 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
34278 `grub_ieee1275_chosen'.
34279
34280 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
34281 `grub_ieee1275_interpret'.
34282
34283 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34284
34285 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
34286
34287 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34288
34289 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
34290 (__cmpdi): Likewise.
34291
34292 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
34293 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
34294 `grub_ssize_t'.
34295
34296 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
34297
34298 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
34299 to type `grub_ssize_t'.
34300 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
34301
34302 2006-09-22 Marco Gerards <marco@gnu.org>
34303
34304 * normal/script.c (grub_script_create_cmdmenu): Skip leading
34305 newlines.
34306
34307 2006-09-22 Marco Gerards <marco@gnu.org>
34308
34309 * commands/echo.c: New file.
34310
34311 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
34312
34313 * conf/common.rmk (echo_mod_SOURCES): New variable.
34314 (echo_mod_CFLAGS): Likewise.
34315 (echo_mod_LDFLAGS): Likewise.
34316
34317 2006-09-22 Marco Gerards <marco@gnu.org>
34318
34319 * normal/main.c (get_line): Malloc memory instead of using
34320 preallocated memory. Removed the arguments `cmdline' and
34321 `max_len'. Updated all callers.
34322
34323 2006-09-22 Marco Gerards <marco@gnu.org>
34324
34325 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34326 (normal_mod_DEPENDENCIES): Likewise.
34327
34328 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34329 (normal_mod_DEPENDENCIES): Likewise.
34330
34331 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34332
34333 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34334
34335 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34336 programs.
34337 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34338 (normal_mod_DEPENDENCIES): Likewise.
34339 * conf/i386-pc.mk: Regenerate.
34340 * conf/i386-efi.mk: Likewise
34341 * conf/common.mk: Likewise.
34342 * conf/powerpc-ieee1275.mk: Likewise.
34343 * conf/sparc64-ieee1275.mk: Likewise.
34344
34345 2006-09-22 Robert Millan <rmh@aybabtu.com>
34346
34347 Sync with i386 version.
34348 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34349 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34350
34351 2006-09-21 Robert Millan <rmh@aybabtu.com>
34352
34353 Import from GRUB Legacy (lib/device.c):
34354 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34355 (init_device_map) [__linux__]: Add support for I2O devices.
34356
34357 2006-09-14 Marco Gerards <marco@gnu.org>
34358
34359 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34360 `-melf_i386'.
34361
34362 2006-09-14 Robert Millan <rmh@aybabtu.com>
34363
34364 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34365 /boot/grub/*.lst.
34366
34367 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34368
34369 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34370 before adding it to device.map.
34371
34372 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34373
34374 * genmk.rb: Let GCC generate dependencies the first time it
34375 compiles a file; using the -MD option.
34376 * conf/common.mk: Regenerate.
34377 * conf/i386-pc.mk: Likewise.
34378 * conf/i386-efi.mk: Likewise.
34379 * conf/powerpc-ieee1275.mk: Likewise.
34380 * conf/sparc64-ieee1275.mk: Likewise.
34381
34382 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34383
34384 Move the prototypes of grub_setjmp and grub_longjmp to
34385 cpu/setjmp.h, so that each architecture may specify different
34386 attributes.
34387
34388 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34389 (grub_longjmp): Likewise.
34390 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34391 (grub_longjmp): Likewise.
34392 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34393 (grub_longjmp): Likewise.
34394
34395 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34396 [!GRUB_UTIL] (grub_longjmp): Removed.
34397
34398 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34399
34400 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34401 "color!" method does not return any value.
34402
34403 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34404
34405 * include/grub/bitmap.h: New file.
34406
34407 * include/grub/i386/pc/vbeutil.h: Likewise.
34408
34409 * video/bitmap.c: Likewise.
34410
34411 * video/readers/tga.c: Likewise.
34412
34413 * video/i386/pc/vbeutil.c: Likewise.
34414
34415 * commands/videotest.c: Code cleanup and updated to reflect to new
34416 video API.
34417
34418 * term/gfxterm.c: Likewise.
34419
34420 * video/video.c: Likewise.
34421
34422 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34423 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34424 (bitmap_mod_SOURCES): New entry.
34425 (bitmap_mod_CFLAGS): Likewise.
34426 (bitmap_mod_LDFLAGS): Likewise.
34427 (tga_mod_SOURCES): Likewise.
34428 (tga_mod_CFLAGS): Likewise.
34429 (tga_mod_LDFLAGS): Likewise.
34430
34431 * include/grub/video.h (grub_video_blit_operators): New enum type.
34432 (grub_video_render_target): Changed as forward declaration and moved
34433 actual definition to be video driver specific.
34434 (grub_video_adapter.blit_bitmap): Added blitting operator.
34435 (grub_video_adapter.blit_render_target): Likewise.
34436 (grub_video_blit_bitmap): Likewise.
34437 (grub_video_blit_render_target): Likewise.
34438
34439 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34440 driver specific render target definition.
34441 (grub_video_vbe_map_rgba): Added driver internal helper.
34442 (grub_video_vbe_unmap_color): Updated to use
34443 grub_video_i386_vbeblit_info.
34444 (grub_video_vbe_get_video_ptr): Likewise.
34445
34446 * include/grub/i386/pc/vbeblit.h
34447 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34448 grub_video_i386_vbeblit_info.
34449 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34450 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34451 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34452 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34453 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34454 (grub_video_i386_vbeblit_index_index): Likewise.
34455 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34456 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34457 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34458 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34459 operator.
34460 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34461 operator.
34462
34463 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34464 include/grub/i386/pc/vbeblit.h.
34465
34466 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34467 Updated to use grub_video_i386_vbeblit_info.
34468 (grub_video_i386_vbefill_R8G8B8): Likewise.
34469 (grub_video_i386_vbefill_index): Likewise.
34470 (grub_video_i386_vbefill): Added generic filler.
34471
34472 * video/i386/pc/vbefill.c: Updated to reflect changes on
34473 include/grub/i386/pc/vbefill.h.
34474
34475 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34476 grub_video_i386_vbeblit_info.
34477 (grub_video_vbe_unmap_color): Likewise.
34478 (grub_video_vbe_blit_glyph): Likewise.
34479 (grub_video_vbe_scroll): Likewise.
34480 (grub_video_vbe_draw_pixel): Removed function.
34481 (grub_video_vbe_get_pixel): Likewise.
34482 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34483 updated code to use it.
34484 (common_blitter): Added common blitter for render target and bitmap.
34485 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34486 (grub_video_vbe_blit_render_target): Likewise.
34487
34488 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34489
34490 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34491 is in text mode if there is no console control protocol instance
34492 available.
34493
34494 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34495
34496 * include/grub/video.h: Code cleanup.
34497
34498 * include/grub/i386/pc/vbe.h: Likewise.
34499
34500 * video/i386/pc/vbe.c: Likewise.
34501
34502 * video/i386/pc/vbeblit.c: Likewise.
34503
34504 * video/i386/pc/vbefill.c: Likewise.
34505
34506 * video/video.c: Likewise. Also added more comments.
34507
34508 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34509
34510 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34511 (struct grub_biosdisk_dap): Likewise.
34512
34513 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34514 linkage settings for all functions.
34515
34516 2006-07-12 Marco Gerards <marco@gnu.org>
34517
34518 * configure.ac (--enable-mm-debug): Fix typo.
34519
34520 * genkernsyms.sh.in: Use proper quoting for `CC'.
34521
34522 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34523
34524 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34525 (normal_mod_ASFLAGS): Remove "-m32".
34526
34527 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34528
34529 * util/misc.c: Include config.h.
34530 [!HAVE_MEMALIGN]: Do not include malloc.h.
34531 (grub_memalign): Use posix_memalign, if present. Then, use
34532 memalign, if present. Otherwise, emit an error.
34533
34534 * util/grub-emu.c: Do not include malloc.h.
34535
34536 * include/grub/util/misc.h: Include unistd.h. This is required for
34537 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34538 D. Eades III <hde@foobar-qux.org>.
34539
34540 * configure.ac (AC_GNU_SOURCE): Added.
34541 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34542 type.
34543
34544 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34545
34546 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34547 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34548
34549 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34550
34551 * include/grub/types.h (grub_host_addr_t): Rename to
34552 grub_target_addr_t.
34553 (grub_host_off_t): Rename to grub_target_off_t.
34554 (grub_host_size_t): Rename to grub_target_size_t.
34555 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34556 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34557
34558 * include/grub/kernel.h (struct grub_module_header): Change type
34559 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34560 (grub_module_info): Likewise.
34561
34562 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34563
34564 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34565 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34566 Velazquez <jesus.velazquez@gmail.com>.
34567
34568 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34569
34570 Count partitions from 1 instead of 0 in the string representation
34571 of partitions. Still use 0-based internally.
34572
34573 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34574 (sun_partition_map_iterate): Use grub_partition_t instead of
34575 struct grub_partition *. Cast DESC->START_CYLINDER to
34576 grub_uint64_t after converting the endian.
34577 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34578 (sun_partition_map_get_name): Add 1 to P->INDEX.
34579
34580 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34581 PCDATA->DOS_PART.
34582 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34583
34584 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34585 zero instead of one.
34586 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34587 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34588
34589 * partmap/apple.c (apple_partition_map_iterate): Change the type
34590 of POS to unsigned.
34591 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34592 (apple_partition_map_get_name): Add 1 into P->INDEX.
34593
34594 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34595 of POS to unsigned.
34596 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34597 calculate the offset of a partition.
34598 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34599 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34600
34601 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34602 SECTOR to grub_disk_addr_t.
34603 (acorn_partition_map_iterate): Likewise.
34604 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34605 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34606 top.
34607 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34608
34609 * kern/i386/pc/init.c (make_install_device): Add 1 into
34610 GRUB_INSTALL_DOS_PART.
34611
34612 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34613 conditional.
34614
34615 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34616
34617 Clean up the code to support 64-bit addressing in disks and
34618 files. This change is not enough for filesystems yet.
34619
34620 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34621 type of "start" to grub_uint64_t.
34622 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34623 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34624 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34625 convert addresses.
34626
34627 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34628 to grub_disk_addr_t.
34629
34630 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34631 string.
34632
34633 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34634
34635 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34636 to char *.
34637
34638 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34639
34640 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34641
34642 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34643
34644 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34645 to grub_off_t, to detect an error from grub_file_seek.
34646 (grub_multiboot_load_elf32): Likewise.
34647
34648 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
34649 maximum unsigned long value when an overflow is detected.
34650 (grub_strtoull): New function.
34651 (grub_divmod64): Likewise.
34652 (grub_lltoa): use grub_divmod64.
34653
34654 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34655 grub_disk_addr_t.
34656 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
34657 the pointer to next character. Use grub_strtoull instead of
34658 grub_strtoul.
34659 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
34660 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
34661 respectively.
34662
34663 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
34664 return value is signed.
34665 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
34666 test if OFFSET is less than zero, as OFFSET is unsigned now.
34667
34668 * kern/disk.c (struct grub_disk_cache): Change the type of
34669 "sector" to grub_disk_addr_t.
34670 (grub_disk_cache_get_index): Change the type of SECTOR to
34671 grub_disk_addr_t. Calculate the hash with SECTOR casted to
34672 unsigned after shifting.
34673 (grub_disk_cache_invalidate): Change the type of SECTOR to
34674 grub_disk_addr_t.
34675 (grub_disk_cache_unlock): Likewise.
34676 (grub_disk_cache_store): Likewise.
34677 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
34678 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
34679 grub_disk_addr_t and grub_uint64_t, respectively.
34680 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
34681 body, as the value of OFFSET is tweaked by
34682 grub_disk_check_range. Change the types of START_SECTOR, LEN and
34683 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
34684 respectively.
34685 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
34686 body, as the value of OFFSET is tweaked by
34687 grub_disk_check_range. Change the types of LEN and N to
34688 grub_size_t.
34689
34690 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
34691 and "saved_offset" to grub_off_t.
34692 (test_header): Cast BUF to char *.
34693 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
34694 to char *.
34695 (grub_gzio_read): Change the types of OFFSET and SIZE to
34696 grub_off_t and grub_size_t, respectively.
34697
34698 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34699 Removed.
34700 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
34701 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
34702 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
34703 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
34704 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
34705
34706 * include/grub/types.h (grub_off_t): Unconditionally set to
34707 grub_uint64_t.
34708 (grub_disk_addr_t): Changed to grub_uint64_t.
34709
34710 * include/grub/partition.h (struct grub_partition): Change the
34711 types of "start", "len" and "offset" to grub_disk_addr_t,
34712 grub_uint64_t and grub_disk_addr_t, respectively.
34713 (grub_partition_get_start): Return grub_disk_addr_t.
34714 (grub_partition_get_len): Return grub_uint64_t.
34715
34716 * include/grub/misc.h (grub_strtoull): New prototype.
34717 (grub_divmod64): Likewise.
34718
34719 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
34720 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
34721 grub_off_t, respectively.
34722 All callers and references changed.
34723
34724 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
34725 grub_size_t in "read".
34726 All callers and references changed.
34727
34728 * include/grub/file.h (struct grub_file): Change the types of
34729 "offset" and "size" to grub_off_t and grub_off_t,
34730 respectively. Change the type of SECTOR to grub_disk_addr_t in
34731 "read_hook".
34732 (grub_file_read): Change the type of LEN to grub_size_t.
34733 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
34734 grub_off_t.
34735 (grub_file_size): Return grub_off_t.
34736 (grub_file_tell): Likewise.
34737 All callers and references changed.
34738
34739 * include/grub/disk.h (struct grub_disk_dev): Change the types of
34740 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
34741 "write".
34742 (struct grub_disk): Change the type of "total_sectors" to
34743 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
34744 "read_hook".
34745 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
34746 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
34747 (grub_disk_write): Likewise.
34748 All callers and references changed.
34749
34750 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
34751 char * for grub_strncmp to silence gcc.
34752 (grub_iso9660_mount): Likewise.
34753 (grub_iso9660_mount): Likewise.
34754 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
34755 return statement.
34756 (grub_iso9660_iterate_dir): Likewise.
34757 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
34758
34759 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
34760 LEN to grub_disk_addr_t and grub_size_t, respectively.
34761
34762 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34763
34764 * fs/jfs.c (grub_jfs_read_file): Likewise.
34765
34766 * fs/minix.c (grub_jfs_read_file): Likewise.
34767
34768 * fs/sfs.c (grub_jfs_read_file): Likewise.
34769
34770 * fs/ufs.c (grub_jfs_read_file): Likewise.
34771
34772 * fs/xfs.c (grub_jfs_read_file): Likewise.
34773
34774 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
34775 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
34776 respectively.
34777
34778 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
34779 BLKNR to -1 instead of returning GRUB_ERRNO.
34780 (grub_ext2_read_file): Change the types of SECTOR and
34781 LEN to grub_disk_addr_t and grub_size_t, respectively.
34782
34783 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
34784 LEN to grub_disk_addr_t and grub_size_t, respectively.
34785
34786 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
34787 grub_file_read.
34788
34789 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
34790 string. Do not cast SECTOR explicitly.
34791
34792 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
34793 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
34794 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
34795 grub_disk_addr_t and grub_size_t, respectively. If the sector is
34796 over 2TB and LBA mode is not supported, raise an error.
34797 (get_safe_sectors): New function.
34798 (grub_biosdisk_read): Use get_safe_sectors.
34799 (grub_biosdisk_write): Likewise.
34800
34801 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
34802 (grub_efidisk_write): Likewise.
34803
34804 * disk/loopback.c (delete_loopback): Cosmetic changes.
34805 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
34806 correctly.
34807 (grub_loopback_open): Likewise.
34808 (grub_loopback_read): Likewise. Also, change the type of POS to
34809 grub_off_t, and fix the usage of grub_memset.
34810
34811 * commands/i386/pc/play.c: Include grub/machine/time.h.
34812
34813 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
34814 print FILE->SIZE.
34815
34816 * commands/configfile.c: Include grub/env.h.
34817
34818 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
34819 GRUB_ERRNO directly instead. Change the type of POS to
34820 grub_off_t. Follow the coding standard.
34821
34822 * commands/blocklist.c: Include grub/partition.h.
34823 (grub_cmd_blocklist): Return an error if the underlying device is
34824 not a disk. Take the starting sector of a partition into account,
34825 if a partition is used.
34826
34827 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
34828 a length field.
34829 (lba_mode): Support 64-bit addresses.
34830 (chs_mode): Likewise.
34831 (copy_buffer): Adapted to the new offsets of a length field and a
34832 segment field.
34833 (blocklist_default_start): Allocate 64-bit space.
34834
34835 * boot/i386/pc/boot.S (force_lba): Removed.
34836 (boot_drive): Moved to under KERNEL_SECTOR.
34837 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
34838 space.
34839 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
34840 is useless.
34841 (lba_mode): Refactored to support a 64-bit address. More size
34842 optimization.
34843 (setup_sectors): Likewise.
34844
34845 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34846
34847 * DISTLIST: Added include/grub/i386/linux.h. Removed
34848 include/grub/i386/pc/linux.h
34849
34850 * configure.ac (AC_INIT): Bumped to 1.94.
34851
34852 * config.guess: Updated from gnulib.
34853 * config.sub: Likewise.
34854 * install-sh: Likewise.
34855 * mkinstalldirs: Likewise.
34856
34857 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34858
34859 * conf/common.rmk (grub_modules_init.lst): Depended on
34860 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
34861 MODSRCFILES.
34862
34863 * genmk.rb (PModule::rule): Reverted the previous change.
34864
34865 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34866
34867 * conf/common.rmk (grub_modules_init.lst): Depends on
34868 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
34869 that the target does not exist before producing.
34870 (grub_modules_init.h): Remove the target before generating.
34871 (grub_emu_init.c): Likewise.
34872
34873 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
34874
34875 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
34876
34877 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
34878 for the target-specific tests. Make sure that we also have the
34879 up-to-date target variables for those tests.
34880
34881 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34882
34883 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
34884 (PModule::rule): Likewise.
34885
34886 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34887
34888 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
34889 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
34890 target-specific flags should be prefixed.
34891 (PModule::rule): Likewise.
34892
34893 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
34894
34895 * configure.ac (CMP): Check if cmp is available explicitly.
34896
34897 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
34898
34899 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
34900 (target_cpu): New variable.
34901 (pkglibdir): Use target_cpu instead of host_cpu.
34902
34903 * util/i386/pc/grub-install.in (host_cpu): Removed.
34904 (target_cpu): New variable.
34905 (pkglibdir): Use target_cpu instead of host_cpu.
34906
34907 * util/genmoddep.c: Removed.
34908
34909 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
34910 instead of GRUB_HOST_SIZEOF_VOID_P.
34911 * kern/dl.c: Likewise.
34912
34913 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
34914 ...
34915 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34916 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34917 (GRUB_TARGET_SIZEOF_LONG): ... this.
34918 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34919 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34920 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34921 to ...
34922 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34923 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34924 (GRUB_TARGET_SIZEOF_LONG): ... this.
34925 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34926 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34927 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34928 to ...
34929 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34930 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34931 (GRUB_TARGET_SIZEOF_LONG): ... this.
34932 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34933 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34934
34935 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
34936 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
34937 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
34938 instead of GRUB_HOST_SIZEOF_LONG.
34939 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
34940 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
34941 GRUB_CPU_WORDS_BIGENDIAN.
34942 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
34943 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
34944 grub_host_ssize_t.
34945
34946 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
34947 (genmoddep_SOURCES): Likewise.
34948 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
34949 (genmoddep_SOURCES): Likewise.
34950 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
34951 (genmoddep_SOURCES): Likewise.
34952 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
34953 Likewise.
34954 (genmoddep_SOURCES): Likewise.
34955
34956 * genmoddep.awk: New file.
34957
34958 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
34959 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
34960 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
34961 (PModule::rule): Likewise.
34962 (Program::rule): Likewise.
34963 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
34964 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
34965 respectively.
34966
34967 * configure.ac: Rewritten intensively to use host and target
34968 instead of build and host, respectively.
34969
34970 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
34971 (host_cpu): Removed.
34972 (target_cpu): New variable.
34973 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
34974 (BUILD_CC): Removed.
34975 (BUILD_CFLAGS): Likewise.
34976 (BUILD_CPPFLAGS): Likewise.
34977 (TARGET_CC): New variable.
34978 (TARGET_CFLAGS): Likewise.
34979 (TARGET_CPPFLAGS): Likewise.
34980 (TARGET_LDFLAGS): Likewise.
34981 (AWK): Likewise.
34982 (include): Use target_cpu instead of host_cpu.
34983 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
34984
34985 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
34986
34987 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
34988
34989 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
34990 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
34991 field 'false' to 'exec_on_false'.
34992 (grub_script_create_cmdif): Renamed argument names to reflect above
34993 changes.
34994
34995 * normal/execute.c (grub_script_execute_cmdif): Likewise.
34996
34997 * normal/script.c (grub_script_create_cmdif): Likewise.
34998
34999 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
35000
35001 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
35002 top.
35003 (grub_hfsplus_btree_recptr): Likewise.
35004 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
35005 FILEBLOCK both to pass a block number and store next block
35006 number.
35007 (grub_hfsplus_read_block): Rewritten heavily to support an extent
35008 overflow file correctly. Specify errors appropriately, because
35009 fshelp expects that GRUB_ERRNO is set when fails. Reuse
35010 grub_hfsplus_btree_recptr to get the pointer to a found key.
35011 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
35012 is found.
35013
35014 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
35015 linux.mod.
35016 (_linux_mod_SOURCES): New variable.
35017 (_linux_mod_CFLAGS): Likewise.
35018 (_linux_mod_LDFLAGS): Likewise.
35019 (linux_mod_SOURCES): Likewise.
35020 (linux_mod_CFLAGS): Likewise.
35021 (linux_mod_LDFLAGS): Likewise.
35022
35023 * DISTLIST: Added loader/i386/efi/linux.c,
35024 loader/i386/efi/linux_normal.c and
35025 include/grub/i386/efi/loader.h.
35026
35027 * loader/i386/efi/linux.c: New file.
35028 * loader/i386/efi/linux_normal.c: Likewise.
35029 * include/grub/i386/efi/loader.h: Likewise.
35030
35031 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
35032
35033 * commands/blocklist.c: New file.
35034
35035 * DISTLIST: Added commands/blocklist.c.
35036
35037 * term/efi/console.c (grub_console_highlight_color): Use a lighter
35038 color for the background, and a darker color for the foreground.
35039 (grub_console_checkkey): Return READ_KEY.
35040 (grub_console_cls): Set the background to
35041 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
35042
35043 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
35044
35045 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
35046 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
35047
35048 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
35049 prototype.
35050
35051 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
35052 BG. The spec is wrong again.
35053
35054 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
35055 prototype.
35056 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
35057
35058 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35059 commands/blocklist.c.
35060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35061
35062 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
35063 (blocklist_mod_SOURCES): New variable.
35064 (blocklist_mod_CFLAGS): Likewise.
35065 (blocklist_mod_LDFLAGS): Likewise.
35066
35067 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
35068
35069 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
35070 duplication.
35071 (lba_mode): Use %eax more intensively to reduce the code size.
35072
35073 2006-05-20 Marco Gerards <marco@gnu.org>
35074
35075 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
35076
35077 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
35078 for `menuentry'.
35079 (script): Accept leading newlines.
35080 (newlines): New rule to describe 0 or more newlines.
35081 (commands): Accept `command' with trailing newline. Fixed the
35082 order in which arguments were passed to `grub_script_add_cmd'.
35083 Accept commands separated by newlines.
35084 (function): Changed to accept newlines.
35085 (menuentry) Rewritten.
35086
35087 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
35088 front of the list, instead of to the end.
35089
35090 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
35091
35092 * util/i386/pc/grub-install.in (bindir): New variable.
35093 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
35094 Shaver <lbgwjl@gmail.com>.
35095
35096 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
35097
35098 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
35099 grub/machine/linux.h
35100 * loader/i386/pc/linux.c: Likewise.
35101
35102 * include/grub/i386/pc/linux.h: Moved to ...
35103 * include/grub/i386/linux.h: ... here.
35104
35105 * include/grub/i386/linux.h (struct linux_kernel_params): New
35106 struct.
35107
35108 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
35109
35110 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
35111 checking.
35112 (grub_video_vbe_blit_glyph): Likewise.
35113 (grub_video_vbe_blit_bitmap): Likewise.
35114 (grub_video_vbe_blit_render_target): Likewise.
35115
35116 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
35117
35118 * configure.ac (--with-platform): Properly quote the square
35119 brackets.
35120
35121 2006-05-08 Marco Gerards <marco@gnu.org>
35122
35123 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
35124 this...
35125 (kernel_elf_HEADERS): ...to this. Updated all users.
35126 (grubof_symlist.c): Renamed from this...
35127 (kernel_elf_symlist.c): ...to this. Updated all users.
35128 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35129 (grubof_SOURCES): Renamed from this...
35130 (kernel_elf_SOURCES): ...to this.
35131 (grubof_HEADERS): Renamed from this...
35132 (kernel_elf_HEADERS): ...to this.
35133 (grubof_CFLAGS): Renamed from this...
35134 (kernel_elf_CFLAGS): ...to this.
35135 (grubof_ASFLAGS): Renamed from this...
35136 (kernel_elf_ASFLAGS): ...to this.
35137 (grubof_LDFLAGS): Renamed from this...
35138 (kernel_elf_LDFLAGS): ...to this.
35139
35140 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
35141 this...
35142 (kernel_elf_HEADERS): ...to this. Updated all users.
35143 (grubof_symlist.c): Renamed from this...
35144 (kernel_elf_symlist.c): ...to this. Updated all users.
35145 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35146 (grubof_SOURCES): Renamed from this...
35147 (kernel_elf_SOURCES): ...to this.
35148 (grubof_HEADERS): Renamed from this...
35149 (kernel_elf_HEADERS): ...to this.
35150 (grubof_CFLAGS): Renamed from this...
35151 (kernel_elf_CFLAGS): ...to this.
35152 (grubof_ASFLAGS): Renamed from this...
35153 (kernel_elf_ASFLAGS): ...to this.
35154 (grubof_LDFLAGS): Renamed from this...
35155 (kernel_elf_LDFLAGS): ...to this.
35156
35157 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
35158 `kernel.elf' instead of `grubof'.
35159
35160 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
35161
35162 Add --with-platform to configure. Use pkglibdir instead of
35163 pkgdatadir. This is reported by Roger Leigh.
35164
35165 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
35166 (host_vendor): Likewise.
35167 (host_os): Likewise.
35168 (pkgdatadir): Likewise.
35169 (platform): New variable.
35170 (pkglibdir): Likewise.
35171 Use PKGLIBDIR instead of PKGDATADIR.
35172
35173 * util/i386/pc/grub-install.in (datadir): Removed.
35174 (host_vendor): Likewise.
35175 (host_os): Likewise.
35176 (pkgdatadir): Likewise.
35177 (platform): New variable.
35178 (pkglibdir): Likewise.
35179 Use PKGLIBDIR instead of PKGDATADIR.
35180
35181 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
35182 instead of GRUB_DATADIR.
35183 (main): Likewise.
35184 * util/i386/pc/grub-mkimage.c (usage): Likewise.
35185 (main): Likewise.
35186 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35187 (main): Likewise.
35188
35189 * configure.ac (--with-platform): New option.
35190 Use PLATFORM instead of HOST_VENDOR to specify a platform.
35191
35192 * Makefile.in: Include a makefile based on PLATFORM instead of
35193 HOST_VENDOR.
35194 (pkgdatadir): Not appended by the machine type.
35195 (pkglibdir): Appended by the machine type.
35196 (host_vendor): Removed.
35197 (platform): New variable.
35198 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
35199 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
35200 (uninstall): Likewise.
35201
35202 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
35203
35204 Use the environment context in the menu. Remove the commands
35205 "default" and "timeout", and use variables instead.
35206
35207 * normal/menu.c: Include grub/env.h.
35208 (print_entry): Cast TITLE to silence gcc.
35209 (get_timeout): New function.
35210 (set_timeout): Likewise.
35211 (get_entry_number): Likewise.
35212 (run_menu): Use a default entry, a fallback entry and a timeout
35213 in the environment variables "default", "fallback" and
35214 "timeout". Also, tweak the default entry if it is not within the
35215 current menu entries.
35216 (grub_menu_run): Use a fallback entry in the environment variable
35217 "fallback".
35218
35219 * normal/main.c (read_config_file): Do not initialize
35220 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
35221 NEWMENU->TIMEOUT.
35222 (grub_normal_execute): Use a data slot to store the menu.
35223
35224 * include/grub/normal.h (struct grub_menu): Removed default_entry,
35225 fallback_entry and timeout.
35226 (struct grub_menu_list): Removed.
35227 (grub_menu_list_t): Likewise.
35228 (struct grub_context): Likewise.
35229 (grub_context_t): Likewise.
35230 (grub_context_get): Likewise.
35231 (grub_context_get_current_menu): Likewise.
35232 (grub_context_push_menu): Likewise.
35233 (grub_context_pop_menu): Likewise.
35234 (grub_default_init): Likewise.
35235 (grub_default_fini): Likewise.
35236 (grub_timeout_init): Likewise.
35237 (grub_timeout_fini): Likewise.
35238
35239 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
35240 and timeout.mod.
35241 (normal_mod_SOURCES): Removed normal/context.c.
35242
35243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
35244 commands/default.c, commands/timeout.c and normal/context.c.
35245 (normal_mod_SOURCES): Removed normal/context.c.
35246
35247 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
35248 commands/timeout.c and normal/context.c.
35249 (normal_mod_SOURCES): Removed normal/context.c.
35250
35251 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
35252 commands/default.c, commands/timeout.c and normal/context.c.
35253 (normal_mod_SOURCES): Removed normal/context.c.
35254
35255 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
35256 timeout.mod.
35257 (default_mod_SOURCES): Removed.
35258 (default_mod_CFLAGS): Likewise.
35259 (default_mod_LDFLAGS): Likewise.
35260 (timeout_mod_SOURCES): Removed.
35261 (timeout_mod_CFLAGS): Likewise.
35262 (timeout_mod_LDFLAGS): Likewise.
35263
35264 * DISTLIST: Removed commands/default.c, commands/timeout.c and
35265 normal/context.c.
35266
35267 * commands/default.c: Removed.
35268 * commands/timeout.c: Likewise.
35269 * normal/context.c: Likewise.
35270
35271 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
35272
35273 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
35274
35275 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
35276
35277 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
35278 "next" to "prev" for readability.
35279 (struct grub_env_sorted_var): New struct.
35280 (grub_env_context): Renamed to ...
35281 (initial_context): ... this.
35282 (grub_env_var_context): Renamed to ...
35283 (current_context): ... this.
35284 (grub_env_find): Look only at CURRENT_CONTEXT.
35285 (grub_env_context_open): Rewritten to copy exported variables from
35286 previous context.
35287 (grub_env_context_close): Rewritten according to the new
35288 scheme. Also, add an assertion to prevent the initial context from
35289 removed.
35290 (grub_env_insert): Removed the code for the sorted list.
35291 (grub_env_remove): Likewise.
35292 (grub_env_export): Simply mark the variable with
35293 GRUB_ENV_VAR_GLOBAL.
35294 (grub_env_set): A cosmetic change for naming consistency.
35295 (grub_env_get): Likewise.
35296 (grub_env_unset): Likewise.
35297 (grub_env_iterate): Rewritten to sort variables within this
35298 function.
35299 (grub_register_variable_hook): Fixed for naming consistency. Call
35300 grub_env_find again, only if NAME is not found at the first time.
35301 (mangle_data_slot_name): New function.
35302 (grub_env_set_data_slot): Likewise.
35303 (grub_env_get_data_slot): Likewise.
35304 (grub_env_unset_data_slot): Likewise.
35305
35306 * include/grub/env.h (grub_env_var_type): New enum.
35307 (GRUB_ENV_VAR_LOCAL): New constant.
35308 (GRUB_ENV_VAR_GLOBAL): Likewise.
35309 (GRUB_ENV_VAR_DATA): Likewise.
35310 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
35311 "type".
35312 (grub_env_set): Replace VAR with NAME for consistency.
35313 (grub_register_variable_hook): Likewise.
35314 (grub_env_export): Specify the name of the argument.
35315 (grub_env_set_data_slot): New prototype.
35316 (grub_env_get_data_slot): Likewise.
35317 (grub_env_unset_data_slot): Likewise.
35318
35319 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35320
35321 Extend the loader so that GRUB can accept a loader which comes
35322 back to GRUB when a loaded image exits. Also, this change adds
35323 support for a chainloader on EFI.
35324
35325 * term/efi/console.c: Include grub/misc.h.
35326 (grub_console_checkkey): Display a scan code on the top for
35327 debugging. This will be removed once the EFI port gets stable.
35328 Correct the scan code mapping.
35329
35330 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35331 allocate memory from larger regions, in order to reduce the number
35332 of allocated regions. Otherwise, the MacOSX loader panics.
35333 (filter_memory_map): Avoid less than 1MB for compatibility with
35334 other loaders.
35335 (add_memory_regions): Allocate from the tail of a region, if
35336 possible, to avoid allocating a region near to 1MB, for the MacOSX
35337 loader.
35338
35339 * kern/efi/init.c (grub_efi_set_prefix): Specify
35340 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35341
35342 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35343 argument IMAGE_HANDLE and specify it to get a loaded image.
35344 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35345 grub_efi_get_loaded_image.
35346 (grub_efi_get_filename): Divide the length by the size of
35347 grub_efi_char16_t.
35348 (grub_efi_get_device_path): New function.
35349 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35350 the length by the size of grub_efi_char16_t for a file path device
35351 path node.
35352
35353 * kern/loader.c (grub_loader_noreturn): New variable.
35354 (grub_loader_set): Accept a new argument NORETURN. Set
35355 GRUB_LOADER_NORETURN to NORETURN.
35356 All callers changed.
35357 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35358 grub_machine_fini.
35359
35360 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35361 prototype.
35362 (grub_efi_get_loaded_image): Take an argument to specify an image
35363 handle.
35364
35365 * include/grub/loader.h (grub_loader_set): Added one more argument
35366 NORETURN.
35367
35368 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35369 instead of grub_efi_open_protocol.
35370 (grub_efidisk_get_device_name): Likewise.
35371 (grub_efidisk_close): Print a newline.
35372 (grub_efidisk_get_device_handle): Fixed to use
35373 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35374 GRUB_EFI_DEVICE_PATH_TYPE.
35375
35376 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35377 * kern/efi/efi.c (device_path_guid): ... here.
35378
35379 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35380 chain.mod.
35381 (kernel_mod_HEADERS): Added efi/disk.h.
35382 (_chain_mod_SOURCES): New variable.
35383 (_chain_mod_CFLAGS): Likewise.
35384 (_chain_mod_LDFLAGS): Likewise.
35385 (chain_mod_SOURCES): Likewise.
35386 (chain_mod_CFLAGS): Likewise.
35387 (chain_mod_LDFLAGS): Likewise.
35388
35389 * DISTLIST: Added include/grub/efi/chainloader.h,
35390 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35391
35392 * include/grub/efi/chainloader.h: New file.
35393 * loader/efi/chainloader.c: Likewise.
35394 * loader/efi/chainloader_normal.c: Likewise.
35395
35396 2006-04-30 Marco Gerards <marco@gnu.org>
35397
35398 * commands/configfile.c (grub_cmd_source): New function.
35399 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35400 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35401
35402 2006-04-30 Marco Gerards <marco@gnu.org>
35403
35404 * normal/execute.c (grub_script_execute_cmd): Change the return
35405 type to `grub_err_t'. Correctly return the error.
35406 (grub_script_execute_cmdline): In case a command line is not a
35407 command or a function, try to interpret it as an assignment.
35408
35409 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35410
35411 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35412 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35413 skip a node whose name is obviously invalid as UTF-16,
35414 i.e. contains a NUL character. Stop the iteration when the last
35415 directory entry is found. Instead of using the return value of
35416 grub_hfsplus_btree_iterate_node, store the value in RET and use
35417 it, because the iterator can be stopped by the last directory
35418 entry.
35419
35420 2006-04-30 Marco Gerards <marco@gnu.org>
35421
35422 * include/grub/env.h (grub_env_export): New prototype. Reported
35423 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35424
35425 2006-04-30 Marco Gerards <marco@gnu.org>
35426
35427 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35428 size of the extents in a catalog file record.
35429
35430 2006-04-29 Marco Gerards <marco@gnu.org>
35431
35432 * commands/configfile.c (grub_cmd_configfile): Execute the
35433 configfile within its own context.
35434
35435 * include/grub/env.h (grub_env_context_open): New prototype.
35436 (grub_env_context_close): Likewise.
35437
35438 * kern/env.c (grub_env): Removed.
35439 (grub_env_sorted): Likewise.
35440 (grub_env_context): New variable.
35441 (grub_env_var_context): Likewise.
35442 (grub_env_find): Search both the active context and the global
35443 context.
35444 (grub_env_context_open): New function.
35445 (grub_env_context_close): Likewise.
35446 (grub_env_insert): Likewise.
35447 (grub_env_remove): Likewise.
35448 (grub_env_export): Likewise.
35449 (grub_env_set): Changed to use helper functions to avoid code
35450 duplication.
35451 (grub_env_iterate): Rewritten so both the current context and the
35452 global context are being used.
35453
35454 * normal/command.c (export_command): New function.
35455 (grub_command_init): Register the `export' function.
35456
35457 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35458
35459 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35460 explicitly to suppress gcc's warnings.
35461 * fs/fat.c (grub_fat_find_dir): Likewise.
35462 (grub_fat_label): Likewise.
35463 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35464 (grub_xfs_mount): Likewise.
35465 (grub_xfs_label): Likewise.
35466 * fs/affs.c (grub_affs_mount): Likewise.
35467 (grub_affs_label): Likewise.
35468 (grub_affs_iterate_dir): Likewise.
35469 * fs/sfs.c (grub_sfs_mount): Likewise.
35470 (grub_sfs_iterate_dir): Likewise.
35471 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35472 * fs/hfs.c (grub_hfs_mount): Likewise.
35473 (grub_hfs_cmp_catkeys): Likewise.
35474 (grub_hfs_find_dir): Likewise.
35475 (grub_hfs_dir): Likewise.
35476 (grub_hfs_label): Likewise.
35477 * fs/jfs.c (grub_jfs_mount): Likewise.
35478 (grub_jfs_opendir): Likewise.
35479 (grub_jfs_getent): Likewise.
35480 (grub_jfs_lookup_symlink): Likewise.
35481 (grub_jfs_label): Likewise.
35482 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35483 (grub_hfsplus_iterate_dir): Likewise.
35484 (grub_hfsplus_btree_iterate_node): Made static.
35485
35486 * util/grub-emu.c (prefix): New variable.
35487 (grub_machine_set_prefix): New function.
35488 (main): Do not set the environment variable "prefix" here. Only
35489 set PREFIX, which is used later by grub_machine_set_prefix.
35490
35491 * include/grub/video.h: Do not include grub/symbol.h.
35492 (grub_video_register): Not exported. This symbol is not defined in
35493 the kernel.
35494 (grub_video_unregister): Likewise.
35495 (grub_video_iterate): Likewise.
35496 (grub_video_setup): Likewise.
35497 (grub_video_restore): Likewise.
35498 (grub_video_get_info): Likewise.
35499 (grub_video_get_blit_format): Likewise.
35500 (grub_video_set_palette): Likewise.
35501 (grub_video_get_palette): Likewise.
35502 (grub_video_set_viewport): Likewise.
35503 (grub_video_get_viewport): Likewise.
35504 (grub_video_map_color): Likewise.
35505 (grub_video_map_rgb): Likewise.
35506 (grub_video_map_rgba): Likewise.
35507 (grub_video_fill_rect): Likewise.
35508 (grub_video_blit_glyph): Likewise.
35509 (grub_video_blit_bitmap): Likewise.
35510 (grub_video_blit_render_target): Likewise.
35511 (grub_video_scroll): Likewise.
35512 (grub_video_swap_buffers): Likewise.
35513 (grub_video_create_render_target): Likewise.
35514 (grub_video_delete_render_target): Likewise.
35515 (grub_video_set_active_render_target): Likewise.
35516
35517 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35518 Undefined.
35519 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35520
35521 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35522 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35523 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35524 instead of $(srcdir)/genkernsyms.sh.
35525
35526 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35527 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35528 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35529 instead of $(srcdir)/genkernsyms.sh.
35530
35531 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35532 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35533 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35534 instead of $(srcdir)/genkernsyms.sh.
35535
35536 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35537 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35538 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35539 instead of $(srcdir)/genkernsyms.sh.
35540
35541 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35542 genkernsyms.sh.
35543
35544 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35545 genkernsyms.sh.
35546 (gensymlist.sh): New target.
35547 (genkernsyms.sh): Likewise.
35548
35549 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35550 genkernsyms.sh.in and gensymlist.sh.in.
35551
35552 * genkernsyms.sh: Removed.
35553 * gensymlist.sh: Likewise.
35554
35555 * genkernsyms.sh.in: New file.
35556 * gensymlist.sh.in: Likewise.
35557
35558 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35559
35560 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35561 clobber "prefix", since we may have already set it manually.
35562
35563 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35564
35565 * kern/misc.c (abort): New alias for grub_abort.
35566
35567 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35568
35569 A new machine-specific function "grub_machine_set_prefix" is
35570 defined. This is called after loading modules, so that a prefix
35571 initialization can use modules. Also, this change adds an
35572 intensive debugging feature for the memory manager via the
35573 configure option "--enable-mm-debug".
35574
35575 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35576 PART.LEN.
35577
35578 * kern/sparc64/ieee1275/init.c (abort): Removed.
35579 (grub_stop): Likewise.
35580 (grub_exit): New function.
35581 (grub_set_prefix): Renamed to ...
35582 (grub_machine_set_prefix): ... this.
35583 (grub_machine_init): Do not call grub_set_prefix.
35584
35585 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35586 (grub_machine_set_prefix): ... this.
35587 (grub_machine_init): Do not call grub_set_prefix.
35588
35589 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35590 (grub_machine_init): Do not set the prefix here.
35591
35592 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35593
35594 * kern/efi/init.c: Include grub/mm.h.
35595 (grub_efi_set_prefix): New function.
35596
35597 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35598 (grub_efi_get_filename): New function.
35599 (grub_print_device_path): Renamed to ...
35600 (grub_efi_print_device_path): ... this.
35601
35602 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35603 [MM_DEBUG] (grub_realloc): Likewise.
35604 [MM_DEBUG] (grub_free): Likewise.
35605 [MM_DEBUG] (grub_memalign): Likewise.
35606 [MM_DEBUG] (grub_mm_debug): New variable.
35607 [MM_DEBUG] (grub_debug_malloc): New function.
35608 [MM_DEBUG] (grub_debug_free): New function.
35609 [MM_DEBUG] (grub_debug_realloc): New function.
35610 [MM_DEBUG] (grub_debug_memalign): New function.
35611
35612 * kern/misc.c (grub_abort): Print a newline to distinguish
35613 the message.
35614
35615 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35616 grub_set_root_dev after loading modules. This is necessary when
35617 setting a prefix depends on modules.
35618
35619 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35620 (grub_efi_print_device_path): ... this.
35621 (grub_efi_get_filename): New prototype.
35622 (grub_efi_set_prefix): Likewise.
35623
35624 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35625 and grub/disk.h.
35626 (grub_efidisk_get_device_handle): New prototype.
35627 (grub_efidisk_get_device_name): Likewise.
35628
35629 * include/grub/mm.h: Include config.h.
35630 (MM_DEBUG): Removed.
35631 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35632 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35633 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35634 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35635 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35636 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35637 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35638 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35639 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35640
35641 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35642
35643 * disk/efi/efidisk.c: Include grub/partition.h.
35644 (iterate_child_devices): New function.
35645 (add_device): First, compare only last device path nodes, so that
35646 devices are sorted by the types.
35647 (grub_efidisk_get_device_handle): New function.
35648 (grub_efidisk_get_device_name): Likewise.
35649
35650 * configure.ac (--enable-mm-debug): New option to enable the
35651 memory manager debugging feature. This makes the binary much
35652 bigger, so is disabled by default.
35653
35654 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35655
35656 Use grub_abort instead of grub_stop, and grub_exit must be
35657 define in each architecture now. Also, this change adds support
35658 for EFI disks.
35659
35660 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35661 (grub_getkey): New function.
35662 (grub_term_get_current): Likewise.
35663
35664 * util/i386/pc/grub-setup.c: Include grub/term.h.
35665 (grub_getkey): New function.
35666 (grub_term_get_current): Likewise.
35667
35668 * util/misc.c (grub_stop): Renamed to ...
35669 (grub_exit): ... this.
35670
35671 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
35672 (grub_exit): ... this.
35673 (grub_machine_init): Use grub_abort instead of abort.
35674 (grub_stop): Removed.
35675
35676 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35677 abort.
35678
35679 * kern/i386/pc/startup.S (grub_exit): New function.
35680 (cold_reboot): New label.
35681
35682 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
35683 (grub_efi_init): Call grub_efidisk_init.
35684 (grub_efi_fini): Call grub_efidisk_fini.
35685
35686 * kern/efi/efi.c: Include grub/mm.h.
35687 (grub_efi_console_control_guid): Renamed to ...
35688 (console_control_guid): ... this.
35689 (grub_efi_loaded_image_guid): Renamed to ...
35690 (loaded_image_guid): ... this.
35691 (grub_efi_locate_handle): New function.
35692 (grub_efi_open_protocol): Likewise.
35693 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
35694 GRUB_EFI_CONSOLE_CONTROL_GUID.
35695 (grub_efi_exit): Removed.
35696 (grub_stop): Likewise.
35697 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
35698 (grub_exit): New function.
35699 (grub_print_device_path): Likewise.
35700
35701 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35702 (grub_enter_rescue_mode): Register "exit".
35703
35704 * kern/misc.c (grub_real_dprintf): A cosmetic change.
35705 (grub_abort): New function.
35706
35707 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
35708
35709 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
35710
35711 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
35712
35713 * include/grub/efi/efi.h (grub_efi_exit): Removed.
35714 (grub_print_device_path): New prototype.
35715 (grub_efi_locate_handle): Likewise.
35716 (grub_efi_open_protocol): Likewise.
35717
35718 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
35719 * disk/efi/efidisk.c: Likewise.
35720
35721 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
35722
35723 * include/grub/efi/console_control.h
35724 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
35725
35726 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
35727 last 8 bytes as an array.
35728 (GRUB_EFI_DISK_IO_GUID): New macro.
35729 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
35730 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
35731 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
35732 grub_uint8_t.
35733 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
35734 (struct grub_efi_device_path): Rename the member "sub_type" to
35735 "subtype".
35736 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
35737 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
35738 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
35739 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
35740 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
35741 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
35742 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
35743 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
35744 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
35745 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
35746 (struct grub_efi_pci_device_path): New structure.
35747 (grub_efi_pci_device_path_t): New type.
35748 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
35749 (struct grub_efi_pccard_device_path): New structure.
35750 (grub_efi_pccard_device_path_t): New type.
35751 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
35752 (struct grub_efi_memory_mapped_device_path): New structure.
35753 (grub_efi_memory_mapped_device_path_t): New type.
35754 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
35755 (struct grub_efi_vendor_device_path): New structure.
35756 (grub_efi_vendor_device_path_t): New type.
35757 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
35758 (struct grub_efi_controller_device_path): New structure.
35759 (grub_efi_controller_device_path_t): New type.
35760 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
35761 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
35762 (struct grub_efi_acpi_device_path): New structure.
35763 (grub_efi_acpi_device_path_t): New type.
35764 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
35765 (struct grub_efi_expanded_acpi_device_path): New structure.
35766 (grub_efi_expanded_acpi_device_path_t): New type.
35767 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
35768 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
35769 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
35770 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
35771 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
35772 (struct grub_efi_atapi_device_path): New structure.
35773 (grub_efi_atapi_device_path_t): New type.
35774 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
35775 (struct grub_efi_fibre_channel_device_path): New structure.
35776 (grub_efi_fibre_channel_device_path_t): New type.
35777 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
35778 (struct grub_efi_1394_device_path): New structure.
35779 (grub_efi_1394_device_path_t): New type.
35780 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
35781 (struct grub_efi_usb_device_path): New structure.
35782 (grub_efi_usb_device_path_t): New type.
35783 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
35784 (struct grub_efi_usb_class_device_path): New structure.
35785 (grub_efi_usb_class_device_path_t): New type.
35786 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
35787 (struct grub_efi_i2o_device_path): New structure.
35788 (grub_efi_i2o_device_path_t): New type.
35789 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
35790 (struct grub_efi_mac_address_device_path): New structure.
35791 (grub_efi_mac_address_device_path_t): New type.
35792 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
35793 (struct grub_efi_ipv4_device_path): New structure.
35794 (grub_efi_ipv4_device_path_t): New type.
35795 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
35796 (struct grub_efi_ipv6_device_path): New structure.
35797 (grub_efi_ipv6_device_path_t): New type.
35798 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
35799 (struct grub_efi_infiniband_device_path): New structure.
35800 (grub_efi_infiniband_device_path_t): New type.
35801 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
35802 (struct grub_efi_uart_device_path): New structure.
35803 (grub_efi_uart_device_path_t): New type.
35804 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
35805 (struct grub_efi_vendor_messaging_device_path): New structure.
35806 (grub_efi_vendor_messaging_device_path_t): New type.
35807 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
35808 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
35809 (struct grub_efi_hard_drive_device_path): New structure.
35810 (grub_efi_hard_drive_device_path_t): New type.
35811 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
35812 (struct grub_efi_cdrom_device_path): New structure.
35813 (grub_efi_cdrom_device_path_t): New type.
35814 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
35815 (struct grub_efi_vendor_media_device_path): New structure.
35816 (grub_efi_vendor_media_device_path_t): New type.
35817 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
35818 (struct grub_efi_file_path_device_path): New structure.
35819 (grub_efi_file_path_device_path_t): New type.
35820 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
35821 (struct grub_efi_protocol_device_path): New structure.
35822 (grub_efi_protocol_device_path_t): New type.
35823 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
35824 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
35825 (struct grub_efi_bios_device_path): New structure.
35826 (grub_efi_bios_device_path_t): New type.
35827 (struct grub_efi_disk_io): New structure.
35828 (grub_efi_disk_io_t): New type.
35829 (struct grub_efi_block_io_media): New structure.
35830 (grub_efi_block_io_media_t): New type.
35831 (struct grub_efi_block_io): New structure.
35832 (grub_efi_block_io_t): New type.
35833
35834 * include/grub/misc.h (grub_stop): Removed.
35835 (grub_exit): New prototype.
35836 (grub_abort): Likewise.
35837
35838 * include/grub/disk.h (enum grub_disk_dev_id): Added
35839 GRUB_DISK_DEVICE_EFIDISK_ID.
35840
35841 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
35842 disk/efi/efidisk.c.
35843 (kernel_syms.lst): Remove the target if an error occurs.
35844
35845 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
35846
35847 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
35848 as it was simply too buggy.
35849
35850 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
35851
35852 * kern/misc.c (grub_lltoa): New function.
35853 (grub_vsprintf): Added support for the long long suffix,
35854 i.e. "ll".
35855
35856 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
35857
35858 * Makefile.in (LDFLAGS): Add variable.
35859 (LD): Remove variable.
35860 * configure.ac: Add -m32 to LDFLAGS.
35861 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
35862 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
35863 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
35864 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
35865 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
35866 variables.
35867 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
35868 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
35869 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
35870
35871 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
35872
35873 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
35874 length for unknown glyph.
35875
35876 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35877
35878 Add support for pre-loaded modules into the EFI port.
35879
35880 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
35881 completely. Accept one more argument DIR. The caller has changed.
35882
35883 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
35884
35885 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
35886 (grub_efi_loaded_image_guid): New variable.
35887 (grub_efi_get_loaded_image): New function.
35888 (grub_arch_modules_addr): Likewise.
35889
35890 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
35891 prototype.
35892
35893 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
35894 (struct grub_efi_loaded_image): New structure.
35895 (grub_efi_loaded_image_t): New type.
35896
35897 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35898
35899 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
35900 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
35901 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
35902
35903 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
35904
35905 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
35906
35907 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
35908
35909 * DISTLIST: Added include/grub/efi/console.h,
35910 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
35911 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35912
35913 * include/grub/efi/console.h: New file.
35914 * include/grub/efi/time.h: Likewise.
35915 * include/grub/i386/efi/kernel.h: Likewise.
35916 * kern/efi/init.c: Likewise.
35917 * kern/efi/mm.c: Likewise.
35918 * term/efi/console.c: Likewise.
35919
35920 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
35921 (grub_stop): Removed.
35922 (grub_get_rtc): Likewise.
35923 (grub_machine_init): Simply call grub_efi_init.
35924 (grub_machine_fini): Call grub_efi_fini.
35925
35926 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
35927 (grub_efi_output_string): Removed.
35928 (grub_efi_stall): New function.
35929 (grub_stop): Likewise.
35930 (grub_get_rtc): Likewise.
35931
35932 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
35933 (grub_efi_stall): New prototype.
35934 (grub_efi_allocate_pages): Likewise.
35935 (grub_efi_free_pages): Likewise.
35936 (grub_efi_get_memory_map): Likewise.
35937 (grub_efi_mm_init): Likewise.
35938 (grub_efi_mm_fini): Likewise.
35939 (grub_efi_init): Likewise.
35940 (grub_efi_fini): Likewise.
35941
35942 * include/grub/i386/efi/time.h: Do not include
35943 grub/symbol.h. Include grub/efi/time.h.
35944 (GRUB_TICKS_PER_SECOND): Removed.
35945 (grub_get_rtc): Likewise.
35946
35947 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
35948 Added padding. The EFI spec is buggy.
35949 (GRUB_EFI_BLACK): New macro.
35950 (GRUB_EFI_BLUE): Likewise.
35951 (GRUB_EFI_GREEN): Likewise.
35952 (GRUB_EFI_CYAN): Likewise.
35953 (GRUB_EFI_RED): Likewise.
35954 (GRUB_EFI_MAGENTA): Likewise.
35955 (GRUB_EFI_BROWN): Likewise.
35956 (GRUB_EFI_LIGHTGRAY): Likewise.
35957 (GRUB_EFI_BRIGHT): Likewise.
35958 (GRUB_EFI_DARKGRAY): Likewise.
35959 (GRUB_EFI_LIGHTBLUE): Likewise.
35960 (GRUB_EFI_LIGHTGREEN): Likewise.
35961 (GRUB_EFI_LIGHTCYAN): Likewise.
35962 (GRUB_EFI_LIGHTRED): Likewise.
35963 (GRUB_EFI_LIGHTMAGENTA): Likewise.
35964 (GRUB_EFI_YELLOW): Likewise.
35965 (GRUB_EFI_WHITE): Likewise.
35966 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
35967 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
35968 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
35969 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
35970 (GRUB_EFI_BACKGROUND_RED): Likewise.
35971 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
35972 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
35973 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
35974 (GRUB_EFI_TEXT_ATTR): Likewise.
35975
35976 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
35977 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35978 (kernel_mod_HEADERS): Added efi/time.h.
35979
35980 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
35981
35982 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
35983 include/grub/efi/api.h, include/grub/efi/console_control.h,
35984 include/grub/efi/efi.h, include/grub/efi/pe32.h,
35985 include/grub/i386/efi/time.h, kern/efi/efi.c,
35986 kern/i386/efi/init.c, kern/i386/efi/startup.S,
35987 and util/i386/efi/grub-mkimage.c.
35988
35989 * Makefile.in (RMKFILES): Added i386-efi.rmk.
35990
35991 * genmk.rb (PModule#rule): Do not export symbols if
35992 #{prefix}_EXPORTS is set to "no".
35993
35994 * conf/i386-efi.mk: New file.
35995 * conf/i386-efi.rmk: Likewise.
35996 * include/grub/efi/api.h: Likewise.
35997 * include/grub/efi/console_control.h: Likewise.
35998 * include/grub/efi/efi.h: Likewise.
35999 * include/grub/efi/pe32.h: Likewise.
36000 * include/grub/i386/efi/time.h: Likewise.
36001 * kern/efi/efi.c: Likewise.
36002 * kern/i386/efi/init.c: Likewise.
36003 * kern/i386/efi/startup.S: Likewise.
36004 * util/i386/efi/grub-mkimage.c: Likewise.
36005
36006 2006-04-17 Marco Gerards <marco@gnu.org>
36007
36008 * include/grub/script.h: Include <grub/parser.h> and
36009 "grub_script.tab.h".
36010 (struct grub_lexer_param): New struct.
36011 (struct grub_parser_param): Likewise.
36012 (grub_script_create_arglist): Pass the state in an argument.
36013 (grub_script_add_arglist): Likewise.
36014 (grub_script_create_cmdline): Likewise.
36015 (grub_script_create_cmdblock): Likewise.
36016 (grub_script_create_cmdif): Likewise.
36017 (grub_script_create_cmdmenu): Likewise.
36018 (grub_script_add_cmd): Likewise.
36019 (grub_script_arg_add): Likewise.
36020 (grub_script_lexer_ref): Likewise.
36021 (grub_script_lexer_deref): Likewise.
36022 (grub_script_lexer_record_start): Likewise.
36023 (grub_script_lexer_record_stop): Likewise.
36024 (grub_script_mem_record): Likewise.
36025 (grub_script_mem_record_stop): Likewise.
36026 (grub_script_malloc): Likewise.
36027 (grub_script_yylex): Likewise.
36028 (grub_script_yyparse): Likewise.
36029 (grub_script_yyerror): Likewise.
36030 (grub_script_yylex): Likewise.
36031 (grub_script_lexer_init): Return the state.
36032
36033 * normal/lexer.c (grub_script_lexer_state): Removed variable.
36034 (grub_script_lexer_done): Likewise.
36035 (grub_script_lexer_getline): Likewise.
36036 (grub_script_lexer_refs): Likewise.
36037 (script): Likewise.
36038 (newscript): Likewise.
36039 (record): Likewise.
36040 (recording): Likewise.
36041 (recordpos): Likewise.
36042 (recordlen): Likewise.
36043 (grub_script_lexer_init): Return the state instead of setting
36044 global variables.
36045 (grub_script_lexer_ref): Use the newly added argument for state
36046 instead of globals.
36047 (grub_script_lexer_deref): Likewise.
36048 (grub_script_lexer_record_start): Likewise.
36049 (grub_script_lexer_record_stop): Likewise.
36050 (recordchar): Likewise.
36051 (nextchar): Likewise.
36052 (grub_script_yylex2): Likewise.
36053 (grub_script_yylex): Likewise.
36054 (grub_script_yyerror): Likewise.
36055
36056 * normal/parser.y (func_mem): Removed variable.
36057 (menu_entry): Likewise.
36058 (err): Likewise.
36059 (%lex-param): New parser option.
36060 (%parse-param): Likewise.
36061 (script): Always return the AST.
36062 (argument): Pass the state around.
36063 (arguments): Likewise.
36064 (grubcmd): Likewise.
36065 (commands): Likewise.
36066 (function): Likewise.
36067 (menuentry): Likewise.
36068 (if_statement): Likewise.
36069 (if): Likewise.
36070
36071 * normal/script.c (grub_script_memused): Removed variable.
36072 (grub_script_parsed): Likewise.
36073 (grub_script_malloc): Added a state argument. Use that instead of
36074 global variables.
36075 (grub_script_mem_record): Likewise.
36076 (grub_script_mem_record_stop): Likewise.
36077 (grub_script_arg_add): Likewise.
36078 (grub_script_add_arglist): Likewise.
36079 (grub_script_create_cmdline): Likewise.
36080 (grub_script_create_cmdif): Likewise.
36081 (grub_script_create_cmdmenu): Likewise.
36082 (grub_script_add_cmd): Likewise.
36083 (grub_script_parse): Setup the state before calling the parser.
36084
36085 2006-04-16 Marco Gerards <marco@gnu.org>
36086
36087 * normal/command.c (grub_command_init): Remove the title command.
36088
36089 * normal/lexer.c (grub_script_yylex): Renamed from this...
36090 (grub_script_yylex2): ... to this.
36091 (grub_script_yylex): New function. Temporary
36092 introduced to filter some tokens.
36093 (grub_script_yyerror): Print a newline.
36094
36095 * normal/main.c (read_config_file): Output information about the
36096 lines that contain errors. Wait for a key after all lines have
36097 been processed. Don't return an empty menu.
36098
36099 * normal/parser.y (func_mem): Don't initialize.
36100 (menu_entry): Likewise.
36101 (err): New variable.
36102 (script): Don't return anything when an error was encountered.
36103 (ws, returns): Removed rules.
36104 (argument): Disabled concatenated variable support.
36105 (arguments): Remove explicit separators.
36106 (grubcmd): Likewise.
36107 (function): Likewise.
36108 (menuentry): Likewise.
36109 (if): Likewise.
36110 (commands): Likewise. Add error handling.
36111
36112 * normal/script.c (grub_script_create_cmdline): If
36113 `grub_script_parsed' is 0, assume the parser encountered an error.
36114
36115 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
36116
36117 * configure.ac: Add support for EFI. Fix the typo
36118 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
36119
36120 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36121
36122 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
36123 foreign multibyte characters should be shown correctly.
36124
36125 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36126
36127 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
36128 calculation.
36129 (read_config_file): Made it to close file before returning.
36130
36131 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
36132
36133 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
36134 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
36135 video/i386/pc/vbefill.c.
36136
36137 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
36138 video/i386/pc/vbefill.c.
36139
36140 * include/grub/video.h (grub_video_blit_format): New enum.
36141 (grub_video_mode_info): Added new member blit_format.
36142 (grub_video_get_blit_format): New function prototype.
36143
36144 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
36145 function prototype.
36146 (grub_video_vbe_map_rgb): Likewise.
36147 (grub_video_vbe_unmap_color): Likewise.
36148
36149 * include/grub/i386/pc/vbeblit.h: New file.
36150
36151 * include/grub/i386/pc/vbefill.h: New file.
36152
36153 * video/video.c (grub_video_get_blit_format): New function.
36154 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
36155 (grub_video_vbe_map_rgb): Likewise.
36156 (grub_video_vbe_unmap_color): Likewise.
36157
36158 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
36159 optimized fills.
36160 (grub_video_vbe_blit_render_target): Changed to use more optimized
36161 blits.
36162 (grub_video_vbe_setup): Added detection for optimized settings.
36163 (grub_video_vbe_create_render_target): Likewise.
36164
36165 * video/i386/pc/vbeblit.c: New file.
36166
36167 * video/i386/pc/vbefill.c: New file.
36168
36169 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
36170
36171 * font/manager.c (grub_font_get_glyph): Removed font fixup from
36172 here...
36173
36174 * util/unifont2pff.rb: ... and moved it to here. Improved argument
36175 parsing to support both hex and dec ranges. If filename was missing
36176 show usage information.
36177
36178 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
36179
36180 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
36181 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
36182
36183 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
36184 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
36185 (video_mod_SOURCES): Added.
36186 (video_mod_CFLAGS): Likewise.
36187 (video_mod_LDFLAGS): Likewise.
36188 (gfxterm_mod_SOURCES): Likewise.
36189 (gfxterm_mod_CFLAGS): Likewise.
36190 (gfxterm_mod_LDFLAGS): Likewise.
36191 (videotest_mod_SOURCES): Likewise.
36192 (videotest_mod_CFLAGS): Likewise.
36193 (videotest_mod_LDFLAGS): Likewise.
36194 (vesafb_mod_SOURCES): Removed.
36195 (vesafb_mod_CFLAGS): Likewise.
36196 (vesafb_mod_LDFLAGS): Likewise.
36197 (vga_mod_SOURCES): Likewise.
36198 (vga_mod_CFLAGS): Likewise.
36199 (vga_mod_LDFLAGS): Likewise.
36200
36201 * commands/videotest.c: New file.
36202
36203 * font/manager.c (fill_with_default_glyph): Modified to use
36204 grub_font_glyph.
36205 (grub_font_get_glyph): Likewise.
36206 (fontmanager): Renamed from this...
36207 (font_manager): ... to this.
36208
36209 * include/grub/font.h (grub_font_glyph): Added new structure.
36210 (grub_font_get_glyph): Modified to use grub_font_glyph.
36211
36212 * include/grub/misc.h (grub_abs): Added as inline function.
36213
36214 * include/grub/video.h: New file.
36215
36216 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
36217 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
36218 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
36219 (grub_vbe_get_controller_info): Renamed from this...
36220 (grub_vbe_bios_get_controller_info): ... to this.
36221 (grub_vbe_get_mode_info): Renamed from this...
36222 (grub_vbe_bios_get_mode_info): ... to this.
36223 (grub_vbe_set_mode): Renamed from this...
36224 (grub_vbe_bios_set_mode): ... to this.
36225 (grub_vbe_get_mode): Renamed from this...
36226 (grub_vbe_bios_get_mode): ... to this.
36227 (grub_vbe_set_memory_window): Renamed from this...
36228 (grub_vbe_bios_set_memory_window): ... to this.
36229 (grub_vbe_get_memory_window): Renamed from this...
36230 (grub_vbe_bios_get_memory_window): ... to this.
36231 (grub_vbe_set_scanline_length): Renamed from this...
36232 (grub_vbe_set_scanline_length): ... to this.
36233 (grub_vbe_get_scanline_length): Renamed from this...
36234 (grub_vbe_bios_get_scanline_length): ... to this.
36235 (grub_vbe_set_display_start): Renamed from this...
36236 (grub_vbe_bios_set_display_start): ... to this.
36237 (grub_vbe_get_display_start): Renamed from this...
36238 (grub_vbe_bios_get_display_start): ... to this.
36239 (grub_vbe_set_palette_data): Renamed from this...
36240 (grub_vbe_bios_set_palette_data): ... to this.
36241 (grub_vbe_set_pixel_rgb): Removed.
36242 (grub_vbe_set_pixel_index): Likewise.
36243
36244 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
36245 from this...
36246 (grub_vbe_bios_get_controller_info): ... to this.
36247 (grub_vbe_get_mode_info): Renamed from this...
36248 (grub_vbe_bios_get_mode_info): ... to this.
36249 (grub_vbe_set_mode): Renamed from this...
36250 (grub_vbe_bios_set_mode): ... to this.
36251 (grub_vbe_get_mode): Renamed from this...
36252 (grub_vbe_bios_get_mode): ... to this.
36253 (grub_vbe_set_memory_window): Renamed from this...
36254 (grub_vbe_bios_set_memory_window): ... to this.
36255 (grub_vbe_get_memory_window): Renamed from this...
36256 (grub_vbe_bios_get_memory_window): ... to this.
36257 (grub_vbe_set_scanline_length): Renamed from this...
36258 (grub_vbe_set_scanline_length): ... to this.
36259 (grub_vbe_get_scanline_length): Renamed from this...
36260 (grub_vbe_bios_get_scanline_length): ... to this.
36261 (grub_vbe_set_display_start): Renamed from this...
36262 (grub_vbe_bios_set_display_start): ... to this.
36263 (grub_vbe_get_display_start): Renamed from this...
36264 (grub_vbe_bios_get_display_start): ... to this.
36265 (grub_vbe_set_palette_data): Renamed from this...
36266 (grub_vbe_bios_set_palette_data): ... to this.
36267 (grub_vbe_bios_get_controller_info): Fixed problem with registers
36268 getting corrupted after calling it. Added more pushes and pops.
36269 (grub_vbe_bios_set_mode): Likewise.
36270 (grub_vbe_bios_get_mode): Likewise.
36271 (grub_vbe_bios_get_memory_window): Likewise.
36272 (grub_vbe_bios_set_scanline_length): Likewise.
36273 (grub_vbe_bios_get_scanline_length): Likewise.
36274 (grub_vbe_bios_get_display_start): Likewise.
36275 (grub_vbe_bios_set_palette_data): Likewise.
36276
36277 * normal/cmdline.c (cl_set_pos): Refresh the screen.
36278 (cl_insert): Likewise.
36279 (cl_delete): Likewise.
36280
36281 * term/gfxterm.c: New file.
36282
36283 * term/i386/pc/vesafb.c: Removed file.
36284
36285 * video/video.c: New file.
36286
36287 * video/i386/pc/vbe.c (real2pm): Added new function.
36288 (grub_video_vbe_draw_pixel): Likewise.
36289 (grub_video_vbe_get_video_ptr): Likewise.
36290 (grub_video_vbe_get_pixel): Likewise
36291 (grub_video_vbe_init): Likewise.
36292 (grub_video_vbe_fini): Likewise.
36293 (grub_video_vbe_setup): Likewise.
36294 (grub_video_vbe_get_info): Likewise.
36295 (grub_video_vbe_set_palette): Likewise.
36296 (grub_video_vbe_get_palette): Likewise.
36297 (grub_video_vbe_set_viewport): Likewise.
36298 (grub_video_vbe_get_viewport): Likewise.
36299 (grub_video_vbe_map_color): Likewise.
36300 (grub_video_vbe_map_rgb): Likewise.
36301 (grub_video_vbe_map_rgba): Likewise.
36302 (grub_video_vbe_unmap_color): Likewise.
36303 (grub_video_vbe_fill_rect): Likewise.
36304 (grub_video_vbe_blit_glyph): Likewise.
36305 (grub_video_vbe_blit_bitmap): Likewise.
36306 (grub_video_vbe_blit_render_target): Likewise.
36307 (grub_video_vbe_scroll): Likewise.
36308 (grub_video_vbe_swap_buffers): Likewise.
36309 (grub_video_vbe_create_render_target): Likewise.
36310 (grub_video_vbe_delete_render_target): Likewise.
36311 (grub_video_vbe_set_active_render_target): Likewise.
36312 (grub_vbe_set_pixel_rgb): Remove function.
36313 (grub_vbe_set_pixel_index): Likewise.
36314 (index_color_mode): Remove static variable.
36315 (active_mode): Likewise.
36316 (framebuffer): Likewise.
36317 (bytes_per_scan_line): Likewise.
36318 (grub_video_vbe_adapter): Added new static variable.
36319 (framebuffer): Likewise.
36320 (render_target): Likewise.
36321 (initial_mode): Likewise.
36322 (mode_in_use): Likewise.
36323 (mode_list): Likewise.
36324
36325 2006-03-10 Marco Gerards <marco@gnu.org>
36326
36327 * configure.ac (AC_INIT): Bumped to 1.93.
36328
36329 * DISTLIST: Added `include/grub/hfs.h'.
36330
36331 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36332
36333 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36334 18H, which might help the BIOS falling back to next boot media.
36335
36336 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36337
36338 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36339 Poe Chen <poe.poechen@gmail.com>.
36340
36341 2006-01-17 Marco Gerards <marco@gnu.org>
36342
36343 * include/grub/normal.h: Include <grub/script.h>.
36344 (grub_command_list): Removed struct.
36345 (grub_command_list_t): Removed type.
36346 (grub_menu_entry): Remove members `num' and `command_list'. Add
36347 members `commands' and `sourcecode'.
36348 * include/grub/script.h: Add inclusion guards.
36349 (grub_script_cmd_menuentry): New struct.
36350 (grub_script_execute_menuentry): New prototype.
36351 (grub_script_lexer_record_start): Likewise.
36352 (grub_script_lexer_record_stop): Likewise.
36353 * normal/execute.c (grub_script_execute_menuentry): New function.
36354 * normal/lexer.c (record, recording, recordpos, recordlen): New
36355 variables.
36356 (grub_script_lexer_record_start): New function.
36357 (grub_script_lexer_record_stop): Likewise.
36358 (recordchar): Likewise.
36359 (nextchar): Likewise.
36360 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36361 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36362 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36363 (current_menu): New variable.
36364 (free_menu): Mainly rewritten.
36365 (grub_normal_menu_addentry): New function.
36366 (read_config_file): Rewritten.
36367 * normal/menu.c (run_menu_entry): Mainly rewritten.
36368 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36369 the menu entry.
36370 (run): Mainly rewritten.
36371 * normal/parser.y (menu_entry): New variable.
36372 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36373 (menuentry): New rule.
36374 (command): Add `menuentry'.
36375 (if_statement): Allow additional returns before `fi'.
36376 * normal/script.c (grub_script_create_cmdmenu): New function.
36377
36378 2006-01-03 Marco Gerards <marco@gnu.org>
36379
36380 * INSTALL: GNU Bison is required.
36381 * configure.ac: Rewritten the test to detect Bison.
36382 * Makefile.in (YACC): New variable. Reported by Xun Sun
36383 <xun.sun.cn@gmail.com>.
36384
36385 2006-01-03 Marco Gerards <marco@gnu.org>
36386
36387 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36388 the HFS+ filesystem to filesystem blocks.
36389 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36390 GCC warning is silenced.
36391
36392 2006-01-03 Marco Gerards <marco@gnu.org>
36393
36394 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36395 read from disk from big endian to host byte order.
36396
36397 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36398
36399 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36400 documentation.
36401 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36402 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36403 embedded HFS+ filesystem.
36404 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36405 (grub_hfs_sblock): Move from here...
36406 * include/grub/hfs.h: To here... New file.
36407 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36408 documentation.
36409 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36410 New macros.
36411 (grub_hfsplus_volheader): Change type of member `magic' to
36412 `grub_uint16_t'.
36413 (grub_hfsplus_data): Add new member `embedded_offset'.
36414 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36415 returned block.
36416 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36417 Calculate the offset.
36418
36419 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36420
36421 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36422 Removed.
36423 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36424
36425 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36426
36427 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36428 ENV->NAME is NULL after allocating ENV->VALUE.
36429
36430 2005-12-25 Marco Gerards <marco@gnu.org>
36431
36432 * kern/env.c (grub_env_set): Rewritten the error handling code.
36433
36434 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36435
36436 * geninit.sh: Made more robust, and more portable.
36437
36438 2005-12-25 Marco Gerards <marco@gnu.org>
36439
36440 Add support for Apple HFS+ filesystems.
36441
36442 * fs/hfsplus.c: New file.
36443
36444 * DISTLIST: Added `fs/hfsplus.c'.
36445
36446 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36447 (hfsplus_mod_SOURCES): New variable.
36448 (hfsplus_mod_CFLAGS): Likewise.
36449 (hfsplus_mod_LDFLAGS): Likewise.
36450 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36451 (grub_setup_SOURCES): Likewise.
36452 (grub_mkdevicemap_SOURCES): Likewise.
36453 (grub_emu_SOURCES): Likewise.
36454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36455
36456 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36457
36458 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36459
36460 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36461
36462 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36463 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36464 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36465 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36466 normal/lexer.c, normal/parser.y, normal/script.c, and
36467 partmap/gpt.c.
36468 Removed kern/sparc64/cache.c.
36469
36470 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36471 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36472 grub_emu_init.c.
36473
36474 * configure.ac (AC_INIT): Bumped to 1.92.
36475
36476 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36477
36478 * kern/err.c (grub_error_push): Added new function to support error
36479 stacks.
36480 (grub_error_pop): Likewise.
36481 (grub_error_stack_items): New local variable to support error stacks.
36482 (grub_error_stack_pos): Likewise.
36483 (grub_error_stack_assert): Likewise.
36484 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36485 stack depth.
36486 (grub_print_error): Added support to print errors from error stack.
36487
36488 * include/grub/err.h (grub_error_push): Added function prototype.
36489 (grub_error_pop): Likewise.
36490
36491 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36492
36493 * configure.ac: Accept `powerpc64' as host_cpu.
36494 (amd64): Rename to `biarch32'.
36495
36496 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36497 non-cacheline-aligned addresses.
36498
36499 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36500 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36501 if `size' is non-zero.
36502
36503 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36504
36505 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36506 and `cd' to make sure the filename is not prefixed with a
36507 directory name.
36508 (pkgdata_MODULES): Add `gpt.mod'.
36509 (gpt_mod_SOURCES): New variable.
36510 (gpt_mod_CFLAGS): Likewise.
36511 (gpt_mod_LDFLAGS): Likewise.
36512
36513 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36514
36515 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36516 New macro.
36517
36518 * partmap/gpt.c: New file.
36519
36520 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36521 GPT partition map is detected.
36522
36523 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36524
36525 * commands/i386/pc/play.c: New file.
36526 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36527 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36528 macros.
36529
36530 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36531
36532 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36533 ((unused))' to silence gcc warning.
36534
36535 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36536
36537 * configure.ac: Correct `AC_PROG_YACC' test.
36538
36539 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36540
36541 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36542 check before installing files.
36543
36544 2005-11-22 Mike Small <smallm@panix.com>
36545
36546 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36547 number regex so multidigit numbers are recognized correctly.
36548
36549 2005-11-22 Mike Small <smallm@panix.com>
36550
36551 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36552 debugging message before attempting to claim memory.
36553 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36554 multiple addresses in case of failure.
36555
36556 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36557
36558 * term/tparm.c (get_space): Remove empty `if' statement.
36559
36560 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36561
36562 * kern/parser.c (check_varstate): Rename `state' to 's'.
36563
36564 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36565
36566 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36567 variable definitions to the beginning of each function. Sort stack
36568 variables by size.
36569 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36570 `buf' argument to `char *'.
36571
36572 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36573
36574 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36575 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36576 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36577 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36578 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36579 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36580 configfile.mod, search.mod, gzio.mod and test.mod.
36581 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36582 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36583 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36584 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36585 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36586 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36587 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36588 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36589 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36590 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36591 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36592 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36593 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36594 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36595 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36596 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36597 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36598 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36599 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36600 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36601 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36602 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36603 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36604
36605 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36606 `grep --include'.
36607 (pkgdata_MODULES): Add test.mod.
36608
36609 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36610
36611 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36612 appending to variables with "+=".
36613 (PModule): Use full pathname to generate *.lst filenames.
36614
36615 * Makefile.in: Fixed list rules moved from genmk.rb.
36616 (.DELETE_ON_ERROR): New special target.
36617 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36618
36619 * conf/i386-pc.rmk: Include conf/common.mk.
36620 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36621 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36622 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36623 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36624 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36625 configfile.mod, search.mod, gzio.mod and test.mod.
36626 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36627 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36628 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36629 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36630 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36631 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36632 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36633 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36634 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36635 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36636 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36637 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36638 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36639 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36640 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36641 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36642 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36643 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36644 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36645 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36646 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36647 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36648 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
36649 here...
36650 * conf/common.rmk: ... to here. New file.
36651
36652 * conf/common.mk: New file.
36653
36654 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36655
36656 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36657 (grub_script.tab.c): ... here.
36658
36659 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36660 (grub_script.tab.c): ... here.
36661
36662 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36663 (grub_script.tab.c): ... here.
36664
36665 * normal/command.c (grub_command_find): Fixed a memory leak of
36666 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36667
36668 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36669
36670 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36671 "@" which marks the start of a comment on ARM.
36672 (VARIABLE): Likewise.
36673
36674 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36675
36676 Add support for Linux/ADFS partition tables.
36677
36678 * partmap/acorn.c: New file.
36679
36680 * include/grub/acorn_filecore.h: Likewise.
36681
36682 * DISTLIST: Added `partmap/acorn.c' and
36683 `include/grub/acorn_filecore.h'.
36684
36685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36686 `partmap/acorn.c'.
36687 (pkgdata_MODULES): Add `acorn.mod'.
36688 (acorn_mod_SOURCES): New variable.
36689 (acorn_mod_CFLAGS): Likewise.
36690
36691 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36692 `partmap/acorn.c'.
36693 (pkgdata_MODULES): Add `acorn.mod'.
36694 (acorn_mod_SOURCES): New variable.
36695 (acorn_mod_CFLAGS): Likewise.
36696
36697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
36698 (pkgdata_MODULES): Add `acorn.mod'.
36699 (acorn_mod_SOURCES): New variable.
36700 (acorn_mod_CFLAGS): Likewise.
36701 (acorn_mod_LDFLAGS): Likewise.
36702
36703 * include/types.h (grub_disk_addr_t): New typedef.
36704
36705 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
36706
36707 * geninit.sh: New file.
36708
36709 * geninitheader.sh: Likewise.
36710
36711 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
36712 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
36713 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
36714 * commands/configfile.c (grub_configfile_init)
36715 (grub_configfile_fini): Likewise.
36716 * commands/default.c (grub_default_init, grub_default_fini):
36717 Likewise.
36718 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
36719 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
36720 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
36721 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
36722 Likewise.
36723 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
36724 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
36725 Likewise.
36726 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
36727 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
36728 Likewise.
36729 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
36730 Likewise.
36731 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
36732 Likewise.
36733 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
36734 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
36735 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
36736 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
36737 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
36738 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
36739 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
36740 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
36741 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
36742 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
36743 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
36744 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
36745 * partmap/amiga.c (grub_amiga_partition_map_init)
36746 (grub_amiga_partition_map_fini): Likewise.
36747 * partmap/apple.c (grub_apple_partition_map_init)
36748 (grub_apple_partition_map_fini): Likewise.
36749 * partmap/pc.c (grub_pc_partition_map_init)
36750 (grub_pc_partition_map_fini): Likewise.
36751 * partmap/sun.c (grub_sun_partition_map_init,
36752 grub_sun_partition_map_fini): Likewise.
36753 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
36754 Likewise.
36755
36756 * util/grub-emu.c: Include <grub_modules_init.h>.
36757 (main): Don't initialize and de-initialize any modules directly,
36758 use `grub_init_all' and `grub_fini_all' instead.
36759
36760 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
36761 `grub_vesafb_mod_init'.
36762 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
36763 all users.
36764 * term/i386/pc/vga.c (grub_vga_init): Renamed to
36765 `grub_vga_mod_init'. Updated all users.
36766 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
36767
36768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
36769 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
36770 rules.
36771
36772 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
36773 Generate a function to initialize the module in utilities.
36774 Updated all callers.
36775 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
36776 initialize the module in utilities. Updated all callers.
36777
36778 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36779
36780 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
36781 escape sequence and a literal ^L to clear the screen.
36782
36783 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
36784 when returning from Open Firmware.
36785
36786 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36787
36788 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
36789 (grub_ofconsole_height): Likewise.
36790 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
36791 manually insert a '\n'.
36792 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
36793 `grub_ofconsole_height'. Return early if these are already set.
36794
36795 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
36796
36797 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36798 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
36799 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
36800 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
36801 and `normal/script.c'.
36802 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36803 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36804 (test_mod_SOURCES): New variable.
36805 (test_mod_CFLAGS): Likewise.
36806 (test_mod_LDFLAGS): Likewise.
36807 (pkgdata_MODULES): Add `test.mod'.
36808 (grub_script.tab.c): New rule.
36809 (grub_script.tab.h): Likewise.
36810
36811 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
36812
36813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36814 `commands/test.c', `normal/execute.c', `normal/lexer.c',
36815 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36816 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36817 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36818 (test_mod_SOURCES): New variable.
36819 (test_mod_CFLAGS): Likewise.
36820 (pkgdata_MODULES): Add `test.mod'.
36821 (grub_script.tab.c): New rule.
36822 (grub_script.tab.h): Likewise.
36823
36824 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
36825
36826 Add initial scripting support.
36827
36828 * commands/test.c: New file.
36829 * include/grub/script.h: Likewise.
36830 * normal/execute.c: Likewise.
36831 * normal/function.c: Likewise.
36832 * normal/lexer.c: Likewise.
36833 * normal/parser.y: Likewise.
36834 * normal/script.c: Likewise.
36835
36836 * configure.ac: Add `AC_PROG_YACC' test.
36837
36838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
36839 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
36840 `normal/function.c' and `normal/script.c'.
36841 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36842 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36843 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
36844 variables.
36845 (pkgdata_MODULES): Add `test.mod'.
36846 (grub_script.tab.c): New rule.
36847 (grub_script.tab.h): Likewise.
36848
36849 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
36850
36851 * include/grub/normal.h (grub_test_init): New prototype.
36852 (grub_test_fini): Likewise.
36853
36854 * normal/command.c: Include <grub/script.h>.
36855 (grub_command_execute): Rewritten.
36856
36857 * util/grub-emu.c (main): Call `grub_test_init' and
36858 `grub_test_fini'.
36859
36860 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36861
36862 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
36863 to 0.
36864 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
36865 there are no pending characters.
36866
36867 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36868
36869 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
36870 `grub_strndup' to drop device arguments. Replace unnecessary
36871 `grub_strndup' with `grub_strdup'.
36872
36873 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36874
36875 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
36876 `debug' environment variable has been set.
36877
36878 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
36879
36880 * Makefile.in (install-local): Use $(DATA).
36881 (uninstall): Likewise.
36882 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
36883 (sbin_UTILITIES): ... to here.
36884 (sbin_SCRIPTS): New variable.
36885 (grub_install_SOURCES): New variable.
36886 * util/powerpc/ieee1275/grub-install.in: New file.
36887 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
36888 variable.
36889 (add_segments): Call `grub_util_get_path'.
36890
36891 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36892
36893 From Timothy Baldwin:
36894 * commands/ls.c (grub_ls_list_files): Close FILE with
36895 grub_file_close.
36896 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
36897
36898 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
36899
36900 * include/grub/parser.h: New file.
36901
36902 * kern/parser.c: Likewise.
36903
36904 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
36905 (grub_setup_SOURCES): Likewise.
36906 (grub_probefs_SOURCES): Likewise.
36907 (grub_emu_SOURCES): Likewise.
36908 (kernel_img_HEADERS): Add `parser.h'.
36909
36910 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36911 (grub_emu_SOURCES): Add `kern/parser.c'.
36912 (grubof_SOURCES): Likewise.
36913
36914 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36915 (grubof_SOURCES): Add `kern/parser.c'.
36916
36917 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
36918
36919 * kern/misc.c (grub_split_cmdline): Removed function.
36920
36921 * kern/rescue.c: Include <grub/parser.h>.
36922 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
36923 of `grub_split_cmdline'.
36924
36925 * normal/command.c: Include <grub/parser.h>.
36926 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36927 of `grub_split_cmdline'.
36928
36929 * normal/completion.c: Include <grub/parser.h>.
36930 (cmdline_state): New variable.
36931 (iterate_dir): End the filename with a quote depending on the
36932 command line state.
36933 (get_state): new function.
36934 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
36935 split the arguments and determine the current argument. When the
36936 argument string is not quoted, escape all spaces.
36937
36938 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36939
36940 * normal/sparc64/setjmp.S: New file.
36941
36942 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36943
36944 * include/grub/sparc64/libgcc.h: New file.
36945 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
36946 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
36947 normal/sparc64/setjmp.c.
36948
36949 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36950
36951 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
36952 * kern/sparc64/cache.S: New file.
36953 * kern/sparc64/cache.c: Removed.
36954 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
36955 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
36956 -mtune=ultrasparc.
36957 (COMMON_LDFLAGS): Add -melf64_sparc.
36958 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
36959 (grubof_SOURCES): Use cache.S instead of cache.c.
36960 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
36961 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
36962 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
36963 commented though.
36964 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
36965 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
36966 (linux_mod_CFLAGS): Commented out.
36967 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
36968 out because module isn't built.
36969 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
36970 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
36971 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
36972 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
36973 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
36974 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36975 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36976 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
36977 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
36978 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
36979 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36980 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36981 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
36982 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
36983
36984 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
36985
36986 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
36987 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
36988 longer, because HFS should not be used on PC.
36989
36990 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36991
36992 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
36993 consistently within the loop.
36994
36995 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
36996
36997 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
36998 directory can not be read.
36999
37000 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37001
37002 * configure.ac (AC_INIT): Increase the version number to 1.91.
37003
37004 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
37005 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
37006 term/i386/pc/serial.c.
37007
37008 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37009
37010 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
37011 file size must be permitted.
37012
37013 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
37014 between %ah and %al.
37015
37016 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37017
37018 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
37019 grub_uint64_t.
37020 Call the hook with a NUL-terminated filename.
37021 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
37022 grub_cpu_to_be32.
37023
37024 * kern/term.c (cursor_state): New variable.
37025 (grub_term_set_current): Reset the cursor state on a new
37026 terminal.
37027 (grub_setcursor): Rewritten to use CURSOR_STATE.
37028 (grub_getcursor): New function.
37029
37030 * include/grub/term.h (grub_getcursor): New prototype.
37031
37032 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
37033 integers on ARM. Reported by Timothy Baldwin
37034 <T.E.Baldwin99@members.leeds.ac.uk>.
37035
37036 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
37037
37038 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
37039 allocated.
37040 (grub_sfs_dir): Likewise.
37041
37042 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
37043
37044 Add support for the SFS filesystem.
37045
37046 * fs/sfs.c: New file.
37047
37048 * DISTLIST: Added `fs/sfs.c'.
37049
37050 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
37051 (grub_probefs_SOURCES): Likewise.
37052 (grub_emu_SOURCES): Likewise.
37053 (pkgdata_MODULES): Add `sfs.mod'.
37054 (sfs_mod_SOURCES): New variable.
37055 (sfs_mod_CFLAGS): Likewise.
37056 (sfs_mod_LDFLAGS): Likewise.
37057
37058 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
37059 (pkgdata_MODULES): Add `sfs.mod'.
37060 (sfs_mod_SOURCES): New variable.
37061 (sfs_mod_CFLAGS): Likewise.
37062
37063 * util/grub-emu.c (main): Call `grub_sfs_init' and
37064 `grub_sfs_fini'.
37065
37066 * include/grub/fs.h (grub_sfs_init): New prototype.
37067 (grub_sfs_fini): Likewise.
37068
37069 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
37070
37071 Add support for the AFFS filesystem.
37072
37073 * fs/affs.c: New file.
37074
37075 * DISTLIST: Added `fs/affs.c'.
37076
37077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
37078 (grub_probefs_SOURCES): Likewise.
37079 (grub_emu_SOURCES): Likewise.
37080 (pkgdata_MODULES): Add `affs.mod'.
37081 (affs_mod_SOURCES): New variable.
37082 (affs_mod_CFLAGS): Likewise.
37083 (affs_mod_LDFLAGS): Likewise.
37084
37085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
37086 (pkgdata_MODULES): Add `affs.mod'.
37087 (affs_mod_SOURCES): New variable.
37088 (affs_mod_CFLAGS): Likewise.
37089
37090 * util/grub-emu.c (main): Call `grub_affs_init' and
37091 `grub_affs_fini'.
37092
37093 * include/grub/fs.h (grub_affs_init): New prototype.
37094 (grub_affs_fini): Likewise.
37095
37096 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37097
37098 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
37099
37100 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37101
37102 * configure.ac: Accept `x86_64' as host_cpu. In that case add
37103 `-m32' to CFLAGS.
37104
37105 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
37106 linking.
37107
37108 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
37109 (COMMON_LDFLAGS): New variable.
37110 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
37111 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
37112 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
37113 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
37114 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
37115 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
37116 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
37117 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
37118 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
37119 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
37120 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37121 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37122 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
37123 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
37124 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
37125 variables.
37126 (normal_mod_ASFLAGS): Add `-m32'.
37127
37128 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
37129 (grub_host_size_t, grub_host_ssize_t): New types.
37130 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
37131 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
37132 `GRUB_HOST_SIZEOF_VOID_P'.
37133
37134 * include/grub/kernel.h (struct grub_module_header): Type of
37135 member offset changed to `grub_host_off_t'. Type of member size
37136 changed to `grub_host_size_t'.
37137 (struct grub_module_info): Type of member offset changed to
37138 `grub_host_off_t'. Type of member size changed to
37139 `grub_host_size_t'.
37140
37141 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
37142
37143 Make GRUB's kernel compliant to Multiboot Specification.
37144
37145 * kern/i386/pc/startup.S (multiboot_header): New label.
37146 (multiboot_entry): Likewise.
37147 (multiboot_trampoline): Likewise.
37148
37149 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37150 Increased to 0x4A0.
37151
37152 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
37153 put parentheses after a question mark.
37154 [!GRUB_UTIL] (my_mod): New variable.
37155
37156 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
37157
37158 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
37159
37160 Adds support for the XFS filesystem. Btrees are not supported
37161 yet.
37162
37163 * fs/xfs.c: New file.
37164
37165 * DISTLIST: Added `fs/xfs.c'.
37166
37167 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
37168 (grub_probefs_SOURCES): Likewise.
37169 (grub_emu_SOURCES): Likewise.
37170 (pkgdata_MODULES): Add `xfs.mod'.
37171 (xfs_mod_SOURCES): New variable.
37172 (xfs_mod_CFLAGS): Likewise.
37173
37174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
37175 (pkgdata_MODULES): Add `xfs.mod'.
37176 (xfs_mod_SOURCES): New variable.
37177 (xfs_mod_CFLAGS): Likewise.
37178
37179 * util/grub-emu.c (main): Call `grub_xfs_init' and
37180 `grub_xfs_fini'.
37181
37182 * include/grub/fs.h (grub_xfs_init): New prototype.
37183 (grub_xfs_fini): Likewise.
37184
37185
37186 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
37187
37188 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
37189 color modes, allow greater than 16 colors to be configured as
37190 a default palette.
37191
37192 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
37193
37194 * normal/completion.c (complete_arguments): Add the qualifier
37195 const into OPTIONS.
37196
37197 From Omniflux <omniflux+lists@omniflux.com>:
37198 * include/grub/terminfo.h: New file.
37199 * include/grub/tparm.h: Likewise.
37200 * include/grub/i386/pc/serial.h: Likewise.
37201 * term/terminfo.c: Likewise.
37202 * term/tparm.c: Likewise.
37203 * term/i386/pc/serial.c: Likewise.
37204 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
37205 serial.mod.
37206 (terminfo_mod_SOURCES): New variable.
37207 (terminfo_mod_CFLAGS): Likewise.
37208 (serial_mod_SOURCES): Likewise.
37209 (serial_mod_CFLAGS): Likewise.
37210
37211 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
37212
37213 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
37214 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
37215 and kern/powerpc/ieee1275/cmain.c, respectively.
37216
37217 * boot/powerpc/ieee1275/crt0.S: Moved to ...
37218 * kern/powerpc/ieee1275/crt0.S: ... here.
37219
37220 * boot/powerpc/ieee1275/cmain.c: Moved to ...
37221 * kern/powerpc/ieee1275/cmain.c: ... here.
37222
37223 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
37224 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
37225 instead of boot/powerpc/ieee1275/crt0.S and
37226 boot/powerpc/ieee1275/cmain.c, respectively.
37227
37228 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
37229 sectors. It was not used anyway.
37230
37231 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37232
37233 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
37234 `unused parameter' warning.
37235
37236 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37237
37238 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
37239 function.
37240 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
37241 getcharwidth.
37242
37243 2005-08-28 Marco Gerards <metgerards@student.han.nl>
37244
37245 * include/grub/normal.h (enum grub_completion_type): Added
37246 `GRUB_COMPLETION_TYPE_ARGUMENT'.
37247
37248 * normal/cmdline.c (print_completion): Handle
37249 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
37250 * normal/menu_entry.c (store_completion): Likewise.
37251
37252 * normal/completion.c (complete_arguments): New function.
37253 (grub_normal_do_completion): Call `complete_arguments' when the
37254 current words start with a dash.
37255
37256 2005-08-27 Marco Gerards <metgerards@student.han.nl>
37257
37258 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
37259 `gzio.mod' instead of `io.mod').
37260
37261 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
37262
37263 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
37264 (DISTDIRS): Added io and video.
37265 Rewrite the search routine to make an output consistently.
37266
37267 * DISTLIST: Added conf/sparc64-ieee1275.mk,
37268 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
37269 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
37270 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
37271 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
37272 util/powerpc/ieee1275/misc.c.
37273
37274 * include/grub/gzio.h: New file.
37275 * io/gzio.c: Likewise.
37276
37277 * kern/file.c (grub_file_close): Call grub_device_close only if
37278 FILE->DEVICE is not NULL.
37279
37280 * include/grub/mm.h [!NULL] (NULL): New macro.
37281
37282 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
37283
37284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
37285 (pkgdata_MODULES): Added gzio.mod.
37286 (gzio_mod_SOURCES): New variable.
37287 (gzio_mod_CFLAGS): Likewise.
37288
37289 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
37290 (pkgdata_MODULES): Added gzio.mod.
37291 (gzio_mod_SOURCES): New variable.
37292 (gzio_mod_CFLAGS): Likewise.
37293
37294 * commands/cat.c: Include grub/gzio.h.
37295 (grub_cmd_cat): Use grub_gzfile_open instead of
37296 grub_file_open.
37297
37298 * commands/cmp.c: Include grub/gzio.h.
37299 (grub_cmd_cmp): Use grub_gzfile_open instead of
37300 grub_file_open.
37301
37302 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
37303 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
37304 grub_file_open.
37305 (grub_rescue_cmd_module): Likewise.
37306
37307 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37308
37309 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
37310 kern/sparc64/ieee1275/init.c because it contains _start.
37311 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
37312
37313 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37314
37315 * configure.ac: Add support for sparc64 host with ieee1275
37316 firmware.
37317 * configure: Generated from configure.ac.
37318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
37319 instead of int.
37320 (grub_ofdisk_read): Likewise.
37321 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37322 pointers as (void *) to remove a warning.
37323 (grub_ofdisk_close): Likewise.
37324 (grub_ofdisk_read): Likewise.
37325 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37326 returns, so make it return void to remove a warning.
37327 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37328 Corresponding prototype change.
37329 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37330 values, and cast the pointers as (void *) to remove a warning.
37331 (grub_mm_dump): Likewise.
37332 * conf/sparc64-ieee1275.mk: New file.
37333 * conf/sparc64-ieee1275.rmk: Likewise.
37334 * include/grub/sparc64/setjmp.h: Likewise.
37335 * include/grub/sparc64/types.h: Likewise.
37336 * include/grub/sparc64/ieee1275/console.h: Likewise.
37337 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37338 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37339 * include/grub/sparc64/ieee1275/time.h: Likewise.
37340 * kern/sparc64/cache.c: Likewise.
37341 * kern/sparc64/dl.c: Likewise.
37342 * kern/sparc64/ieee1275/init.c: Likewise.
37343 * kern/sparc64/ieee1275/openfw.c: Likewise.
37344
37345 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37346
37347 * util/console.c (grub_ncurses_putchar): If C is greater than
37348 0x7f, set C to a question mark.
37349 (grub_ncurses_getcharwidth): New function.
37350 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37351 getcharwidth.
37352
37353 * normal/menu.c (print_entry): Made aware of Unicode. First,
37354 convert TITLE to UCS-4, and predict the cursor position by
37355 grub_getcharwidth.
37356
37357 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37358 const to SRC.
37359 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37360
37361 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37362
37363 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37364 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37365 grub_strcat.
37366
37367 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37368 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37369 grub_strcpy and grub_strlen. Take it into account that a space
37370 character is inserted as a delimiter.
37371
37372 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37373
37374 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37375 invalid magic in the error.
37376
37377 * commands/search.c: New file.
37378
37379 * util/grub-emu.c (main): Call grub_search_init and
37380 grub_search_fini.
37381
37382 * kern/rescue.c (grub_rescue_print_disks): Removed.
37383 (grub_rescue_print_devices): New function.
37384 (grub_rescue_cmd_ls): Use grub_device_iterate with
37385 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37386 grub_rescue_print_disks.
37387
37388 * kern/partition.c (grub_partition_iterate): Return the result of
37389 PARTMAP->ITERATE instead of GRUB_ERRNO.
37390
37391 * kern/device.c: Include grub/partition.h.
37392 (grub_device_iterate): New function.
37393
37394 * include/grub/partition.h (grub_partition_iterate): Return int
37395 instead of grub_err_t.
37396
37397 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37398 prototype.
37399 [GRUB_UTIL] (grub_search_fini): Likewise.
37400
37401 * include/grub/device.h (grub_device_iterate): New prototype.
37402
37403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37404 commands/search.c.
37405 (pkgdata_MODULES): Added search.mod.
37406 (search_mod_SOURCES): New variable.
37407 (search_mod_CFLAGS): Likewise.
37408
37409 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37410 (pkgdata_MODULES): Added search.mod.
37411 (search_mod_SOURCES): New variable.
37412 (search_mod_CFLAGS): Likewise.
37413
37414 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37415 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37416 All callers changed.
37417
37418 * DISTLIST: Added commands/search.c.
37419
37420 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37421
37422 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37423 conversion.
37424 (grub_getcharwidth): New function.
37425
37426 * kern/misc.c (grub_utf8_to_ucs4): New function.
37427
37428 * include/grub/term.h (struct grub_term): Added a new member
37429 "getcharwidth".
37430 (grub_getcharwidth): New prototype.
37431
37432 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37433
37434 * term/i386/pc/console.c (map_char): New function. Segregated from
37435 grub_console_putchar.
37436 (grub_console_putchar): Use map_char.
37437 (grub_console_getcharwidth): New function.
37438 (grub_console_term): Specified grub_console_getcharwidth as
37439 getcharwidth.
37440
37441 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37442 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37443
37444 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37445 GRUB_ERRNO.
37446 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37447 on grub_strtoul completely.
37448 (write_char): Declare local variables in the beginning of the
37449 function.
37450 (grub_vesafb_getcharwidth): New function.
37451 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37452 getcharwidth.
37453
37454 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37455
37456 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37457 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37458 commands/i386/pc/vbetest.c.
37459
37460 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37461 call grub_vbe_get_controller_info again, because the returned
37462 information is volatile.
37463 (grub_vbe_set_video_mode): Mostly rewritten.
37464 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37465 grub_vbe_status_t correctly.
37466 (grub_vbe_get_video_mode_info): Likewise.
37467 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37468 several if statements.
37469
37470 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37471 * commands/i386/pc/vbeinfo.c: ... this.
37472
37473 * commands/i386/pc/vbe_test.c: Renamed to ...
37474 * commands/i386/pc/vbetest.c: ... this.
37475
37476 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37477 ...
37478 (grub_cmd_vbeinfo): ... this. Save video modes before
37479 iterating. Skip a video mode, if it is not available, not enough
37480 information is given or it is monochrome. Show the memory
37481 model. Leave the interpretation of MODEVAR to grub_strtoul
37482 completely.
37483 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37484 (GRUB_MOD_FINI): Likewise.
37485
37486 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37487 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37488 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37489 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37490 grub_strtoul completely.
37491 (real2pm): Removed.
37492 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37493 (GRUB_MOD_FINI): Likewise.
37494
37495 * normal/misc.c: Include grub/mm.h.
37496
37497 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37498 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37499 (vbe_list_modes_mod_SOURCES): Removed.
37500 (vbe_list_modes_mod_CFLAGS): Likewise.
37501 (vbe_test_mod_SOURCES): Likewise.
37502 (vbe_test_mod_CFLAGS): Likewise.
37503 (vbeinfo_mod_SOURCES): New variable.
37504 (vbeinfo_mod_CFLAGS): Likewise.
37505 (vbetest_mod_SOURCES): Likewise.
37506 (vbetest_mod_CFLAGS): Likewise.
37507
37508 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37509
37510 * normal/misc.c: New file.
37511
37512 * DISTLIST: Added normal/misc.c.
37513
37514 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37515 DISK to HOOK. Call HOOK with DISK.
37516 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37517 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37518 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37519
37520 * normal/menu_entry.c (struct screen): Added a new member
37521 "completion_shown".
37522 (completion_buffer): New global variable.
37523 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37524 (store_completion): New function.
37525 (complete): Likewise.
37526 (clear_completions): Likewise.
37527 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37528 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37529 a tab, call complete.
37530
37531 * normal/completion.c (disk_dev): Removed.
37532 (print_simple_completion): Likewise.
37533 (print_partition_completion): Likewise.
37534 (print_func): New global variable.
37535 (add_completion): Do not take the arguments WHAT or PRINT any
37536 longer. Added a new argument TYPE. Instead of printing directly,
37537 call PRINT_FUNC if not NULL.
37538 All callers changed.
37539 (complete_device): Use a local variable DEV instead of
37540 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37541 (grub_normal_do_completion): Take a new argument HOOK. Do not
37542 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37543 empty string, return NULL instead.
37544 All callers changed.
37545
37546 * normal/cmdline.c (print_completion): New function.
37547
37548 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37549 to HOOK.
37550 All callers changed.
37551
37552 * kern/disk.c (grub_print_partinfo): Removed.
37553
37554 * include/grub/partition.h (struct grub_partition_map): Add a new
37555 argument DISK into HOOK of ITERATE.
37556 (grub_partition_iterate): Add a new argument DISK to HOOK.
37557
37558 * include/grub/normal.h (enum grub_completion_type): New enum.
37559 (grub_completion_type_t): New type.
37560 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37561 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37562 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37563 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37564 (grub_normal_do_completion): Added a new argument HOOK.
37565 (grub_normal_print_device_info): New prototype.
37566
37567 * include/grub/disk.h (grub_print_partinfo): Removed.
37568
37569 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37570 (normal_mod_SOURCES): Likewise.
37571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37572 (normal_mod_SOURCES): Likewise.
37573
37574 * commands/ls.c (grub_ls_list_disks): Use
37575 grub_normal_print_device_info instead of grub_print_partinfo. Free
37576 PNAME.
37577 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37578 duplicating the code.
37579
37580 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37581
37582 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37583 follow GCS more precisely.
37584 * commands/i386/pc/vbe_test.c: Likewise.
37585 * include/grub/i386/pc/vbe.h: Likewise.
37586 * term/i386/pc/vesafb.c: Likewise.
37587 * video/i386/pc/vbe.c: Likewise.
37588
37589 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37590
37591 * DISTLIST: Added term/i386/pc/vesafb.c
37592 DISTLIST: Added video/i386/pc/vbe.c
37593 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37594 DISTLIST: Added commands/i386/pc/vbe_test.c.
37595 * commands/i386/pc/vbe_list_modes.c: New file.
37596 * commands/i386/pc/vbe_test.c: Likewise.
37597 * term/i386/pc/vesafb.c: Likewise.
37598 * video/i386/pc/vbe.c: Likewise.
37599 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37600 (grub_vbe_probe) Added prototype.
37601 (grub_vbe_set_video_mode) Likewise.
37602 (grub_vbe_get_video_mode) Likewise.
37603 (grub_vbe_get_video_mode_info) Likewise.
37604 (grub_vbe_set_pixel_rgb) Likewise.
37605 (grub_vbe_set_pixel_index) Likewise.
37606 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37607 (pkgdata_MODULES): Added vesafb.mod.
37608 (pkgdata_MODULES): Added vbe_list_modes.mod.
37609 (pkgdata_MODULES): Added vbe_test.mod.
37610 (vbe_mod_SOURCES): Added.
37611 (vbe_mod_CFLAGS): Likewise.
37612 (vesafb_mod_SOURCES): Likewise.
37613 (vesafb_mod_CFLAGS): Likewise.
37614 (vbe_list_modes_mod_SOURCES): Likewise.
37615 (vbe_list_modes_mod_CFLAGS): Likewise.
37616 (vbe_test_mod_SOURCES): Likewise.
37617 (vbe_test_mod_CFLAGS): Likewise.
37618
37619 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37620
37621 * normal/command.c (grub_command_execute): If INTERACTIVE is
37622 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37623 CMDLINE. Disable the pager if INTERACTIVE is true.
37624 All callers are changed.
37625
37626 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37627 before reading a config file.
37628 * normal/main.c (read_config_file): Even if a command is not
37629 found, register it if it is within an entry.
37630
37631 * util/grub-emu.c: Include sys/types.h and unistd.h.
37632 (options): Added --hold.
37633 (struct arguments): Added a new member "hold".
37634 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37635 missing.
37636 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37637 cleared by a debugger, if it is not zero.
37638
37639 * include/grub/normal.h (grub_command_execute): Add an argument
37640 INTERACTIVE.
37641
37642 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37643
37644 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37645
37646 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37647
37648 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
37649 program with another one, because the old one didn't detect a bug
37650 in gcc-3.4. Always use regparm 2, because the new test is still
37651 not enough for gcc-4.0. Someone must investigate a simple test
37652 case which detects a bug in gcc-4.0.
37653
37654 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37655
37656 * DISTLIST: Added normal/completion.c.
37657
37658 * normal/completion.c: New file.
37659
37660 * term/i386/pc/console.c (grub_console_getwh): New function.
37661 (grub_console_term): Assign grub_console_getwh to getwh.
37662
37663 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
37664 function is defined in normal/completion.c as
37665 grub_normal_do_completion.
37666 (grub_cmdline_get): Use grub_normal_do_completion instead of
37667 grub_tab_complete.
37668
37669 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
37670 returns non-zero, otherwise return 0.
37671 (grub_partition_iterate): First, probe the partition map. Then,
37672 call ITERATE only for this partition map.
37673
37674 * kern/misc.c (grub_strncmp): Rewritten.
37675
37676 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37677 returns non-zero. Otherwise return 0.
37678
37679 * include/grub/partition.h (grub_partition_map_iterate): Return
37680 int instead of void.
37681
37682 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37683
37684 * include/grub/misc.h (grub_strncmp): Change the type of N to
37685 grub_size_t.
37686
37687 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37688 of void.
37689
37690 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37691 unsigned explicitly before comparing it with I.
37692
37693 * kern/main.c (grub_env_write_root): Add the attribute unused into
37694 VAR.
37695
37696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37697 normal/completion.c.
37698 (normal_mod_SOURCES): Likewise.
37699 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37700 (normal_mod_SOURCES): Likewise.
37701
37702 * normal/command.c (grub_iterate_commands): If ITERATE returns
37703 non-zero, return one immediately.
37704
37705 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
37706
37707 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
37708 * kern/i386/pc/startup.S: Updated Global Descriptor table's
37709 descriptions.
37710 (grub_vbe_get_controller_info): New function.
37711 (grub_vbe_get_mode_info): Likewise.
37712 (grub_vbe_set_mode): Likewise.
37713 (grub_vbe_get_mode): Likewise.
37714 (grub_vbe_set_memory_window): Likewise.
37715 (grub_vbe_get_memory_window): Likewise.
37716 (grub_vbe_set_scanline_length): Likewise.
37717 (grub_vbe_get_scanline_length): Likewise.
37718 (grub_vbe_set_display_start): Likewise.
37719 (grub_vbe_get_display_start): Likewise.
37720 (grub_vbe_set_palette_data): Likewise.
37721 * include/grub/i386/pc/vbe.h: New file.
37722
37723 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37724
37725 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37726 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
37727 * DISTLIST: Likewise.
37728 * kern/ieee1275/of.c: Moved to ...
37729 * kern/ieee1275/ieee1275.c: ... here.
37730
37731 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37732
37733 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
37734 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
37735 Pass 0 as `end' parameter to grub_strtoul().
37736
37737 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37738
37739 * include/grub/powerpc/ieee1275/console.h: Do not include
37740 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
37741 ifdef.
37742 (grub_console_cur_color): Remove i386-specific prototype.
37743 (grub_console_real_putchar): Likewise.
37744 (grub_console_checkkey): Likewise.
37745 (grub_console_getkey): Likewise.
37746 (grub_console_getxy): Likewise.
37747 (grub_console_gotoxy): Likewise.
37748 (grub_console_cls): Likewise.
37749 (grub_console_setcursor): Likewise.
37750 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
37751 Include <grub/machine/console.h>.
37752 * term/ieee1275/ofconsole.c: Likewise.
37753
37754 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
37755
37756 * Makefile.in (LIBLZO): New variable.
37757
37758 * configure.ac: Check for LZO version 2.
37759
37760 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
37761 lzo/lzo1x.h instead of lzo1x.h.
37762
37763 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
37764 of -llzo.
37765
37766 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
37767 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
37768
37769 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
37770 copying the data from PARTITION to P.
37771
37772 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37773
37774 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
37775 negative, unload the module.
37776
37777 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
37778 map is "pc_partition_map" but not "pc".
37779 (usage): Fix the description. The options are --boot-image and
37780 --core-image but not --boot-file or --core-file.
37781 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
37782 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
37783 DEFAULT_DIRECTORY.
37784
37785 * util/i386/pc/grub-install.in: Do not specify --boot-file or
37786 --core-file. Specify INSTALL_DEVICE as an argument.
37787
37788 * util/console.c: Include config.h.
37789 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
37790 [HAVE_NCURSES_H]: Include ncurses.h.
37791 [HAVE_CURSES_H]: Include curses.h.
37792 [!A_NORMAL] (A_NORMAL): Defined as zero.
37793 [!A_STANDOUT] (A_STANDOUT): Likewise.
37794
37795 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
37796 -lncurses.
37797 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
37798
37799 * configure.ac: Check for curses libraries and headers.
37800
37801 * Makefile.in (LIBCURSES): New variable.
37802
37803 * genmk.rb (Script::rule): Set the executable bits.
37804
37805 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
37806 name of the PC partition map is "pc_partition_map" but not "pc".
37807
37808 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37809
37810 * util/i386/pc/grub-install.in (grub_probefs): New variable.
37811 (modules): Likewise.
37812 (usage): Added descriptions for --modules and --grub-probefs.
37813 Handle --modules and --grub-probefs. Save the arguments in MODULES
37814 and GRUB_PROBEFS, respectively.
37815 Auto-detect a filesystem module against GRUBDIR. If the result is
37816 empty and modules are not specified explicitly, abort the
37817 installation. Add the result to MODULES.
37818
37819 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
37820 disk/powerpc/ieee1275/ofdisk.c,
37821 include/grub/powerpc/ieee1275/init.h and
37822 term/powerpc/ieee1275/ofconsole.c.
37823 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
37824 term/ieee1275/ofconsole.c.
37825
37826 * include/grub/powerpc/ieee1275/console.h: Resurrected.
37827
37828 * COPYING: Upgraded to the latest version. Only the address of the
37829 FSF office has changed.
37830
37831 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37832
37833 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37834 kern/ieee1275.c with kern/ieee1275/of.c.
37835
37836 * kern/ieee1275.c: Moved to ...
37837 * kern/ieee1275/of.c: ... here.
37838
37839 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
37840
37841 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
37842 readability.
37843
37844 * config.guess: Updated to the latest version from gnulib.
37845 * config.sub: Likewise.
37846 * install.sh: Likewise.
37847 * mkinstalldirs: Likewise.
37848
37849 * include/grub/console.h: Removed. This file is arch-specific. Do
37850 not put this in include/grub.
37851
37852 * include/grub/i386/pc/console.h: Resurrected.
37853
37854 * util/console.c: Include grub/machine/console.h instead of
37855 grub/console.h.
37856 * util/grub-emu.c: Likewise.
37857
37858 2005-08-04 Marco Gerards <metgerards@student.han.nl>
37859
37860 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
37861 hardcoded value.
37862
37863 From Vincent Pelletier <subdino2004@yahoo.fr>
37864 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
37865 Redefined to use grub_getwh.
37866 (grub_term): New member named getwh.
37867 (grub_getwh): New prototype.
37868 * kern/term.c (grub_getwh): New function.
37869 * term/i386/pc/console.c (grub_console_getwh): New function.
37870 (grub_console_term): New member `getwh'.
37871 * term/i386/pc/vga.c (grub_vga_getwh): New function.
37872 (grub_vga_term): New member `getwh'.
37873 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
37874 grub_ssize_t.
37875 (grub_ofconsole_getw): New function.
37876 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
37877 (grub_ofconsole_term): New field named getwh and new initial
37878 value.
37879
37880 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
37881
37882 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
37883 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
37884 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
37885 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
37886 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
37887 of <grub/machine/ieee1275.h>.
37888 * commands/ieee1275/reboot.c: Likewise.
37889 * boot/powerpc/ieee1275/ieee1275.c: Move ...
37890 * kern/ieee1275.c: ... to here. All users updated. Change all
37891 parameter structs to use new type `grub_ieee1275_cell_t'.
37892 * term/powerpc/ieee1275/ofconsole.c: Move ...
37893 * term/ieee1275/ofconsole.c: ... to here. All users updated.
37894 * disk/powerpc/ieee1275/ofdisk.c: Move ...
37895 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
37896 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
37897 to return int.
37898 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
37899 Remove unused prototypes. All users updated.
37900 * include/grub/powerpc/ieee1275/console.h: Removed.
37901 * include/grub/powerpc/ieee1275/ieee1275.h: Define
37902 `grub_ieee1275_cell_t'.
37903 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
37904 Cast comparisons with -1 to the correct type.
37905 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
37906 type to match `grub_ieee1275_entry_fn'.
37907
37908 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
37909
37910 * DISTLIST: Added util/i386/pc/grub-probefs.c.
37911
37912 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
37913 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
37914 partmap/sun.c.
37915 (grub_probefs_SOURCES): New variable.
37916
37917 * util/i386/pc/grub-probefs.c: New file.
37918
37919 * util/i386/pc/grub-setup.c (main): Call
37920 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
37921 grub_hfs_init and grub_jfs_init to initialize the system. Call
37922 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
37923 grub_pc_partition_map_fini to finish the system.
37924
37925 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37926
37927 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37928 function.
37929 (grub_multiboot_load_elf32): Likewise.
37930 (grub_multiboot_is_elf64): Likewise.
37931 (grub_multiboot_load_elf64): Likewise.
37932 (grub_multiboot_load_elf): Likewise.
37933 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
37934 an ELF32 or ELF64 file.
37935 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
37936
37937 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
37938 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
37939 NULL before calling FS->LABEL.
37940 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
37941 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
37942 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
37943 before calling FS->LABEL.
37944
37945 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37946
37947 * util/i386/pc/grub-install.in (datadir): New variable.
37948 (libdir): Removed.
37949 (pkgdatadir): New variable.
37950 (pkglibdir): Removed.
37951
37952 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37953
37954 * DISTLIST: Added util/i386/pc/grub-install.in.
37955
37956 * util/i386/pc/grub-install.in: New file.
37957
37958 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
37959 (grub_install_SOURCES): Likewise.
37960
37961 * genmk.rb: Added support for scripts.
37962 (Script): New class.
37963 (scripts): New variable.
37964
37965 * Makefile.in (install-local): Install sbin_SCRIPTS by
37966 INSTALL_SCRIPT.
37967 (uninstall): Remove sbin_SCRIPTS.
37968
37969 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
37970 device, try to get a GRUB device by
37971 grub_util_biosdisk_get_grub_dev.
37972 Free DEST_DEV.
37973
37974 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
37975 description for --device-map.
37976
37977 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37978
37979 Change the semantics of variable hooks. They now return strings
37980 instead of error values.
37981
37982 * util/i386/pc/grub-setup.c: Include grub/env.h.
37983 (setup): Use grub_device_set_root instead of grub_env_set.
37984
37985 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
37986 grub_env_get instead of grub_device_set_root and
37987 grub_device_get_root, respectively.
37988
37989 * kern/main.c (grub_env_write_root): New function.
37990 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
37991 grub_env_set instead of grub_device_set_root.
37992
37993 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
37994 many variables.
37995 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
37996 rather than calling ENV->WRITE_HOOK afterwards.
37997 (grub_env_get): Return the result of ENV->READ_HOOK rather than
37998 passing a pointer of a pointer.
37999 (grub_register_variable_hook): Change the types of "read_hook" and
38000 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
38001 respectively.
38002 Allocate the default empty string on the heap, because this string
38003 may be freed later.
38004
38005 * kern/device.c: Include grub/env.h.
38006 (grub_device_set_root): Removed.
38007 (grub_device_get_root): Likewise.
38008 (grub_device_open): Use grub_env_get instead of
38009 grub_device_get_root.
38010
38011 * include/grub/env.h (grub_env_read_hook_t): New type.
38012 (grub_env_write_hook_t): Likewise.
38013 (grub_env_var): Change the types of "read_hook" and "write_hook"
38014 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
38015 (grub_register_variable_hook): Likewise.
38016
38017 * include/grub/device.h (grub_device_set_root): Removed.
38018 (grub_device_set_root): Likewise.
38019
38020 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
38021 make sure that DIRNAME terminates with '/', so that
38022 grub_fat_find_dir will fail if PATH is not a directory.
38023
38024 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
38025 from DIRNAME.
38026 Use the qualifier auto for print_files and print_files_long.
38027 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
38028 as a regular file.
38029 Put a newline only if there is no error.
38030 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
38031 used.
38032
38033 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38034
38035 * kern/partition.c (grub_partition_probe): Initialize PART to
38036 NULL. Otherwise, when no partition map is registered, this returns
38037 a garbage.
38038
38039 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
38040
38041 * partmap/apple.c (apple_partition_map_iterate): Check if POS
38042 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
38043 valid.
38044
38045 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
38046
38047 * commands/ls.c (grub_ls_list_disks): Print the filesystem
38048 information on each device, if it does not have partitions. Print
38049 "Device" instead of "Disk", because this function is not specific
38050 to disk devices.
38051
38052 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
38053 static to ensure that it is put on the memory rather than a
38054 register.
38055
38056 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38057
38058 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
38059 (grub_cat_init): Likewise.
38060 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
38061 (options): Likewise.
38062 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
38063 (grub_configfile_init): Likewise.
38064 * font/manager.c (GRUB_MOD_INIT): Likewise.
38065 * commands/help.c (GRUB_MOD_INIT): Likewise.
38066 (grub_help_init): Likewise.
38067 * normal/command.c (grub_command_init): Likewise.
38068 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
38069 * disk/loopback.c (grub_loop_init): Likewise.
38070 (GRUB_MOD_INIT): Likewise.
38071 * commands/ls.c (grub_ls_init): Likewise.
38072 (GRUB_MOD_INIT): Likewise.
38073 (options): Likewise.
38074 * commands/boot.c (grub_boot_init): Likewise.
38075 (GRUB_MOD_INIT): Likewise.
38076 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
38077 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
38078 (GRUB_MOD_INIT): Likewise.
38079 * commands/cmp.c (grub_cmp_init): Likewise.
38080 (GRUB_MOD_INIT): Likewise.
38081
38082 * normal/arg.c: Use <> instead of "" to include header files.
38083 (SHORT_ARG_HELP): New macro.
38084 (SHORT_ARG_USAGE): Likewise.
38085 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
38086 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
38087 descriptions.
38088 (find_short): Check if C is 'h' or 'u' explicitly.
38089 (grub_arg_show_help): Use space characters instead of tabs. Treat
38090 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
38091 are shown with --help and --usage only if they are not used for
38092 the command itself.
38093 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
38094 'h' and 'u'.
38095
38096 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
38097 const into "longarg". Change the type of "shortarg" to int.
38098
38099 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38100
38101 * boot/i386/pc/boot.S (boot_drive_check): New label.
38102
38103 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
38104 macro.
38105
38106 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
38107 which do not pass a boot drive correctly. Copied from GRUB Legacy.
38108
38109 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38110
38111 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
38112 When turning off Gate A20, skip the check and return immediately,
38113 because this is not fatal usually.
38114
38115 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38116
38117 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
38118 be 0x7C00 instead of 0x8000.
38119
38120 * boot/i386/pc/pxeboot.S: Rewritten.
38121
38122 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
38123 EXT_C.
38124 (gate_a20_check_state): Read a byte from 0x108000. Invert the
38125 result.
38126
38127 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
38128
38129 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
38130 robustness. This routine now supports a BIOS call and System
38131 Control Port A to modify the gate A20.
38132
38133 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38134 Increased to 0x440.
38135
38136 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
38137
38138 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
38139 device path and resulting ihandle.
38140 (grub_ofdisk_close): dprintf the ihandle being closed.
38141 (grub_ofdisk_read): dprintf function parameters.
38142 * kern/mm.c (grub_mm_init_region): Likewise.
38143 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
38144 (grub_linux_boot): dprintf the Linux entry point, initrd address and
38145 size, and boot arguments.
38146 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
38147 before loading into memory.
38148 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
38149 before loading into memory.
38150
38151 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
38152
38153 * kern/mm.c: Added much documentation.
38154 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
38155 8, set to 5 instead of 8.
38156
38157 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38158
38159 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
38160
38161 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
38162 (grub_mkdevicemap_SOURCES): New variable.
38163
38164 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
38165 lib/device.c of GRUB Legacy.
38166
38167 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38168
38169 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
38170 instead of PATH is NULL.
38171
38172 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
38173
38174 * commands/cmp.c (BUFFER_SIZE): New macro.
38175 (grub_cmd_cmp): Close the right file at the right time. Compare
38176 only data just read. Don't report files of different size as
38177 identical. Dynamically allocate buffers. Move variable
38178 declarations at the beginning of function.
38179
38180 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
38181
38182 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
38183 reverse.
38184
38185 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
38186
38187 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
38188 when backspace is pressed at beginning of line.
38189
38190 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
38191
38192 * DISTLIST: Added genfslist.sh.
38193
38194 * normal/main.c (fs_module_list): New variable.
38195 (autoload_fs_module): New function.
38196 (read_fs_list): Likewise.
38197 (grub_normal_execute): Call read_fs_list.
38198
38199 * kern/fs.c (grub_fs_autoload_hook): New variable.
38200 (grub_fs_probe): Added support for auto-loading.
38201
38202 * include/grub/normal.h (struct grub_fs_module_list): New struct.
38203 (grub_fs_module_list_t): New type.
38204
38205 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
38206 (grub_fs_autoload_hook): New prototype.
38207
38208 * genfslist.sh: New file.
38209
38210 * genmk.rb: Added a rule to generate a filesystem list.
38211
38212 2005-06-30 Marco Gerards <metgerards@student.han.nl>
38213
38214 * configure.ac: Fix the test for cross-compiling.
38215
38216 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
38217 define GRUB_UTIL anymore.
38218
38219 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
38220 so this function works on other systems than just big endian.
38221 (load_modules): Likewise.
38222 (add_segments): Likewise.
38223
38224 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
38225
38226 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
38227 contains `l' modifier, get a long from va_arg().
38228
38229 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
38230
38231 * kern/mm.c (grub_free): If the next free block which is being
38232 merged is the first free block, set the first block to the block
38233 being freed.
38234 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
38235
38236 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38237
38238 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
38239 `grub_ieee1275_chosen'.
38240
38241 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38242
38243 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
38244 (grub_ieee1275_chosen): New variable.
38245 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
38246 `chosen'.
38247 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
38248 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38249 Rename first argument to `phandle' for consistency.
38250 (grub_ieee1275_get_property_length): Likewise.
38251 (grub_ieee1275_next_property): Likewise. Change type of first argument
38252 to grub_ieee1275_phandle_t.
38253 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
38254 Move export next to declaration.
38255 (grub_ieee1275_chosen): New variable.
38256 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
38257 Correct cosmetic typo.
38258 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
38259 `grub_ieee1275_chosen'.
38260 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
38261 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
38262 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
38263 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
38264 `grub_ieee1275_chosen'.
38265
38266 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
38267
38268 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
38269 /chosen/bootargs.
38270 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
38271 /chosen/bootargs as "variable=value" pairs.
38272
38273 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
38274
38275 * include/grub/misc.h (grub_dprintf): New macro.
38276 (grub_real_dprintf): New prototype.
38277 (grub_strword): Likewise.
38278 (grub_iswordseparator): Likewise.
38279 * kern/misc.c (grub_real_dprintf): New function.
38280 (grub_strword): Likewise.
38281 (grub_iswordseparator): Likewise.
38282
38283 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
38284
38285 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
38286 (roundup): Remove macro.
38287 (grub_ieee1275_flags): Make static.
38288 (grub_ieee1275_realmode): Remove.
38289 (grub_ieee1275_test_flag): New function.
38290 (grub_ieee1275_set_flag): Likewise.
38291 (find_options): Rename to `grub_ieee1275_find_options'; update
38292 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
38293 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
38294 (cmain): New prototype.
38295 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
38296 `grub_ieee1275_flags' directly.
38297 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
38298 machine/biosdisk.h.
38299 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
38300 Don't include grub/machine/init.h.
38301 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
38302 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38303 Remove prototype.
38304 (grub_ieee1275_realmode): Likewise.
38305 (grub_ieee1275_flag): New enum.
38306 (grub_ieee1275_test_flag): New prototype.
38307 (grub_ieee1275_set_flag): New prototype.
38308 * include/grub/powerpc/ieee1275/init.h: Remove file.
38309 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
38310 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
38311 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
38312 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
38313 comment.
38314 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
38315 `grub_ieee1275_test_flag'.
38316 (grub_ieee1275_encode_devname): Likewise.
38317
38318 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
38319
38320 * include/grub/powerpc/ieee1275/ieee1275.h
38321 (grub_ieee1275_encode_devname): New prototype.
38322 (grub_ieee1275_get_filename): Likewise.
38323 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38324 function.
38325 (grub_set_prefix): Likewise.
38326 (grub_machine_init): Call grub_set_prefix.
38327 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38328 (grub_parse_type): New enum.
38329 (grub_ieee1275_get_devargs): New function.
38330 (grub_ieee1275_get_devname): Likewise.
38331 (grub_ieee1275_parse_args): Likewise.
38332 (grub_ieee1275_get_filename): Likewise.
38333 (grub_ieee1275_encode_devname): Likewise.
38334
38335 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38336
38337 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38338 `grub_loader_unset'.
38339
38340 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38341
38342 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38343 instead of grub_ieee1275_interpret.
38344 (grub_halt_init): New function.
38345 (grub_halt_fini): Likewise.
38346 (GRUB_MOD_INIT): Correct message grammar.
38347 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38348 instead of grub_ieee1275_interpret.
38349 (grub_reboot_init): New function.
38350 (grub_reboot_fini): Likewise.
38351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38352 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38353 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38354 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38355 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38356 function.
38357 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38358 Add prototype.
38359 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38360 prototype.
38361 (grub_halt): Likewise.
38362 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38363 (cmain): Remove __attribute__((unused)).
38364 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38365 (grub_heap_len): Likewise.
38366 (grub_machine_fini): New function.
38367 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38368 (grub_halt): Likewise.
38369 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38370 function.
38371 * util/powerpc/ieee1275/misc.c: New file.
38372
38373 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38374
38375 * DISTLIST: New file.
38376 * gendistlist.sh: Likewise.
38377
38378 * Makefile.in (COMMON_DISTFILES): Removed.
38379 (BOOT_DISTFILES): Likewise.
38380 (CONF_DISTFILES): Likewise.
38381 (DISK_DISTFILES): Likewise.
38382 (FS_DISTFILES): Likewise.
38383 (INCLUDE_DISTFILES): Likewise.
38384 (KERN_DISTFILES): Likewise.
38385 (LOADER_DISTFILES): Likewise.
38386 (TERM_DISTFILES): Likewise.
38387 (UTIL_DISTFILES): Likewise.
38388 (DISTFILES): Likewise.
38389 (uninstall): Uninstall files in $(pkgdata_DATA).
38390 (DISTLIST): New target.
38391 (distdir): Use the contents of the file DISTLIST to get a list of
38392 distributed files.
38393
38394 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38395
38396 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38397 descriptor. This is ported from GRUB Legacy.
38398
38399 * gencmdlist.sh: Added an extra semicolon to make it work with
38400 old sed versions. Reported by Robert Bihlmeyer
38401 <robbe@orcus.priv.at>.
38402
38403 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38404
38405 Automatic loading of commands is supported.
38406
38407 * normal/main.c (read_command_list): New function.
38408 (grub_normal_execute): Call read_command_list.
38409
38410 * normal/command.c (grub_register_command): Return zero or CMD.
38411 Allocate CMD->NAME from the heap.
38412 Initialize CMD->MODULE_NAME to zero.
38413 Find the same name as well. If the same command is found and it is
38414 a dummy command, overwrite members. If it is not a dummy command,
38415 return zero.
38416 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38417 (grub_command_find): If a dummy command is found, load a module
38418 and retry to find a command only once.
38419
38420 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38421 make sure that each command is loaded.
38422
38423 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38424 macro.
38425 (struct grub_command): Remove const from the member `name'.
38426 Add a new member `module_name'.
38427 (grub_register_command): Return grub_command_t.
38428
38429 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38430 sure that each command is loaded.
38431
38432 * genmk.rb (PModule::rule): Specify a module name without the
38433 suffix ".mod" to gencmdlist.sh.
38434
38435 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38436
38437 * gencmdlist.sh: New file.
38438
38439 * genmk.rb (PModule::rule): Generate a rule for a command list.
38440 Clean command.lst.
38441 Generate command.lst from $(COMMANDFILES).
38442
38443 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38444 (DATA): Added $(pkgdata_DATA).
38445 (install-local): Install files in $(pkgdata_DATA).
38446
38447 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38448
38449 * term/i386/pc/vga.c (debug_command): Removed.
38450 (GRUB_MOD_INIT): Do not register the command "debug".
38451
38452 From Hollis Blanchard:
38453 * commands/configfile.c: New file.
38454 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38455 commands/configfile.c.
38456 (pkgdata_MODULES): Added configfile.mod.
38457 (configfile_mod_SOURCES): New variable.
38458 (configfile_mod_CFLAGS): Likewise.
38459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38460 commands/configfile.c.
38461 (pkgdata_MODULES): Added configfile.mod.
38462 (configfile_mod_SOURCES): New variable.
38463 (configfile_mod_CFLAGS): Likewise.
38464 * util/grub-emu.c (main): Call grub_configfile_init and
38465 grub_configfile_fini.
38466 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38467 prototype.
38468 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38469
38470 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38471
38472 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38473 address.
38474
38475 * commands/help.c (grub_cmd_help): Do not print newlines after
38476 the last command in print_command_help.
38477
38478 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38479
38480 * commands/default.h: New file.
38481 * commands/timeout.h: Likewise.
38482 * normal/context.c: Likewise.
38483
38484 * util/misc.c: Do not include sys/times.h.
38485 Include sys/time.h and grub/machine/time.h.
38486 (grub_get_rtc): Rewritten with gettimeofday.
38487
38488 * util/grub-emu.c (main): Call grub_default_init and
38489 grub_timeout_init before grub_normal_init, and call
38490 grub_timeout_fini and grub_default_fini after grub_main.
38491
38492 * util/console.c (grub_ncurses_checkkey): Return the read
38493 character or -1.
38494
38495 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38496 timeouts.
38497
38498 * normal/main.c (read_config_file): Push MENU. If this fails,
38499 print an error and wait for a user input.
38500 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38501 If a menu is empty or an error occurs, pop MENU.
38502 (grub_normal_execute): Pop and free MENU after grub_menu_run
38503 returns.
38504
38505 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38506
38507 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38508 include time.h.
38509 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38510 without GRUB_UTIL.
38511 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38512 time.h.
38513 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38514 without GRUB_UTIL.
38515
38516 * include/grub/normal.h (struct grub_menu_list): New struct.
38517 (grub_menu_list_t): New type.
38518 (struct grub_context): New struct.
38519 (grub_context_t): New type.
38520 (grub_register_command): Got rid of EXPORT_FUNC.
38521 (grub_unregister_command): Likewise.
38522 (grub_context_get): New prototype.
38523 (grub_context_get_current_menu): Likewise.
38524 (grub_context_push_menu): Likewise.
38525 (grub_context_pop_menu): Likewise.
38526 [GRUB_UTIL] (grub_default_init): Likewise.
38527 [GRUB_UTIL] (grub_default_fini): Likewise.
38528 [GRUB_UTIL] (grub_timeout_init): Likewise.
38529 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38530
38531 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38532 commands/timeout.c and normal/context.c.
38533 (pkgdata_MODULES): Added default.mod and timeout.mod.
38534 (normal_mod_SOURCES): Added normal/context.c.
38535 (default_mod_SOURCES): New variable.
38536 (default_mod_CFLAGS): Likewise.
38537 (timeout_mod_SOURCES): Likewise.
38538 (timeout_mod_CFLAGS): Likewise.
38539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38540 conf/i386-pc.rmk.
38541 (pkgdata_MODULES): Added default.mod and timeout.mod.
38542 (normal_mod_SOURCES): Added normal/context.c.
38543 (default_mod_SOURCES): New variable.
38544 (default_mod_CFLAGS): Likewise.
38545 (timeout_mod_SOURCES): Likewise.
38546 (timeout_mod_CFLAGS): Likewise.
38547
38548 * Makefile.in (all-local): Added $(MKFILES).
38549
38550 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38551
38552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38553 (grub_emu_SOURCES): Likewise.
38554 (pkgdata_MODULES): Add `sun.mod'.
38555 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38556 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38557 `partmap/sun.c'.
38558 (pkgdata_MODULES): Add `sun.mod'.
38559 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38560 * include/grub/partition.h (grub_sun_partition_map_init): New
38561 prototype.
38562 (grub_sun_partition_map_fini): Likewise.
38563 * partmap/sun.c: New file.
38564 * util/grub-emu.c (main): Initialize and de-initialize the sun
38565 partitionmap support.
38566
38567 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38568
38569 This implements an Emacs-like menu entry editor.
38570
38571 * normal/menu_entry.c: New file.
38572
38573 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38574 characters to ASCII.
38575 (saved_char): New variable.
38576 (grub_ncurses_checkkey): Rewritten completely.
38577 (grub_ncurses_getkey): Likewise.
38578 (grub_ncurses_init): Call raw instead of cbreak.
38579
38580 * normal/menu.c (print_entry): Do not put a space.
38581 (init_page): Renamed to ...
38582 (grub_menu_init_page): ... this. All callers changed.
38583 (edit_menu_entry): Removed.
38584 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38585
38586 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38587
38588 * kern/misc.c (grub_vprintf): Call grub_refresh.
38589
38590 * normal/menu.c (DISP_LEFT): Renamed to ...
38591 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38592 * normal/menu.c (DISP_UP): Renamed to ...
38593 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38594 * normal/menu.c (DISP_RIGHT): Renamed to ...
38595 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38596 * normal/menu.c (DISP_DOWN): Renamed to ...
38597 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38598 * normal/menu.c (DISP_HLINE): Renamed to ...
38599 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38600 * normal/menu.c (DISP_VLINE): Renamed to ...
38601 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38602 * normal/menu.c (DISP_UL): Renamed to ...
38603 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38604 * normal/menu.c (DISP_UR): Renamed to ...
38605 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38606 * normal/menu.c (DISP_LL): Renamed to ...
38607 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38608 * normal/menu.c (DISP_LR): Renamed to ...
38609 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38610 * normal/menu.c (TERM_WIDTH): Renamed to ...
38611 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38612 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38613 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38614 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38615 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38616 * normal/menu.c (TERM_MARGIN): Renamed to ...
38617 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38618 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38619 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38620 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38621 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38622 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38623 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38624 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38625 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38626 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38627 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38628 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38629 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38630 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38631 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38632 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38633 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38634 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38635 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38636 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38637 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38638 All callers changed.
38639
38640 * include/grub/normal.h: New prototype.
38641
38642 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38643 normal/menu_entry.c.
38644 (normal_mod_SOURCES): Likewise.
38645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38646 (normal_mod_SOURCES): Likewise.
38647
38648 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38649
38650 * include/grub/normal.h (grub_halt_init): New prototype.
38651 (grub_halt_fini): Likewise.
38652 (grub_reboot_init): Likewise.
38653 (grub_reboot_fini): Likewise.
38654
38655 * util/grub-emu.c: Include signal.h.
38656 (main_env): New global variable.
38657 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38658 catch C-c.
38659 (grub_machine_fini): New function.
38660 (main): Call grub_halt_init and grub_reboot_init before
38661 grub_main, and grub_reboot_fini and grub_halt_fini after it.
38662 Call setjmp with MAIN_ENV to go back afterwards.
38663 Call grub_machine_fini right before return.
38664
38665 * include/grub/util/misc.h: Include setjmp.h.
38666 (main_env): New prototype.
38667
38668 * include/grub/kernel.h (grub_machine_fini): New prototype.
38669 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
38670 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
38671
38672 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
38673 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
38674 * term/i386/pc/console.c (grub_console_fini): Likewise.
38675
38676 * util/i386/pc/misc.c: New file.
38677
38678 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38679 util/i386/pc/misc.c, commands/i386/pc/halt.c and
38680 commands/i386/pc/reboot.c.
38681
38682 2005-02-14 Guillem Jover <guillem@hadrons.org>
38683
38684 * include/grub/dl.h (grub_dl_check_header): New prototype.
38685 (grub_arch_dl_check_header): Change return type to grub_err_t,
38686 remove size parameter and export function. Update all callers.
38687 * kern/dl.c (grub_dl_check_header): New function.
38688 (grub_dl_load_core): Use `grub_dl_check_header' instead of
38689 `grub_arch_dl_check_header'. Check ELF type. Check if sections
38690 are inside the core.
38691 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
38692 independent ELF header checks.
38693 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38694 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
38695 `grub_dl_check_header' instead of explicit checks. Check for the
38696 ELF type.
38697 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
38698 `grub_dl_check_header' instead of explicit checks. Remove arch
38699 specific ELF header checks.
38700
38701 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38702 argument SIZE.
38703
38704 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
38705
38706 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
38707 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
38708
38709 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
38710
38711 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
38712 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
38713 (part_map_iterate): Clear `grub_errno' and return 0 if
38714 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
38715 * partmap/amiga.c (amiga_partition_map_iterate): Return
38716 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
38717 * partmap/apple.c (apple_partition_map_iterate): Likewise.
38718
38719 2005-02-01 Guillem Jover <guillem@hadrons.org>
38720
38721 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
38722 help info.
38723
38724 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38725
38726 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
38727 Removed prototype.
38728 (grub_rescue_cmd_linux): New prototype.
38729 (grub_rescue_cmd_initrd): Likewise.
38730 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
38731 `bi_rec'.
38732 (grub_linux_release_mem): Release the memory for the initrd.
38733 (grub_load_linux): Renamed from this...
38734 (grub_rescue_cmd_linux): ...To this. Changed all callers.
38735 Changed `entry' not to be static. Loop over memory regions to
38736 find another one when the default fails.
38737 (grub_rescue_cmd_initrd): New function.
38738 (grub_linux_init): Remove function.
38739 (grub_linux_fini): Likewise.
38740 (GRUB_MOD_INIT): Register `initrd'.
38741 (GRUB_MOD_FINI): Unregister `initrd'.
38742 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
38743 Function removed.
38744 (grub_linux_normal_fini): Likewise.
38745 (GRUB_MOD_INIT): Register `initrd'.
38746 (GRUB_MOD_FINI): Unregister `initrd'.
38747
38748 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38749
38750 * commands/help.c: New file.
38751 * normal/arg.c (show_help): Renamed to...
38752 (grub_arg_show_help): ... this.
38753 * commands/i386/pc/halt.c: New file.
38754 * commands/i386/pc/reboot.c: Likewise.
38755 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
38756 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
38757 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
38758 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
38759 variables.
38760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38761 `commands/help.c'.
38762 (pkgdata_MODULES): Add `help.mod'.
38763 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
38764 * grub/i386/pc/init.h (grub_reboot): New prototype.
38765 (grub_halt): Likewise.
38766 * include/grub/normal.h (grub_arg_show_help): New prototype.
38767 (grub_help_init): Likewise.
38768 (grub_help_fini): Likewise.
38769 * util/grub-emu.c (main): Initialize and deinitialize the help
38770 command.
38771
38772 * normal/cmdline.c (grub_cmdline_get): Doc fix.
38773
38774 * normal/command.c (grub_command_init): Fixed the description of
38775 the `set' and `unset' commands.
38776
38777 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38778
38779 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
38780 function.
38781 * commands/ieee1275/halt.c: New file.
38782 * commands/ieee1275/reboot.c: Likewise.
38783 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
38784 `__attribute__ ((unused))'. Some GCS related fixed.
38785 (grub_suspend_init) [GRUB_UTIL]: Function removed.
38786 (grub_suspend_fini): Likewise.
38787 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
38788 and `halt.mod'.
38789 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
38790 (halt_mod_CFLAGS): New variables.
38791 * include/grub/powerpc/ieee1275/ieee1275.h
38792 (grub_ieee1275_interpret): New prototype.
38793
38794 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
38795
38796 * include/grub/misc.h (memmove): New prototype.
38797 (memcpy): Likewise.
38798
38799 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
38800
38801 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
38802 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
38803
38804 2005-01-22 Marco Gerards <metgerards@student.han.nl>
38805
38806 * kern/misc.c (grub_strndup): Function rewritten.
38807
38808 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
38809
38810 * normal/menu.c (TERM_WIDTH): Macro redefined.
38811 (TERM_TOP_BORDER_Y): Likewise.
38812 (draw_border): Replaced while-loop by a for-loop. Make the number
38813 of lines consistent with the number of lines displayed in
38814 print_entries. Added a margin below the rectangle.
38815 (print_entry): Make the entry fit in the rectangle.
38816 (print_entries): Display the scroll arrows next to the right
38817 border.
38818
38819 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38820
38821 * fs/minix.c (grub_minix_find_file): Reserve more space for
38822 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
38823 `grub_strncpy' to copy `path' into it.
38824
38825 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38826
38827 Add the loopback device, a device via which files can be accessed
38828 as devices.
38829
38830 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
38831 (pkgdata_MODULES): Add loopback.mod.
38832 (loopback_mod_SOURCES): New variable.
38833 (loopback_mod_CFLAGS): Likewise.
38834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38835 `disk/loopback.c'.
38836 (pkgdata_MODULES): Add loopback.mod.
38837 (loopback_mod_SOURCES): New variable.
38838 (loopback_mod_CFLAGS): Likewise.
38839 * disk/loopback.c: new file.
38840 * include/grub/normal.h (grub_loop_init): New prototype.
38841 (grub_loop_fini): New prototype.
38842 * util/grub-emu.c (main): Initialize and de-initialize loopback
38843 support.
38844 * include/grub/disk.h (grub_disk_dev_id): Add
38845 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
38846
38847 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
38848
38849 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
38850 function.
38851 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
38852 (suspend_mod_SOURCES): New variable.
38853 (suspend_mod_CFLAGS): Likewise.
38854 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
38855 New prototype.
38856 * commands/ieee1275/suspend.c: New file.
38857
38858 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38859
38860 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
38861 ((unused))' to `__attribute__ ((used))'.
38862 (GRUB_MOD_FINI): Likewise.
38863 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
38864 * genmk.rb (PModule): Assign space to common symbols when linking
38865 modules.
38866
38867 2005-01-20 Marco Gerards <metgerards@student.han.nl>
38868
38869 * include/grub/mm.h (grub_mm_init_region): Change the type of the
38870 `unsigned' arguments to `grub_size_t'.
38871 (grub_malloc): Likewise.
38872 (grub_realloc): Likewise.
38873 (grub_memalign): Likewise.
38874 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
38875 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38876 * util/misc.c (grub_malloc): Likewise.
38877 (grub_realloc): Likewise.
38878 * kern/mm.c (get_header_from_pointer): Change the casts to
38879 `unsigned' into a cast to `grub_size_t'.
38880
38881 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
38882 point to `currnode' when `currnode' is changed.
38883
38884 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
38885 Schottelius <nico-linux@schottelius.org>.
38886
38887 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
38888
38889 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
38890 (note_path): Remove variable.
38891 (GRUB_IEEE1275_NOTE_NAME): New macro.
38892 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
38893 (grub_ieee1275_note_hdr): New structure.
38894 (grub_ieee1275_note_desc): Likewise.
38895 (grub_ieee1275_note): Likewise.
38896 (load_note): Remove `dir' argument. All callers updated. Remove
38897 `note_img' and `path'. Do not load a file from `note_path'.
38898 Initialize a struct grub_ieee1275_note and write that to `out'.
38899 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
38900
38901 2005-01-05 Marco Gerards <metgerards@student.han.nl>
38902
38903 * util/misc.c (grub_util_read_image): Revert last change. It
38904 called `grub_util_read_at', which seeks from the beginning of the
38905 file.
38906
38907 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
38908
38909 * TODO: Add note about endianness in grub-mkimage.
38910 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
38911 section.
38912 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
38913 (grub_mkimage_SOURCES): New target.
38914 * include/grub/kernel.h (grub_start_addr): Remove variable.
38915 (grub_end_addr): Likewise.
38916 (grub_total_module_size): Likewise.
38917 (grub_kernel_image_size): Likewise.
38918 (GRUB_MODULE_MAGIC): New constant.
38919 (grub_module_info): New structure.
38920 (grub_arch_modules_addr): New prototype.
38921 (grub_get_end_addr): Remove prototype.
38922 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
38923 * include/grub/powerpc/ieee1275/kernel.h: New file.
38924 * include/grub/util/misc.h (grub_util_get_fp_size): New
38925 prototype.
38926 (grub_util_read_at): Likewise.
38927 (grub_util_write_image_at): Likewise.
38928 * kern/main.c (grub_get_end_addr): Remove function.
38929 (grub_load_modules): Call grub_arch_modules_addr instead of using
38930 grub_end_addr. Look for a grub_module_info struct in memory. Use
38931 the grub_module_info fields instead of calling grub_get_end_addr
38932 as loop conditions. Move grub_add_unused_region code here.
38933 (grub_add_unused_region): Remove function.
38934 * kern/i386/pc/init.c: Include grub/cache.h.
38935 (grub_machine_init): Remove call to grub_get_end_addr. Remove
38936 one call to add_mem_region.
38937 (grub_arch_modules_addr): New function.
38938 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
38939 (grub_total_module_size): Likewise.
38940 Include grub/machine/kernel.h.
38941 (grub_arch_modules_addr): New function.
38942 * util/grub-emu.c (grub_end_addr): Remove variable.
38943 (grub_total_module_size): Likewise.
38944 (grub_arch_modules_addr): New function.
38945 * util/misc.c: Include unistd.h.
38946 (grub_util_get_fp_size): New function.
38947 (grub_util_read_at): Likewise.
38948 (grub_util_write_image_at): Likewise.
38949 (grub_util_read_image): Call grub_util_read_at.
38950 (grub_util_write_image): Call grub_util_write_image_at.
38951 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
38952 additional memory in kernel_img for a struct grub_module_info.
38953 Fill in that grub_module_info.
38954 * util/powerpc/ieee1275/grub-mkimage.c: New file.
38955
38956 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38957
38958 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
38959 New function.
38960 * include/grub/powerpc/ieee1275/ieee1275.h
38961 (grub_ieee1275_milliseconds): New prototype.
38962 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
38963 Change to 1000.
38964 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
38965 grub_ieee1275_milliseconds.
38966
38967 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38968
38969 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
38970 variable.
38971 (find_options): New function.
38972 (cmain): Call find_options.
38973 * include/grub/powerpc/ieee1275/ieee1275.h
38974 (grub_ieee1275_realmode): New extern variable.
38975 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
38976 grub_map if grub_ieee1275_realmode is false.
38977
38978 2004-12-29 Marco Gerards <metgerards@student.han.nl>
38979
38980 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
38981 lines are inserted and make it work like readline. Reported by
38982 Vincent Pelletier <subdino2004@yahoo.fr>.
38983
38984 2004-12-28 Marco Gerards <metgerards@student.han.nl>
38985
38986 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
38987
38988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
38989 `kern/powerpc/cache.S'.
38990
38991 2004-12-27 Marco Gerards <metgerards@student.han.nl>
38992
38993 * genmk.rb: Handle the `Program' class in the main loop. Written
38994 by Johan Rydberg <jrydberg@gnu.org>.
38995 (Program): New class.
38996 (programs): New variable.
38997 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
38998 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
38999 instead of "grub/kernel.h". Include <grub/machine/init.h>.
39000 (help_arch): Function removed.
39001 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
39002 `powerpc/libgcc.h' and `loader.h'.
39003 (pkgdata_PROGRAMS): New variable.
39004 (sbin_UTILITIES): Variable removed.
39005 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
39006 (grubof_SOURCES): Variable re-defined so it only includes the
39007 core functionality.
39008 (grubof_CFLAGS): Remove `-DGRUBOF'.
39009 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
39010 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
39011 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
39012 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
39013 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
39014 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
39015 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
39016 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
39017 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
39018 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
39019 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39020 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
39021 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
39022 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
39023 (pc_mod_CFLAGS): New variables.
39024 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
39025 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
39026 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
39027 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
39028 Moved from here...
39029 * include/grub/i386/pc/init.h (grub_os_area_addr)
39030 (rub_os_area_size): ... to here.
39031 * include/grub/powerpc/ieee1275/ieee1275.h
39032 (grub_ieee1275_entry_fn): Export symbol.
39033 * include/grub/powerpc/ieee1275/init.h: New file.
39034 * include/grub/powerpc/libgcc.h: Likewise.
39035 * include/grub/cache.h: Likewise.
39036 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
39037 <hollis@penguinppc.org>.
39038 * kern/dl.c: Include <grub/cache.h>.
39039 (grub_dl_flush_cache): New function.
39040 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
39041 for this module.
39042 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
39043 (grub_console_init): Removed prototypes.
39044 (grub_machine_init): Don't initialize the modules anymore.
39045 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
39046 static.
39047 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
39048 Macro undef removed.
39049 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
39050 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
39051 relocation `R_PPC_REL32'. Return an error when the relocation is
39052 unknown.
39053 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
39054 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
39055 * util/misc.c (grub_arch_sync_caches): Likewise.
39056
39057 2004-12-19 Marco Gerards <metgerards@student.han.nl>
39058
39059 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
39060 `symlist.c', add `grubof_symlist.c'.
39061 (symlist.c): Variable removed.
39062 (grubof_HEADERS): Variable added.
39063 (grubof_symlist.c): New target.
39064 (kernel_syms.lst): Use `grubof_HEADERS' instead of
39065 `kernel_img_HEADERS'.
39066 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
39067 * kern/powerpc/dl.c: New file.
39068 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
39069 Function removed.
39070 (grub_arch_dl_relocate_symbols): Likewise.
39071 (grub_register_exported_symbols): Likewise.
39072
39073 2004-12-13 Marco Gerards <metgerards@student.han.nl>
39074
39075 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
39076 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
39077 to fail instead. Reported by Vincent Pelletier
39078 <subdino2004@yahoo.fr>.
39079
39080 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
39081 it is not allocated. Reported by Vincent Pelletier
39082 <subdino2004@yahoo.fr>.
39083
39084 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
39085 output so the output looks better.
39086
39087 2004-12-04 Marco Gerards <metgerards@student.han.nl>
39088
39089 Modulize the partition map support and add support for the amiga
39090 partition map.
39091
39092 * commands/ls.c: Include <grub/partition.h> instead of
39093 <grub/machine/partition.h>.
39094 * kern/disk.c: Likewise.
39095 * kern/rescue.c: Likewise.
39096 * loader/i386/pc/chainloader.c: Likewise.
39097 * normal/cmdline.c: Likewise.
39098 * kern/powerpc/ieee1275/init.c: Likewise.
39099 (grub_machine_init): Call `grub_pc_partition_map_init',
39100 `grub_amiga_partition_map_init' and
39101 `grub_apple_partition_map_init'.
39102 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
39103 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
39104 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
39105 `partition.h' and `pc_partition.h'.
39106 (grub_setup_SOURCES): Remove
39107 `disk/i386/pc/partition.c'. Add `kern/partition.c',
39108 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39109 (grub_emu_SOURCES): Likewise.
39110 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
39111 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
39112 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
39113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39114 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
39115 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39116 (grubof_SOURCES): Likewise.
39117 * disk/i386/pc/partition.c: File removed.
39118 * disk/powerpc/ieee1275/partition.c: Likewise.
39119 * include/grub/powerpc/ieee1275/partition.h: Likewise.
39120 * include/grub/i386/pc/partition.h: Likewise.
39121 * kern/partition.c: New file.
39122 * partmap/amiga.c: Likewise.
39123 * partmap/apple.c: Likewise.
39124 * partmap/pc.c: Likewise.
39125 * include/grub/partition.h: Likewise..
39126 * include/grub/pc_partition.h: Likewise.
39127 * util/grub-emu.c: Include <grub/partition.h> instead of
39128 <grub/machine/partition.h>.
39129 (main): Call `grub_pc_partition_map_init',
39130 `grub_amiga_partition_map_init' and
39131 `grub_apple_partition_map_init' and deinitialize afterwards.
39132 * util/i386/pc/biosdisk.c: Include `#include
39133 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39134 `<grub/machine/partition.h>'.
39135 * util/i386/pc/grub-setup.c: Likewise.
39136 * util/i386/pc/biosdisk.c: Likewise.
39137 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
39138 partition information in case of a PC partition.
39139 * util/i386/pc/grub-setup.c: Include `#include
39140 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39141 `<grub/machine/partition.h>'.
39142 (setup): Only access the PC specific partition information in case
39143 of a PC partition.
39144
39145 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
39146
39147 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
39148 (grub_longjmp): Likewise.
39149 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
39150 20.
39151 * normal/powerpc/setjmp.S: New file.
39152 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39153 `normal/powerpc/setjmp.S'.
39154 (grubof_CFLAGS): Add `-DGRUBOF'.
39155 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
39156 [GRUB_UTIL && !GRUBOF].
39157
39158 2004-11-16 Marco Gerards <metgerards@student.han.nl>
39159
39160 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
39161 property named `name'. Correctly handle the error returned by
39162 `grub_ieee1275_finddevice' if a device can not be opened.
39163
39164 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
39165
39166 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
39167 `actual' for negativity.
39168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39169 kern/fshelp.c.
39170
39171 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39172
39173 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
39174 (PAGE_OFFSET): New macro.
39175 (CRTC_ADDR_PORT): Likewise.
39176 (CRTC_DATA_PORT): Likewise.
39177 (START_ADDR_HIGH_REGISTER): Likewise.
39178 (START_ADDR_LOW_REGISTER): Likewise.
39179 (GRAPHICS_ADDR_PORT): Likewise.
39180 (GRAPHICS_DATA_PORT): Likewise.
39181 (READ_MAP_REGISTER): Likewise.
39182 (INPUT_STATUS1_REGISTER): Likewise.
39183 (INPUT_STATUS1_VERTR_BIT): Likewise.
39184 (page): New variable.
39185 (wait_vretrace): New function.
39186 (set_read_map): Likewise.
39187 (set_start_address): Likewise.
39188 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
39189 the right page.
39190 (check_vga_mem): Take the page into account.
39191 (write_char): Likewise.
39192 (write_cursor): Likewise.
39193 (scroll_up): Likewise. Copy the page to the page that is not
39194 shown and switch between both pages.
39195 (grub_vga_putchar): Fix off by one error.
39196 (grub_vga_cls): Wait for the vertical retrace. Take the page into
39197 account.
39198
39199 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39200
39201 Add support for iso9660 (including rockridge).
39202
39203 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39204 (iso9660_mod_SOURCES): New variable.
39205 (iso9660_mod_CFLAGS): Likewise.
39206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39207 * include/grub/fs.h (grub_iso9660_init): New prototype.
39208 * util/grub-emu.c (main): Call `grub_iso9660_init'.
39209 * fs/iso9660.c: New file.
39210
39211 * include/grub/misc.h (grub_strncat): New prototype.
39212 * kern/misc.c (grub_strncat): New function.
39213
39214 * fs/hfs.c (grub_hfs_mount): Translate the error
39215 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
39216 * fs/jfs.c (grub_jfs_mount): Likewise.
39217 * fs/ufs.c (grub_ufs_mount): Likewise.
39218
39219 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
39220
39221 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
39222 which initialized BAT registers.
39223 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
39224 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39225 Move from here...
39226 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
39227 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39228 ... to here.
39229 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
39230 (grub_mapclaim): Likewise.
39231 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
39232 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
39233 hand.
39234
39235 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
39236
39237 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
39238 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
39239 -ffreestanding and -msoft-float.
39240
39241 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
39242
39243 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
39244 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
39245 set in grub_ieee1275_flags.
39246
39247 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
39248
39249 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
39250 prototype.
39251 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
39252 grub_console_init first.
39253 Change the memory range used for grub_ieee1275_claim and
39254 grub_mm_init_region.
39255 Print an error message if the claim fails.
39256 Include <grub/misc.h>.
39257
39258 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
39259
39260 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
39261 Call grub_children_iterate for device nodes of type `scsi',
39262 `ide', or `ata'.
39263 (grub_ofdisk_open): Remove manual device alias resolution.
39264 Fix memory leak when device cannot be opened.
39265 * include/grub/powerpc/ieee1275/ieee1275.h
39266 (grub_children_iterate): New prototype.
39267 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
39268 New function.
39269 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39270 Return -1 if args.size was -1.
39271
39272 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39273
39274 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
39275 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
39276 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
39277 Open Firmware's memory for it; claim memory from _start to _end.
39278 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
39279 (_end): New extern.
39280 (_start): Zero BSS from __bss_start to _end.
39281 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
39282 New extern.
39283 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
39284
39285 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39286
39287 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
39288 -1 if args.base was -1.
39289
39290 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
39291
39292 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
39293 escape sequence instead of a literal ^L. Also call
39294 grub_ofconsole_gotoxy.
39295
39296 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
39297
39298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
39299 void * arguments to grub_addr_t. All callers updated. Also make
39300 the `result' argument optional.
39301 (grub_ieee1275_release): change void * arguments to grub_addr_t.
39302 All callers updated.
39303
39304 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
39305
39306 * commands/ls.c (grub_ls_list_files): Use the string following the
39307 initial ')', if present, as the filesystem path.
39308 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
39309
39310 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
39311
39312 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
39313
39314 Make the source code of the menu interface more readable.
39315
39316 * normal/menu.c: Include grub/mm.h.
39317 (TERM_WIDTH): New macro.
39318 (TERM_HEIGHT): Likewise.
39319 (TERM_INFO_HEIGHT): Likewise.
39320 (TERM_MARGIN): Likewise.
39321 (TERM_SCROLL_WIDTH): Likewise.
39322 (TERM_TOP_BORDER_Y): Likewise.
39323 (TERM_LEFT_BORDER_X): Likewise.
39324 (TERM_BORDER_WIDTH): Likewise.
39325 (TERM_MESSAGE_HEIGHT): Likewise.
39326 (TERM_BORDER_HEIGHT): Likewise.
39327 (TERM_NUM_ENTRIES): Likewise.
39328 (TERM_FIRST_ENTRY_Y): Likewise.
39329 (TERM_ENTRY_WIDTH): Likewise.
39330 (TERM_CURSOR_X): Likewise.
39331 (draw_border): Use macros instead of magic numbers.
39332 (print_entry): Likewise.
39333 (print_entries): Likewise.
39334 (run_menu): Likewise. Also, handle the key 'e'.
39335 (run_menu_entry): Ignore empty command lines.
39336 (print_message): Added a new argument EDIT. If EDIT is true,
39337 print a different message.
39338 (init_page): Likewise.
39339 (edit_menu_entry): New function. Not implemented yet.
39340
39341 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39342
39343 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39344 can be loaded from normal mode.
39345
39346 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39347 `multiboot.mod'.
39348 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39349 (multiboot_mod_CFLAGS): New variables.
39350 * loader/i386/pc/linux_normal.c: New file.
39351 * loader/i386/pc/multiboot_normal.c: Likewise.
39352
39353 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39354 attribute `unused'.
39355
39356 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39357 `fdiro' to read the mode information from instead of `diro'.
39358
39359 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39360 looking up a symlink.
39361
39362 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39363 macro.
39364 * normal/command.c (grub_command_execute): Don't parse the
39365 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39366 flags of the command.
39367
39368 * normal/menu.c (grub_menu_run): Fix typo.
39369
39370 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39371
39372 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39373
39374 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39375 `y + 1' instead of `y - 1'.
39376
39377 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39378
39379 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39380
39381 From Hollis Blanchard <hollis@penguinppc.org>:
39382 * kern/misc.c (memmove): New alias for grub_memmove.
39383 (memcmp): New alias for grub_memcmp.
39384 (memset): New alias for grub_memset.
39385 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39386 Change "int handle" to "grub_ieee1275_phandle_t handle".
39387 * include/grub/powerpc/ieee1275/ieee1275.h
39388 (grub_ieee1275_get_property): Likewise.
39389
39390 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39391
39392 Added normal mode command `chainloader' as module chain.mod, which
39393 depends on normal.mod and _chain.mod.
39394
39395 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39396 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39397 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39398 Deleted prototype.
39399 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39400 but arguments parsing moved to ...
39401 (grub_chainloader_cmd): ... here. New function.
39402 * include/grub/i386/pc/chainloader.h: New file.
39403 * loader/i386/pc/chainloader_normal.c: Likewise.
39404
39405 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39406
39407 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39408 (grub_mkimage_LDFLAGS): Likewise.
39409 (grub_emu_SOURCES): Likewise.
39410 (kernel_img_HEADERS): Added fshelp.h.
39411 * fs/ext2.c: Include <grub/fshelp.h>.
39412 (FILETYPE_REG): New macro.
39413 (FILETYPE_INO_REG): Likewise.
39414 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39415 Changed all users.
39416 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39417 all users.
39418 (grub_fshelp_node): New struct.
39419 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39420 to a pointer.
39421 (grub_ext2_get_file_block): Removed function.
39422 (grub_ext2_read_block): New function.
39423 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39424 This function was written.
39425 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39426 (grub_ext2_find_file): Removed function.
39427 (grub_ext2_read_symlink): New function.
39428 (grub_ext2_iterate_dir): Likewise.
39429 (grub_ext2_open): Rewritten.
39430 (grub_ext2_dir): Rewritten.
39431 * include/grub/fshelp.h: New file.
39432 * fs/fshelp.c: Likewise.
39433
39434 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39435
39436 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39437 (print_message): Add a missing newline.
39438 (run_menu): Added timeout support.
39439 (run_menu_entry): New local function.
39440 (grub_menu_run): Added support for booting.
39441
39442 * kern/loader.c (grub_loader_is_loaded): New function.
39443
39444 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39445 (grub_get_rtc): Exported.
39446
39447 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39448 (grub_get_rtc): Exported.
39449
39450 * include/grub/normal.h (struct grub_command_list): Remove
39451 constant from the member `command'.
39452
39453 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39454
39455 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39456
39457 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39458
39459 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39460
39461 Add support for the JFS filesystem.
39462
39463 * fs/jfs.c: New file.
39464 * include/grub/fs.h (grub_jfs_init): New prototype.
39465 (grub_jfs_fini): New prototype.
39466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39467 (grub_emu_SOURCES): Likewise.
39468 (pkgdata_MODULES): Add jfs.mod.
39469 (jfs_mod_SOURCES): New variable.
39470 (jfs_mod_CFLAGS): Likewise.
39471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39472 (grubof_SOURCES): Likewise.
39473 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39474
39475 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39476 endian to the host endian.
39477 (grub_fat_utf16_to_utf8): Move function from there...
39478 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39479 the endianness of the source string anymore.
39480 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39481
39482 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39483
39484 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39485 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39486 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39487 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39488
39489 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39490 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39491 for `node_found' and `it_dir'.
39492 (grub_hfs_dir): Add prototype for `dir_hook'.
39493
39494 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39495 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39496 and `indir32' to silence a gcc warning.
39497
39498 * include/grub/fs.h (grub_hfs_init): New prototype.
39499 (grub_hfs_fini): Likewise.
39500
39501
39502 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39503
39504 Each disk device has its own id now. This is useful to make use
39505 of multiple disk devices.
39506
39507 * include/grub/disk.h (grub_disk_dev_id): New enum.
39508 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39509 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39510
39511 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39512 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39513
39514 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39515 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39516
39517 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39518 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39519
39520 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39521 "id" which is used by the cache manager.
39522
39523 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39524 of just "GRUB".
39525
39526 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39527
39528 * fs/hfs.c: New file.
39529 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39530 (grub_emu_SOURCES): Likewise.
39531 (pkgdata_MODULES): Add hfs.mod.
39532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39533 (grubof_SOURCES): Likewise.
39534 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39535
39536 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39537 * kern/misc.c (grub_strncasecmp): Add function.
39538
39539 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39540
39541 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39542 with parentheses.
39543
39544 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39545 (grub_ext2_dir): In case the directory entry type is unknown, read
39546 it from the inode.
39547
39548 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39549
39550 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39551 grub_load_linux instead of grub_rescue_cmd_linux as second
39552 argument of grub_rescue_register_command.
39553
39554 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39555
39556 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39557
39558 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39559 function.
39560 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39561 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39562 `loader/powerpc/ieee1275/linux.c',
39563 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39564 * include/grub/powerpc/ieee1275/ieee1275.h
39565 (grub_ieee1275_release): New prototype.
39566 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39567 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39568 normal, boot, linux and linux_normal.
39569 * loader/powerpc/ieee1275/linux.c: New file.
39570 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39571
39572 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39573
39574 * normal/arg.c (grub_arg_parse): Correct error handling after
39575 reallocating the argumentlist (check if `argl' is not null instead
39576 of checking if `args' is not null).
39577 * kern/mm.c (grub_realloc): Return the same pointer when using the
39578 same region, instead of returning the header address.
39579
39580 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39581
39582 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39583 one block instead of two when looking for the initial partition.
39584 (grub_partition_probe): Initialize the local variable `p' with 0.
39585 Use base 10 for the grub_strtoul call.
39586 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39587 need for one local variable.
39588 (grub_strtoul): Don't add the new value to `num', instead of that
39589 just assign it.
39590
39591 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39592
39593 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39594 (pxeboot_img_SOURCES): New variable.
39595 (pxeboot_img_ASFLAGS): Likewise.
39596 (pxeboot_img_LDFLAGS): Likewise.
39597 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39598 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39599 <lode_leroy@hotmail.com>.
39600
39601 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39602
39603 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39604 there was no input.
39605
39606 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39607
39608 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39609 the history buffer logic.
39610
39611 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39612
39613 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39614 (FILETYPE_INO_SYMLINK): New macros.
39615 (grub_ext2_find_file): Check if the node is a directory using the
39616 inode stat information instead of using the filetype in the
39617 dirent. Exclude the first character of an absolute symlink.
39618 (grub_ext2_dir): Mask out the filetype part of the mode member of
39619 the inode.
39620
39621 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39622
39623 Add support for UFS version 1 and 2. Add support for the minix
39624 filesystem version 1 and 2, both the variants with 14 and 30 long
39625 filenames.
39626
39627 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39628 fs/minix.c.
39629 (grub_emu_SOURCES): Likewise.
39630 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39631 (ufs_mod_SOURCES): New variable.
39632 (ufs_mod_CFLAGS): Likewise.
39633 (minix_mod_SOURCES): Likewise.
39634 (minix_mod_CFLAGS): Likewise.
39635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39636 fs/minix.c.
39637 (grubof_SOURCES): Likewise.
39638 * fs/ufs.c: New file.
39639 * fs/minix.c: New file.
39640 * include/grub/fs.h (grub_ufs_init): New prototype.
39641 (grub_ufs_fini): Likewise.
39642 (grub_minix_init): Likewise.
39643 (grub_minix_fini): Likewise.
39644 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39645 minix fs.
39646
39647 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39648
39649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
39650 commands/ls.c, commands/terminal.c, commands/boot.c,
39651 commands/cmp.c and commands/cat.c.
39652 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
39653
39654 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39655 "env.h"
39656
39657 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39658
39659 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
39660 and grub_, respectively. Because the conversion is trivial and
39661 mechanical, I omit the details here. Please refer to the CVS
39662 if you need more information.
39663
39664 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39665
39666 * include/pupa: Renamed to ...
39667 * include/grub: ... this.
39668 * util/i386/pc/pupa-mkimage.c: Renamed to ...
39669 * util/i386/pc/grub-mkimage.c: ... this.
39670 * util/i386/pc/pupa-setup.c: Renamed to ...
39671 * util/i386/pc/grub-setup.c: ... this.
39672 * util/pupa-emu.c: Renamed to ...
39673 * util/grub-emu.c: ... this.
39674
39675 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39676
39677 Add support for the newworld apple macintosh (PPC). This has been
39678 tested on the powerbook 2000 only. It only adds support for
39679 generic ieee1275 functions, console and disk support. This should
39680 be easy to port to other architectures with support for Open
39681 Firmware.
39682
39683 * configure.ac: Accept the powerpc as host_cpu. In the case of
39684 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
39685 specific tests are only executed while building for the i386.
39686 Inverse test for crosscompile.
39687 * genmk.rb (Utility): Allow assembler files.
39688 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
39689 * conf/powerpc-ieee1275.rmk: New file.
39690 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
39691 * disk/powerpc/ieee1275/partition.c: Likewise.
39692 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
39693 * include/pupa/powerpc/ieee1275/console.h: Likewise.
39694 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
39695 * include/pupa/powerpc/ieee1275/time.h: Likewise.
39696 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
39697 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
39698 * include/pupa/powerpc/ieee1275/loader.h
39699 * include/pupa/powerpc/setjmp.h: Likewise.
39700 * include/pupa/powerpc/types.h: Likewise.
39701 * kern/powerpc/ieee1275/init.c: Likewise.
39702 * kern/powerpc/ieee1275/openfw.c: Likewise.
39703 * term/powerpc/ieee1275/ofconsole.c: Likewise.
39704
39705 These files were written by Johan Rydberg
39706 (jrydberg@night.trouble.net) and I only modified them slightly.
39707
39708 * boot/powerpc/ieee1275/cmain.c: New file.
39709 * boot/powerpc/ieee1275/crt0.S: Likewise.
39710 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
39711 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
39712
39713 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
39714
39715 * Makefile.in: Update copyright.
39716 * genmodsrc.sh: Likewise.
39717 * gensymlist.sh: Likewise.
39718 * term/i386/pc/vga.c: Indent correctly.
39719
39720 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
39721 bugreporting address.
39722 * util/i386/pc/pupa-setup.c (usage): Likewise,
39723 (main): Call pupa_ext2_init and pupa_ext2_fini.
39724
39725 * fs/fat.c (log2): Renamed to ...
39726 (fat_log2): ... this.
39727 All callers changed.
39728 * kern/misc.c (memcpy): Alias to pupa_memmove.
39729 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
39730 lvalue cast.
39731 * util/console.c (pupa_ncurses_fini): Return 0.
39732
39733 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
39734 Move fail label here.
39735 [__GNU__]: Don't warn when using stat.
39736 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
39737 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
39738 long int. Use strtol instead of strtoul.
39739
39740 2004-03-14 Marco Gerards <metgerards@student.han.nl>
39741
39742 * commands/boot.c: New file.
39743 * commands/cat.c: Likewise.
39744 * commands/cmp.c: Likewise.
39745 * commands/ls.c: Likewise.
39746 * commands/terminal.c: Likewise.
39747 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
39748 (pupa_register_command): Changed interface to match the new
39749 argument parser.
39750 (pupa_command_execute): Changed (almost rewritten) so it uses
39751 pupa_split_command. Added support for setting variables using the
39752 syntax `foo=bar'.
39753 (rescue_command): Changed to work with the new argument parser.
39754 (terminal_command): Moved from here to commands/terminal.c.
39755 (set_command): New function.
39756 (unset_command): New function.
39757 (insmod_command): New function.
39758 (rmmod_command): New function.
39759 (lsmod_command): New function.
39760 (pupa_command_init): Don't initialize the command terminal
39761 anymore. Initialize the commands set, unset, insmod, rmmod and
39762 lsmod.
39763 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
39764 (kernel_img_HEADERS): Add arg.h and env.h.
39765 (pupa_mkimage_LDFLAGS): Add kern/env.c.
39766 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
39767 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
39768 normal/arg.c.
39769 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
39770 terminal.mod.
39771 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
39772 (boot_mod_SOURCES): New variable.
39773 (terminal_mod_SOURCES): Likewise.
39774 (ls_mod_SOURCES): Likewise.
39775 (cmp_mod_SOURCES): Likewise.
39776 (cat_mod_SOURCES): Likewise.
39777
39778 * normal/arg.c: New file.
39779 * kern/env.c: Likewise.
39780 * include/pupa/arg.h: Likewise.
39781 * include/pupa/env.h: Likewise.
39782 * font/manager.c (font_command): Changed to match argument parsing
39783 interface changes.
39784 (PUPA_MOD_INIT): Likewise.
39785 * hello/hello.c (pupa_cmd_hello): Likewise.
39786 (PUPA_MOD_INIT): Likewise.
39787 * include/pupa/disk.h: Include <pupa/device.h>.
39788 (pupa_print_partinfo): New prototype.
39789 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
39790 (pupa_dl_get_prefix): Likewise.
39791 * include/pupa/misc.h: Include <pupa/err.h>.
39792 (pupa_isgraph): New prototype.
39793 (pupa_isdigit): Likewise.
39794 (pupa_split_cmdline): Likewise.
39795 * include/pupa/normal.h: Include <pupa/arg.h>.
39796 (pupa_command): Changed the prototype of the member `func' to
39797 match the argument parsing interface. Added member `options'.
39798 (pupa_register_command): Updated to match function.
39799 (pupa_arg_parse): New prototype.
39800 (pupa_hello_init) [PUPA_UTIL]: New prototype.
39801 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
39802 (pupa_ls_init) [PUPA_UTIL]: Likewise.
39803 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
39804 (pupa_cat_init) [PUPA_UTIL]: Likewise.
39805 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
39806 (pupa_boot_init) [PUPA_UTIL]: Likewise.
39807 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
39808 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
39809 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
39810 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
39811 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
39812 * kern/disk.c: Include <pupa/file.h>.
39813 (pupa_print_partinfo): New function.
39814 * kern/dl.c: Include <pupa/env.h>.
39815 (pupa_dl_dir): Variable removed.
39816 (pupa_dl_load): Use the environment variable `prefix' instead of
39817 the variable pupa_dl_dir.
39818 (pupa_dl_set_prefix): Function removed.
39819 (pupa_dl_get_prefix): Likewise.
39820 * kern/i386/pc/init.c: Include <pupa/env.h>.
39821 (pupa_machine_init): Use the environment variable `prefix' instead of
39822 using pupa_dl_set_prefix to set the prefix.
39823 * kern/main.c: Include <pupa/env.h>.
39824 (pupa_set_root_dev): Use the environment variable `prefix' instead of
39825 using pupa_dl_get_prefix to get the prefix.
39826 * kern/misc.c: Include <pupa/env.h>.
39827 (pupa_isdigit): New function.
39828 (pupa_isgraph): Likewise.
39829 (pupa_ftoa): Likewise.
39830 (pupa_vsprintf): Added support for printing values of the type
39831 `double'. Make it possible to format variable output when using
39832 formatting like `%1.2%f'.
39833 (pupa_split_cmdline): New function.
39834 * kern/rescue.c: Include <pupa/env.h>.
39835 (next_word): Removed function.
39836 (pupa_rescue_cmd_prefix): Likewise.
39837 (pupa_rescue_cmd_set): New function.
39838 (pupa_rescue_cmd_unset): New function.
39839 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
39840 split the command line instead of splitting it here. Added
39841 support for setting variables using the syntax `foo=bar'. Don't
39842 initialize the prefix command anymore. Initialized the set and
39843 unset commands.
39844 * normal/cmdline.c: Include <pupa/env.h>.
39845 (pupa_tab_complete): Added prototypes for print_simple_completion,
39846 print_partition_completion, add_completion, iterate_commands,
39847 iterate_dev, iterate_part and iterate_dir. Moved code to print
39848 partition information from here to kern/disk.c.
39849 (pupa_cmdline_run): Don't check if the function exists anymore.
39850 * normal/main.c: Include <pupa/env.h>.
39851 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
39852 instead of using pupa_dl_get_prefix to get the prefix.
39853 * term/i386/pc/vga.c: Include <pupa/arg.h>.
39854 (check_vga_mem): Cast pointers to `void *' to silence a gcc
39855 warning.
39856 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
39857 (pupa_vga_setcolor): Declare unused variables with `__attribute__
39858 ((unused))' to silence a gcc warning.
39859 (pupa_vga_setcolor): Likewise.
39860 (debug_command): Changed to match argument parsing
39861 interface changes.
39862 * util/pupa-emu.c: Include <pupa/env.h>.
39863 (options): Added 0's for unused fields to silence a gcc warning.
39864 (argp): Likewise.
39865 (main): Use the environment variable `prefix' instead of using
39866 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
39867 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
39868 and terminal.
39869
39870 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
39871 * util/misc.c: Include <malloc.h>.
39872 (pupa_malloc): Rewritten so errors are correctly reported.
39873 (pupa_realloc): Likewise.
39874 (pupa_memalign): Likewise.
39875 (pupa_mm_init_region): Declare unused variables with
39876 `__attribute__ ((unused))' to silence a gcc warning.
39877 * normal/i386/setjmp.S: Remove tab at the end of the file to
39878 silence a gcc warning.
39879 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
39880 variables with `__attribute__ ((unused))' to silence a gcc
39881 warning.
39882 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
39883 local variable i unsigned to silence a gcc warning.
39884
39885 * kern/term.c: Include <pupa/misc.h>.
39886 (pupa_more_lines): New variable.
39887 (pupa_more): Likewise.
39888 (pupa_putcode): When the pager is active pause at the end of every
39889 screen.
39890 (pupa_set_more): New function.
39891 * include/pupa/term.h (pupa_set_more): New prototype.
39892
39893
39894 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
39895
39896 Now this project is GRUB 2 rather than PUPA. The location of
39897 the CVS repository was moved to GRUB's.
39898
39899 * configure.ac: Use bug-grub as the reporting address.
39900 Use GRUB instead of PUPA.
39901 Change the version number to 1.90.
39902
39903 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
39904
39905 * genkernsyms.sh: Updated copyright information.
39906 * genmk.rb: Likewise.
39907 * genmodsrc.sh: Likewise.
39908 * gensymlist.sh: Likewise.
39909 * boot/i386/pc/boot.S: Likewise.
39910 * boot/i386/pc/diskboot.S: Likewise.
39911 * disk/i386/pc/biosdisk.c: Likewise.
39912 * disk/i386/pc/partition.c: Likewise.
39913 * font/manager.c: Likewise.
39914 * fs/ext2.c: Likewise.
39915 * fs/fat.c: Likewise.
39916 * include/pupa/boot.h: Likewise.
39917 * include/pupa/device.h: Likewise.
39918 * include/pupa/disk.h: Likewise.
39919 * include/pupa/dl.h: Likewise.
39920 * include/pupa/elf.h: Likewise.
39921 * include/pupa/err.h: Likewise.
39922 * include/pupa/file.h: Likewise.
39923 * include/pupa/font.h: Likewise.
39924 * include/pupa/fs.h: Likewise.
39925 * include/pupa/kernel.h: Likewise.
39926 * include/pupa/loader.h: Likewise.
39927 * include/pupa/misc.h: Likewise.
39928 * include/pupa/mm.h: Likewise.
39929 * include/pupa/net.h: Likewise.
39930 * include/pupa/normal.h: Likewise.
39931 * include/pupa/rescue.h: Likewise.
39932 * include/pupa/setjmp.h: Likewise.
39933 * include/pupa/symbol.h: Likewise.
39934 * include/pupa/term.h: Likewise.
39935 * include/pupa/types.h: Likewise.
39936 * include/pupa/i386/setjmp.h: Likewise.
39937 * include/pupa/i386/types.h: Likewise.
39938 * include/pupa/i386/pc/biosdisk.h: Likewise.
39939 * include/pupa/i386/pc/boot.h: Likewise.
39940 * include/pupa/i386/pc/console.h: Likewise.
39941 * include/pupa/i386/pc/init.h: Likewise.
39942 * include/pupa/i386/pc/kernel.h: Likewise.
39943 * include/pupa/i386/pc/linux.h: Likewise.
39944 * include/pupa/i386/pc/loader.h: Likewise.
39945 * include/pupa/i386/pc/memory.h: Likewise.
39946 * include/pupa/i386/pc/multiboot.h: Likewise.
39947 * include/pupa/i386/pc/partition.h: Likewise.
39948 * include/pupa/i386/pc/time.h: Likewise.
39949 * include/pupa/i386/pc/vga.h: Likewise.
39950 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
39951 * include/pupa/util/getroot.h: Likewise.
39952 * include/pupa/util/misc.h: Likewise.
39953 * include/pupa/util/resolve.h: Likewise.
39954 * kern/device.c: Likewise.
39955 * kern/disk.c: Likewise.
39956 * kern/dl.c: Likewise.
39957 * kern/err.c: Likewise.
39958 * kern/file.c: Likewise.
39959 * kern/fs.c: Likewise.
39960 * kern/loader.c: Likewise.
39961 * kern/main.c: Likewise.
39962 * kern/misc.c: Likewise.
39963 * kern/mm.c: Likewise.
39964 * kern/rescue.c: Likewise.
39965 * kern/term.c: Likewise.
39966 * kern/i386/dl.c: Likewise.
39967 * kern/i386/pc/init.c: Likewise.
39968 * kern/i386/pc/lzo1x.S: Likewise.
39969 * kern/i386/pc/startup.S: Likewise.
39970 * loader/i386/pc/chainloader.c: Likewise.
39971 * loader/i386/pc/linux.c: Likewise.
39972 * loader/i386/pc/multiboot.c: Likewise.
39973 * normal/cmdline.c: Likewise.
39974 * normal/command.c: Likewise.
39975 * normal/main.c: Likewise.
39976 * normal/menu.c: Likewise.
39977 * normal/i386/setjmp.S: Likewise.
39978 * term/i386/pc/console.c: Likewise.
39979 * term/i386/pc/vga.c: Likewise.
39980 * util/console.c: Likewise.
39981 * util/genmoddep.c: Likewise.
39982 * util/misc.c: Likewise.
39983 * util/pupa-emu.c: Likewise.
39984 * util/resolve.c: Likewise.
39985 * util/unifont2pff.rb: Likewise.
39986 * util/i386/pc/biosdisk.c: Likewise.
39987 * util/i386/pc/getroot.c: Likewise.
39988 * util/i386/pc/pupa-mkimage.c: Likewise.
39989 * util/i386/pc/pupa-setup.c: Likewise.
39990
39991 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
39992
39993 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
39994 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
39995 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
39996 reading and reset it after reading.
39997 (pupa_ext2_close): Return PUPA_ERR_NONE.
39998
39999 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
40000 Correct value.
40001 (struct linux_kernel_header): Add kernel_version and
40002 initrd_addr_max.
40003 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
40004 pupa_file_read succeeds.
40005 (pupa_rescue_cmd_initrd): Implement.
40006
40007 2003-12-03 Marco Gerards <metgerards@student.han.nl>
40008
40009 * fs/ext2.c (pupa_ext2_label): New function.
40010 (pupa_ext2_fs): Added label.
40011 * fs/fat.c (pupa_fat_label): New function.
40012 (pupa_fat_fs): Added label.
40013 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
40014
40015 * kern/misc.c (pupa_strndup): New function.
40016 * include/pupa/misc.h (pupa_strndup): New prototype.
40017
40018 * include/pupa/normal.h: Include <pupa/err.h>.
40019 (pupa_set_history): New prototype.
40020 (pupa_iterate_commands): New prototype.
40021 * normal/cmdline.c: Include <pupa/machine/partition.h>,
40022 <pupa/disk.h>, <pupa/file.h>.
40023 (hist_size): New variable.
40024 (hist_lines): Likewise.
40025 (hist_end): Likewise.
40026 (hist_used): Likewise.
40027 (pupa_set_history): New function.
40028 (pupa_history_get): Likewise.
40029 (pupa_history_add): Likewise.
40030 (pupa_history_replace): Likewise.
40031 (pupa_tab_complete): Likewise.
40032 (pupa_cmdline_run): Added tab completion and history buffer. Tab
40033 completion shows partitionnames while completing partitions, this
40034 feature was suggested by Jeff Bailey.
40035 * normal/command.c (pupa_iterate_commands): New function.
40036 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
40037 (pupa_normal_init): Initialize history buffer.
40038 (PUPA_MOD_INIT): Likewise.
40039 (pupa_normal_fini): Free the history buffer.
40040 (PUPA_MOD_FINI): Likewise.
40041
40042 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
40043 key.
40044
40045 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
40046 * configure.ac [i386]: Check for regparam bug.
40047 (NESTED_FUNC_ATTR) [! i386]: Defined.
40048
40049 2003-11-17 Marco Gerards <metgerards@student.han.nl>
40050
40051 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
40052 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
40053 (pupa_emu_SOURCES): New variable.
40054 (pupa_emu_LDFLAGS): Likewise.
40055 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
40056 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
40057 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
40058 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40059 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
40060 (pupa_jmp_buf): New typedef.
40061 (pupa_setjmp) [PUPA_UTIL]: New macro.
40062 (pupa_longjmp) [PUPA_UTIL]: Likewise.
40063 * include/pupa/term.h (struct pupa_term): New member `refresh'.
40064 (pupa_refresh): New prototype.
40065 * include/pupa/util/getroot.h: New file.
40066 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
40067 it.
40068 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
40069 (pupa_rescue_cmd_cat): Likewise.
40070 (pupa_rescue_cmd_ls): Likewise.
40071 (pupa_rescue_cmd_testload): Likewise.
40072 (pupa_rescue_cmd_lsmod): Likewise.
40073 * normal/cmdline.c (pupa_cmdline_get): Likewise.
40074 * normal/menu.c (run_menu): Likewise.
40075 * kern/term.c (pupa_cls): Likewise.
40076 (pupa_refresh): New function.
40077 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
40078 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40079 * util/console.c: New file.
40080
40081 * util/i386/pc/getroot.c: New file.
40082 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
40083 (pupa_putchar): New function.
40084 (pupa_refresh): Likewise.
40085 (xgetcwd): Function moved to ...
40086 (strip_extra_slashes): Likewise.
40087 (get_prefix): Likewise.
40088 * util/i386/pc/getroot.c: ... here.
40089 (find_root_device): Function moved and renamed to...
40090 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
40091 Changed all callers.
40092 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
40093 and renamed to...
40094 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
40095 Changed all callers.
40096 * util/misc.c (pupa_memalign): New function.
40097 (pupa_mm_init_region): Likewise.
40098 (pupa_register_exported_symbols): Likewise.
40099 (pupa_putchar): Function removed.
40100 * util/pupa-emu.c: New file.
40101
40102 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
40103
40104 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
40105 (_multiboot_mod_SOURCES): New variable.
40106 (_multiboot_mod_CFLAGS): Likewise.
40107 * loader/i386/pc/multiboot.c: New file.
40108 * include/pupa/i386/pc/multiboot.h: Likewise.
40109 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
40110 (pupa_multiboot_real_boot): New function.
40111 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
40112 (pupa_multiboot_real_boot): New prototype.
40113 (pupa_rescue_cmd_multiboot): Likewise
40114 (pupa_rescue_cmd_module): Likewise.
40115
40116 * kern/loader.c (pupa_loader_set): Continue when
40117 pupa_loader_unload_func() fails.
40118 (pupa_loader_unset): New function.
40119 * include/pupa/loader.h (pupa_loader_unset): New prototype.
40120
40121 * kern/misc.c (pupa_stpcpy): New function.
40122 * include/pupa/misc.h (pupa_stpcpy): New prototype.
40123
40124 2003-11-12 Marco Gerards <metgerards@student.han.nl>
40125
40126 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
40127 for available extensions.
40128
40129 * include/pupa/i386/pc/time.h: New file.
40130 * kern/disk.c: Include <pupa/machine/time.h>.
40131 (PUPA_CACHE_TIMEOUT): New macro.
40132 (pupa_last_time): New variable.
40133 (pupa_disk_open): Flush the cache when there was a timeout.
40134 (pupa_disk_close): Reset the timer.
40135 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
40136 pupa_currticks.
40137 * util/misc.c: Include <sys/times.h>
40138 (pupa_get_rtc): New function.
40139
40140 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40141
40142 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
40143 as blocks.
40144 (pupa_ext2_get_file_block): Use blocks member.
40145
40146 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
40147 first block. Return -1 instead of pupa_errno on error.
40148
40149 2003-10-27 Marco Gerards <metgerards@student.han.nl>
40150
40151 * README: In the pupa-mkimage example use _chain instead of chain
40152 and ext2 instead of fat.
40153 * TODO: Replace ext2fs with jfs as an example. Add an item for
40154 adding journal playback for ext2fs.
40155 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
40156 (pkgdata_MODULES): Added ext2.mod.
40157 (ext2_mod_SOURCES): New variable.
40158 (ext2_mod_CFLAGS): Likewise.
40159 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
40160 * include/pupa/misc.h (pupa_strncpy): New prototype.
40161 (pupa_strcat): Likewise.
40162 (pupa_strncmp): Likewise.
40163 * kern/misc.c (pupa_strcat): Enable function.
40164 (pupa_strncpy): New function.
40165 (pupa_strncmp): Likewise.
40166 * fs/ext2.c: New file.
40167
40168 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
40169 when the read failed before retrying.
40170 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
40171 (_FILE_OFFSET_BITS): Likewise.
40172 * configure.ac: Added AC_SYS_LARGEFILE.
40173
40174 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40175
40176 * genmk.rb (PModule#rule): Make sure to get only symbol names
40177 from the output of nm.
40178 Reported by Robert Millan <rmh.grub@aybabtu.com>.
40179
40180 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40181
40182 I forgot to check in these changes for a long time. This adds
40183 incomplete support for VGA console, and this is still very
40184 buggy. Also, a lot of consideration is required for I18N,
40185 UNICODE, and VGA font issues. Therefore, assume that this is
40186 such that "better than nothing".
40187
40188 * font/manager.c: New file.
40189 * include/pupa/font.h: Likewise.
40190 * include/pupa/i386/pc/vga.h: Likewise.
40191 * term/i386/pc/vga.c: Likewise.
40192 * util/unifont2pff.rb: Likewise.
40193
40194 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
40195 (pkgdata_MODULES): Added vga.mod and font.mod.
40196 (vga_mod_SOURCES): New variables.
40197 (vga_mod_CFLAGS): Likewise.
40198 (font_mod_SOURCES): Likewise.
40199 (font_mod_CFLAGS): Likewise.
40200
40201 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
40202
40203 * include/pupa/term.h: Include pupa/err.h.
40204 (struct pupa_term): Added init and fini.
40205 Changed the argument of putchar to pupa_uint32_t.
40206
40207 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
40208 (pupa_console_real_putchar): New prototype.
40209 (pupa_console_putchar): Removed.
40210 (pupa_console_checkkey): Exported.
40211 (pupa_console_getkey): Likewise.
40212
40213 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
40214 characters.
40215
40216 * kern/term.c (pupa_term_set_current): Rewritten.
40217 (pupa_putchar): Likewise.
40218 (pupa_putcode): New function.
40219
40220 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
40221 (pupa_console_real_putchar): ... this.
40222 (pupa_vga_set_mode): New function.
40223 (pupa_vga_get_font): Likewise.
40224
40225 * normal/command.c: Include pupa/term.h.
40226 (terminal_command): New function.
40227 (pupa_command_init): Register the command "terminal".
40228
40229 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
40230 (DISP_UP): Likewise.
40231 (DISP_RIGHT): Likewise.
40232 (DISP_DOWN): Likewise.
40233 (DISP_HLINE): Likewise.
40234 (DISP_VLINE): Likewise.
40235 (DISP_UL): Likewise.
40236 (DISP_UR): Likewise.
40237 (DISP_LL): Likewise.
40238 (DISP_LR): Likewise.
40239
40240 * term/i386/pc/console.c (pupa_console_putchar): New function.
40241
40242 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
40243
40244 * util/resolve.c (pupa_util_resolve_dependencies): BUG
40245 FIX. Reverse the path_list.
40246
40247 * include/pupa/normal.h: Export pupa_register_command and
40248 pupa_unregister_command.
40249
40250 * hello/hello.c (pupa_cmd_hello): New module.
40251 * conf/i386-pc.rmk: Added hello.mod.
40252
40253 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
40254
40255 * kern/i386/pc/lzo1x.S: New file.
40256
40257 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
40258 (compress_kernel): New variable.
40259 (generate_image): Heavily modified to support compressing a
40260 large part of the core image.
40261
40262 * util/misc.c (pupa_util_read_image): Fix a file descriptor
40263 leak.
40264 (pupa_util_load_image): New function.
40265
40266 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
40267 (pupa_compressed_size): New variable.
40268 (codestart): Enable Gate A20 here.
40269 Decompress the compressed part of the core image.
40270 Rearrange the code to put functions and variables which are
40271 required for initialization in the non-compressed part.
40272 Include lzo1x.S.
40273
40274 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
40275 here.
40276
40277 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
40278
40279 * include/pupa/i386/pc/kernel.h
40280 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
40281 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
40282 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40283 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40284 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
40285
40286 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
40287
40288 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
40289 (Utility#rule): Likewise.
40290
40291 * configure.ac: Check if LZO is available.
40292
40293 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
40294
40295 * include/pupa/normal.h: New file.
40296 * include/pupa/setjmp.h: Likewise.
40297 * include/pupa/i386/setjmp.h: Likewise.
40298 * normal/cmdline.c: Likewise.
40299 * normal/command.c: Likewise.
40300 * normal/main.c: Likewise.
40301 * normal/menu.c: Likewise.
40302 * normal/i386/setjmp.S: Likewise.
40303
40304 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
40305 (pupa_rescue_cmd_initrd): Likewise.
40306
40307 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
40308 Likewise.
40309
40310 * kern/i386/pc/startup.S (translation_table): New variable.
40311 (translate_keycode): New function.
40312 (pupa_console_getkey): Call translate_keycode.
40313
40314 * kern/rescue.c (attempt_normal_mode): New function.
40315 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
40316 it failed, print a message.
40317
40318 * kern/mm.c (pupa_real_malloc): Print more information when a
40319 free magic is broken.
40320 (pupa_free): If the first free header is not free actually, set
40321 it to P.
40322
40323 * kern/main.c (pupa_load_normal_mode): Just load the module
40324 "normal".
40325 (pupa_main): Don't print the message
40326 "Entering into rescue mode..." here.
40327
40328 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40329 Declared.
40330 (pupa_rescue_cmd_initrd): Likewise.
40331 (pupa_rescue_cmd_initrd): Likewise.
40332
40333 * include/pupa/symbol.h (FUNCTION): Specify the type.
40334 (VARIABLE): Likewise.
40335
40336 * include/pupa/err.h (pupa_err_t): Added
40337 PUPA_ERR_UNKNOWN_COMMAND.
40338
40339 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40340 (pupa_dl_get_prefix): Likewise.
40341
40342 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40343 Added _chain.mod and _linux.mod instead of chain.mod and
40344 linux.mod.
40345 (chain_mod_SOURCES): Renamed to ...
40346 (_chain_mod_SOURCES): ... this.
40347 (chain_mod_CFLAGS): Renamed to ...
40348 (_chain_mod_CFLAGS): ... this.
40349 (linux_mod_SOURCES): Renamed to ...
40350 (_linux_mod_SOURCES): ... this.
40351 (linux_mod_CFLAGS): Renamed to ...
40352 (_linux_mod_CFLAGS): ... this.
40353 (normal_mod_SOURCES): New variable.
40354 (normal_mod_CFLAGS): Likewise.
40355 (normal_mod_ASFLAGS): Likewise.
40356
40357 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40358
40359 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40360 possible.
40361
40362 * kern/dl.c (pupa_dl_ref): Refer depending modules
40363 recursively.
40364 (pupa_dl_unref): Unrefer depending modules recursively.
40365 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40366 a module is unloaded before one depending on that module is
40367 unloaded.
40368 (pupa_dl_unload): Unload depending modules explicitly,
40369 if possible.
40370
40371 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40372
40373 * include/pupa/i386/pc/linux.h: New file.
40374 * loader/i386/pc/linux.c: Likewise.
40375
40376 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40377 Removed.
40378 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40379 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40380 of PUPA_CHAINLOADER_BOOT_SECTOR.
40381
40382 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40383 (pupa_linux_prot_size): New variable.
40384 (pupa_linux_tmp_addr): Likewise.
40385 (pupa_linux_real_addr): Likewise.
40386 (pupa_linux_boot_zimage): New function.
40387 (pupa_linux_boot_bzimage): Likewise.
40388
40389 * kern/i386/pc/init.c (struct mem_region): New structure.
40390 (MAX_REGIONS): New macro.
40391 (mem_regions): New variable.
40392 (num_regions): Likewise.
40393 (pupa_os_area_addr): Likewise.
40394 (pupa_os_area_size): Likewise.
40395 (pupa_lower_mem): Likewise.
40396 (pupa_upper_mem): Likewise.
40397 (add_mem_region): New function.
40398 (compact_mem_regions): Likewise.
40399 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40400 the size of the conventional memory and that of so-called upper
40401 memory (before the first memory hole).
40402 Instead of adding each found region to free memory, use
40403 add_mem_region and add them after removing overlaps.
40404 Also, add only 1/4 of the upper memory to free memory. The rest
40405 is used for loading OS images. Maybe this is ad hoc, but this
40406 makes it much easier to relocate OS images when booting.
40407
40408 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40409 (pupa_enter_rescue_mode): Don't register initrd and module.
40410
40411 * kern/mm.c: Include pupa/dl.h.
40412
40413 * kern/main.c: Include pupa/file.h and pupa/device.h.
40414
40415 * kern/loader.c (pupa_loader_load_module_func): Removed.
40416 (pupa_loader_load_module): Likewise.
40417
40418 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40419 ``.o''.
40420
40421 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40422 (pupa_linux_tmp_addr): Likewise.
40423 (pupa_linux_real_addr): Likewise.
40424 (pupa_linux_boot_zimage): Likewise.
40425 (pupa_linux_boot_bzimage): Likewise.
40426
40427 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40428 (pupa_upper_mem): Likewise.
40429 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40430 module is too dangerous.
40431
40432 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40433 (pupa_os_area_size): Likewise.
40434 (pupa_loader_set): Remove the first argument. Loader doesn't
40435 manage modules or initrd any longer.
40436 (pupa_loader_load_module): Removed.
40437
40438 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40439 (linux_mod_SOURCES): New variable.
40440 (linux_mod_CFLAGS): Likewise.
40441
40442 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40443
40444 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40445 the length of a blocklist correctly.
40446
40447 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40448 Use ioctl only if the OS file is a block device.
40449 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40450 not very useful for normal files.
40451
40452 * kern/main.c (pupa_set_root_dev): New function.
40453 (pupa_load_normal_mode): Likewise.
40454 (pupa_main): Call those above.
40455
40456 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40457 pupa_uint16_t.
40458
40459 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40460
40461 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40462
40463 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40464 (setup): Configure the installed partition information and the
40465 dl prefix.
40466
40467 * loader/i386/pc/chainloader.c (my_mod): New variable.
40468 (pupa_chainloader_unload): New function.
40469 (pupa_rescue_cmd_chainloader): Refer itself.
40470 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40471
40472 * kern/i386/pc/startup.S (install_partition): Removed.
40473 (version_string): Likewise.
40474 (config_file): Likewise.
40475 (pupa_install_dos_part): New variable.
40476 (pupa_install_bsd_part): Likewise.
40477 (pupa_prefix): Likewise.
40478 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40479
40480 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40481 and pupa/misc.h.
40482 (make_install_device): New function.
40483 (pupa_machine_init): Set the dl prefix.
40484
40485 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40486 (buf): Renamed to ...
40487 (linebuf): ... this.
40488 (pupa_rescue_cmd_prefix): New function.
40489 (pupa_rescue_cmd_insmod): Likewise.
40490 (pupa_rescue_cmd_rmmod): Likewise.
40491 (pupa_rescue_cmd_lsmod): Likewise.
40492 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40493 rmmod and lsmod.
40494
40495 * kern/mm.c (pupa_memalign): If failed even after invalidating
40496 disk caches, unload unneeded modules and retry.
40497
40498 * kern/misc.c (pupa_memmove): New function.
40499 (pupa_memcpy): Removed.
40500 (pupa_strcpy): New function.
40501 (pupa_itoa): Made static.
40502
40503 * kern/dl.c (pupa_dl_iterate): New function.
40504 (pupa_dl_ref): Likewise.
40505 (pupa_dl_unref): Likewise.
40506 (pupa_dl_unload): Return if succeeded or not.
40507 (pupa_dl_unload_unneeded): New function.
40508 (pupa_dl_unload_all): Likewise.
40509 (pupa_dl_init): Renamed to ...
40510 (pupa_dl_set_prefix): ... this.
40511 (pupa_dl_get_prefix): New function.
40512
40513 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40514 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40515 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40516 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40517 (pupa_install_dos_part): Declared.
40518 (pupa_install_bsd_part): Likewise.
40519 (pupa_prefix): Likewise.
40520 (pupa_boot_drive): Likewise.
40521
40522 * include/pupa/types.h: Fix a typo.
40523
40524 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40525 pupa_memmove.
40526 (pupa_memmove): Declared.
40527 (pupa_strcpy): Likewise.
40528
40529 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40530 pupa_mod_init takes one argument, its own module.
40531 (pupa_dl_unload_unneeded): Declared.
40532 (pupa_dl_unload_all): Likewise.
40533 (pupa_dl_ref): Likewise.
40534 (pupa_dl_unref): Likewise.
40535 (pupa_dl_iterate): Likewise.
40536 (pupa_dl_init): Renamed to ...
40537 (pupa_dl_set_prefix): ... this.
40538 (pupa_dl_get_prefix): Declared.
40539
40540 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40541 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40542 unloaded.
40543 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40544 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40545
40546 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40547 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40548
40549 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40550
40551 * util/i386/pc/pupa-setup.c (setup): Define the internal
40552 function find_first_partition_start at the top level, because GCC
40553 3.0.x cannot compile internal functions in deeper scopes
40554 correctly.
40555 (find_root_device): Use lstat instead of stat.
40556 Don't follow symbolic links.
40557 Fix the path-constructing code.
40558
40559 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40560 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40561 by a BLKGETSIZE ioctl first, because block devices don't fill
40562 the member st_mode of the structure stat on Linux.
40563 [__linux__] (linux_find_partition): Use a temporary buffer
40564 REAL_DEV for the working space. Copy it to DEV before returning.
40565 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40566 buffer cache consistent.
40567 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40568 strncmp. The previous value was merely wrong.
40569 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40570
40571 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40572 FAT size is 12. The previous value was merely wrong.
40573
40574 * kern/main.c (pupa_main): Don't split the starting message from
40575 newlines.
40576
40577 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40578 LF, because BIOS goes crazy about character attributes in this
40579 case.
40580
40581 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40582
40583 * include/i386/pc/util/biosdisk.h: New file.
40584 * util/i386/pc/biosdisk.c: Likewise.
40585 * util/i386/pc/pupa-setup.c: Likewise.
40586
40587 * Makefile.in (INCLUDE_DISTFILES): Added
40588 include/pupa/i386/pc/util/biosdisk.h.
40589 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40590 directory util/i386/pc.
40591 (install-local): Added a rule for sbin_UTILITIES.
40592 (uninstall): Likewise.
40593
40594 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40595
40596 * util/misc.c (xrealloc): New function.
40597 (pupa_malloc): Likewise.
40598 (pupa_free): Likewise.
40599 (pupa_realloc): Likewise.
40600 (pupa_stop): Likewise.
40601 (pupa_putchar): Likewise.
40602
40603 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40604
40605 * include/pupa/util/misc.h (xrealloc): Declared.
40606
40607 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40608 macro.
40609 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40610 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40611
40612 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40613 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40614
40615 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40616 way should be implemented.
40617 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40618
40619 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40620 the size of NAME for safety.
40621 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40622 0x88.
40623
40624 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40625 (pupa_setup_SOURCES): Likewise.
40626
40627 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40628
40629 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40630
40631 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40632 bunch of pushl's from pusha, because this destroys the return
40633 value.
40634
40635 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40636
40637 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40638 This means that any missing prototypes could be fatal. Also, you
40639 must take care when writing assembly code. See the comments at
40640 the beginning of startup.S, for more details.
40641
40642 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40643 compilation mechanism.
40644 (pupa_chainloader_real_boot): Likewise.
40645 (pupa_biosdisk_rw_int13_extensions): Likewise.
40646 (pupa_biosdisk_rw_standard): Likewise.
40647 (pupa_biosdisk_check_int13_extensions): Likewise.
40648 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
40649 (pupa_biosdisk_get_diskinfo_standard): Likewise.
40650 (pupa_get_memsize): Likewise.
40651 (pupa_get_mmap_entry): Likewise.
40652 (pupa_console_putchar): Likewise.
40653 (pupa_console_setcursor): Likewise.
40654 (pupa_getrtsecs): Use pushl instead of push.
40655
40656 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
40657 memory instead of the stack for a mmap entry, because some
40658 BIOSes may ignore the maximum size and overflow.
40659
40660 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40661
40662 * genmk.rb (PModule#rule): Compile automatically generated
40663 sources with module-specific CFLAGS as well as other sources.
40664
40665 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40666
40667 * configure.ac: Check ld.
40668 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40669 respectively, before checking endianness and sizes.
40670
40671 * Makefile.in (LD): New variable.
40672
40673 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40674
40675 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40676
40677 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40678
40679 * Changelog: New file.
40680