]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
[grub2.git] / ChangeLog
1 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4 an error and not a fatal on unrecognised relocation types.
5
6 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9 Issue error rather than printf on unknown arguments.
10
11 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
14 Make buf a const.
15
16 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
19 Fix module name.
20
21 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
24 leftover debug printf.
25
26 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
27
28 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
29
30 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
33 A stylistic fix.
34
35 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
38
39 2011-11-10 Shea Levy <slevy@tieronedesign.com>
40
41 Allow all modules to perform serial IO
42
43 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
44 * include/grub/serial.h (grub_serial_port_configure): New inline
45 function.
46 (grub_serial_port_fetch): Likewise.
47 (grub_serial_port_put): Likewise.
48 (grub_serial_port_fini): Likewise.
49 (grub_serial_find): New proto.
50
51 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
52
53 Put symlink at the end of the node and fix a potential
54 memory corruption.
55
56 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
57 Make symlink into an array.
58 (set_rockridge): Set have_symlink and alloc_dirents.
59 (grub_iso9660_read_symlink): Use new layout.
60 (grub_iso9660_iterate_dir): Fix memory corruption.
61 Use new layout.
62 (grub_iso9660_dir): Set have_symlink.
63 (grub_iso9660_open): Likewise.
64
65 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
66
67 Remove local keyword.
68
69 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
70 (version_test_gt): Likewise.
71 (version_find_latest): Likewise.
72 (gettext_printf): Likewise.
73 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
74
75 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
78
79 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
80
81 Fix ZFS memory and resource leaks.
82
83 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
84 All users updated.
85 Free type on exit.
86 (fill_vdev_info): New parameter inserted. All users updated.
87 (check_pool_label): Likewise.
88 (scan_disk): Likewise.
89 (scan_devices): Close non-inserted disks.
90 (fzap_iterate): Free l.
91 (unmount_device): Free children descripto memory.
92
93 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
96 argument (access out of bounds).
97
98 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
99
100 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
101 >= 6 drives.
102
103 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
104
105 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
106 Fix declaration.
107
108 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
109
110 Fix several memory leaks.
111
112 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
113 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
114 (grub_cpio_dir): Likewise.
115 * grub-core/fs/fat.c (grub_fat_label): Likewise.
116 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
117 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
118 (grub_romfs_label): Likewise.
119 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
120 (squash_unmount): New function.
121 (grub_squash_dir): Fix memory leak.
122 (grub_squash_open): Likewise.
123 (grub_squash_read): Likewise.
124 (grub_squash_mtime): Likewise.
125 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
126 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
127 * util/grub-fstest.c (fstest): Likewise.
128
129 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
132 avoid accessing beyond the array.
133
134 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
137
138 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
139
140 Several AFFS fixes.
141
142 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
143 (GRUB_AFFS_FLAG_FFS): Removed.
144 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
145 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
146 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
147 (grub_fshelp_node): Make block 32-bit.
148 Add block_cache and last_block_cache.
149 (grub_affs_read_block): Fill and use block cache.
150 (grub_affs_read_file): Removed.
151 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
152 boot block.
153 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
154 safety.
155 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
156 space.
157 (grub_affs_close): Free block cache.
158 (grub_affs_read): Use grub_fshelp_read_file directly.
159
160 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
161
162 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
163 with no error set.
164
165 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
168 used variable.
169 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
170 Likewise.
171
172 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
173
174 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
175
176 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
177 byteswap when needed.
178
179 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
180
181 Fix FreeBSD compilation.
182
183 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
184 to avoid circular dependency.
185 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
186 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
187 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
188
189 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
190
191 Fix ZFS crypto error types.
192
193 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
194 (grub_gcm_decrypt): Likewise.
195 (grub_zfs_load_key_real): Fix error code type. Handle possible error
196 from PBKDF2.
197
198 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
199
200 Illumos support.
201
202 * Makefile.util.def (10_illumos): New script.
203 * configure.ac: Set COND_HOST_ILLUMOS.
204 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
205 Support Illumos calls.
206 (find_partition_start) [__sun__]: Likewise.
207 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
208 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
209 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
210 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
211 device.
212 * util/grub-probe.c (probe) [__sun__]: Do character check.
213 * util/grub.d/10_illumos.in: New file.
214
215 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
216
217 Support escaped commas in hostdisk.
218
219 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
220 (find_grub_drive): Use unescape_cmp.
221 (make_device_name): Escape commas.
222
223 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
226
227 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
230 variable.
231
232 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
233
234 Support trampoline jumps on powerpc.
235
236 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
237 __ia64__ path.
238 (grub_dl_load_segments): Set mod->sz.
239 (grub_dl_flush_cache): Flush whole space occupied by module, not just
240 segments.
241 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
242 (jump): Likewise.
243 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
244 function.
245 (trampoline): New struct.
246 (trampoline_template): New const.
247 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
248 * include/grub/dl.h (grub_dl): Add sz element.
249 [__powerpc__]: Follow __ia64__.
250 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
251 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
252 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
253 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
254
255 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
256
257 ZFS crypto support.
258
259 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
260 * grub-core/Makefile.core.def (zfscrypt): New module.
261 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
262 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
263 it. All users updated.
264 (grub_zfs_decrypt): New var.
265 (grub_zfs_load_key): Likewise.
266 (zio_checksum_functions): Add SHA256+MAC.
267 (zio_checksum_verify): Handle incomplete comparison due to MAC.
268 (zio_read): Handle encrypted blocks.
269 (zap_verify): Remove incorrect check.
270 (fzap_iterate): Handle non-standard fzap.
271 (zap_iterate): Likewise.
272 (zap_iterate_u64): New function.
273 (dnode_get_fullpath): Load keys.
274 * grub-core/fs/zfs/zfscrypt.c: New file.
275 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
276 (grub_crypto_ecb_encrypt): Make input const.
277 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
278 (grub_crypto_ecb_encrypt): Make input const.
279 (GRUB_CIPHER_AES): New macro.
280 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
281 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
282 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
283 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
284 prefix. All users updated.
285 (grub_zfs_add_key): New proto.
286 (grub_zfs_decrypt): Likewise.
287 (grub_zfs_load_key): Likewise.
288 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
289 * util/grub-fstest.c (options): Add -K option.
290 (argp_parser): Likewise.
291
292 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
293
294 Support zle compression on ZFS.
295
296 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
297 (decomp_table): Add zle.
298 * include/grub/zfs/zio.h (zio_compress): Add zle.
299
300 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
301
302 Support BtrFS embedding.
303
304 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
305 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
306 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
307 * util/grub-setup.c (setup): Use fs embedding if available.
308 Add additional sanity check.
309
310 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * util/grub-install.in: Fix condition for config_opt.
313
314 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
315
316 Support third redundancy strip on raidz3.
317
318 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
319 Return error on singularity. All users updated.
320 (read_device): Don't stop on 3rd failure on raidz3.
321
322 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
323
324 Support case-insensitive ZFS subvolumes.
325
326 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
327 All users updated.
328 (zap_hash): Likewise.
329 (name_cmp): New function.
330 (zap_leaf_array_equal): New parameter case_insensitive.
331 All users updated.
332 (zap_leaf_lookup): Likewise.
333 (fzap_lookup): Likewise.
334 (zap_lookup): Likewise.
335 (dnode_get_path): New parameter case_insensitive. Retrieve case
336 sensitiviness of a volume. All users updated.
337 (dnode_get_fullpath): New parameter case_insensitive.
338 All users updated.
339 (grub_zfs_dir): Set info.case_insensitiveness.
340
341 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Support second redundancy strip on raidz(2,3).
344
345 * grub-core/fs/zfs/zfs.c (powx): New array.
346 (powx_inv): Likewise.
347 (poly): New const.
348 (xor_out): New function.
349 (gf_mul): Likewise.
350 (recovery): Likewise.
351 (read_device): Use second redundancy strip.
352
353 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
354
355 Use a power of generator representation of GF(256) multiplication group
356 to save space time and complexity.
357
358 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
359 (raid6_table2): Likewise.
360 (powx): New array.
361 (powx_inv): Likewise.
362 (poly): New const.
363 (grub_raid_block_mul): Replace with ...
364 (grub_raid_block_mulx): ...this.
365 (grub_raid6_init_table): Rewritten.
366 (grub_raid6_recover): Use power of generator representation.
367
368 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
369
370 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
371 for the right device.
372
373 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
376 expected by grub-mkimage and it's more clear since there is no implicit
377 padding.
378
379 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
382 disk.
383 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
384
385 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
386
387 * util/grub-mkrescue.in: Fix handling xorriso option.
388
389 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
392 NULL.
393
394 2011-11-03 crocket <crockabiscuit@gmail.com>
395
396 * util/grub.d/10_linux.in: Add Slackware initrd naming.
397
398 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
399
400 XZ CRC64 and SHA256 support.
401
402 * Makefile.util.def (libgrubmods): Add crc64.c.
403 * grub-core/Makefile.core.def (crc64): New module.
404 * grub-core/lib/crc64.c: New file.
405 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
406 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
407 Fix the type.
408 (MAX_HASH_SIZE): New define.
409 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
410 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
411 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
412 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
413 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
414 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
415 Handle non-crc32 hashes.
416 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
417 (dec_stream_header): Handle non-crc32 hashes.
418 (dec_stream_footer): Likewise.
419 (dec_block_header): Likewise.
420 (dec_main): Likewise.
421 (xz_dec_init): Likewise.
422 (xz_dec_reset): Likewise.
423 (xz_dec_end): Likewise.
424 * util/import_gcry.py: Add CRC64 line.
425
426 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
427
428 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
429 as well.
430
431 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
432
433 Make reiserfs label retrieval similar to other *_label functions.
434
435 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
436 (REISERFS_MAX_LABEL_LENGTH): Removed.
437 (REISERFS_LABEL_OFFSET): Likewise.
438 (grub_reiserfs_label): Rewritten.
439
440 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
443 field.
444
445 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
448
449 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
452 drive failure on both raidz and raidz2.
453
454 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
455
456 Fix RAIDZ(2) for >= 5 devices.
457
458 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
459 asize argument. All users updated.
460
461 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Fix RAIDZ(2).
464
465 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
466 (fill_vdev_info_real): Set ashift.
467 (read_device): Rewrite RAIDZ part based on reverse engineering.
468
469 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
472 don't report potentially unavialiable fields in debug output.
473 (find_path): Fix double-free and memory leak.
474
475 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
476
477 Read label on UFS1.
478
479 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
480 (grub_ufs_fs): Always set .label.
481
482 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
483
484 Use shifts in UFS.
485
486 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
487 (grub_ufs_data): New field log2_blksz.
488 (grub_ufs_read_file): Use shifts.
489 (grub_ufs_mount): Check block size and logarithm it.
490
491 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
494 long symlinks.
495
496 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
497
498 Handle symlinks and long names on tar and cpio.
499
500 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
501 (ATTR_FILE): Likewise.
502 (ATTR_DIR): Likewise.
503 (ATTR_LNK): Likewise.
504 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
505 (grub_cpio_find_file): Fill mode, handle linkname field as well as
506 L and K entries.
507 (grub_cpio_mount): Zero-fill data.
508 (handle_symlink): New function.
509 (grub_cpio_dir): Handle symlinks.
510 (grub_cpio_open): Likewise.
511 (grub_cpio_close) [MODE_USTAR]: Free linkname.
512
513 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
514
515 Fix iso9660 filename limitations and fix memory leaks.
516
517 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
518 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
519
520 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
521
522 Fix JFS file name length limitations.
523
524 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
525 (grub_jfs_diropen): Fix maximum filename length.
526 (grub_jfs_getent): Fix filename length.
527 (grub_jfs_lookup_symlink): Fix size checks.
528
529 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
532 string.
533
534 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Leverage BFS implementation to read AFS.
537
538 * Makefile.util.def (libgrubmods): Add afs.c.
539 * grub-core/Makefile.core.def (afs): New module
540 * grub-core/fs/afs.c: New file.
541 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
542
543 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
546
547 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
548
549 * grub-core/fs/bfs.c: Run indent.
550
551 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
552
553 BFS implementation based on the specification.
554
555 * grub-core/fs/bfs.c: New file.
556 * Makefile.util.def (libgrubmods): Add bfs.c.
557 * grub-core/Makefile.core.def (bfs): New module.
558
559 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * util/grub-fstest.c (cmd_cp): Clarify error message.
562 (cmd_cmp): Likewise.
563
564 2011-10-30 Yves Blusseau <blusseau@zetam.org>
565
566 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
567 and befs_be.
568
569 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
570
571 Remove afs and befs because of copyright problem.
572
573 * grub-core/fs/afs.c: Removed.
574 * grub-core/fs/afs_be.c: Removed.
575 * grub-core/fs/befs.c: Removed.
576 * grub-core/fs/befs_be.c: Removed.
577 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
578 * grub-core/Makefile.core.def (afs): Removed.
579 (afs_be): Likewise.
580 (befs): Likewise.
581 (befs_be): Likewise.
582
583 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
584
585 Prefer rockridge over Joliet.
586
587 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
588 to ...
589 (set_rockridge): ... here.
590 (grub_iso9660_mount): Check rockridge on the primary label when
591 discovering. Ignore Joliet if Rockridge is present.
592
593 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
594
595 Use shifts in nilfs2.
596
597 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
598 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
599 (grub_nilfs2_palloc_entries_per_group): Replace with ...
600 (grub_nilfs2_log_palloc_entries_per_group): ... this.
601 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
602 (grub_nilfs2_entries_per_block): Replaced with ...
603 (grub_nilfs2_log_entries_per_block_log): ... this.
604 (grub_nilfs2_blocks_per_group): Replaced with ...
605 (grub_nilfs2_blocks_per_group_log): ... this.
606 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
607 (grub_nilfs2_blocks_per_desc_block_log): ... this.
608 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
609 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
610 (grub_nilfs2_palloc_entry_offset): Replaced ...
611 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
612 (grub_nilfs2_dat_translate): Use shifts.
613 (grub_nilfs2_read_inode): Likewise.
614 (GRUB_MOD_INIT): Ensure that logs are correct.
615
616 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
617
618 Use shifts in minix filesystem.
619
620 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
621 (GRUB_MINIX_ZONE2SECT): Likewise.
622 (grub_minix_data): Replace block_size with log_block_size.
623 (grub_minix_read_file): Use shifts.
624 (grub_minix_mount): Check block size and take a logarithm.
625
626 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
627
628 Use shifts in squash4.
629
630 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
631 (squash_mount): Check block size and take logarithm.
632 (direct_read): Use shifts.
633
634 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
635
636 Correct befs block counting logic.
637
638 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
639 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
640 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
641 (grub_afs_read_inode): Use block_shift.
642 (RANGE_SHIFT): New definition.
643 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
644 unexpected conditions, use shifts and appropriate types.
645 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
646
647 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * grub-core/disk/raid.c (scan_devices): Check partition.
650 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
651
652 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
653
654 Support BFS (befs) UUID.
655
656 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
657 (grub_afs_small_data_element_header): New struct.
658 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
659 (grub_afs_read_attribute) [MODE_BFS]: New function.
660 (grub_afs_iterate_dir): Allocate for complete inode.
661 (grub_afs_mount): Likewise.
662 (grub_afs_uuid) [MODE_BFS]: New function.
663 (grub_afs_fs) [MODE_BFS]: Add .uuid.
664
665 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
668 (zfs_unmount): Fix memory leak.
669
670 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
671
672 Support NTFS reparse points.
673
674 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
675 (symlink_descriptor): New struct.
676 (grub_ntfs_read_symlink): New function.
677 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
678 (grub_ntfs_open): Likewise.
679
680 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
683
684 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
685
686 fstest xnu_uuid subcommand.
687
688 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
689 grub-core/commands/xnu_uuid.c.
690 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
691 (fstest): Handle xnu_uuid.
692 (options): Document xnu_uuid.
693 (argp_parser): Parse xnu_uuid.
694
695 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
696
697 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
698 -l argument. Add newline at the end if printing.
699 (GRUB_MOD_INIT): Document -l.
700
701 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
704
705 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
706
707 ZFS multi-device and version 33 support.
708
709 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
710 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
711 (grub_zfs_data): Add multidev-ice-related fields.
712 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
713 (dva_get_offset): Make dva const.
714 (zfs_fetch_nvlist): New function.
715 (fill_vdev_info_real): Likewise.
716 (fill_vdev_info): Likewise.
717 (check_pool_label): Likewise.
718 (scan_disk): Likewise.
719 (scan_devices): Likewise.
720 (read_device): Likewise.
721 (read_dva): Likewise.
722 (zio_read_gang): Use read_dva.
723 (zio_read_data): Likewise.
724 (zap_leaf_lookup): Add missing endian conversion.
725 (zap_verify): Add missing endian conversion. All users updated.
726 (fzap_lookup): Likewise.
727 (fzap_iterate): Likewise.
728 (dnode_get_path): Handle SA bonus.
729 (nvlist_find_value): Make input const. All users updated.
730 (unmount_device): New function.
731 (zfs_unmount): Use unmount_device.
732 (zfs_mount): Use scan_disk.
733 (zfs_mtime): New function.
734 (grub_zfs_open): Handle system attributes.
735 (fill_fs_info): Likewise.
736 (grub_zfs_dir): Likewise.
737 (grub_zfs_fs): Add mtime.
738 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
739 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
740 (SA_MTIME_OFFSET): Likewise.
741 (SA_SYMLINK_OFFSET): Likewise.
742 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
743 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
744 (fstest): Support zfsinfo.
745 (argp_parser): Likewise.
746
747 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
748
749 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
750 error.
751
752 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
753
754 ZFS fixes.
755
756 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
757 sharing the same block. Iterate over correct number of indices.
758 (dnode_get_path): Handle symlinks correctly.
759
760 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
763
764 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
765
766 Read label on HFS+.
767
768 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
769 (grub_hfsplus_btree_search): Fix types.
770 (grub_hfsplus_label): Implement.
771
772 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
775
776 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
779
780 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
781
782 Fix symlink handling on iso9660.
783
784 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
785 All users updated.
786 (grub_iso9660_susp_iterate): Accept zero-size iterate.
787 (grub_iso9660_read_symlink): Moved most of code ...
788 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
789
790 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
791
792 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
793 Use union to avoid breaking strict-aliasing rules.
794
795 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
796
797 Support multi-extent iso files.
798
799 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
800 Add node.
801 (grub_fshelp_node): Revamp. All users updated.
802 (FLAG_*): New enum.
803 (read_node): New function.
804 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
805 All users updated.
806 (grub_iso9660_mount): Don't attempt to read sua when there is none.
807 (get_node_size): New function.
808 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
809 entries.
810 Fix memory leak on . and ..
811 (grub_iso9660_read): Use read_node.
812 (grub_iso9660_close): Free node.
813
814 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
815
816 Fix tar 4G limit and handle paths containing dot.
817
818 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
819 (canonicalize): New function.
820 (grub_cpio_find_file): Use canonicalize. Store offs in
821 grub_disk_addr_t.
822 (grub_cpio_dir): Use grub_disk_addr_t.
823 (grub_cpio_open): Likewise.
824
825 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
826
827 Fix handling of uncompressed blocks on squashfs and break 4G limit.
828
829 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
830 unused flags.
831 (grub_squash_inode): Add long_file and block_size.
832 (grub_squash_cache_inode): New struct.
833 (grub_squash_dirent): Make types into enum.
834 (SQUASH_TYPE_LONG_REGULAR): New type.
835 (grub_squash_frag_desc): Add field size.
836 (SQUASH_BLOCK_FLAGS): New enum.
837 (grub_squash_data): Use grub_squash_cache_inode.
838 (grub_fshelp_node): Make ino_chunk 64-bit.
839 (read_chunk): Minor argument change. All users updated.
840 (squash_mount): Use correct le_to_cpu.
841 (grub_squash_open): Handle LONG_REGULAR.
842 (direct_read): New function.
843 (grub_squash_read_data): Handle blocks correctly.
844
845 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
848
849 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
852
853 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
854
855 Fix 2G limit on ZFS.
856
857 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
858 types.
859 (uberblock_verify): Likewise.
860 (dmu_read): Likewise.
861 (grub_zfs_read): Likewise. Remove invalid cast.
862
863 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
866 (grub_jfs_blkno): Fix incorrect shift.
867 (grub_jfs_read_file): Use more appropriate types.
868
869 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
870
871 Support triple indirect on minix2 and minix3.
872
873 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
874 Declare triple_indir_zone.
875 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
876 indirect.
877
878 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
879
880 Minix FS fixes.
881
882 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
883 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
884 Rename ctime to mtime. All users updated.
885 (grub_minix_get_file_block): Fix types and double indirect computations.
886
887 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
890 if no label is found.
891 (grub_fat_iterate_dir): Fix file size type.
892 (grub_fat_iterate_dir): Likewise.
893
894 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
897 save some space.
898 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
899 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
900
901 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
902
903 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
904
905 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
906
907 * util/import_gcry.py: Accept space between # and include.
908
909 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
912
913 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
914
915 Fine grainely disable warnings on lexer. Remove Wno-error on it.
916
917 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
918 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
919 yylex_strncpy.
920 * grub-core/script/yylex.l: Add fine-grained #pragma.
921
922 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
923
924 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
925 New inline function.
926 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
927 Likewise.
928 (memset) [GRUB_UTIL]: Likewise.
929 (memcmp) [GRUB_UTIL]: Likewise.
930
931 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
934 inline function rather than a define.
935
936 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * util/grub-setup.c: Add missing include.
939
940 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * util/ieee1275/grub-ofpathname.c: Add missing include.
943
944 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
947 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
948 Likewise.
949
950 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
953 grub_memcmp usage.
954
955 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * util/grub-install.in: Add datarootdir as per automake manual
958 suggestion.
959 * util/grub-mknetdir.in: Likewise.
960
961 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
964 suggestion.
965 * util/grub.d/10_kfreebsd.in: Likewise.
966 * util/grub.d/10_linux.in: Likewise.
967 * util/grub.d/10_netbsd.in: Likewise.
968 * util/grub.d/10_windows.in: Likewise.
969 * util/grub.d/20_linux_xen.in: Likewise.
970
971 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
972
973 Remove redundant grub_kernel_image_size.
974
975 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
976 _edata and _start.
977 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
978 the small code. It moves it only by few bytes but simplifies the code.
979 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
980 _start.
981 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
982 (grub_kernel_image_size): Removed.
983 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
984 (grub_kernel_image_size): Removed.
985 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
986 compiled with Apple toolchain.
987 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
988 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
989 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
990 (grub_total_module_size): Likewise.
991 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
992 Removed.
993 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
994 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
995 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
996 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
997 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
998 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
999 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
1000 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
1001 Removed.
1002 (grub_total_module_size): Removed.
1003 * util/grub-mkimage.c (image_target_desc): Remove image_size.
1004 (image_targets): Likewise.
1005 Set .compressed_size to no field on sparc.
1006 (generate_image): Remove kernel_image_size handling.
1007
1008 2011-10-19 Szymon Janc <szymon@janc.net.pl>
1009
1010 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
1011 NULL pointer dereference.
1012
1013 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
1016 done with a dedicated section.
1017
1018 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
1019 Ensure the correct position of boot_path.
1020 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
1021 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
1022 other fields.
1023 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
1024 * include/grub/boot.h: Removed. All references removed.
1025 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1026 Removed.
1027 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
1028
1029 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
1032 name.
1033
1034 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
1037
1038 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1041 Don't add the bogus brackets.
1042
1043 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 ExFAT support.
1046
1047 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
1048 * grub-core/Makefile.core.def (exfat): New module.
1049 * grub-core/fs/exfat.c: New file.
1050 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
1051 (GRUB_FAT_ATTR_*): Make into an enum.
1052 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
1053 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
1054 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
1055 (GRUB_FAT_MAXFILE): Removed.
1056 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
1057 (grub_current_fat_bpb_t): New type.
1058 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
1059 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
1060 (grub_fat_dir_node_t): New type.
1061 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
1062 (fat_log2) [MODE_EXFAT]: Removed.
1063 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
1064 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
1065 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
1066 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
1067 (grub_fat_label) [MODE_EXFAT]: New function.
1068 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
1069 reserved_first_sector to 0.
1070
1071 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 Move grub_reboot out of the kernel.
1074
1075 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
1076 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
1077 * grub-core/lib/efi/reboot.c: ... here.
1078 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
1079 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
1080 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
1081 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
1082 * grub-core/lib/i386/reboot_trampoline.S: ... here.
1083 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
1084 * grub-core/lib/ieee1275/reboot.c: ... here.
1085 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
1086 * grub-core/lib/mips/arc/reboot.c: ... here.
1087 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
1088 * grub-core/lib/mips/loongson/reboot.c: ...here.
1089 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
1090 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
1091 * include/grub/emu/misc.h (grub_reboot): New function declaration.
1092 * include/grub/i386/reboot.h: New file.
1093 * include/grub/mips/loongson/ec.h: Fix includes.
1094 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
1095 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
1096 * grub-core/lib/i386/reboot.c: New file.
1097
1098 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Make grub_prefix into module to fix the arbitrary limit and save
1101 some space.
1102
1103 * grub-core/kern/emu/main.c (grub_prefix): Removed.
1104 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
1105 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
1106 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
1107 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
1108 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
1109 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
1110 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
1111 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
1112 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
1113 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
1114 * include/grub/ia64/efi/kernel.h: Removed.
1115 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
1116 (grub_prefix): Removed.
1117 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
1118 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
1119 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
1120 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
1121 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
1122 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
1123 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
1124 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
1125 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
1126 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
1127 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
1128 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
1129 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
1130 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
1131 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
1132 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
1133 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
1134 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
1135 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
1136 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
1137 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
1138 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
1139 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
1140 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
1141 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
1142 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
1143 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
1144 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
1145 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
1146 from module.
1147 * util/grub-mkimage.c (image_target_desc): Removed prefix and
1148 prefix_end.
1149 (image_targets): Likewise.
1150 (generate_image): Put prefix as a module.
1151
1152 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 Replace grub_module_iterate with FOR_MODULES.
1155
1156 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
1157 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
1158 (grub_efi_modules_addr): ...this.
1159 * grub-core/kern/efi/init.c (grub_modbase): New variable.
1160 (grub_efi_init): Set grub_modbase.
1161 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
1162 (grub_modbase): New variable.
1163 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
1164 (grub_modbase): New variable.
1165 (grub_machine_init): Set grub_modbase.
1166 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
1167 (grub_modbase): New variable.
1168 (grub_machine_init): Set grub_modbase.
1169 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
1170 (grub_modbase): New variable.
1171 (grub_machine_init): Set grub_modbase.
1172 * grub-core/kern/main.c (grub_module_iterate): Remove.
1173 (grub_modules_get_end): Use grub_modbase.
1174 (grub_load_modules): Use FOR_MODULES.
1175 (grub_load_config): Likewise.
1176 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
1177 (grub_modbase): New variable.
1178 (grub_machine_init): Set grub_modbase.
1179 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
1180 (grub_modbase): New variable.
1181 (grub_machine_init): Set grub_modbase.
1182 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
1183 Removed.
1184 (grub_modbase): New variable.
1185 (grub_machine_init): Set grub_modbase.
1186 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
1187 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
1188 (grub_module_iterate): Likewise.
1189 (grub_modbase): New variable declaration.
1190 (FOR_MODULES): New macro.
1191
1192 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * configure.ac: Check for __ctzdi2 and __ctzsi2.
1195 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
1196
1197 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 Fix few obvious type discrepancies.
1200
1201 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
1202 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
1203 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
1204 variable.
1205 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
1206 and connected types.
1207 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
1208 offset.
1209 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
1210 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
1211 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
1212 and connected types.
1213
1214 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 Fix python 3.x incompatibilities.
1217
1218 * gentpl.py: Put brackets around print strings.
1219 * util/import_gcry.py: Open explicitly as utf-8.
1220 Use in instead of has_key.
1221
1222 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
1225 (GRUB_XFS_INO_AGBITS): Make into inline function.
1226 (GRUB_XFS_INO_INOINAG): Likewise.
1227 (GRUB_XFS_INO_AG): Likewise.
1228 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1229 (GRUB_XFS_EXTENT_OFFSET): Likewise.
1230 (GRUB_XFS_EXTENT_BLOCK): Likewise.
1231 (GRUB_XFS_EXTENT_SIZE): Likewise.
1232 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
1233 (GRUB_XFS_NEXT_DIRENT): Likewise.
1234 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
1235 (grub_xfs_read_file): Fix offset type.
1236
1237 2011-10-15 Robert Millan <rmh@gnu.org>
1238
1239 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
1240
1241 2011-10-15 Robert Millan <rmh@gnu.org>
1242
1243 Fix build problem on FreeBSD and GNU/kFreeBSD.
1244
1245 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
1246
1247 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
1250
1251 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
1252 types.
1253 (grub_hfsplus_btree_recoffset): Likewise.
1254 (grub_hfsplus_btree_recptr): Likewise.
1255 (grub_hfsplus_find_block): Likewise.
1256 (grub_hfsplus_btree_search): Likewise.
1257 (grub_hfsplus_read_block): Likewise.
1258 (grub_hfsplus_read_file): Likewise.
1259 (grub_hfsplus_mount): Likewise.
1260 (grub_hfsplus_btree_iterate_node): Likewise.
1261 (grub_hfsplus_btree_search): Likewise.
1262 (grub_hfsplus_iterate_dir): Likewise.
1263 (grub_hfsplus_read): A small code simplification.
1264
1265 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/kern/emu/hostdisk.c
1268 (convert_system_partition_to_system_disk): Don't assume that children
1269 of mapper nodes are mapper nodes.
1270
1271 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
1274 * include/grub/misc.h (grub_isxdigit): New function.
1275 * grub-core/video/colors.c (my_isxdigit): Removed. All users
1276 switched to grub_isxdigit.
1277 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
1278 number starting with a letter.
1279
1280 2011-10-09 Robert Millan <rmh@gnu.org>
1281
1282 LVM support for FreeBSD and GNU/kFreeBSD.
1283
1284 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
1285 GNU/kFreeBSD.
1286 (LVM_DEV_MAPPER_STRING): Move from here ...
1287 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
1288 * util/getroot.c: Include `<grub/util/lvm.h>'.
1289 (grub_util_get_dev_abstraction): Enable
1290 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
1291 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
1292 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
1293 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
1294 support it.
1295 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
1296 GNU/kFreeBSD.
1297 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
1298 when LVM abstraction is required for ${GRUB_DEVICE}.
1299
1300 2011-10-06 Szymon Janc <szymon@janc.net.pl>
1301
1302 Add support for LZO compression in GRUB:
1303 - import of minilzo library,
1304 - LZO decompression for btrfs,
1305 - lzop files decompression.
1306
1307 * grub-core/io/lzopio.c: New file.
1308 * grub-core/lib/adler32.c: Likewise.
1309 * grub-core/lib/minilzo/lzoconf.h: Likewise.
1310 * grub-core/lib/minilzo/lzodefs.h: Likewise.
1311 * grub-core/lib/minilzo/minilzo.c: Likewise.
1312 * grub-core/lib/minilzo/minilzo.h: Likewise.
1313 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
1314 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
1315 grub-core/lib/minilzo/minilzo.c to common.
1316 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
1317 cflags in cppflags.
1318 * grub-core/Makefile.core.def (btrfs): Likewise.
1319 * grub-core/Makefile.core.def (lzopio): New module.
1320 (adler32): Likewise.
1321 * grub-core/fs/btrfs.c: Include minilzo.h.
1322 (GRUB_BTRFS_COMPRESSION_LZO): New define.
1323 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
1324 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
1325 (grub_btrfs_lzo_decompress): New function.
1326 (grub_btrfs_extent_read): Add support for LZO compression type.
1327 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
1328 (GRUB_USHRT_MAX): Likewise.
1329 (GRUB_UINT_MAX): Likewise.
1330 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
1331 (UINT_MAX): Likewise.
1332 (CHAR_BIT): Likewise.
1333 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
1334 grub-core/lib/posix_wrap/limits.h
1335 (UCHAR_MAX): Likewise.
1336 * include/grub/file.h (grub_file_filter_id): New compression filter
1337 GRUB_FILE_FILTER_LZOPIO.
1338 * include/grub/file.h (grub_file_filter_id): Set
1339 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
1340 * include/grub/types.h (grub_get_unaligned16): New function.
1341 (grub_get_unaligned32): Likewise.
1342 (grub_get_unaligned64): Likewise.
1343 * util/import_gcry.py (cryptolist): Add adler32.
1344
1345 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
1348 in perspective decreases the complexity of build system and fixes
1349 compilation right now.
1350
1351 2011-10-01 Ales Nesrsta <starous@volny.cz>
1352
1353 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
1354 (fixed problem related to using UHCI with coreboot).
1355
1356 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
1357
1358 * gentpl.py: Use Autogen macros so that the output template file
1359 (Makefile.tpl) size is reduced.
1360
1361 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
1362
1363 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
1364 extra_dist.
1365
1366 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1367
1368 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
1369 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
1370
1371 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1372
1373 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
1374 _fullpath.
1375
1376 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1377
1378 Remove extra declaration of sleep for mingw32.
1379
1380 * util/misc.c (sleep) [__MINGW32__]: Removed.
1381 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
1382
1383 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1384
1385 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
1386 type and packname.
1387 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
1388 Resurrected.
1389 (NETBSD_BTINFO_BOOTWEDGE): New definition.
1390 (grub_netbsd_btinfo_bootwedge): New struct.
1391 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1392 New function.
1393 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
1394
1395 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
1396
1397 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
1398 loader.
1399
1400 2011-09-28 Andreas Born <futur.andy@googlemail.com>
1401
1402 Fix incorrect identifiers in bash-completion.
1403
1404 * util/bash-completion.d/grub-completion.bash.in
1405 (_grub_mkpasswd-pbkdf2): Rename to ...
1406 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
1407 (_grub_script-check): Rename to ...
1408 (_grub_script_check): ... this. All users updated.
1409
1410 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
1413 Return 0 if disk isn't biosdisk.
1414
1415 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
1416
1417 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
1418 on NetBSD.
1419 * Makefile.util.def (grub-fstest): Likewise.
1420
1421 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
1422
1423 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
1424 Get sector size from disk label.
1425
1426 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
1427
1428 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
1429 */README* as well as README*.
1430 Reported by: Axel Beckert.
1431
1432 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
1435 case of less than 256 MiB of RAM.
1436
1437 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * grub-core/commands/wildcard.c (make_regex): Handle @.
1440
1441 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 * util/grub-install.in: Move cryptodisk logic to appropriate place.
1444
1445 2011-08-21 Szymon Janc <szymon@janc.net.pl>
1446
1447 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
1448 AC_LANG_CONFTEST macros.
1449
1450 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1451
1452 Add grub-fstest option to uncompress data for commands.
1453
1454 * util/grub-fstest.c (uncompress): New var.
1455 (options): New option -u.
1456
1457 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1458
1459 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1460 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
1461
1462 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1463
1464 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
1465 file type was not recognized correctly (not gzip or corrupted).
1466
1467 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1468
1469 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
1470 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
1471
1472 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
1475 loongson.
1476 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
1477 video_radeon_fuloong2e.
1478 * grub-core/video/radeon_fuloong2e.c: New file.
1479 * include/grub/video.h (grub_video_id_t): Add new ID
1480 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
1481
1482 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
1485 define.
1486 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
1487 that PRID matches the detected subplatform and reset the subplatform
1488 if it doesn't.
1489
1490 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
1493
1494 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 Fix PCI iterating on functions >= 4.
1497
1498 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
1499 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
1500 Removed.
1501 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
1502 (grub_pci_read): Fix bitmask.
1503 (grub_pci_read_word): Likewise.
1504 (grub_pci_read_byte): Likewise.
1505 (grub_pci_write): Likewise.
1506 (grub_pci_write_word): Likewise.
1507 (grub_pci_write_byte): Likewise.
1508
1509 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
1512 can still be specified in TARGET_CFLAGS)
1513
1514 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
1517
1518 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
1519 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
1520 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
1521 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
1522 (FULOONG): Rename to ...
1523 (FULOONG2F): ... this. All users updated.
1524 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
1525 (machtype_fuloong2f_str): ... this.
1526 (machtype_fuloong2e_str): New string.
1527 Check for machtype_fuloong2e_str.
1528 * grub-core/loader/mips/linux.c (loongson_machtypes)
1529 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
1530 * grub-core/term/serial.c (loongson_defserial)
1531 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
1532 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
1533 loongson_defserial.
1534 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
1535 Rename to ...
1536 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
1537 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
1538 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
1539 to IMAGE_FULOONG2F_FLASH. All users updated.
1540 (image_targets): Rename images.
1541 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
1542
1543 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1544
1545 Make enable of disk cache statistics code configurable.
1546
1547 * configure.ac: --enable-cache-stats added.
1548 * config.h.in (DISK_CACHE_STATS): New define.
1549 * grub-core/Makefile.core.def (cacheinfo): New command.
1550 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
1551 * grub-core/commands/cacheinfo.c: New file.
1552 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
1553 moved to cacheinfo.c.
1554 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
1555 debug code.
1556 * include/grub/disk.h: Likewise.
1557
1558 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1559
1560 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
1561 * grub-core/Makefile.am: Likewise.
1562
1563 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
1566 non-zero pull.
1567
1568 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
1571 All users updated.
1572 (grub_jfs_lookup_symlink): Use correct starting inode.
1573
1574 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * util/grub-setup.c (main): Add missing gcry initialisation.
1577
1578 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 Don't accept text modes on EFI when booting Linux.
1581
1582 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
1583 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
1584
1585 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
1586 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1587
1588 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
1589 use of "/path/.." as in grub-install for EFI as well as handling
1590 symlinks correctly.
1591 Fixes Debian bug #637768.
1592
1593 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1594
1595 * util/grub-probe.c: Remove duplicate #include.
1596
1597 2011-08-10 Robert Millan <rmh@gnu.org>
1598
1599 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
1600
1601 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
1602 function.
1603 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
1604 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
1605
1606 2011-08-03 Robert Millan <rmh@gnu.org>
1607
1608 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
1609 la_array as packed.
1610 Reported by: Zachary Bedell
1611
1612 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1613
1614 * configure.ac: The Loongson port requires grub-mkfont due to its
1615 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
1616 be built.
1617
1618 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1619
1620 * util/grub-install.in: Don't source grub-mkconfig_lib until after
1621 processing arguments (otherwise help2man fails when GRUB has not yet
1622 been installed).
1623
1624 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 New script grub-mkstandalone.
1627
1628 * Makefile.util.def (grub-mkstandalone): New script.
1629 * docs/man/grub-mkstandalone.h2m: New file.
1630 * util/grub-mkstandalone.in: Likewise.
1631
1632 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 Support ATA disks with 4K sectors.
1635
1636 * include/grub/ata.h (grub_ata): New member log_sector_size.
1637 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
1638 (grub_ata_identify): Read sector size.
1639 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
1640
1641 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * util/grub-install.in: Don't use uhci outside of x86.
1644
1645 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * util/grub-mkrescue.in: Add missing quotes.
1648
1649 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
1652 dereference.
1653
1654 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
1657
1658 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * include/grub/video.h: add missing EXPORT_FUND on
1661 grub_video_edid_checksum and grub_video_edid_preferred_mode.
1662
1663 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * include/grub/mips/kernel.h: Fix define conflict.
1666
1667 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
1670 all four ways.
1671
1672 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
1673
1674 Preferred resolution detection for VBE.
1675
1676 * grub-core/video/video.c (grub_video_edid_checksum): New function.
1677 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
1678 the Flat Panel extension, in line with the X.org VESA driver.
1679 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
1680 New function.
1681 (grub_vbe_bios_get_ddc_capabilities): Likewise.
1682 (grub_vbe_bios_read_edid): Likewise.
1683 (grub_vbe_get_preferred_mode): Likewise.
1684 (grub_video_vbe_setup): When the mode is "auto", try to get the
1685 preferred mode from VBE, and use the largest mode that is no larger
1686 than the preferred mode (some BIOSes expose a preferred mode that is
1687 not in their mode list!). If this fails, fall back to 640x480 as a
1688 safe conservative choice.
1689 (grub_video_vbe_get_edid): New function.
1690 (grub_video_vbe_adapter): Add get_edid.
1691 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
1692 (struct grub_video_adapter): Add get_edid.
1693 (grub_video_edid_checksum): Add prototype.
1694 (grub_video_edid_preferred_mode): Likewise.
1695 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
1696 structure.
1697
1698 * grub-core/commands/videoinfo.c (print_edid): New function.
1699 (grub_cmd_videoinfo): Print EDID if available.
1700
1701 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
1702 is more appropriate on a wider range of platforms than 640x480.
1703 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
1704 documentation.
1705
1706 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
1709
1710 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * po/POTFILES.in: Regenerate.
1713
1714 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
1717 incorrect memory usage.
1718
1719 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * util/grub-install.in: Source grub-mkconfig_lib.
1722
1723 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 Remove getroot.c from core on emu platform.
1726
1727 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
1728 kern/emu/raid.c.
1729 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
1730 useless.
1731 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
1732 * util/getroot.c (get_win32_path): ... here.
1733 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
1734 * util/getroot.c (fini_libzfs): ... here.
1735 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
1736 * util/getroot.c (grub_get_libzfs_handle): ... here.
1737 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
1738 Moved from here...
1739 * util/getroot.c (grub_find_zpool_from_dir): ... here.
1740 * grub-core/kern/emu/misc.c
1741 (grub_make_system_path_relative_to_its_root): Moved from here...
1742 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
1743 * grub-core/kern/emu/getroot.c: Moved from here ...
1744 * util/getroot.c: ... here. All users updated.
1745 * grub-core/kern/emu/raid.c: Moved from here ...
1746 * util/raid.c: ... here. All users updated.
1747
1748 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * po/POTFILES.in: Regenerate.
1751
1752 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 Fix compilation on GNU/Linux.
1755
1756 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
1757 Disable geli.
1758 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
1759 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
1760 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
1761
1762 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1763 2011-07-07 Michael Gorven <michael@gorven.za.net>
1764 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
1765
1766 LUKS and GELI support.
1767
1768 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
1769 grub-core/disk/luks.c, grub-core/disk/geli.c,
1770 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
1771 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
1772 grub-core/lib/arg.c.
1773 (libgrubmods.a): Remove gcrypts cflags and cppflags.
1774 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
1775 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
1776 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
1777 (grub-bin2h): Add libgcry.a.
1778 (grub-mkimage): Likewise.
1779 (grub-mkrelpath): Likewise.
1780 (grub-script-check): Likewise.
1781 (grub-editenv): Likewise.
1782 (grub-mkpasswd-pbkdf2): Likewise.
1783 (grub-pe2elf): Likewise.
1784 (grub-fstest): Likewise.
1785 (grub-mkfont): Likewise.
1786 (grub-mkdevicemap): Likewise.
1787 (grub-probe): Likewise.
1788 (grub-ofpath): Likewise.
1789 (grub-mklayout): Likewise.
1790 (example_unit_test): Likewise.
1791 (grub-menulst2cfg): Likewise.
1792 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
1793 * grub-core/Makefile.core.def (cryptodisk): New module.
1794 (luks): Likewise.
1795 (geli): Likewise.
1796 * grub-core/disk/AFSplitter.c: New file.
1797 * grub-core/disk/cryptodisk.c: Likewise.
1798 * grub-core/disk/geli.c: Likewise.
1799 * grub-core/disk/luks.c: Likewise.
1800 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
1801 grub_util_is_lvm.
1802 (grub_util_get_dm_abstraction): New function.
1803 (grub_util_follow_gpart_up): Likewise.
1804 (grub_util_get_geom_abstraction): Likewise.
1805 (grub_util_get_dev_abstraction): Use new functions.
1806 (grub_util_pull_device): Pull GELI and LUKS.
1807 (grub_util_get_grub_dev): Handle LUKS and GELI.
1808 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
1809 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
1810 (follow_geom_up): Removed.
1811 (grub_util_fd_seek): New function.
1812 (open_device): Use grub_util_fd_seek.
1813 (nread): Rename to ..
1814 (grub_util_fd_read): ... this. All users updated.
1815 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
1816 (grub_crypto_cbc_decrypt): Likewise.
1817 (grub_crypto_hmac_write): Likewise.
1818 (grub_crypto_hmac_buffer): Likewise.
1819 (grub_password_get): Extend to util.
1820 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
1821 New member modname.
1822 (gcry_md_spec) [GRUB_UTIL]: Likewise.
1823 * include/grub/cryptodisk.h: New file.
1824 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
1825 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
1826 LUKS and GELI.
1827 (grub_util_follow_gpart_up): New proto.
1828 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
1829 (grub_util_fd_read): Likewise.
1830 (grub_cryptodisk_cheat_mount): Likewise.
1831 (grub_util_cryptodisk_print_uuid): Likewise.
1832 (grub_util_get_fd_sectors): Likewise.
1833 * util/grub-fstest.c (mount_crypt): New var.
1834 (fstest): Mount crypto if requested.
1835 (options): New option -C.
1836 (argp_parser): Parse -C.
1837 (main): Init and fini gcry.
1838 * util/grub-install.in: Support cryptodisk install.
1839 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
1840 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
1841 cryptodisk.
1842 (prepare_grub_to_access_device): Likewise.
1843 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
1844 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
1845 (probe_cryptodisk_uuid): New function.
1846 (probe_abstraction): Likewise.
1847 (probe): Use new functions.
1848 * util/import_gcry.py: Create Makefile.utilgcry.def.
1849 Add modname member.
1850
1851 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 Lazy device scanning.
1854
1855 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
1856 (grub-setup): Remove util/raid.c.
1857 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
1858 * grub-core/disk/lvm.c (scan_depth): New variable.
1859 (grub_lvm_iterate): Rescan if necessary.
1860 (find_lv): New function based on grub_lvm_open.
1861 (grub_lvm_open): Use find_lv. Rescan on error.
1862 (is_node_readable): New function.
1863 (is_lv_readable): Likewise.
1864 (grub_lvm_scan_device): Skip already found disks.
1865 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
1866 Stop if searched device is found and readable.
1867 * grub-core/disk/raid.c (inscnt): New variable.
1868 (scan_depth): Likewise.
1869 (scan_devices): New function based on grub_raid_register. Abort if
1870 looked for device is found.
1871 (grub_raid_iterate): Rescan if needed.
1872 (find_array): NEw function based on -grub_raid_open.
1873 (grub_raid_open): Use find_array and rescan.
1874 (insert_array): Set became_readable_at.
1875 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
1876 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
1877 New function.
1878 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
1879 (grub_util_pull_device): New function.
1880 (grub_util_get_grub_dev): Call grub_util_pull_device.
1881 * util/raid.c: Moved to ..
1882 * grub-core/kern/emu/raid.c: ... here.
1883 (grub_util_raid_getmembers): New parameter "bootable".
1884 All users updated. Support 1.x.
1885 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
1886 All users updated.
1887 * include/grub/disk.h (grub_disk_pull_t): New enum.
1888 (grub_disk_dev): Change iterate prototype.
1889 All users updated.
1890 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
1891 New proto.
1892 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
1893 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
1894 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
1895 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
1896 All users updated.
1897 * include/grub/util/raid.h: Removed.
1898
1899 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * po/POTFILES.in: Regenerate.
1902
1903 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 Unify sparc init with other ieee1275.
1906
1907 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
1908 instead of kern/sparc64/ieee1275/init.c.
1909 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
1910 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
1911 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
1912 grub/machine/kernel.h.
1913 (grub_ieee1275_original_stack) [__sparc__]: New variable.
1914 (grub_claim_heap) [__sparc__]: Use sparc version.
1915 (grub_machine_init): Moved args parsing to
1916 (grub_parse_cmdline): ...this.
1917 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
1918 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
1919 New definition.
1920 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
1921
1922 Move BOOTP to separate file.
1923
1924 * grub-core/Makefile.core.def (net): Add net/bootp.c.
1925 * grub-core/net/net.c: Move all BOOTP functions to
1926 * grub-core/net/bootp.c: ... here.
1927
1928 Use frame interface on PXE.
1929
1930 * grub-core/Makefile.core.def (pxecmd): Removed.
1931 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
1932 * grub-core/commands/i386/pc/pxecmd.c: Removed.
1933 * grub-core/i386/pc/pxe.c: Moved from here ...
1934 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
1935 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
1936 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
1937
1938 EFI network support.
1939
1940 * grub-core/Makefile.core.def (efinet): New module.
1941 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
1942 here...
1943 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
1944 All users updated.
1945 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
1946 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
1947 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
1948 * grub-core/net/drivers/efi/efinet.c: New file.
1949 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
1950 (grub_efi_net_config): New extern var.
1951
1952 Various cleanups and bugfixes.
1953
1954 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
1955 error.
1956 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
1957 disk declared as partition.
1958 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
1959 leak on failure.
1960 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
1961 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
1962 (grub_debug_zalloc): Likewise.
1963 (grub_debug_realloc): Likewise.
1964 (grub_debug_memalign): Likewise.
1965 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
1966 Check that target is IPv4.
1967 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
1968 local-mac-address as fallback.
1969 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
1970 memory leak.
1971 * grub-core/net/ip.c (ipchksum): Rename to ...
1972 (grub_net_ip_chksum): ... this. All users updated.
1973 (grub_net_recv_ip_packets): Special handling for DHCP.
1974 * util/grub-mkimage.c (generate_image): Zero-out aout header.
1975
1976 Unify prefix handling
1977
1978 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
1979 (grub_machine_get_bootlocation): ... this.
1980 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
1981 (grub_machine_get_bootlocation): ... this.
1982 (grub_prefix): New variable.
1983 (prefix): Removed.
1984 (root_dev): New variable.
1985 (dir): Likewise.
1986 (main): Use new variables.
1987 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
1988 Revamped into ...
1989 (grub_machine_get_bootlocation): ... this.
1990 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
1991 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
1992 (grub_machine_get_bootlocation): ... this.
1993 (grub_machine_set_prefix): Removed.
1994 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
1995 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
1996 Revamped into ...
1997 (grub_machine_get_bootlocation): ... this.
1998 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
1999 (grub_set_prefix_and_root): ... this. All users updated.
2000 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
2001 Revamped into ...
2002 (grub_machine_get_bootlocation): ... this.
2003 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
2004 (grub_machine_get_bootlocation): New proto.
2005 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
2006
2007 Less intrusive and more reliable seek on network implementation.
2008
2009 * grub-core/kern/file.c (grub_file_net_seek): Removed.
2010 (grub_file_seek): Don't call grub_file_net_seek.
2011 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
2012 (grub_net_fs_read_real): .. this.
2013 (grub_net_seek_real): Use net->offset.
2014 (grub_net_fs_read): Seek if necessary.
2015
2016 Unify IEEE1275 netwotk config with the other platforms.
2017
2018 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
2019 New variable.
2020 (grub_machine_get_bootlocation): Support network.
2021 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
2022 Support type and device parsing.
2023 (grub_ieee1275_get_device_type): New function.
2024 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
2025 into ...
2026 (grub_ieee1275_net_config_real): ... this.
2027 (grub_ofnet_probecards): Removed.
2028 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
2029 * include/grub/ieee1275/ofnet.h: Removed.
2030 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
2031 extern var.
2032 (grub_ieee1275_get_device_type): New function.
2033
2034 Unify network device closing across platforms and make more robust.
2035
2036 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
2037 grub_grubnet_fini.
2038 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
2039 already.
2040 * grub-core/net/net.c (grub_net_network_level_interface_register):
2041 Update num_ifaces.
2042 (grub_net_card_unregister): Close all interfaces.
2043 (receive_packets): Don't poll if no iterfaces are registered.
2044 Open if necessary.
2045 (grub_net_fini_hw): New function.
2046 (grub_net_restore_hw): Likewise.
2047 (fini_hnd): New variable.
2048 (GRUB_MOD_INIT): Register preboot hook.
2049 (GRUB_MOD_FINI): Run and unregister preboot hook.
2050
2051 Poll network cards when idle.
2052
2053 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
2054 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
2055 * grub-core/net/net.c (receive_packets): Save last poll time.
2056 (grub_net_poll_cards_idle_real): New function.
2057 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
2058 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
2059 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
2060
2061 Rename ofnet interfaces.
2062
2063 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
2064 (grub_ofnet_findcards): Use ofnet_%s names.
2065
2066 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
2067
2068 Cleanup socket opening.
2069
2070 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
2071 (grub_net_fs_close): Likewise.
2072 (grub_net_fs_read_real): Use eof member.
2073 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
2074 (+grub_net_udp_close): New inline function.
2075
2076 * include/grub/net/tftp.h: Moved to the top of ...
2077 * grub-core/net/tftp.c: ... here.
2078 * include/grub/net/ip.h: Moved mostly to the top of ...
2079 * grub-core/net/ip.c: ... here.
2080 * include/grub/net/ethernet.h: Moved mostly to the top of ...
2081 * grub-core/net/ethernet.c: ... here.
2082
2083 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
2084
2085 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
2086 FS name.
2087
2088 * include/grub/net/ip.h (ipv4_ini): Removed.
2089 (ipv4_fini): Likewise.
2090
2091 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
2092 (grub_net_send_ip_packets): Likewise.
2093
2094 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
2097 grub_read_cmos prototype.
2098
2099 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 VGA text support in qemu-mips
2102
2103 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
2104 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
2105 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
2106 text.
2107 * grub-core/kern/i386/qemu/init.c: Renamed to ...
2108 * grub-core/kern/vga_init.c: ... this.
2109 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
2110 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
2111 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
2112 Adjust.
2113 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
2114 GRUB_MACHINE_PCI_IO_BASE.
2115
2116 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 MIPS qemu flash support.
2119
2120 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
2121 magic.
2122 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
2123 (grub_machine_init): Probe memory if its size isn't known.
2124 * util/grub-mkimage.c (image_targets): Add flash targets.
2125 (generate_image): Handle flash targets.
2126
2127 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 MIPS qemu at_keyboard support.
2130
2131 * gentpl.py (videoinkernel): Add qemu-mips.
2132 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
2133 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
2134 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
2135 modules.
2136 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
2137 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
2138 * grub-core/term/serial.c (grub_serial_register)
2139 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
2140
2141 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 CMOS support on sparc.
2144
2145 * gentpl.py (cmos): Add powerpc and sparc.
2146 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
2147 powerpc and sparc.
2148 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
2149 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
2150 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
2151 grub_set_datetime_cmos.
2152 * grub-core/lib/ieee1275/cmos.c: New file.
2153 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
2154 (find_rtc): Set no_ieee1275_rtc on error.
2155 (grub_get_datetime): Call grub_get_datetime_cmos on error.
2156 (grub_set_datetime): Call grub_set_datetime_cmos on error.
2157 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
2158 fail. Move value to argument. All users updated
2159 (grub_cmos_write): Likewise.
2160 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
2161 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
2162 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
2163 grub_get_datetime_cmos and grub_set_datetime_cmos.
2164
2165 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
2166
2167 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
2168 sourcing grub-mkconfig_lib.
2169 * util/update-grub_lib.in: Likewise.
2170 * util/grub.d/00_header.in: Likewise.
2171 * util/grub.d/10_hurd.in: Likewise.
2172 * util/grub.d/10_kfreebsd.in: Likewise.
2173 * util/grub.d/10_linux.in: Likewise.
2174 * util/grub.d/10_netbsd.in: Likewise.
2175 * util/grub.d/10_windows.in: Likewise.
2176 * util/grub.d/20_linux_xen.in: Likewise.
2177 * util/grub.d/30_os-prober.in: Likewise.
2178
2179 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
2180
2181 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2182 default_bg_color rather than black.
2183 (grub_gfxterm_fullscreen): Likewise.
2184 (grub_gfxterm_background_color_cmd): Save new background color in
2185 default_bg_color.
2186
2187 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
2190
2191 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
2194 mismerge.
2195
2196 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Chainloading on coreboot support.
2199
2200 * grub-core/Makefile.core.def (chain): Add coreboot.
2201 * grub-core/loader/i386/coreboot/chainloader.c: New file.
2202
2203 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
2206 if it happens.
2207
2208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 Implement time command.
2211
2212 * grub-core/Makefile.core.def (time): New module.
2213 * grub-core/commands/time.c: New file.
2214 * grub-core/script/parser.y: Remove "time" keyword.
2215 * grub-core/script/yylex.l: Likewise.
2216
2217 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
2220
2221 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
2224 when handling leftovers.
2225
2226 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
2229 so that help2man doesn't fail.
2230
2231 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
2234 type in pointers on sparc64.
2235 (get_card_packet): Likewise.
2236
2237 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
2238
2239 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
2240 with `*'.
2241 (grub_cmd_videoinfo): Fetch current video mode.
2242
2243 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
2246 because of underlying system restrictions.
2247
2248 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
2251 necessary.
2252
2253 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 Coreboot video support.
2256
2257 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
2258 (vbe): Likewise.
2259 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
2260 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
2261 here ...
2262 * grub-core/kern/i386/int.S: ... here.
2263 * grub-core/video/i386/pc/vbe.c: Updated includes.
2264 * grub-core/video/i386/pc/vga.c: Likewise.
2265 * include/grub/i386/coreboot/memory.h
2266 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
2267 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
2268 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
2269 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
2270 Disable interrupts.
2271 * include/grub/i386/pc/vga.h: Removed. All users updated.
2272
2273 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
2276 definitions for dprintf.
2277 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
2278
2279 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
2282 prototype.
2283 (get_card_packet): Likewise.
2284
2285 2011-06-26 Yves Blusseau <blusseau@zetam.org>
2286
2287 Display the path of the file when file is not found
2288
2289 * grub-core/fs/fat.c: Display the filename when file is not found.
2290 * grub-core/fs/fshelp.c: Likewise.
2291 * grub-core/fs/hfs.c: Likewise.
2292 * grub-core/fs/jfs.c: Likewise.
2293 * grub-core/fs/minix.c: Likewise.
2294 * grub-core/fs/ufs.c: Likewise.
2295 * grub-core/fs/btrfs.c: Likewise.
2296 * grub-core/commands/i386/pc/play.c: Likewise.
2297
2298 2011-06-26 Szymon Janc <szymon@janc.net.pl>
2299
2300 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
2301 pointer checks before calling grub_free().
2302 * grub-core/commands/wildcard.c (match_devices): Likewise.
2303 * grub-core/commands/wildcard.c (match_files): Likewise.
2304 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
2305 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
2306 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
2307 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
2308 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
2309 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
2310 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
2311 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2312 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
2313
2314 2011-06-25 Patrick <p55@mailinator.com>
2315
2316 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
2317
2318 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
2321 (grub_pxe_send): Likewise.
2322 (GRUB_MOD_INIT): Fix types.
2323
2324 2011-06-24 Szymon Janc <szymon@janc.net.pl>
2325
2326 * grub-core/io/xzio.c: Fix code style issues
2327
2328 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2329 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
2330
2331 Network infrastructure.
2332 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
2333
2334 * include/grub/net/arp.h: New file.
2335 * include/grub/net/device.h: Likewise.
2336 * include/grub/net/ethernet.h: Likewise.
2337 * include/grub/net/ip.h: Likewise.
2338 * include/grub/net/netbuff.h: Likewise.
2339 * include/grub/net/tftp.h: Likewise.
2340 * include/grub/net/udp.h: Likewise.
2341 * include/grub/ieee1275/ofnet.h: Likewise.
2342 * include/grub/emu/export.h: Likewise.
2343 * include/grub/net.h: Likewise.
2344 * grub-core/net/arp.c: Likewise.
2345 * grub-core/net/ethernet.c: Likewise.
2346 * grub-core/net/ip.c: Likewise.
2347 * grub-core/net/udp.c: Likewise.
2348 * grub-core/net/tftp.c: Likewise.
2349 * grub-core/net/netbuff.c: Likewise.
2350 * grub-core/net/net.c: Likewise.
2351 * grub-core/net/drivers/emu/emunet.c: Likewise.
2352 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2353 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
2354 export.h.
2355 * grub-core/Makefile.core.def (net): New module.
2356 (tftp): Likewise.
2357 (ofnet): Likewise.
2358 (emunet): Likewise.
2359 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
2360 network protocols.
2361 * grub-core/kern/device.c (grub_net_open) : New variable.
2362 (grub_device_open): Handle network device.
2363 (grub_device_close): Likewise.
2364 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
2365 (grub_grubnet_fini): Likewise.
2366 (grub_file_seek): Seek in network device.
2367 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
2368 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
2369 network root.
2370 (grub_machine_fini): Call grub_grubnet_fini.
2371 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
2372 network.
2373 (grub_ieee1275_get_aliasdevname): New function.
2374 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2375 Add unofficial Solaris network info.
2376 (grub_multiboot_make_mbi): Likewise.
2377 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
2378 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
2379 * include/grub/device.h (grub_fs): Removed.
2380 * include/grub/err.h (grub_err_t): Add network-related values.
2381 * include/grub/i386/pc/pxe.h: Removed bootp parts.
2382 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
2383 (grub_ieee1275_get_aliasdevname): New proto.
2384 * include/grub/net.h: Rewritten.
2385
2386 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
2389 names.
2390
2391 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
2394 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
2395 it truncates the output.
2396 Reported by: Ximin Luo.
2397
2398 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
2401
2402 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
2405 partmap before abstraction.
2406
2407 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
2408
2409 * util/grub-mkconfig_lib.in: Add missing quotes.
2410
2411 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
2414 old method if mountinfo would return /dev/root and /dev/root doesn't
2415 exist.
2416
2417 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 ZFS zlib support
2420
2421 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
2422 (decomp_table): Add zlib entries.
2423 (zio_read): USe 8 bits for compression function rather than 3.
2424 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
2425
2426 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 * grub-core/disk/ahci.c: Add missing license statements.
2429 * grub-core/fs/romfs.c: Likewise.
2430 * grub-core/lib/ia64/setjmp.S: Likewise.
2431 * grub-core/loader/i386/pc/freedos.c: Likewise.
2432 * grub-core/loader/ia64/efi/linux.c: Likewise.
2433 * grub-core/video/colors.c: Likewise.
2434 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
2435
2436 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 AHCI support.
2439
2440 * grub-core/Makefile.core.def (ata_pthru): Removed.
2441 (ahci): New module.
2442 (pata): Likewise.
2443 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
2444 on unload.
2445 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
2446 readwrite.
2447 (grub_hdparm_do_check_powermode_cmd): Likewise.
2448 (grub_hdparm_do_smart_cmd): Likewise.
2449 (grub_hdparm_set_val_cmd): Likewise.
2450 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
2451 * grub-core/disk/ahci.c: New file.
2452 * grub-core/disk/ata.c: Factor out the low-level part into ...
2453 * grub-core/disk/pata.c: ... here.
2454 * grub-core/disk/ata_pthru.c: Contents moved to ...
2455 * grub-core/disk/pata.c: ... here.
2456 * grub-core/disk/scsi.c (grub_scsi_names): New array.
2457 (grub_scsi_iterate): Use grub_scsi_names.
2458 (grub_scsi_open): Likewise.
2459 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
2460 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
2461 (grub_ata_regs_t): New struct.
2462 (grub_disk_ata_pass_through_parms): Likewise.
2463 (grub_ata_device): Renamed to ...
2464 (grub_ata): ... this.
2465 (grub_ata_dev): New struct.
2466 Removed all low-level inline functions.
2467 * include/grub/scsi.h: Add PATA and AHCI subsystems.
2468 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
2469 iterate hooks and open. All users updated.
2470 * util/grub-install.in: Handle AHCI disk module.
2471
2472 2011-06-23 Szymon Janc <szymon@janc.net.pl>
2473
2474 Add support for DRI and RSTn markers in JPEG files.
2475
2476 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
2477 (JPEG_MARKER_RST0): Likewise.
2478 (JPEG_MARKER_RST1): Likewise.
2479 (JPEG_MARKER_RST2): Likewise.
2480 (JPEG_MARKER_RST3): Likewise.
2481 (JPEG_MARKER_RST4): Likewise.
2482 (JPEG_MARKER_RST5): Likewise.
2483 (JPEG_MARKER_RST6): Likewise.
2484 (JPEG_MARKER_RST7): Likewise.
2485 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
2486 (grub_jpeg_decode_dri): New function.
2487 (grub_jpeg_decode_sos): Move image data related part into
2488 grub_jpeg_decode_data function.
2489 (grub_jpeg_decode_data): New function.
2490 (grub_jpeg_reset): New function.
2491 (grub_jpeg_decode_jpeg): Handle new markers.
2492
2493 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * util/ieee1275/ofpath.c (check_sas): Close fd.
2496 (main): Free of_path.
2497 Reported by: David Volgyes <dvolgyes>.
2498
2499 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
2502 Reported by: David Volgyes <dvolgyes>.
2503
2504 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
2507 file after stat.
2508 Reported by: David Volgyes <dvolgyes>.
2509
2510 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
2513
2514 Reported by: David Volgyes <dvolgyes>.
2515
2516 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
2519 Prevent memory leak.
2520
2521 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
2524 (main): Close file.
2525 Reported by: David Volgyes <dvolgyes>.
2526
2527 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
2530 to continue if allocation is failed.
2531
2532 Reported by: David Volgyes <dvolgyes>.
2533
2534 2011-06-23 David Volgyes <dvolgyes>
2535
2536 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
2537 dereference.
2538
2539 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Fix spurious warning.
2542
2543 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
2544 (acorn_partition_map_find): Use .bin member.
2545
2546 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
2549 /dev/root as a valid device.
2550
2551 2011-06-23 Jim Meyering <meyering@redhat.com>
2552
2553 Avoid NULL deref in grub_device_open.
2554
2555 * grub-core/kern/device.c (grub_device_open): Don't dereference
2556 a NULL pointer upon failed grub_env_get.
2557
2558 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Support non-512B sectors and agglomerate reads.
2561
2562 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
2563 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
2564 (disk_io_guid): Removed.
2565 (make_devices): Locate solely by BlockIO.
2566 (grub_efidisk_open): Fill log_sector_size and total_sectors.
2567 (grub_efidisk_read): Use read_blocks.
2568 (grub_efidisk_write): Use write_blocks.
2569 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
2570 log_sector_size.
2571 (get_safe_sectors): Handle non-512B sectors.
2572 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
2573 sectors.
2574 (grub_biosdisk_write): Handle non-512B sectors.
2575 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
2576 (grub_scsi_read): Remove special non-512B block handling (now handled
2577 one level up).
2578 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
2579 and do sanity checks.
2580 (grub_disk_adjust_range): Handle non-512B sectors.
2581 (transform_sector): New function.
2582 (grub_disk_read_small): Likewise.
2583 (grub_disk_read): Rewritten.
2584 (grub_disk_write): Handle non-512B sectors.
2585 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
2586 log_sector_size.
2587 (open_device): Use log_sector_size.
2588 (grub_util_biosdisk_read): Likewise.
2589 (grub_util_biosdisk_write): Likewise.
2590 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
2591 non-512B sectors.
2592 (pc_partition_map_embed): Likewise.
2593 * include/grub/disk.h (grub_disk): New field log_sector_size.
2594 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
2595 (GRUB_DISK_CACHE_BITS): Increased to 6.
2596 * util/grub-fstest.c (fstest): New command testload.
2597 (argp_parser): Likewise.
2598
2599 2011-06-16 Robert Millan <rmh@gnu.org>
2600
2601 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
2602 `ata' driver on kernel of FreeBSD 9.
2603
2604 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
2605 (get_ataraid_disk_name): New functions.
2606 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
2607 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
2608 get_ataraid_disk_name() and get_ada_disk_name().
2609
2610 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
2611
2612 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
2613 input format.
2614
2615 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
2616
2617 * docs/grub.texi (Obtaining and Building GRUB): Substitute
2618 `ftp.gnu.org' for `alpha.gnu.org'.
2619
2620 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2621
2622 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
2623 partitions under /dev/disk/by-id/.
2624
2625 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2626
2627 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
2628 after ten consecutive open failures. Scanning all the way up to
2629 10000 is excessive and can cause serious performance problems in
2630 some configurations.
2631 Fixes Ubuntu bug #787461.
2632
2633 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
2636 opening new one.
2637
2638 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
2639 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Don't stat devices unless we have to.
2642
2643 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
2644 dir == /dev/mapper.
2645 (grub_guess_root_device): Use already known os_dev if possible.
2646 * grub-core/kern/emu/hostdisk.c
2647 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
2648 if device is known to be a dm one.
2649
2650 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
2651
2652 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
2653 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
2654 Reported by: Pawel Tecza.
2655
2656 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
2659 (lsefisystab): Likewise.
2660 (lssal): Likewise.
2661 (lsefimmap): Likewise.
2662 (hdparm): Enable on qemu-mips.
2663 (setjmp): Add ia64 nodist.
2664 (serial): Simplify tags.
2665
2666 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2667
2668 * Makefile.util.def (grub-ofpathname): Install manual page.
2669
2670 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2671
2672 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
2673
2674 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2675
2676 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
2677
2678 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
2681 into dprintf.
2682
2683 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 Use full 64-bit division.
2686
2687 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
2688 (grub_divmod64): ... this.
2689 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
2690 version.
2691
2692 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2693
2694 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
2695 `source'.
2696
2697 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2698
2699 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
2700 to avoid accidents when debugging with 'sh -x'.
2701 * grub-core/gensyminfo.sh.in: Likewise.
2702 * tests/example_scripted_test.in: Likewise.
2703 * tests/grub_cmd_regexp.in: Likewise.
2704 * tests/grub_script_blanklines.in: Likewise.
2705 * tests/grub_script_dollar.in: Likewise.
2706 * tests/grub_script_expansion.in: Likewise.
2707 * tests/grub_script_final_semicolon.in: Likewise.
2708 * tests/partmap_test.in: Likewise.
2709 * tests/util/grub-shell-tester.in: Likewise.
2710 * tests/util/grub-shell.in: Likewise.
2711
2712 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2713
2714 Move gfxmenu color handling to video, so that gfxterm can use it
2715 too.
2716
2717 * grub-core/gfxmenu/named_colors.c: Move to ...
2718 * grub-core/video/colors.c: ... here. Rename
2719 grub_gui_get_named_color to grub_video_get_named_color.
2720 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
2721 * grub-core/video/colors.c (my_isxdigit): ... here.
2722 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
2723 Move to ...
2724 * grub-core/video/colors.c (parse_hex_color_component): ... here.
2725 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
2726 to ...
2727 * grub-core/video/colors.c (grub_video_parse_color): ... here.
2728
2729 * include/grub/gui.h (grub_gui_color_t): Move to ...
2730 * include/grub/video.h (grub_video_rgba_color_t): ... here.
2731 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
2732 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
2733 * include/grub/gui.h (grub_gui_map_color): Move to ...
2734 * include/grub/video.h (grub_video_map_rgba_color): ... here.
2735 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
2736 to ...
2737 * include/grub/video.h (grub_video_get_named_color): ... here.
2738 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
2739 * include/grub/video.h (grub_video_parse_color): ... here.
2740
2741 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
2742 video/colors.c.
2743 (gfxmenu): Remove gfxmenu/named_colors.c.
2744 (video) [videomodules]: Add video/colors.c.
2745
2746 Add a background_color command.
2747
2748 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
2749 function.
2750 (GRUB_MOD_INIT): Register background_color command.
2751 (GRUB_MOD_FINI): Unregister background_color command.
2752 (redraw_screen_rect): Allow blend/replace of text layer to be
2753 controlled independently from whether there is a background bitmap.
2754 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
2755 changing bitmap.
2756
2757 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 Patch BPB in ntldr and chainloader --bpb.
2760
2761 * grub-core/fs/fat.c: Include grub/fat.h.
2762 (grub_fat_bpb): Moved to ...
2763 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
2764 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
2765 grub/ntfs.h.
2766 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
2767 Moved from here...
2768 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
2769 here.
2770 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
2771 New function.
2772 (grub_chainloader_cmd): Patch BPB if --bpb is given.
2773 (GRUB_MOD_INIT): Show --bpb.
2774 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
2775 * grub-core/normal/main.c (features): New variable.
2776 (GRUB_MOD_INIT): Set feature_* variables.
2777 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
2778 proto.
2779 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
2780
2781 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
2784 for cleanness.
2785
2786 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 FreeDOS direct loading support.
2789
2790 * docs/grub.texi (Supported OS): Add FreeDOS.
2791 * grub-core/Makefile.core.def (freedos): New module.
2792 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
2793 variable.
2794 (grub_relocator16_boot): Handle %ebx.
2795 * grub-core/lib/i386/relocator16.S: Likewise.
2796 * grub-core/loader/i386/pc/freedos.c: New file.
2797
2798 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 Long Linux command line support.
2801
2802 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2803 (maximal_cmdline_size): New variable.
2804 (allocate_pages): Use maximal_cmdline_size.
2805 (grub_cmd_linux): Set and use maximal_cmdline_size.
2806 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2807 (allocate_pages): Use maximal_cmdline_size.
2808 (grub_cmd_linux): Set and use maximal_cmdline_size.
2809 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
2810 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
2811 and cmdline_size.
2812
2813 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2814 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2815
2816 Improve devmapper support
2817
2818 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
2819 (grub_util_is_lvm): New function.
2820 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
2821 than lvm if not dmraid.
2822 Handle mapped md nodes.
2823 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
2824 (grub_util_device_is_mapped): ... this. Make always available. All users
2825 updated.
2826 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
2827 (convert_system_partition_to_system_disk): Handle lvm, mpath and
2828 dmraid nodes.
2829 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
2830
2831 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
2834
2835 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
2836 * grub-core/modinfo.sh.in: New file.
2837 * grub-core/Makefile.core.def (modinfo.sh): New script.
2838 * util/grub-mknetdir.in: Use modinfo.sh.
2839 * util/grub-mkrescue.in: Likewise.
2840
2841 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2844 Fix potential usage of Elf32 instead of Elf64 when compiling on
2845 32-bit architecture. Add endianness macros while on it.
2846
2847 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 Use mipsel- rather than mips- in directories involving mipsel ports to
2850 allow both endiannesses coexist.
2851
2852 * configure.ac: proparate target_cpu=mipsel rather than resetting to
2853 mips. All conditions adjusted.
2854 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
2855 variable.
2856 * util/grub-install.in: Adjust conditions to take renaming into account.
2857 * util/grub-mkimage.c (image_targets): Likewise. New target
2858 mips-qemu_mips-elf for bigendian mips.
2859
2860 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 Avoid unnecessary copying on MIPS.
2863
2864 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
2865 early if src == dest.
2866 * util/grub-mkimage.c (generate_image): Arange for src == dest if
2867 compression is none.
2868
2869 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2870
2871 Reduce memory footprint on SGI by putting modules before the kernel
2872 as opposed to after.
2873
2874 * grub-core/Makefile.core.def (kernel): Increase linking address.
2875 (none_decompress): Likewise.
2876 (xz_decompress): Likewise.
2877 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
2878 address.
2879 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
2880 layout change.
2881 (grub_arch_modules_addr): New function.
2882 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
2883 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
2884 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
2885 here.
2886 * grub-core/kern/mips/startup.S (total_size): Rename to ...
2887 (grub_total_modules_size): ... this. Make global.
2888 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
2889 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
2890 New definition.
2891 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
2892 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
2893 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
2894 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
2895 * util/grub-mkimage.c (image_target_desc): New flag
2896 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
2897 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
2898 (generate_image): Handle images with modules before kernel.
2899
2900 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 Prevent potential loss of memory map by overwrite on qemu-mips.
2903
2904 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2905 Save ram size in $s4.
2906 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
2907 All users changed to grub_arch_memsize.
2908 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
2909 Loongson.
2910 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
2911 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
2912 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
2913 external variable.
2914
2915 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2916
2917 * .bzrignore: Remove grub-dumpbios.
2918
2919 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2920
2921 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
2922 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
2923 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
2924 existing options which append).
2925 * docs/grub.texi (Simple configuration): Document new options.
2926 Reported by: Ian Jackson. Fixes Debian bug #617538.
2927
2928 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2929
2930 * util/grub-fstest.c (cmd_cat): New function.
2931 (fstest): Handle CMD_CAT.
2932 (options): Add cat.
2933 (argp_parser): Handle cat.
2934
2935 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2936
2937 * Makefile.util.def (grub-bin2h): Don't install.
2938 * docs/man/grub-bin2h.h2m: Remove.
2939
2940 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
2943 place.
2944
2945 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 Reenable qemu-mips port.
2948
2949 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
2950 Fix small arc bug while on it.
2951 * gentpl.py: Handle qemu_mips.
2952 * grub-core/Makefile.am: Likewise.
2953 * grub-core/Makefile.core.def: Likewise.
2954 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
2955 inappropriate includes.
2956 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
2957 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
2958 * grub-core/kern/main.c (grub_modules_get_end)
2959 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
2960 * grub-core/kern/mips/qemu-mips: Moved to ..
2961 * grub-core/kern/mips/qemu_mips: ... this.
2962 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
2963 (grub_machine_init): Call terminfo_init and serial_init.
2964 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
2965 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2966 New variable.
2967 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
2968 parameter passing.
2969 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
2970 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
2971 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2972 * include/grub/mips/qemu_mips/cmos.h: New file.
2973 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
2974 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
2975 Removed.
2976 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
2977 Use correct mips-style address.
2978 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
2979 (GRUB_TICKS_PER_SECOND): Removed.
2980 (grub_get_rtc): Likewise.
2981 (grub_cpu_idle): Likewise.
2982 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
2983 New definition.
2984 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
2985 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
2986 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
2987 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
2988 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2989 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2990 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
2991 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
2992
2993 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 SGI ARCS port.
2996
2997 * Makefile.util.def (libgrubmods.a): Add dvh.c.
2998 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
2999 platforms.
3000 * configure.ac: New target mips-arc.
3001 * gentpl.py: Likewise.
3002 * grub-core/Makefile.am: Likewise.
3003 * grub-core/Makefile.core.def: Likewise.
3004 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
3005 (none_decompress): Likewise.
3006 (lsdev): New module.
3007 (datetime): Use lib/arc/datetime.c on ARC.
3008 (part_dvh): New module.
3009 * grub-core/commands/arc/lsdev.c: New file.
3010 * grub-core/disk/arc/arcdisk.c: Likewise.
3011 * grub-core/kern/mips/arc/init.c: Likewise.
3012 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
3013 aligned addresses.
3014 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
3015 support.
3016 (grub_arch_dl_relocate_symbols): Likewise.
3017 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
3018 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
3019 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
3020 platforms.
3021 * grub-core/lib/arc/datetime.c: New file.
3022 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
3023 pci.h on non-loongson.
3024 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
3025 (grub_linux_boot): Set unused registers to 0.
3026 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
3027 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
3028 * grub-core/mmap/mips/uppermem.c: ...here.
3029 * grub-core/partmap/dvh.c: New file.
3030 * grub-core/term/arc/console.c: Likewise.
3031 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
3032 (grub_terminfo_set_current): Add terminal "arc".
3033 (grub_terminfo_readkey): Support ARC sequences.
3034 * include/grub/arc/arc.h: New file.
3035 * include/grub/arc/console.h: Likewise.
3036 * include/grub/disk.h (grub_disk_dev_id): Add
3037 GRUB_DISK_DEVICE_ARCDISK_ID.
3038 * include/grub/mips/arc/kernel.h: New file.
3039 * include/grub/mips/arc/memory.h: Likewise.
3040 * include/grub/mips/arc/time.h: Likewise.
3041 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
3042 * include/grub/mips/kernel.h (grub_halt): ... here.
3043 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
3044 here...
3045 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
3046 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
3047 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
3048 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
3049 proto.
3050 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
3051 from here ...
3052 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
3053 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
3054 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
3055 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
3056 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
3057 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
3058 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
3059 (grub_phys_addr_t): Moved from here ...
3060 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
3061 (grub_vtop): Moved from here ...
3062 * include/grub/mips/memory.h (grub_vtop): ... here.
3063 (grub_map_memory): Moved from here ...
3064 * include/grub/mips/memory.h (grub_map_memory): ... here.
3065 (grub_unmap_memory): Moved from here ...
3066 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
3067 (grub_machine_mmap_iterate): Moved from here ...
3068 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
3069 (grub_mmap_get_lower): Moved from here ...
3070 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
3071 (grub_mmap_get_upper): Moved from here ...
3072 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
3073 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
3074 here ...
3075 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
3076 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
3077 here ...
3078 * include/grub/mips/time.h (grub_get_rtc): ... here.
3079 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
3080 here ...
3081 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
3082 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
3083 here ...
3084 * include/grub/mips/time.h (grub_cpu_idle): ... here.
3085 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
3086 definition.
3087 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
3088 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
3089 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
3090 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
3091 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3092 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3093 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
3094 (GRUB_MACHINE_LINK_ADDR): Likewise.
3095 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
3096 to 6.
3097 * util/grub-install.in: Run dvhtool on ARC.
3098 * util/grub-mkimage.c (image_targets): Add mips-arc.
3099 (generate_image): Handle ECOFF output for mips-arc.
3100
3101 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
3104 blocks.
3105
3106 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
3109 after enabling port.
3110
3111 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 Skip incorrect USB devices.
3114
3115 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
3116 configcnt == 0.
3117 * include/grub/usb.h (grub_usb_err_t): New enum value
3118 GRUB_USB_ERR_BADDEVICE.
3119
3120 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 Fuloong video init support.
3123
3124 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
3125 well.
3126 (grub_vga_read_arx): New function.
3127 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
3128 definition.
3129 (framebuffer): New members io, mmioptr and mmiobase.
3130 (read_sis_cmd): New function.
3131 (write_sis_cmd): Likewise.
3132 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
3133 rather than 640x400.
3134 * grub-core/video/sis315_init.c: New file.
3135
3136 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
3139 non-loongson.
3140 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
3141 to grub_dl_register_symbol.
3142
3143 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 Fix compilation errors.
3146
3147 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
3148 potentially unused.
3149 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
3150 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
3151 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
3152 to loongson machines.
3153
3154 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 Several FS mtime support.
3157
3158 * grub-core/fs/affs.c (grub_affs_time): New struct.
3159 (grub_affs_file): New field mtime.
3160 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
3161 type. Removed 'size'. New field 'di'. All users updated.
3162 (grub_affs_mount): Simplify checsum checking.
3163 (grub_affs_iterate_dir): New helper grub_affs_create_node.
3164 (grub_affs_dir): Handle mtime.
3165 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
3166 (grub_cpio_dir): Likewise.
3167 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
3168 (grub_hfs_filerec): New field mtime.
3169 (grub_hfs_dir): Handle mtime.
3170 (grub_hfs_mtime): New function.
3171 (grub_hfs_fs): Register grub_hfs_mtime.
3172 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
3173 (grub_iso9660_dir): New field mtime.
3174 (grub_fshelp_node): New field dirent.
3175 (iso9660_to_unixtime): New function.
3176 (iso9660_to_unixtime2): Likewise.
3177 (grub_iso9660_read_symlink): Use node->dirent.
3178 (grub_iso9660_iterate_dir): Likewise.
3179 (grub_iso9660_dir): Set mtime.
3180 (grub_iso9660_mtime): New function.
3181 (grub_iso9660_fs): Register grub_iso9660_mtime.
3182 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
3183 (grub_jfs_inode): New fields atime, ctime and mtime.
3184 (grub_jfs_dir): Set mtime.
3185 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3186 * grub-core/fs/ntfs.c (list_file): Set mtime.
3187 (grub_ntfs_dir): Likewise.
3188 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
3189 (grub_reiserfs_iterate_dir): Set mtime.
3190 (grub_reiserfs_dir): Likewise.
3191 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
3192 (grub_fshelp_node): Likewise.
3193 (grub_sfs_iterate_dir): Set mtime.
3194 (grub_sfs_dir): Likewise.
3195 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
3196 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
3197 (grub_xfs_inode): New fields atime, mtime, ctime.
3198 (grub_xfs_dir): Set mtime.
3199 * include/grub/datetime.h (grub_datetime2unixtime): New function.
3200 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
3201 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
3202
3203 Support UDF symlinks.
3204
3205 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
3206 (grub_ufs_read_symlink): New function. All users updated.
3207
3208 Check amiga partmap checksum.
3209
3210 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
3211 (grub_amiga_partition): Likewise.
3212 (amiga_partition_map_checksum): New function.
3213 (amiga_partition_map_iterate): Check checksum.
3214
3215 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 ROMFS support.
3218
3219 * Makefile.util.def (libgrubmods.a): Add romfs.
3220 * grub-core/Makefile.core.def (romfs): New module.
3221 * grub-core/fs/romfs.c: New file.
3222
3223 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 Squashfs v4 support.
3226
3227 * Makefile.util.def (libgrubmods.a): Add squash4.
3228 * grub-core/Makefile.core.def (squash4): New module.
3229 * grub-core/fs/squash4.c: New file.
3230 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
3231 disk_input_start, disk_input.
3232 (get_byte): Handle disk_input.
3233 (grub_zlib_disk_read): New function.
3234 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
3235
3236 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3237 2011-05-15 Feiran Zheng <famcool@gmail.com>
3238
3239 * Makefile.util.def (libgrubmods.a): Add minix3.
3240 * grub-core/Makefile.core.def (minix3): New module.
3241 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
3242 (GRUB_MINIX_BSIZE): Removed.
3243 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
3244 (grub_minix_ino_t): New type.
3245 (grub_minix_le_to_cpu_ino): New macro.
3246 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
3247 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
3248 (grub_minix_data): New field block_size.
3249 (grub_minix_read_file): Handle 64-bit correctly.
3250 * grub-core/fs/minix3.c: New file.
3251
3252 2011-05-15 Tristan Gingold <gingold@free.fr>
3253 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
3254 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 IA64 support.
3257
3258 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
3259 * configure.ac: Add ia64-efi target.
3260 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
3261 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
3262 * gentpl.py: Add ia64_efi platform.
3263 Rename x86_efi to efi and Add ia64-efi. All users updated.
3264 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
3265 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
3266 Remove kern/generic/rtc_get_time_ms.c on EFI.
3267 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
3268 kern/ia64/dl_helper.c on ia64-efi.
3269 Add kern/emu/cache.c on emu.
3270 (linux): Use on loader/ia64/efi/linux.c on ia64.
3271 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
3272 whether symbol is a function.
3273 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
3274 (grub_symbol): New field 'isfunc'.
3275 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
3276 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
3277 (grub_dl_load_segments): Place all sections into the same region.
3278 [__ia64__]: Create trampolines and got.
3279 [GRUB_MACHINE_EMU]: Call mprotect.
3280 (grub_dl_resolve_symbols): Resolve symbol type as well.
3281 [__ia64__]: Create function descriptors.
3282 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
3283 (grub_rtc_get_time_ms): ... this. Expressions simplified.
3284 (grub_get_rtc): New function.
3285 * grub-core/kern/emu/cache.c [__ia64__]: New file.
3286 * grub-core/kern/emu/cache.S: Renamed to ...
3287 * grub-core/kern/emu/cache_s.S: ... this.
3288 [__ia64__]: Add a nop.
3289 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
3290 [__ia64__]: New function.
3291 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
3292 * grub-core/kern/ia64/dl.c: New file.
3293 * grub-core/kern/ia64/dl_helper.c: Likewise.
3294 * grub-core/kern/ia64/efi/init.c: New file.
3295 * grub-core/kern/ia64/efi/startup.S: Likewise.
3296 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
3297 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
3298 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
3299 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
3300 * grub-core/loader/ia64/efi/linux.c: New file.
3301 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
3302 (GRUB_MOD_DEP): Likewise.
3303 (grub_dl) [__ia64__]: New fields got and tramp.
3304 (grub_dl): New field 'base'.
3305 (grub_dl_register_symbol): New argument isfunc. All users updated.
3306 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
3307 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
3308 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
3309 (grub_ia64_dl_get_tramp_got_size): New proto.
3310 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
3311 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
3312 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
3313 * include/grub/efi/api.h: Skip call wrappers on ia64.
3314 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
3315 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
3316 * include/grub/elf.h (ELF_ST_INFO): New definition.
3317 * include/grub/ia64/efi/kernel.h: New file.
3318 * include/grub/ia64/efi/memory.h: Likewise.
3319 * include/grub/ia64/efi/time.h: Likewise.
3320 * include/grub/ia64/kernel.h: Likewise.
3321 * include/grub/ia64/setjmp.h: Likewise (from glibc).
3322 * include/grub/ia64/time.h: New file.
3323 * include/grub/ia64/types.h: Likewise.
3324 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
3325 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
3326 New protos.
3327 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
3328 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3329 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
3330 * util/grub-mkimage.c (image_target_desc): New field pe_target.
3331 All users updated.
3332 (EFI64_HEADER_SIZE): New definition. All users updated.
3333 (image_targets): Add ia64-efi.
3334 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
3335 jumpers_addr. All users updated.
3336 Create function descriptors.
3337 (count_funcs): New function.
3338 (unaligned_uint32): New struct.
3339 (MASK20): New definition.
3340 (MASK19): Likewise.
3341 (MASKF21): Likewise.
3342 (add_value_to_slot_20b): New function.
3343 (add_value_to_slot_21_real): Likewise.
3344 (add_value_to_slot_21): Likewise.
3345 (ia64_kernel_trampoline): New struct.
3346 (nopm): New variable.
3347 (jump): Likewise.
3348 (make_trampoline): New function.
3349 (relocate_addresses): Handle ia64.
3350 (make_reloc_section): Likewise.
3351 (load_image): Likewise.
3352
3353 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
3356 warning. Move variables before code while on it.
3357
3358 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 Fuloong support.
3361
3362 * configure.ac: Rename yeeloong platform to loongson. All users updated.
3363 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
3364 * grub-core/boot/mips/loongson/fuloong.S: New file.
3365 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
3366 Explicitly init CS5536.
3367 [FULOONG]: Don't use serial until CS5536 is available.
3368 Set GPIO based on dumps.
3369 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
3370 [FULOONG]: Handle GPIO and memory controller differences.
3371 Parse machine type in $a2.
3372 * grub-core/boot/mips/startup_raw.S: Determine and save the
3373 architecture.
3374 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
3375 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
3376 init on architecture type.
3377 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3378 SIS315E. Don't init at_keyboard on fuloong.
3379 (grub_halt): Support Fuloong.
3380 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
3381 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
3382 (loongson_machtypes): New array.
3383 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
3384 type.
3385 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
3386 config. All users updated. Handle CS5536 serial.
3387 * grub-core/term/serial.c (grub_serial_register): Conditionalise
3388 default port on machine type. Register serial as inactive.
3389 * grub-core/video/sis315pro.c: New file.
3390 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
3391 definition.
3392 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
3393 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
3394 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
3395 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
3396 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
3397 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
3398 to ...
3399 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
3400 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
3401 definition.
3402 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
3403 (grub_arch_machine): New extern var.
3404 * include/grub/mips/loongson/serial.h
3405 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
3406 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
3407 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
3408 (GRUB_MACHINE_SERIAL_PORT0): ... this.
3409 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
3410 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
3411 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
3412 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
3413 * include/grub/term.h (grub_term_register_input_inactive): New inline
3414 function.
3415 (grub_term_register_output_inactive): Likewise.
3416 * include/grub/video.h (grub_video_driver_id): New value
3417 GRUB_VIDEO_DRIVER_SIS315PRO.
3418 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
3419 New field "names". All users updated.
3420 New field value IMAGE_FULOONG_FLASH.
3421 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
3422
3423 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
3424
3425 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
3426 and add some clarification.
3427
3428 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
3431 platforms if kernel is compressed.
3432
3433 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
3436 unused modules since currently referrence counter isn't reliable and
3437 there isn't much memory to recover there anyway.
3438
3439 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
3442 rather than resetting it to allow modules to reference themselves
3443 in init.
3444
3445 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
3448 counter on dependencies since grub_dl_unref already handles this.
3449
3450 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
3453 on error if not already done.
3454
3455 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 Fix few potential memory misusage.
3458
3459 * grub-core/font/font.c (load_font_index): Don't free char_index to
3460 avoid double free.
3461 (grub_font_load): Zero-fill font at alloc for safety.
3462 Close file on error.
3463 (free_font): Free bmp_idx.
3464
3465 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * docs/grub.texi (Installation): Fix several outdated claims.
3468
3469 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 Handle module_license on windows.
3472
3473 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
3474 sections shifted.
3475 (insert_string): Make argument const char * instead of char *.
3476 (write_section_data): Handle long section names.
3477 Handle module_license.
3478
3479 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
3482 handle class-free menuentries.
3483 (grub_normal_add_menu_entry): Add a check to be sure.
3484
3485 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
3488 PgUp and PgDown.
3489
3490 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * configure.ac: Bump version to 1.99.
3493
3494 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Give ATA device a bit more time on first try in order to allow disks
3497 to spin up.
3498
3499 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
3500 if dev->present is 1. Reset dev->present on failure.
3501 (grub_ata_device_initialize): Set dev->present to 1.
3502 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
3503 (grub_ata_device): New member 'present'.
3504
3505 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * util/grub-mkimage.c (generate_image): Update hash.
3508
3509 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 Flush caches on DMA memory.
3512
3513 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
3514 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
3515 (grub_dma_free): Likewise.
3516 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
3517
3518 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
3521 to avoid asm treating ld and sd as macros.
3522
3523 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
3526 decompressor.
3527
3528 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
3531 grub_decompress_core since later would fail if grub_decompress_core
3532 is too far.
3533
3534 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
3537 R_MIPS_JALR since it's used by newer compiler.
3538
3539 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
3542
3543 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
3546 file_path to 0 for surety.
3547 (grub_chainloader_boot): Set exit_data to NULL.
3548 Unset the loader once done.
3549 (grub_cmd_chainloader): Fix confusing error message if file is empty.
3550
3551 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
3554 unknown key into a dprintf.
3555
3556 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
3559 on first non-existant partition.
3560
3561 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
3564 openning fails.
3565 Reported by: Mark Korenberg.
3566
3567 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
3570 overflow.
3571
3572 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * util/grub-mkimage.c (main): Explicitely flush and sync the output
3575 before closing to ensure that it will be readable by grub-setup.
3576
3577 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
3580 (devpath_1): Use MAKE_PIWG_PATH.
3581 (devpath_2): Likewise.
3582 (devpath_3): Likewise.
3583 (devpath_4): Likewise.
3584 (devpath_5): Likewise.
3585 (devpath_6): Likewise.
3586
3587 The appleldr.mod was checked that to be binary identical to previous
3588 version.
3589
3590 2011-05-05 Zach <mikezackles>
3591
3592 Support 2010 Macbooks.
3593
3594 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
3595 (devs): Add devpath_6.
3596
3597 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
3600 /dev/random. /dev/urandom is good enough for our purposes (salting).
3601
3602 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
3605
3606 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
3609 hexadecimal.
3610
3611 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
3614 and not 0 on failure.
3615
3616 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3617
3618 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
3619 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
3620 disk; otherwise grub_fs_probe will not fall back to the next
3621 filesystem.
3622 (grub_pxefs_open): Likewise, for consistency.
3623 Reported and tested by: Ezekiel Grave.
3624
3625 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3626
3627 * tests/partmap_test.in: Don't hardcode path to parted.
3628 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
3629
3630 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
3631
3632 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
3633 of `ls' to find out which devices are available.
3634
3635 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
3638 than source address for efi mmap buffer.
3639
3640 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
3643 wrong action on non-detecting the magic.
3644
3645 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
3648 already supplied by another part of the module (fixes compilation on
3649 FreeBSD).
3650
3651 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
3654 match the one used by mdadm.
3655
3656 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3657
3658 * po/README: Add instructions for creating po/LINGUAS.
3659
3660 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3661
3662 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
3663 #551428.
3664
3665 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
3666 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
3667 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
3668 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3669 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
3670 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
3671 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
3672 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
3673 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
3674 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3675 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
3676 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
3677 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
3678 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
3679 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
3680 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
3681 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
3682 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
3683 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
3684 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
3685 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
3686 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
3687
3688 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3689
3690 * grub-core/kern/emu/getroot.c
3691 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
3692 test that was incorrectly reintroduced in r3214.
3693 Reported by: Ian Dall. Fixes Savannah bug #33133.
3694
3695 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3696
3697 Fix stack pointer handling in 16-bit relocator.
3698
3699 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
3700 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
3701 Fixes Ubuntu bug #683904.
3702
3703 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * configure.ac: Bump version to 1.99~rc2.
3706
3707 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
3710 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
3711 * grub-core/lib/x86_64/setjmp.S: Likewise.
3712 * grub-core/lib/mips/setjmp.S: Likewise.
3713 * grub-core/lib/powerpc/setjmp.S: Likewise.
3714 * grub-core/lib/sparc64/setjmp.S: Likewise.
3715
3716 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
3719 * grub-core/lib/efi/datetime.c: Likewise.
3720
3721 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
3724 New function.
3725 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
3726 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
3727 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
3728
3729 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
3732 bitmap.
3733 (grub_gfxterm_term_init): Likewise.
3734
3735 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 Take into account the decorations the computing menu entry width.
3738
3739 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
3740 (grub_gfxmenu_create_box): Register get_border_width.
3741 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
3742 if available.
3743 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
3744 get_border_width.
3745
3746 2011-04-18 Endres Puschner <code@e7p.de>
3747
3748 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
3749 Don't skip first class.
3750
3751 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
3754 chunks.
3755 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
3756
3757 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 Complete 64-bit division support.
3760
3761 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
3762 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
3763 * include/grub/misc.h (grub_divmod64): Rename to ...
3764 (grub_divmod64_full): ... this.
3765 (grub_divmod64): New inline function.
3766
3767 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * util/grub-mkimage.c (generate_image): Add forgotten comma.
3770
3771 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
3774 performing the necessary test.
3775
3776 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
3779 (kfreebsd.elf): Likewise.
3780 (pc-chainloader.elf): Likewise.
3781 (ntldr.elf): Likewise.
3782
3783 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 Identify RAID by its UUID rather than (guessed) name.
3786
3787 * grub-core/disk/raid.c (ascii2hex): New function.
3788 (grub_raid_open): Accept mduuid/%s specification.
3789 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
3790 (get_mdadm_uuid): ... this.
3791 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
3792
3793 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
3796 to negative size.
3797
3798 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3799
3800 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
3801 btrfs subvolume.
3802 * util/grub.d/20_linux_xen.in: Likewise.
3803
3804 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3805
3806 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
3807 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
3808
3809 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3810 Build a list of relevant visible mounts using the mnt_id and
3811 parent_mnt_id fields, and then scan that list at the end.
3812
3813 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3814
3815 * docs/grub.texi (normal): New section.
3816 (normal_exit): New section.
3817 (Embedded configuration): Add reference to normal.
3818 (GRUB only offers a rescue shell): Likewise.
3819 * docs/grub-dev.texi (Error Handling): Fix typo.
3820
3821 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3822
3823 * NEWS: Drop obsolete entry about probe-only btrfs support.
3824
3825 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3826
3827 * util/import_gcry.py: Fix typo.
3828
3829 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * NEWS: Add btrfs support.
3832
3833 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3834 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3835
3836 BtrFS support. Written by me (Vladimir) with important bugfixes and
3837 even more important testing by Colin.
3838
3839 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
3840 * grub-core/Makefile.core.def (btrfs): Add crc.c.
3841 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
3842 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
3843 mem_input_off and mem_input. All users updated to accept in-RAM input.
3844 (gzio_seek): New function.
3845 (test_zlib_header): Likewise.
3846 (grub_gzio_read): Likewise.
3847 (grub_zlib_decompress): Likewise.
3848 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
3849 Accept partial and non-virtual mounts.
3850 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
3851 avoid receiving /dev/dm-X as device.
3852 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
3853 Handle bind and partial mounts.
3854 * grub-core/lib/crc.c: New file.
3855 * include/grub/deflate.h: Likewise.
3856 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
3857 proto.
3858 * include/grub/lib/crc.h: New file.
3859
3860 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 Implement automatic module license checking according to new GNU
3863 guidelines.
3864
3865 * grub-core/kern/dl.c (grub_dl_check_license): New function.
3866 (grub_dl_load_core): Use grub_dl_check_license.
3867 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
3868 (GRUB_MOD_LICENSE): Likewise.
3869 (GRUB_MOD_DUAL_LICENSE): Likewise.
3870 All modules updated.
3871
3872 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3873
3874 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
3875 reserved_first_sector to 1. btrfs reserves plenty of space for boot
3876 loaders.
3877 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
3878
3879 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
3882
3883 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * util/grub-fstest.c (read_file): Report GRUB error if file opening
3886 failed.
3887
3888 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 * grub-core/kern/file.c (grub_file_open): Don't take into account the
3891 parenthesis in the middle of the filename.
3892
3893 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
3896 rather than trying to put initrd way too high.
3897 Reported by: Ryan Lortie <desrt@desrt.ca>
3898
3899 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
3902 improperly removed string.
3903
3904 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
3907 is_disk.
3908 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
3909 (open_device) Likewise.
3910 (grub_util_biosdisk_close): Likewise.
3911 Reported by: Mark Korenberg.
3912
3913 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
3914
3915 * util/grub-mkconfig_lib.in: Add missing quotes.
3916
3917 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
3918
3919 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
3920 is NULL.
3921
3922 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 Dynamically count the number of lines for the lower banner.
3925
3926 * grub-core/normal/menu_entry.c (per_term_screen): New member
3927 num_entries.
3928 (print_down): Use num_entries.
3929 (update_screen): Likewise.
3930 (grub_menu_entry_run): Set num_entries.
3931 * grub-core/normal/menu_text.c (menu_viewer_data): New member
3932 num_entries.
3933 (grub_print_message_indented): Move real part to ...
3934 (grub_print_message_indented_real): ... here. Additional argument
3935 dry_run.
3936 (draw_border): Additional argument num_entries.
3937 (print_message): Additional argument dry_run.
3938 (print_entries): Receive menu viewer data.
3939 (grub_menu_init_page): New argment num_entries.
3940 (menu_text_set_chosen_entry): Use num_entries.
3941 (grub_menu_try_text): Likewise.
3942 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
3943 All users updated.
3944 (grub_ucs4_count_lines): New function.
3945 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
3946 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
3947 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
3948 (grub_term_border_height): Likewise.
3949 (grub_term_num_entries): Likewise.
3950
3951 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
3954 Remove now unused string.
3955
3956 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3957
3958 * docs/grub-dev.texi (Finding your way around): Update for 1.99
3959 build system.
3960 (Getting started): GRUB is developed in Bazaar now, not Subversion.
3961
3962 (Comment): Fix typo.
3963 (Getting started): General copy-editing.
3964 (Typical Development Experience): Likewise.
3965 (Error Handling): Likewise.
3966 (Video API): Likewise.
3967
3968 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3969
3970 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
3971 throughout.
3972
3973 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * util/grub-mkimage.c (main): Handle special naming of yeeloong
3976 directory.
3977
3978 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3979
3980 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
3981 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
3982 "development".
3983
3984 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
3987 grub_strcpy since the lines aren't necessarily 0-terminated.
3988
3989 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
3992 root on legacy.
3993
3994 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/commands/probe.c (options): Argument to set isn't optional.
3997 (GRUB_MOD_INIT): DEVICE isn't optional.
3998
3999 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
4002 word on new line if it's too long anyway. Fixes a hang.
4003
4004 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
4007 const.
4008 * util/grub-setup.c (main): Reuse md device name if available.
4009 * util/raid.c (grub_util_raid_getmembers): Receive device name and
4010 not GRUB name as argument.
4011 Based on patch by: Florian Wagner <fwagner>.
4012
4013 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4016 Place mbi on low memory for better compatibility.
4017
4018 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
4021
4022 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4023 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
4024
4025 * autogen.sh: Ensure that collate and ctype locale is C.
4026 * conf/Makefile.common: Likewise.
4027
4028 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/normal/menu.c: Add missing include.
4031
4032 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
4035
4036 2011-04-08 Martin Zuther <mzuther@mzuther.de>
4037
4038 * util/grub-mkconfig.in: Ignore emacsen backup.
4039
4040 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
4043 on open.
4044 (grub_util_biosdisk_close): Likewise.
4045
4046 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
4049 const attribute and use grub_isdigit.
4050
4051 2011-04-06 Andrey <dev_null@ukr.net>
4052
4053 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
4054 gcc warning.
4055
4056 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
4059 useful grub_dprintf's.
4060
4061 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
4064
4065 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
4068
4069 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 Output errors if theme loading failed.
4072
4073 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
4074 grub_gfxterm_fullscreen on error paths to ...
4075 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
4076 theme loading error.
4077
4078 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
4081 space for older compilers.
4082 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4083
4084 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
4087 and report them as not RAID members since they are useless for GRUB.
4088 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4089
4090 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 Increase LVM implementation robustness in order not to crash on
4093 configurations like pvmove. Previously code assumed that in some places
4094 only lvs or only pvs are used whereas it seems that they are used
4095 interchangeably.
4096
4097 * grub-core/disk/lvm.c (read_node): New function.
4098 (read_lv): Use read_node.
4099 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
4100 Match volumes only at the end when all lvs are found. Take both
4101 pvs (first) and lvs (second) into account.
4102 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
4103 mirror_* into node_*. All users updated.
4104 (grub_lvm_stripe): Merge this ...
4105 (grub_lvm_mirror): ... and this ...
4106 (grub_lvm_node): ... into this. All users updated.
4107
4108 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
4111 of function to allow further scanning for LVMs.
4112
4113 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
4116 on failed seek as it breaks open fd reusage.
4117
4118 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * util/grub-install.in: Add a recommendation to use --recheck before
4121 reporting bugs.
4122
4123 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
4126 are obtained.
4127
4128 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4129
4130 GRUB developper manual based on existing Internals section and
4131 contributions by the various authors with active copyright assignment.
4132
4133 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
4134 * docs/font_char_metrics.png: New file.
4135 * docs/font_char_metrics.txt: Likewise.
4136 * docs/grub-dev.texi: Likewise.
4137 * docs/grub.texi (Internals): Move from here ...
4138 * docs/grub-dev.texi: ... here.
4139
4140 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4141
4142 Store the loopback device as data on loopback grub_disk structures,
4143 rather than the file it points to. This fixes use of freed memory
4144 if an existing loopback device is replaced.
4145
4146 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
4147 disk->data, not dev->file.
4148 (grub_loopback_read): Adjust file assignment to match.
4149 Fixes Ubuntu bug #742967.
4150
4151 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4152
4153 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
4154 when replacing an existing device.
4155
4156 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
4159 memory corruptions.
4160
4161 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
4162 unsigned.
4163 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
4164 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
4165 (grub_jfs_read_inode): Likewise.
4166 (grub_jfs_opendir): Likewise. Remove now useless casts.
4167 (grub_jfs_getent): Likewise.
4168 Make ino a grub_uint32_t rather than int.
4169 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
4170 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
4171 division and module with bit operations.
4172 (grub_jfs_find_file): Make ino a grub_uint32_t.
4173 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
4174
4175 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4176
4177 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
4178 warning. (This was in fact always initialised before use, but GCC
4179 wasn't smart enough to prove that.)
4180 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4181
4182 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
4185 stack alignment.
4186 (efi_wrap_1): Likewise.
4187 (efi_wrap_2): Likewise.
4188 (efi_wrap_3): Likewise.
4189 (efi_wrap_4): Likewise.
4190 (efi_wrap_5): Likewise.
4191 (efi_wrap_6): Likewise.
4192 (efi_wrap_10): Likewise.
4193 Based on information by: Red Hat/Peter Jones.
4194
4195 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
4196
4197 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
4198 set-but-not-used variable.
4199
4200 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
4201
4202 * docs/grub.texi (Simple configuration): Be more explicit about
4203 GRUB_DEFAULT, and add an example.
4204 Reported by: Leslie Rhorer.
4205
4206 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4207
4208 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
4209 shell".
4210
4211 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
4212
4213 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
4214 * util/grub.d/20_linux_xen.in: Likewise.
4215
4216 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * util/grub.d/10_linux.in: Try alternative config filenames where
4219 we parse config file.
4220 * util/grub.d/20_linux_xen.in: Likewise.
4221
4222 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
4223
4224 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
4225 * util/grub.d/20_linux_xen.in: Likewise.
4226
4227 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 * grub-core/disk/raid.c (insert_array): Add few potentially
4230 useful grub_util_info.
4231 (grub_raid_register): Likewise.
4232
4233 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
4236 Preserve partition number in mdadm code path.
4237
4238 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
4241 few potentially useful grub_util_info.
4242
4243 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
4246
4247 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4248
4249 * docs/grub.texi (default): Use @example rather than nested
4250 itemized lists to avoid breaking gendocs.
4251
4252 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4253
4254 * docs/grub.texi (Future): Update.
4255
4256 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4257
4258 * docs/grub.texi (Environment): New chapter.
4259 (Changes from GRUB Legacy): Link to "Environment block" section for
4260 details of limitations.
4261 (Simple configuration): Likewise. Link to documentation of gfxmode
4262 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
4263 respectively.
4264 (Shell-like scripting): Note that normal variables are stored in the
4265 environment.
4266 (gettext): Link to documentation of lang and locale_dir.
4267 (list_env): New section.
4268 (load_env): New section.
4269 (save_env): New section.
4270
4271 (Reporting bugs): Fix typo.
4272
4273 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
4276 the example.
4277
4278 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/term/at_keyboard.c (set_scancodes)
4281 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
4282
4283 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4284
4285 * docs/grub.texi (Menu-specific commands): Remove some semantics
4286 that were true in GRUB Legacy but not in GRUB 2.
4287 (submenu): New section.
4288 (false): New section.
4289 (read): New section.
4290 (true): New section.
4291
4292 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4293
4294 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
4295
4296 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4297
4298 * docs/grub.texi (Simple configuration): Explain some of the
4299 current limitations of grub-mkconfig.
4300 Reported by: Leslie Rhorer.
4301
4302 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 Old macs search for boot.efi rather than for bootia32.efi.
4305
4306 * util/grub-install.in: Copy bootia32.efi to boot.efi.
4307 * util/grub-mkrescue.in: Likewise.
4308 Suggested by: Peter Jones.
4309
4310 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
4313
4314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
4317 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
4318 (grub_lvm_mirror): New struct.
4319 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
4320 (grub_lvm_iterate): Iterate only visible volumes.
4321 (grub_lvm_read): Factor out to ..
4322 (read_lv): ... this. Support mirrors.
4323 (grub_lvm_read): New wrapper function.
4324 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
4325 stripped or mirrored.
4326
4327 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
4330
4331 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4332
4333 * docs/grub.texi (loopback): New section.
4334
4335 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4336
4337 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
4338 removed -p option.
4339
4340 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4341
4342 * docs/grub.texi (BIOS installation): New section, partly based on
4343 previous text in other sections.
4344 (Installing GRUB using grub-install): Replace BIOS discussion with a
4345 cross-reference.
4346 (Images): Likewise.
4347
4348 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/kern/emu/hostdisk.c (find_partition_start)
4351 [HAVE_DIOCGDINFO]: Add safety checks.
4352
4353 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
4356 per default compiled in kernel and prior to 8.0 isn't shipped at all.
4357
4358 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4359
4360 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
4361 real_sb->size is zero (e.g. RAID-0), get the disk size from
4362 real_sb->data_size instead.
4363 Fixes Ubuntu bug #743136.
4364
4365 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
4368 printf clauses for printing size and start.
4369
4370 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
4373 Reported and tested by: Timothy Nikkel.
4374
4375 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
4378 (dirty_region_add_real): ... this.
4379 (dirty_region_add): Don't discard margin refresh when performing
4380 scheduled repaint.
4381
4382 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * grub-core/lib/relocator.c (allocate_regstart)
4385 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
4386 terminals are capabple of malloc-free operation.
4387 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
4388 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
4389
4390 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
4391
4392 * util/grub-setup.c: Copy the partition table zone if floppy support
4393 is disabled, even if no partition table is found.
4394
4395 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
4396 during POST if an invalid partition table is contained in the PBR
4397 of the active partition when GRUB is installed to a partition.
4398
4399 2011-03-28 Colin Watson <cjwatson@debian.org>
4400
4401 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
4402 comment.
4403
4404 2011-03-28 Colin Watson <cjwatson@debian.org>
4405
4406 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
4407 to be specific about what kind of RAID device we're scanning for.
4408
4409 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
4410
4411 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
4412 return freed string.
4413
4414 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
4417
4418 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 Use libgeom on FreeBSD to detect partitions.
4421
4422 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
4423 (grub-mkrelpath): Likewise.
4424 (grub-script-check): Likewise.
4425 (grub-editenv): Likewise.
4426 (grub-mkpasswd-pbkdf2): Likewise.
4427 (grub-fstest): Likewise.
4428 (grub-mkfont): Likewise.
4429 (grub-mkdevicemap): Likewise.
4430 (grub-probe): Likewise.
4431 (grub-setup): Likewise.
4432 (grub-ofpathname): Likewise.
4433 (grub-mklayout): Likewise.
4434 (example_unit_test): Likewise.
4435 (grub-menulst2cfg): Likewise.
4436 * grub-core/Makefile.core.def (grub-emu): Likewise.
4437 (grub-emu-lite): Likewise.
4438 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
4439 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
4440 define HAVE_DIOCGDINFO.
4441 (follow_geom_up) [FreeBSD]: New function.
4442 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
4443 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
4444 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
4445 unconditionally of HAVE_DIOCGDINFO.
4446
4447 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 Fix FreeBSD compilation problem.
4450
4451 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
4452 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
4453
4454 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
4455
4456 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
4457 Switch back to page zero before loading a kernel, since some kernel
4458 drivers expect that.
4459 Thanks to: Felix Kuehling.
4460
4461 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
4464 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
4465 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
4466
4467 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
4470 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
4471
4472 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
4475 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
4476 malloc is disabled.
4477
4478 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
4481 for modules headers when counting the needed allocation size.
4482
4483 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
4486 if no ASCII character is found to prevent crash.
4487
4488 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
4489
4490 * grub-core/video/bitmap.c (match_extension): Ignore case.
4491
4492 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
4495
4496 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/script/parser.y: Declare "time" as valid argument.
4499
4500 2011-03-23 Peter Jones <pjones@redhat.com>
4501
4502 Fix incorrect assert failure reporting.
4503
4504 * grub-core/tests/example_functional_test.c (example_test): Add
4505 a failure comment.
4506 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
4507 (failure_start): ...this. Check that malloc succeeded.
4508 Don't call xvasprintf. Return failure struct.
4509 (failure_append_vtext): New function.
4510 (failure_append_text): Likewise.
4511 (add_failure): Likewise.
4512 (grub_test_assert_helper): Likewise.
4513 * include/grub/test.h (grub_test_assert_helper): New declaration.
4514 (grub_test_assert): Macro rewritten.
4515
4516 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
4519
4520 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
4523
4524 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
4527 into GRUB-style one.
4528
4529 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
4532 error and not grub_errno.
4533 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
4534
4535 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
4538 GRUB_USB_SPEED_NONE in case of failure and not the error code.
4539
4540 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 * grub-core/efiemu/i386/pc/cfgtables.c
4543 (grub_machine_efiemu_init_tables): Make declaration a prototype.
4544 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
4545 (grub_xnu_unlock): Likewise.
4546 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
4547
4548 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
4551 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
4552 * grub-core/commands/hashsum.c (aliases): Likewise.
4553 * grub-core/commands/setpci.c (pci_registers): Likewise.
4554 * grub-core/disk/usbms.c (attach_hook): Likewise.
4555 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
4556 (zio_checksum_table): Likewise.
4557 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
4558 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
4559 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
4560 * grub-core/lib/relocator.c (leftovers): Likewise.
4561 (extra_blocks): Likewise.
4562 * grub-core/loader/i386/bsd.c (relocator): Likewise.
4563 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
4564 (modules_last): Likewise.
4565 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
4566 (devices): Likewise.
4567 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
4568 (modules_last): Likewise.
4569 * grub-core/normal/auth.c (users): Likewise.
4570 * grub-core/normal/context.c (initial_menu): Likewise.
4571 (current_menu): Likewise.
4572 * grub-core/normal/crypto.c (crypto_specs): Likewise.
4573 * grub-core/term/serial.c (grub_serial_ports): Likewise.
4574 (grub_serial_terminfo_input_template): Likewise.
4575 (grub_serial_terminfo_output_template): Likewise.
4576 (grub_serial_terminfo_input): Likewise.
4577 (grub_serial_terminfo_output): Likewise.
4578 (registered): Likewise.
4579 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
4580
4581 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
4584 grub_video_mode_type_t.
4585 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
4586 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
4587 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
4588
4589 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * util/grub-install.in: Correct the x86-64 name as x86_64.
4592
4593 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
4594
4595 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
4596 initial chunk read from the kernel always includes GRUB's multiboot
4597 header, which is now outside the first sector.
4598
4599 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4600
4601 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
4602 cached mmap_size, so that this works correctly when called multiple
4603 times.
4604 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
4605
4606 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4607
4608 * docs/grub.texi (Simple configuration): Tidy up formatting.
4609
4610 2011-03-07 Szymon Janc <szymon@janc.net.pl>
4611
4612 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
4613 Set-but-not-used variable removed.
4614
4615 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 Workaround yet another IEEE1275 bug.
4618
4619 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4620 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
4621 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
4622 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
4623 is set.
4624 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4625 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
4626
4627 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
4630 error.
4631
4632 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
4633
4634 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
4635 empty, since in that case we can only generate either nothing or a
4636 syntactically invalid configuration file.
4637 Reported by: Michal Suchanek. Fixes Debian bug #612898.
4638
4639 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4640
4641 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
4642 (Making a GRUB bootable CD-ROM): Likewise.
4643 (Invoking grub-mkrescue): New section.
4644 Reported by: Yann Dirson. Fixes Debian bug #612585.
4645
4646 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4647
4648 * util/grub-install.in: Remove unnecessary brackets from tr
4649 arguments.
4650 * util/grub.d/10_hurd.in: Likewise.
4651 * util/grub.d/10_kfreebsd.in: Likewise.
4652 * util/grub.d/10_linux.in: Likewise.
4653 * util/grub.d/20_linux_xen.in: Likewise.
4654 Reported by: Jamie Heilman. Fixes Debian bug #612564.
4655
4656 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
4657
4658 * include/grub/file.h (not_easly_seekable): Rename to ...
4659 (not_easily_seekable): ... this. Update all users.
4660
4661 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
4662
4663 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
4664 grub-mkrescue.
4665
4666 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 * util/grub-mkimage.c (generate_image): Refuse to create the images
4669 bigger than the actual flash (512K) in Loongson machines. 512K is also
4670 the biggest chip supported by them.
4671
4672 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
4675
4676 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
4677
4678 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
4679 super_offset field.
4680
4681 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * util/grub-install.in: Ignore install device on platforms
4684 where it doesn't make sense. Always use UUIDs except on pc, efi and
4685 sparc64.
4686 Reported by: Daniel Kahn Gillmor.
4687
4688 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
4691
4692 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
4695 (iterate_real): Don't rely on partition being non-NULL.
4696
4697 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4698
4699 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
4700 supported platforms. Put a compile time assert for this rather than
4701 generate a warning with 32-bit shift.
4702
4703 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
4706 logical expression more readable.
4707
4708 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4709
4710 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
4711 even if some elements have a name.
4712 Reported by: Alexander GQ Gerasiov.
4713
4714 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4715
4716 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
4717 path unreadable if `grub-probe -t abstraction' fails, for example if
4718 memberlist fails on an LVM volume group.
4719 Reported by: Darius Jahandarie.
4720
4721 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4722
4723 * docs/grub.texi (Simple configuration): Document
4724 GRUB_PRELOAD_MODULES.
4725
4726 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
4727
4728 * .bzrignore: Remove nonexistent grub-pbkdf2.
4729
4730 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * configure.ac: Bump version to 1.99~rc1.
4733
4734 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
4737 for safety.
4738
4739 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
4742 module.
4743
4744 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
4747
4748 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
4751 diskdevid.
4752
4753 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 Fix compilation on cygwin.
4756
4757 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
4758 -R .drectve on cygwin.
4759 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
4760 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
4761 (COND_CYGWIN): New condition.
4762 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
4763 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
4764 not @TARGET_OBJ2ELF@.
4765 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
4766 type to determine whether aux is to be used.
4767
4768 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
4771 realpath'ed device string.
4772 Handle floppy (somewhat).
4773 Issue error in unknown case rather than garbage.
4774 Reported by: Axel Beckert.
4775
4776 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * util/grub.d/00_header.in (load_video): Handle the case when no video
4779 drivers available.
4780 Thanks to: Axel Beckert.
4781
4782 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
4785 variable. Fixes problem on big endian platforms.
4786
4787 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
4790 It doesn't work well there.
4791
4792 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
4795 warning.
4796 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
4797 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
4798 counter.
4799
4800 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 Use alias->path rather than buggy "canon".
4803
4804 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
4805 (ofdisk_hash_add): New argument curcan. All users updated.
4806
4807 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4808
4809 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
4810
4811 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
4814 loadmask before doing any calculations. Use correct type for offset.
4815 (grub_linux_load64): Likewise.
4816
4817 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4818
4819 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
4820 with NULL.
4821 (console_grub_equivalences_unshift): Likewise.
4822 Reported by: Daniel Dehennin.
4823
4824 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
4827 (set_env_limn_ro): Likewise.
4828 (GRUB_MOD_INIT): Likewise.
4829 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
4830 ARRAY_SIZE while on it.
4831 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
4832 * grub-core/normal/context.c (grub_env_export): Move from here ...
4833 * grub-core/kern/env.c (grub_env_export): ... here.
4834 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
4835 prefix.
4836 * grub-core/kern/main.c (grub_main): Export root and prefix.
4837 * include/grub/env.h (grub_env_export): Export.
4838 Reported by: Seth Goldberg.
4839
4840 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4843 Take into account space used by ELF sections and multiboot palette.
4844 Reported by: Grégoire Sutre.
4845
4846 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * BUGS: New file.
4849
4850 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 Pass more appropriate video id to Linux.
4853
4854 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
4855 grub_video_get_driver_id and variable gfxpayloadforcelfb to
4856 fill have_vga.
4857 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
4858 shift params->lfb_size.
4859 * include/grub/i386/linux.h: Make an enume out of have_vga values.
4860
4861 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * util/grub-menulst2cfg.c: Add missing include of misc.h.
4864
4865 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
4868 separator and pass bootpath/devid even if only one of them is available.
4869 Reported by: Seth Goldberg.
4870
4871 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
4874 implementations bug on them.
4875
4876 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
4877 memory.
4878 (filter_memory_map): Likewise.
4879
4880 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
4883 Reported by: nebuchadnezzar.
4884
4885 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
4888 Reported by: nebuchadnezzar.
4889
4890 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 Submenu default support.
4893
4894 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
4895 auto_boot. All users updated.
4896 Declared static.
4897 Handle chosen and default with submenus.
4898 (grub_menu_execute_with_fallback): Declared static.
4899 Don't notify failure if autobooted. Upper level does it.
4900 (menuentry_eq): New function.
4901 (get_entry_number): Use menuentry_eq.
4902 (show_menu): New parameter "autobooted". All users updated.
4903 (grub_show_menu): Likewise.
4904 * include/grub/normal.h (grub_show_menu): Likewise.
4905 * include/grub/menu.h (grub_menu_execute_entry): Removed.
4906 (grub_menu_execute_with_fallback): Likewise.
4907
4908 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * util/grub-mklayout.c (usage): Update help text.
4911
4912 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
4915
4916 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * util/grub-menulst2cfg.c (main): Trim the line.
4919
4920 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
4923 (grub_machine_init): Don't check amount of low memory as reportedly
4924 INT 12h can be broken and if low memory is too low we wouldn't have
4925 gotten into grub_machine_init anyway.
4926
4927 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
4930 (grub_machine_mmap_iterate): Take low memory into account
4931
4932 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
4935 badfs.
4936 Reported by: TiCPU.
4937
4938 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
4941 members errors.
4942
4943 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4944
4945 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
4946 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
4947
4948 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4949
4950 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
4951 openbsd and netbsd types being in part_bsd module.
4952
4953 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
4956 (_FILE_OFFSET_BITS): Likewise.
4957 Reported by: Seth Goldberg.
4958
4959 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4960
4961 * configure.ac: Check for libdevmapper header.
4962
4963 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
4966 avoid aliasing.
4967 (fzap_lookup): Likewise.
4968 (dnode_get): Likewise.
4969 (make_mdn): Likewise.
4970 (zfs_mount): Likewise.
4971 (fzap_iterate): Use temporary pointer to avoid aliasing.
4972 (grub_zfs_read): Likewise.
4973 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
4974 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
4975 pointers to avoid aliasing.
4976 (grub_cmd_xnu_kernel64): Likewise.
4977 (grub_xnu_load_driver): Likewise.
4978
4979 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
4982 aliasing warning.
4983 (grub_cmd_terminal_output): Likewise.
4984 Reported and tested by: Grégoire Sutre.
4985
4986 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
4989 warning.
4990 Reported and tested by: Grégoire Sutre.
4991
4992 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * configure.ac: Do CPU substitution even if it's specified explicitly.
4995 Reported and tested by: Alain Greppin.
4996
4997 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
5000 Reported and tested by: Alain Greppin.
5001
5002 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 Satisfy some bison versions need for inttypes.h.
5005
5006 * grub-core/lib/posix_wrap/inttypes.h: New file.
5007 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
5008 (int16_t): Likewise.
5009 (int32_t): Likewise.
5010 (int64_t): Likewise.
5011 Reported and tested by: Alain Greppin.
5012
5013 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5014
5015 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
5016 Silence spurious warning.
5017 Reported and tested by: Alain Greppin.
5018
5019 2011-01-07 Szymon Janc <szymon@janc.net.pl>
5020
5021 * docs/grub.texi (Support automatic decompression): Update with xz
5022 decompression support.
5023
5024 2011-01-07 Szymon Janc <szymon@janc.net.pl>
5025
5026 Improve loaders' kernel command line handling.
5027
5028 * grub-core/lib/cmdline.c: New file.
5029 * include/grub/lib/cmdline.h: Likewise.
5030 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
5031 grub_create_loader_cmdline to create kernel command line.
5032 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5033 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
5034 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
5035 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
5036 (linux): Add lib/cmdline.c on common.
5037
5038 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
5041 inopos might be unaligned.
5042
5043 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5046 endian transformations.
5047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5048 Based on report by: Doug Nazar.
5049
5050 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
5051
5052 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
5053 array->members[i].start_sector.
5054 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5055
5056 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
5059 Reported and tested by: Grégoire Sutre.
5060
5061 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
5062
5063 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
5064 avoid causing test failures by clearing the screen.
5065
5066 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
5067
5068 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5069 Fix prefix check to handle the case where dir ends with a slash
5070 (most significantly, "/" itself).
5071 Reported by: Michael Vogt.
5072
5073 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 Run terminfo_cls on initing terminfo output to clear the screen and
5076 move the cursor to (0,0).
5077
5078 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
5079 Call grub_terminfo_output_init.
5080 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
5081 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
5082 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
5083
5084 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
5087 only when needed.
5088
5089 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
5092 CTRL.
5093
5094 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 The E820 type 5 is BADRAM, not EXEC_CODE.
5097
5098 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
5099 (GRUB_E820_BADRAM): New define.
5100 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
5101 into reserved. Propagate BADRAM.
5102 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
5103 (GRUB_E820_BADRAM): New define.
5104
5105 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
5108 Ignore the memory post-4G.
5109 (grub_relocator_firmware_alloc_region): Additional debug statement.
5110
5111 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
5114 names.
5115 Reported by: David Pravec.
5116
5117 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
5120 BIOSes.
5121
5122 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
5125 Prevent overflow.
5126 (grub_reed_solomon_recover): Likewise.
5127
5128 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
5131
5132 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
5135 variable.
5136
5137 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
5138
5139 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
5140 descriptions of extract_legacy_entries_source and
5141 extract_legacy_entries_configfile.
5142 Reported by: Seung Soo, Ha.
5143
5144 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
5145
5146 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
5147 on devices that do not implement function 0.
5148
5149 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
5150
5151 * grub-core/fs/hfsplus.c: Make parent unsigned.
5152 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
5153 overflows.
5154 (grub_hfsplus_cmp_extkey): Likewise
5155
5156 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 * util/grub-install.in: Correctly use bootloader_id and not
5159 GRUB_DISTRIBUTOR on efibootmgr line.
5160
5161 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
5164
5165 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
5166
5167 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
5168 Xen and reorder menu item wording to make it clearer that this entry
5169 will launch Xen. Print separate messages when loading Xen and
5170 Linux.
5171
5172 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
5175 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
5176 loop in case of incorrect amiga partmap.
5177
5178 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
5181 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
5182 Reported by:EHeM.
5183
5184 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
5187 spurious warning.
5188 Reported by: crocket
5189
5190 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
5193 Preload EFIemu.
5194 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
5195
5196 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
5199 is loaded
5200 (grub_cmd_xnu_kextdir): Likewise.
5201 (grub_cmd_xnu_splash): Likewise.
5202
5203 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 Avoid using Reed-Solomon with 0 redundancy.
5206
5207 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
5208 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
5209 or 0 redundancy.
5210 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
5211 (grub_reed_solomon_recover): Likewise.
5212
5213 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 Don't use disk subsystem in freebsd_boot.
5216
5217 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
5218 (freebsd_biosdev): Likewise.
5219 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
5220 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
5221
5222 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 Handling of files of unknown size is currently limited. They can't be
5225 used e.g. for initrd or modules. Moreover gzip handling of not
5226 easily seekable files is buggy. Disable unknown file size for now. May
5227 be inefficient but works.
5228
5229 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
5230 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5231
5232 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
5233
5234 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
5235 floppy probe.
5236
5237 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
5238
5239 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
5240
5241 2010-12-25 Shea Levy <shlevy>
5242
5243 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
5244
5245 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
5248 Windows Server 2008.
5249 Reported by: Devin Giddings.
5250
5251 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
5254 writing an error message because of async power management.
5255 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
5256 (grub_reboot): Likewise.
5257
5258 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
5259
5260 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
5261 keep unit tests from failing when they shouldn't.
5262
5263 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5264
5265 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
5266 previous patch increased the size of the RS code by 20 bytes (at
5267 least with gcc-4.4), so increase this by 20 bytes to match.
5268 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5269
5270 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5271
5272 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
5273 scratch area. Make sure to initialise chosen in standalone mode as
5274 well as non-standalone.
5275 Reported by: Robert Hooker and Andy Whitcroft.
5276 Tested by: Andy Whitcroft.
5277
5278 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5279
5280 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
5281 constructing a new unescaped string and passing it to grub_xputs in
5282 one go, rather than passing characters to grub_printf one at a time.
5283
5284 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5285
5286 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
5287 initialising utf16.
5288
5289 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5290
5291 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
5292 comment. Add an extra layer of quotation, requiring the output of
5293 this function to be used in a printf format string.
5294 (gettext_printf): New function.
5295 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
5296 Extract translatable strings from here-documents and use a temporary
5297 variable instead, so that xgettext can find them.
5298 * util/grub.d/10_kfreebsd.in: Likewise.
5299 * util/grub.d/10_linux.in: Likewise.
5300 * util/grub.d/20_linux_xen.in: Likewise.
5301
5302 * po/grub.d.sed: New file.
5303 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
5304 arguments. Set c-format flags on all strings extracted from
5305 util/grub.d/ (xgettext refuses to include these itself for strings
5306 it extracted from a shell file, but these really are c-format).
5307
5308 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
5311 Avoid next pointing to nowhere.
5312
5313 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
5316 rather than assuming than rootblock is exactly in the middle.
5317 (grub_affs_label): Likewise.
5318
5319 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
5322 reserved_first_sector to 0.
5323 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
5324 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
5325 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
5326
5327 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 Fix handling of UTF-16 UDF labels.
5330
5331 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
5332 (read_string): .. here.
5333 (grub_udf_label): Use read_string.
5334
5335 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
5336
5337 * grub-core/normal/menu_entry.c (run): Execute commands from menu
5338 editor under argument scope.
5339 Reported by: Jordan Uggla
5340
5341 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
5344
5345 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
5346
5347 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
5348 line, and other keys scroll an entire page (previous handling was
5349 for \r and \n to scroll a page and other keys to scroll two lines).
5350
5351 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5354 Set ptrdest to correct get_physical_target_address rather than
5355 incorrect get_virtual_current_address.
5356
5357 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
5358
5359 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
5360 correct cat to grub_uint8_t * rather than grub_uint32_t *.
5361
5362 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
5363
5364 * .bzrignore: Ignore grub-core/rs_decoder.S.
5365
5366 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
5367
5368 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
5369 .mo/.mo.gz opening sequence to ...
5370 (grub_mofile_open_lang): ... here.
5371 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
5372 * util/grub.d/00_header.in (grub_lang): Include country part of
5373 locale.
5374 Reported by: Mario Limonciello.
5375
5376 2010-12-09 Robert Millan <rmh@gnu.org>
5377
5378 * NEWS: Document addition of ZFS support.
5379
5380 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
5381
5382 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
5383 rather than `/ 2', as the latter requires -Wa,--divide which would
5384 require bumping our minimum binutils version.
5385
5386 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
5387
5388 * util/grub-script-check.c (main): Print script line number on
5389 error.
5390
5391 2010-12-01 Robert Millan <rmh@gnu.org>
5392
5393 * grub-core/fs/zfs/zfs.c: New file.
5394 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
5395 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
5396 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
5397 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5398
5399 * include/grub/zfs/dmu.h: Likewise.
5400 * include/grub/zfs/dmu_objset.h: Likewise.
5401 * include/grub/zfs/dnode.h: Likewise.
5402 * include/grub/zfs/dsl_dataset.h: Likewise.
5403 * include/grub/zfs/dsl_dir.h: Likewise.
5404 * include/grub/zfs/sa_impl.h: Likewise.
5405 * include/grub/zfs/spa.h: Likewise.
5406 * include/grub/zfs/uberblock_impl.h: Likewise.
5407 * include/grub/zfs/vdev_impl.h: Likewise.
5408 * include/grub/zfs/zap_impl.h: Likewise.
5409 * include/grub/zfs/zap_leaf.h: Likewise.
5410 * include/grub/zfs/zfs.h: Likewise.
5411 * include/grub/zfs/zfs_acl.h: Likewise.
5412 * include/grub/zfs/zfs_znode.h: Likewise.
5413 * include/grub/zfs/zil.h: Likewise.
5414 * include/grub/zfs/zio.h: Likewise.
5415 * include/grub/zfs/zio_checksum.h: Likewise.
5416
5417 * Makefile.util.def: Build ZFS into libgrubmods.
5418 * grub-core/Makefile.core.def: Build zfs.mod.
5419
5420 2010-11-30 Szymon Janc <szymon@janc.net.pl>
5421
5422 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
5423 variable.
5424 * grub-core/commands/wildcard.c (match_files): Likewise.
5425
5426 2010-11-30 Robert Millan <rmh@gnu.org>
5427
5428 * grub-core/loader/i386/bsd.c
5429 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
5430 whether kernel is loaded using grub_loader_is_loaded(), rather
5431 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
5432 certain error conditions.
5433
5434 2010-11-30 Robert Millan <rmh@gnu.org>
5435
5436 * grub-core/commands/echo.c: Include `<grub/term.h>'.
5437 (grub_cmd_echo): Call grub_refresh() after printing a message.
5438
5439 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 Avoid using tricks for initialising endian variables.
5442
5443 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
5444 Make const.
5445 (GRUB_MOD_INIT): Don't byte-swap.
5446 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5447 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
5448 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
5449 (grub_swap_bytes32_compile_time): Likewise.
5450 (grub_cpu_to_le32_compile_time): Likewise.
5451 (grub_cpu_to_le16_compile_time): Likewise.
5452
5453 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 * util/grub-setup.c (setup): Stop recommending --force. People who
5456 understand the dangers of blocklists are able to find this option
5457 anyway and the ones who don't shouldn't use it anyway.
5458
5459 2010-11-26 Robert Millan <rmh@gnu.org>
5460
5461 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
5462 Update all users.
5463
5464 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
5465
5466 Fix LVM-on-RAID probing.
5467
5468 * util/grub-probe.c (probe): Remember which disk was detected as
5469 RAID (perhaps an LVM physical volume). Use that disk's raidname
5470 rather than that of the top-level disk.
5471
5472 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
5473
5474 Fix cmdline argument quotes for setparams command of menuentry
5475 definitions.
5476
5477 * grub-core/commands/menuentry.c (setparams_prefix): Use single
5478 quotes for arguments.
5479 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
5480 grub_strchrsub function instead.
5481
5482 * include/grub/misc.h (grub_strchrsub): New function.
5483
5484 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5485
5486 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
5487 effort by skipping "." and ".." entries up-front.
5488 Suggested by: Michael Lazarev.
5489
5490 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5491
5492 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
5493 ldflags to ldadd, to fix link line ordering.
5494 (none_decompress): Likewise.
5495
5496 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5497
5498 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
5499 platforms.
5500 (grub-emu-lite): Remove kern/emu/cache.S.
5501
5502 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5503
5504 * util/deviceiter.c (compare_devices): If the by-id link for a
5505 device couldn't be resolved, fall back to sorting by the by-id link
5506 rather than segfaulting.
5507 Reported and tested by: Daniel Mierswa.
5508
5509 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5510
5511 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
5512 ldflags, to fix link line ordering.
5513
5514 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5515
5516 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
5517 linkers are picky about this.
5518
5519 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5520
5521 * grub-core/Makefile.am (command.lst): Adjust sed expression
5522 ordering so that extended and priority commands aren't treated as
5523 ordinary commands.
5524
5525 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5526
5527 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5528 Remove byte-swapping function calls, which are not valid in
5529 structure initialisers.
5530 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
5531 non-const.
5532 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
5533 grub_gpt_partition_type_bios_boot.
5534
5535 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5536
5537 Fix test program build on GNU/kFreeBSD.
5538
5539 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
5540 $(LIBNVPAIR)' library dependencies.
5541
5542 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5543
5544 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
5545
5546 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5547
5548 * util/grub-install.in: Remove excessive quoting that broke
5549 installations to RAID devices.
5550
5551 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
5554 bootloader version instead of 0.
5555
5556 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
5559 warning.
5560
5561 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
5564 retrieve the metadat sector if size isn't known.
5565 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5566
5567 2010-11-18 Robert Millan <rmh@gnu.org>
5568
5569 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
5570 with grub_memcmp().
5571
5572 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
5575 arrow.
5576 Reported by: Jordan Uggla.
5577
5578 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 Make better UTF compliant.
5581
5582 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
5583 sequences as incorrect.
5584 (grub_is_valid_utf8): Likewise.
5585 (grub_utf8_to_ucs4): Likewise.
5586 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
5587 (grub_ucs4_to_utf8_alloc): Likewise.
5588 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
5589
5590 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5591
5592 Make legacy_source behave like source.
5593
5594 * grub-core/commands/legacycfg.c (legacy_file): Don't call
5595 grub_show_menu.
5596 (grub_cmd_legacy_source): Call grub_show_menu if needed.
5597
5598 2010-11-16 Colin Watson <cjwatson@debian.org>
5599
5600 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
5601 (-Wunused implies -Wunused-parameter, but not vice versa).
5602
5603 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
5604
5605 * configure.ac: Make error messages less confusing by testing for
5606 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
5607 accepted, but produces a diagnostic if something else is wrong).
5608
5609 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
5612 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
5613 (now unused).
5614 (grub_keyboard_controller_init)
5615 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
5616 read the initial state since controller isn't inited yet.
5617
5618 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
5621 allocate_regbeg may need to create new chunk header.
5622
5623 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 Fix quoting in legacy parser.
5626
5627 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
5628 single quotes.
5629 (grub_legacy_parse): Likewise.
5630 Reported by: Jordan Uggla.
5631 Tested by: Jordan Uggla.
5632
5633 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 Don't add -lgcc on i386 and x86_64.
5636
5637 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
5638 * conf/Makefile.common (LDADD_KERNEL): Likewise.
5639 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
5640
5641 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * configure.ac: Add -Wno-trampolines when supported.
5644
5645 2010-11-14 Modestas Vainius <modax@debian.org>
5646
5647 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
5648 fakeraid.
5649
5650 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5651
5652 Add generic logical block size support for UDF.
5653
5654 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
5655 (GRUB_UDF_BLKSZ): Removed.
5656 (struct grub_udf_data): New field "lbshift" to hold the logical block
5657 size of the file system in log2 format. All users updated.
5658 (sblocklist): Change type to unsigned.
5659 (grub_udf_mount): Change type of "sblklist" to unsigned.
5660 Move AVDP search before VRS recognition, because the latter requires
5661 knowledge of the logical block size, which is detected during the
5662 former.
5663 Detect and validate logical block size during AVDP search, adding
5664 support for block sizes 512, 1024 and 4096.
5665 Make VRS recognition independent of block size.
5666
5667 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5668
5669 Properly handle deleted files on UDF.
5670
5671 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
5672 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
5673 set.
5674
5675 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5676
5677 Support reading files larger than 2 GiB.
5678
5679 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
5680 "offset" to grub_off_t.
5681 (grub_udf_read_file): Likewise for parameter "pos".
5682
5683 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
5686 unavailable.
5687 (Simple configuration): Refer to Changes from GRUB Legacy about
5688 save_env availability.
5689
5690 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * util/grub-install.in: Ignore empty partition table detection
5693 instead of trying to include part_ module.
5694
5695 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
5698 LVM on RAID support.
5699
5700 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 Properly define WORDS_BIGENDIAN in wrapped environments.
5703
5704 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
5705 definition.
5706 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
5707
5708 Reported by: Manoel Rebelo Abranches.
5709 Tested by: Manoel Rebelo Abranches.
5710
5711 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * util/grub-mkconfig.in: Fix quoting.
5714
5715 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 Support big ext2 files.
5718
5719 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
5720 (grub_ext2_read_block): Support triple indirect blocks.
5721 (grub_ext2_read_file): Use 64-bit types and read size_high.
5722 (grub_ext2_open): Read size_high.
5723 Reported by: Ximin Luo.
5724 Tested by: Manoel Rebelo Abranches.
5725
5726 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * util/grub-install.in: Handle filenames containing spaces.
5729 Reported by: Jordan Uggla.
5730 Tested by: Jordan Uggla.
5731
5732 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * util/grub-mkconfig.in (grub_script_check): New variable.
5735 Use grub_script_check instead of grub-script-check.
5736 Reported by: Barry Jackson.
5737
5738 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * docs/grub.texi (menu): Correct the order.
5741 Reported by: D. Hugh Redelmeier.
5742
5743 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
5744
5745 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
5746 jump.
5747
5748 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
5749
5750 * include/grub/elfload.h (grub_elf32_size): New parameter.
5751 All users updated.
5752 Return maximum segments alignment.
5753 (grub_elf64_size): Likewise.
5754 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
5755 Return maximum segments alignment.
5756 (grub_elf64_size): Likewise.
5757 * grub-core/loader/powerpc/ieee1275/linux.c:
5758 (grub_linux_claimmap_iterate): New function. Uses the
5759 "available" property in the "memory" node for memory allocation
5760 for kernel in the PowerPC loader.
5761 (grub_linux_load32): Correctly find linux entry point offset.
5762 (grub_linux_load64): Likewise.
5763
5764 2010-11-07 Robert Millan <rmh@gnu.org>
5765
5766 On mips-yeeloong, build with -march=loongson2f when this flag is
5767 available (GCC >= 4.4).
5768 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
5769 `-march=mips3'.
5770 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
5771 or otherwise add -march=mips3.
5772
5773 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
5774
5775 Suppress shell expansion on echo '*' and echo "*" like cases.
5776 Reported by: Jordan Uggla.
5777
5778 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5779 string arguments before shell expansion.
5780 * tests/grub_cmd_echo.in: New testcases.
5781
5782 2010-11-07 Robert Millan <rmh@gnu.org>
5783
5784 * conf/mips-qemu-mips.rmk: Remove stale file from previous
5785 transition.
5786
5787 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/kern/emu/hostdisk.c
5790 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
5791
5792 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
5795 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
5796 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
5797
5798 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5799
5800 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
5801
5802 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5803
5804 * util/grub-install.in: Replace useless recomendation to pass
5805 --modules with a recomendation to report a bug.
5806
5807 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 Properly register serial terminfo.
5810 Reported by: Jordan Uggla
5811
5812 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
5813 const.
5814 (grub_serial_terminfo_output_template): Likewise.
5815 (grub_cmd_serial): Register "serial" with terminfo.
5816 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
5817 grub_serial_terminfo_output.
5818
5819 2010-11-05 Robert Millan <rmh@gnu.org>
5820
5821 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
5822 needed).
5823
5824 2010-11-05 Robert Millan <rmh@gnu.org>
5825
5826 On Yeeloong, pass machine type information to Linux.
5827
5828 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
5829 (LOONGSON_MACHTYPE): New macro, set to
5830 "machtype=lemote-yeeloong-2f-8.9inches".
5831 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
5832 additional argument to Linux.
5833
5834 2010-11-04 Robert Millan <rmh@gnu.org>
5835
5836 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
5837 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
5838 (its SATA disks are detected as slaveless IDE master drives on
5839 kFreeBSD).
5840 Reported by Carsten Aulbert.
5841
5842 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
5843
5844 * util/bin2h.c (main): Fix spelling error in generated output.
5845
5846 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
5847
5848 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
5849
5850 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
5853 vga= option is supplied.
5854
5855 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
5858 * util/grub.d/10_kfreebsd.in: Likewise.
5859 * util/grub.d/10_linux.in: Likewise.
5860 * util/grub.d/20_linux_xen.in: Likewise.
5861
5862 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
5865 argument as an argument to no-argument option.
5866
5867 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * util/grub.d/10_linux.in: Add missing load_video with explicit
5870 GRUB_GFXPAYLOAD_LINUX.
5871
5872 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
5875
5876 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
5879 elements with invlid index.
5880 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5881 * grub-core/disk/raid.c (insert_array): Automatically reallocate
5882 members.
5883 * include/grub/raid.h (grub_raid_member): New struct.
5884 (grub_raid_array): Transform devices and start_sector into usage of
5885 grub_raid_member. All users updated
5886 (allocated_devs): New member.
5887
5888 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
5891 is modified
5892
5893 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
5894
5895 NetBSD build fix for getline function conflict from gnulib.
5896
5897 * Makefile.util.def (libgrubkern.a): New library for grub kernel
5898 components that depend on gnulib headers.
5899 (libgrubmods.a): Renamed from earlier libgrub.a.
5900 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
5901
5902 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
5905 install rather than creating a broken install.
5906
5907 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * util/grub-setup.c (argp): Remove misleading example of installing to
5910 a partition.
5911
5912 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * util/grub-setup.c (setup): Clarify the error message.
5915
5916 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
5919
5920 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * grub-core/kern/emu/misc.c
5923 (grub_make_system_path_relative_to_its_root)
5924 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
5925
5926 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * grub-core/kern/emu/misc.c
5929 (grub_make_system_path_relative_to_its_root): Revert r2882.
5930
5931 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
5934 useless field head. All users updated.
5935 (free_subchunk): Correct handling of IN_REGION subchunk.
5936
5937 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
5938
5939 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
5940 (Supported kernels): Likewise.
5941
5942 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
5943
5944 Make mktemp invocations portable.
5945
5946 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
5947 exit if mktemp fails.
5948 * tests/grub_script_blockarg.in: Likewise.
5949 * tests/partmap_test.in: Likewise.
5950 * tests/util/grub-shell-tester.in: Likewise.
5951 * tests/util/grub-shell.in: Likewise.
5952 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5953 * Makefile.am: Likewise, and chain shell commands with `&&'
5954 instead of ';'.
5955 * util/grub-mkrescue.in: Use the same explicit template as above, and
5956 exit if mktemp fails.
5957
5958 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
5959
5960 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
5961 Linux kernel, reported by Dennis Schridde.
5962
5963 2010-10-17 Szymon Janc <szymon@janc.net.pl>
5964
5965 * grub-core/normal/auth.c (grub_auth_check_authentication):
5966 Set-but-not-used variable removed.
5967
5968 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * docs/grub.texi (GNU/Linux): Document APM unavailability with
5971 32-bit linux protocol.
5972
5973 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
5976 cursor shape for sanity.
5977
5978 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * docs/grub.texi (Installation): Document buggy BIOS install.
5981
5982 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * docs/grub.texi (Installation): Indent.
5985
5986 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * util/grub-setup.c (setup): New parameter allow_floppy.
5989 (arguments): New member allow_floppy.
5990 (argp_parser): Handle --allow-floppy.
5991 (main): Pass allow_floppy.
5992 * util/grub-install.in: New option --allow-floppy passed though to
5993 grub-setup.
5994
5995 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * util/grub-install.in: Handle partitionless disks.
5998
5999 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * util/grub-setup.c (setup): Don't clean blocklists before readability
6002 verfification.
6003
6004 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * docs/grub.texi (Installation): Document embedding zone. Remove
6007 obsolete grub-install example.
6008
6009 2010-10-16 Szymon Janc <szymon@janc.net.pl>
6010
6011 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6012 Set-but-not-used variable ifdef'ed.
6013 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
6014 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
6015 variable removed.
6016 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
6017 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
6018 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
6019 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
6020 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
6021 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
6022 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
6023 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
6024 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6025 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
6026 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
6027 Likewise.
6028
6029 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
6032 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
6033 enum value.
6034
6035 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
6038 synonym to _S5_. Needed for some DSDTs.
6039
6040 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 Userspace ACPI parser debugging.
6043
6044 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
6045 headers and add relevant defines. Don't include standard headers.
6046 (main) [GRUB_DSDT_TEST]: New function.
6047 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
6048 Don't declare functions.
6049
6050 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 Remove dead grub_efi_mm_fini.
6053
6054 * grub-core/kern/efi/mm.c (allocated_page): Removed.
6055 (ALLOCATED_PAGES_SIZE): Likewise.
6056 (MAX_ALLOCATED_PAGES): Likewise.
6057 (allocated_pages): Likewise.
6058 (grub_efi_allocate_pages): Don't record allocated pages.
6059 (grub_efi_free_pages): Likewise.
6060 (grub_efi_mm_init): Likewise.
6061 (grub_efi_mm_fini): Removed.
6062
6063 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
6066 (grub_efi_mm_init): Take into account the memory map size increase.
6067
6068 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
6071 (serial_hw_put): Wait based on real time rather than port reads. Don't
6072 roken ports.
6073 * include/grub/serial.h (grub_serial_port): New field broken.
6074
6075 2010-10-16 Robert Millan <rmh@gnu.org>
6076
6077 * grub-core/kern/emu/misc.c
6078 (grub_make_system_path_relative_to_its_root): Fix premature return
6079 when processing non-root ZFS filesystems.
6080 Reported by Sergio Talens-Oliag.
6081
6082 2010-10-15 Robert Millan <rmh@gnu.org>
6083
6084 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
6085 guarantee compressed ones are processed first.
6086
6087 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
6090 grub_efiemu_autocore.
6091
6092 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
6095 rather than 0x1b.
6096 (grub_console_getkey): Use correct jae opcode rather than ja.
6097
6098 2010-10-12 Robert Millan <rmh@gnu.org>
6099
6100 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
6101 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
6102 variable. All references updated.
6103
6104 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
6105
6106 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 Correctly distinguish mdraid flavours.
6109
6110 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
6111 (insert_array): New argument raid.
6112 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
6113 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
6114 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
6115
6116 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
6119 handling of special keys.
6120
6121 2010-10-02 Aleš Nesrsta <starous@volny.cz>
6122
6123 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
6124 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
6125
6126 2010-10-02 Aleš Nesrsta <starous@volny.cz>
6127
6128 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
6129 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
6130 users updated.
6131 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
6132 Use right endpoint when querying descriptor.
6133
6134 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 Clear out 0x80 color bit on EFI.
6137 Tested by: decoder
6138 Reported by: decoder and meta tech.
6139
6140 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
6141 (grub_console_setcolorstate): Clear out 0x80 bit.
6142 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
6143 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
6144 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
6145
6146 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
6149 Set to "auto".
6150
6151 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
6154 mo_file after freeing.
6155
6156 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
6159
6160 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
6163 flags.
6164
6165 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
6168 usage.
6169
6170 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 Put terminfo into core on ieee1275 and yeeloong (needed for console).
6173
6174 * gentpl.py: New groups terminfoinkernel and terminfomodule.
6175 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
6176 and terminfo.h when needed.
6177 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
6178 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
6179 (terminfo): Enable only on terminfokernel.
6180 (extcmd): Likewise.
6181 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
6182 * include/grub/lib/arg.h: Likewise.
6183 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
6184 incorrect usage of ->.
6185
6186 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
6189 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
6190
6191 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 Fix coreboot compilation.
6194
6195 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6196 Take VBE info into account even if only text is supported.
6197 (fill_vbe_info): Take into account the case when only VGA text
6198 is supported.
6199 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
6200 on coreboot, multiboot and qemu.
6201
6202 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
6205 debug messages.
6206 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
6207
6208 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
6211 parameters.
6212
6213 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
6216 if they were BSD-style.
6217
6218 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * grub-core/boot/i386/pc/lnxboot.S: Replace
6221 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
6222 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
6223
6224 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 Write embedding zone using Reed-Solomon.
6227
6228 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
6229 * grub-core/Makefile.am (rs_decoder.S): New target.
6230 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
6231 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
6232 (multiboot): Move to RS part.
6233 (post_reed_solomon): New label.
6234 (grub_boot_drive): Move to non-RS part since it's modified in memory
6235 on boot.
6236 Include rs_decoder.S.
6237 * grub-core/lib/reed_solomon.c: New file.
6238 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
6239 New definition.
6240 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
6241 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
6242 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
6243 * include/grub/partition.h (grub_partition_map): Change prototype of
6244 embed to allow returning additional sectors.
6245 * include/grub/reed_solomon.h: New file.
6246 * util/grub-setup.c (setup): Handle Reed-Solomon.
6247
6248 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
6249
6250 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
6251 i386 and x86-64 definedness tests.
6252
6253 2010-09-27 Yves Blusseau <blusseau@zetam.org>
6254
6255 Fix generation of kernel_syms.lst
6256
6257 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
6258 ASM_PREFIX
6259
6260 2010-09-26 Robert Millan <rmh@gnu.org>
6261
6262 Support degraded ZFS arrays in "grub-probe -t device" resolution.
6263
6264 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
6265 the pool is an array of devices, iterate through it and return the
6266 first device that passes a stat() test (instead of blindly returning
6267 the first one).
6268
6269 2010-09-26 Robert Millan <rmh@gnu.org>
6270
6271 Build fixes for GNU/kFreeBSD.
6272
6273 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
6274 to programs that require ZFS conversion.
6275 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
6276 kernels that don't have FLOPPY_MAJOR.
6277
6278 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
6279
6280 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
6281
6282 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
6283
6284 Fix grub-emu build.
6285
6286 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
6287 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
6288 mdraid09 and mdraid1x.
6289
6290 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
6291
6292 Re-enable grub-extras.
6293
6294 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
6295 avoid confusing Automake. Run autogen only twice, once for the top
6296 level and once for grub-core. Add Makefile.util.def and
6297 Makefile.core.def from extra modules to the appropriate autogen
6298 invocations. If Makefile.common exists in an extra module, include
6299 it in both Makefile.util.am and grub-core/Makefile.core.am;
6300 similarly, include any Makefile.util.common file in Makefile.util.am
6301 and any Makefile.core.common file in grub-core/Makefile.core.am.
6302 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
6303 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
6304 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
6305 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
6306
6307 * gentpl.py (gvar_add): Turn GVARS into a set.
6308 (global_variable_initializers): Sort global variables on output.
6309 (vars_init): New function.
6310 (first_time): Likewise.
6311 (library): Ensure that non-global variable initialisations are
6312 emitted before the first time we emit code for a library block.
6313 Append to variables rather than setting them. Only emit
6314 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
6315 each conditional path.
6316 (program): installdir() emits an Autogen macro, so must be passed to
6317 var_add rather than gvar_add.
6318 (data): Likewise.
6319 (script): Likewise.
6320 (rules): New function, centralising handling for different target
6321 types. Set up Guile association lists for first_time and vars_init,
6322 and send most output to a diversion so that variable initialisations
6323 can be emitted first.
6324 (module_rules): Use new rules function.
6325 (kernel_rules): Likewise.
6326 (image_rules): Likewise.
6327 (library_rules): Likewise.
6328 (program_rules): Likewise.
6329 (script_rules): Likewise.
6330 (data_rules): Likewise.
6331
6332 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
6333
6334 * .bzrignore: Add contrib and grub-core/contrib. Remove
6335 grub-core/Makefile.gcry.am.
6336
6337 2010-09-24 Yves Blusseau <blusseau@zetam.org>
6338
6339 * grub-core/lib/LzFind.c: Add missing include.
6340 * grub-core/lib/LzmaEnc.c: Likewise.
6341 * grub-core/script/lexer.c: Likewise.
6342 * grub-core/script/yylex.l: Likewise.
6343 * util/grub-macho2img.c: Likewise.
6344 * util/grub-menulst2cfg.c: Likewise.
6345 * util/grub-mklayout.c: Likewise.
6346 * util/grub-mkpasswd-pbkdf2.c
6347 * util/grub-mkrelpath.c: Likewise.
6348 * util/resolve.c: Likewise.
6349
6350 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
6351
6352 * Makefile.util.def (example_unit_test): Add
6353 grub-core/gnulib/libgnu.a.
6354
6355 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
6356
6357 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
6358
6359 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 Support xz compression on yeeloong.
6362
6363 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
6364 * configure.ac: Check for LZMA.
6365 * grub-core/Makefile.core.def (xz_decompress): New target.
6366 (none_decompress): Likewise.
6367 * grub-core/boot/decompressor/minilib.c: New file.
6368 * grub-core/boot/decompressor/none.c: Likewise.
6369 * grub-core/boot/decompressor/xz.c: Likewise.
6370 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
6371 * grub-core/kern/mips/cache_flush.S: Likewise.
6372 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
6373 * grub-core/kern/mips/startup.S: Move first stage to ...
6374 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
6375 nomacro.
6376 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
6377 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
6378 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
6379 Allocate statically.
6380 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
6381 Allocate statically or use scratch. Don't check CRC32.
6382 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
6383 Allocate statically. Don't check CRC32.
6384 * include/grub/decompressor.h: New file.
6385 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
6386 Removed.
6387 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
6388 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
6389 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
6390 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
6391 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
6392 * util/grub-mkimage.c (grub_compression_t): New type.
6393 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
6394 (image_target_desc): New field default_compression.
6395 (image_targets): Adjust yeeloong targets.
6396 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
6397 (compress_kernel): New parameter comp.
6398 (generate_image): Likewise. Handle new compression case.
6399 (options): New option --compression
6400 (help): Likewise.
6401 (main): Handle new option.
6402
6403 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
6404
6405 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
6406
6407 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
6408
6409 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
6410 typo in __i386__ conditional.
6411
6412 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
6415 include.
6416
6417 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 Implement EFI and ACPI multiboot2 extensions.
6420
6421 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
6422 new tags as supported.
6423 (acpiv2_size): New function.
6424 (grub_multiboot_get_mbi_size): Take new tags into account.
6425 (grub_multiboot_make_mbi): Add new tags.
6426 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6427
6428 2010-09-21 Aleš Nesrsta <starous@volny.cz>
6429
6430 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
6431 Added missing configuration of USB device.
6432
6433 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6434
6435 * grub-core/normal/menu_entry.c (run): Make sure we always return
6436 a value.
6437
6438 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6439
6440 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
6441 NumberOfPages is UINT64 according to the UEFI specification, not
6442 UINTN. Fix printf format.
6443
6444 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6445
6446 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
6447 `err' to grub_usb_err_t.
6448 Reported and tested by: KESHAV P.R.
6449
6450 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6451
6452 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
6453 tpart non-const, so that we can assign to it. (Since this is a
6454 typedef, the constness refers to the pointer rather than what it
6455 points to.)
6456
6457 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6458
6459 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
6460 $(top_srcdir)/grub-core/gnulib as well as
6461 $(top_builddir)/grub-core/gnulib.
6462 Reported by: KESHAV P.R.
6463
6464 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6465
6466 * util/grub-install.in: Fix the bootloader ID option to be
6467 consistently --bootloader-id, not --bootloader_id.
6468 Reported by: KESHAV P.R.
6469
6470 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6471
6472 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
6473 check hash checksum." consistently translatable.
6474
6475 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6476
6477 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
6478 $(top_builddir).
6479
6480 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6481
6482 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
6483 (GRUB_MOD_INIT): Register sha1sum command.
6484 (GRUB_MOD_FINI): Unregister sha1sum command.
6485
6486 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6487
6488 Keep boot and grub directory names in sync with utils scripts
6489
6490 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
6491 * config.h.in: Add previous macros.
6492 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
6493 * util/grub-install.in: Use $bootdir and $grubdir variables.
6494
6495 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6496
6497 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
6498 convert partition names to disk names if the new `convert' parameter
6499 is set.
6500 (grub_util_biosdisk_get_grub_dev): If opening the disk device
6501 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
6502 disk in its own right. This can happen with Xen disk images.
6503
6504 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6505
6506 * util/grub-editenv.c: Update strings to avoid warnings when generating
6507 grub.pot file.
6508 * util/grub-setup.c: Likewise.
6509
6510 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 * configure.ac: Change version to 1.99~beta0.
6513
6514 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6517 Add BADRAM.
6518 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
6519 Likewise.
6520 * include/multiboot.h: Resynced with specification.
6521 * include/multiboot2.h: Likewise.
6522
6523 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6524
6525 Fix po directory handling.
6526
6527 * configure.ac: Create po/Makefile.in rather than po/Makefile.
6528 * grub-core/gnulib/Makefile.am: Import gettext module.
6529 * m4/gnulib-cache.m4: Likewise.
6530 * m4/gnulib-comp.m4: Likewise.
6531 * m4/gettext.m4: New file, from gnulib.
6532 * m4/glibc2.m4: Likewise.
6533 * m4/iconv.m4: Likewise.
6534 * m4/intdiv0.m4: Likewise.
6535 * m4/intl.m4: Likewise.
6536 * m4/intldir.m4: Likewise.
6537 * m4/intlmacosx.m4: Likewise.
6538 * m4/intmax.m4: Likewise.
6539 * m4/inttypes-pri.m4: Likewise.
6540 * m4/lcmessage.m4: Likewise.
6541 * m4/lib-ld.m4: Likewise.
6542 * m4/lib-link.m4: Likewise.
6543 * m4/lib-prefix.m4: Likewise.
6544 * m4/lock.m4: Likewise.
6545 * m4/nls.m4: Likewise.
6546 * m4/po.m4: Likewise.
6547 * m4/printf-posix.m4: Likewise.
6548 * m4/progtest.m4: Likewise.
6549 * m4/threadlib.m4: Likewise.
6550 * m4/uintmax_t.m4: Likewise.
6551 * m4/visibility.m4: Likewise.
6552 * po/Makefile.am: Remove.
6553 * po/Makefile.in.in: New file, from gettext.
6554 ($(DOMAIN).pot-update): Support POTFILES-shell.
6555 * po/Makevars: New file.
6556 * po/POTFILES-shell: Rename to ...
6557 * po/POTFILES-shell.in: ... this. Update.
6558 * po/POTFILES: Rename to ...
6559 * po/POTFILES.in: ... this. Update.
6560 * po/Rules-quot: New file, from gettext.
6561 * po/boldquot.sed: Likewise.
6562 * po/en@boldquot.header: Likewise.
6563 * po/en@quot.header: Likewise.
6564 * po/insert-header.sin: Likewise.
6565 * po/quot.sed: Likewise.
6566 * po/remove-potcdate.sin: Likewise.
6567
6568 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
6571
6572 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6573
6574 * util/grub.d/20_linux_xen.in: Use submenus.
6575
6576 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 Support submenus.
6579
6580 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
6581 parameter submenu. All users updated.
6582 * grub-core/normal/main.c (free_menu): Rename to ...
6583 (grub_normal_free_menu): ... this. Made global.
6584 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
6585 if requested.
6586 * grub-core/normal/menu_entry.c (screen): New field submenu.
6587 (make_screen): Set submenu.
6588 (run): Open new context if requested.
6589 * include/grub/menu.h (grub_menu_entry): New field submenu.
6590 * include/grub/normal.h (grub_normal_free_menu): New proto.
6591
6592 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 Menu entries extractor.
6595
6596 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
6597 variants.
6598 (GRUB_MOD_INIT): Register new variants.
6599 (GRUB_MOD_FINI): Unregister new variants.
6600 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
6601 into grub_cmd_legacy_source.
6602 (grub_cmd_legacy_source): Implement extractor variants.
6603 (GRUB_MOD_INIT): Register new variants.
6604 (GRUB_MOD_FINI): Unregister new variants.
6605 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
6606 as an extractor.
6607 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
6608 search as an extractor.
6609 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
6610 test as an extractor.
6611 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
6612 as an extractor.
6613 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
6614 (grub_env_new_context): New function.
6615 (grub_env_context_open): Likewise.
6616 (grub_env_extractor_open): Likewise.
6617 (grub_env_extractor_close): Likewise.
6618 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
6619 grub_extractor_level.
6620 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
6621 * include/grub/env.h (grub_env_extractor_open): New proto.
6622 (grub_env_extractor_close): Likewise.
6623 * include/grub/normal.h (grub_extractor_level): New external variable.
6624
6625 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 Make cutmem accept a region specification.
6628 Suggested by: Samuel Thibault
6629
6630 * grub-core/mmap/mmap.c (parsemem): New function.
6631 (grub_cmd_cutmem): Handle new arguments.
6632
6633 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 New command cutmem.
6636
6637 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
6638 (GRUB_MOD_INIT): Register new command.
6639 (GRUB_MOD_FINI): Unregister new command.
6640
6641 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 Support some annoying BSD and Minix subpartitions.
6644
6645 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
6646 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
6647 Properly handle concatenation.
6648 * grub-core/kern/device.c (grub_device_iterate): Likewise.
6649 * grub-core/normal/completion.c (iterate_partition): Likewise.
6650 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
6651 contain partition. All users updated.
6652 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
6653 struct.
6654 (grub_openbsdlabel_partition_map): Likewise.
6655 (bsdlabel_partition_map_iterate): Rename to ..
6656 (iterate_real): ... this. New arguments sector, freebsd and pmap.
6657 (bsdlabel_partition_map_iterate): New function.
6658 (netopenbsdlabel_partition_map_iterate): Likewise.
6659 (netbsdlabel_partition_map_iterate): Likewise.
6660 (openbsdlabel_partition_map_iterate): Likewise.
6661 (GRUB_MOD_INIT): Register new partmaps.
6662 (GRUB_MOD_FINI): Unregister new partmaps.
6663 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
6664 (grub_partition_msdos_iterate): ... this. All users updated.
6665 Don't support embedding other than in a minix partition.
6666 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
6667 proto.
6668 * include/grub/partition.h (grub_partition): New field msdostype.
6669 * util/grub-install.in: Handle openbsd and netbsd types being in
6670 part_bsd module.
6671
6672 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
6675
6676 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
6677 * grub-core/Makefile.core.def (mdraid): Renamed to ...
6678 (mdraid09): ... this.
6679 (mdraid1x): New module.
6680 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
6681 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
6682
6683 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
6686 vsprintf.
6687
6688 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6689
6690 * grub-core/commands/efi/lsefimmap.c: Correct header.
6691 * NEWS: Update.
6692
6693 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6694
6695 * util/grub-editenv.c (argp_parser): Don't pass translated strings
6696 as printf format strings; the translations might contain '%' which
6697 could cause a crash.
6698 (main): Likewise.
6699 * util/grub-fstest.c (argp_parser): Likewise.
6700 * util/grub-setup.c (argp_parser): Likewise.
6701 (main): Likewise.
6702
6703 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 Use argp in grub-fstest.
6706
6707 * util/grub-fstest.c: Don't include getopt.h.
6708 Include argp.h.
6709 (root): New variable.
6710 (args_count): Likewise.
6711 (nparm): Likewise.
6712 (num_disks): Likewise.
6713 (images): Likewise.
6714 (cmd): Likewise.
6715 (debug_str): Likewise.
6716 (args): Likewise.
6717 (options): Transformed to argp.
6718 (usage): Removed.
6719 (main): Split argument parsing into ...
6720 (argp_parser): ... this. Changed to argp format.
6721 (argp): New variable.
6722 (main): Use argp_parse.
6723
6724 2010-09-20 Tristan Gingold <gingold@free.fr>
6725 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
6726 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/commands/efi/lsefimmap.c: New file.
6729 * grub-core/Makefile.core.def (lsefimmap): New module.
6730 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
6731
6732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 Pause the execution (10s max) if any errors are displayed so the user
6735 has a chance to see them.
6736
6737 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
6738 (grub_print_error): Increment grub_err_printed_errors.
6739 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
6740 execution if any errors were displayed.
6741 (show_menu): Remove old code for pause.
6742 * grub-core/normal/menu_entry.c (run): Likewise.
6743 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
6744 users updated.
6745 (grub_normal_get_char_counter): Likewise.
6746 * include/grub/err.h (grub_err_printed_errors): New external variable.
6747 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
6748
6749 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 Support multiboot VBE info.
6752
6753 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6754 Take VBE info into account.
6755 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
6756 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6757 Call fill_vbe_info when appropriate.
6758 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
6759 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
6760 as supported.
6761 (grub_multiboot_get_mbi_size): Take new tags into account.
6762 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
6763 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6764 Call fill_vbe_tag when appropriate.
6765 (grub_multiboot_make_mbi): Properly align tags.
6766 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
6767 function.
6768 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
6769 proto.
6770 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
6771
6772 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 Suport manual terminal geometry specification.
6775
6776 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
6777 Save state in grub_ofconsole_terminfo_output.
6778 (grub_ofconsole_term): Use grub_terminfo_getwh.
6779 (grub_ofconsole_getwh): Removed.
6780 * grub-core/term/serial.c (grub_serial_getwh): Removed.
6781 (grub_serial_term): Use grub_terminfo_getwh.
6782 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
6783 (options): New struct.
6784 (OPTION_*): New enum.
6785 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
6786 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
6787 width and height.
6788 (grub_terminfo_getwh): New proto.
6789 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
6790
6791 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 Handle legacy "terminal" command.
6794
6795 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
6796 and FLAG_TERMINAL.
6797 (legacy_commands): Add terminal and title.
6798 (grub_legacy_parse): Handle terminal. Simplify title handling.
6799
6800 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
6803 parameters overflow.
6804
6805 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6806
6807 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
6808 widthspec.h.
6809
6810 * docs/grub.texi (Shell-like scripting): Document `!'.
6811 (Network): Simplify using new i386-pc-pxe format. Mention
6812 grub-mknetdir.
6813
6814 * NEWS: Update.
6815
6816 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6817
6818 * Makefile.am (SUBDIRS): Restore "."; it's important to force
6819 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
6820 when needed.
6821
6822 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6823
6824 * grub-core/commands/efi/lsefisystab.c: Correct header.
6825 * grub-core/commands/efi/lssal.c: Likewise.
6826 * grub-core/commands/testload.c: Likewise.
6827
6828 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6829
6830 * util/grub-mkrescue.in: Add explicit root argument to --set to
6831 prevent the UUID being interpreted as an argument to --set (matches
6832 previous change to prepare_grub_to_access_device).
6833
6834 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6835
6836 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
6837 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
6838 the verbosity of later #ifs.
6839 (find_partition_start): Define this function on FreeBSD too.
6840 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
6841 function.
6842 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
6843 on FreeBSD.
6844
6845 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6846
6847 * util/grub-editenv.c: Use argp instead of getopt.
6848
6849 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6850
6851 * util/grub-setup.c: Use argp instead of getopt.
6852
6853 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6854
6855 Use gnulib-tool to create gnulib source files.
6856
6857 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
6858 grub-core/gnulib directories
6859 * .bzignore: Add **/.deps and autogenerated gnulib files
6860 * configure.ac: Assign auxiliary directory to build-aux, add invocation
6861 of gnulib macros, add grub-core/gnulib/Makefile
6862 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
6863 include m4 directory to aclocal.
6864 * Makefile.util.def: Remove direct compilation of gnulib source files
6865 and use the new grub-core/gnulib/libgnu.a.
6866 * build-aux/config.rpath: move config.rpath from top directory to
6867 build-aux
6868 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
6869 in gnulib headers
6870 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
6871 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
6872 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
6873 header.
6874 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
6875 string.
6876
6877 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6878
6879 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
6880 grub-core/genmod.sh and grub-core/gensyminfo.sh
6881
6882 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
6883
6884 Add a test for echo command options.
6885
6886 * tests/grub_cmd_echo.in: New test.
6887 * Makefile.util.def: Rules for new test.
6888
6889 2010-09-20 Szymon Janc <szymon@janc.net.pl>
6890
6891 Remove crc.mod and move crc command to hashsum.mod.
6892 Remove lib/crc.c - users updated to use gcrypt implementation.
6893
6894 * grub-core/commands/crc.c: Removed.
6895 * grub-core/Makefile.core.def (crc): Module removed.
6896 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
6897 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
6898 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
6899 * grub-core/lib/crc.c: Removed.
6900 * include/grub/lib/crc.h: Removed.
6901 * Makefile.util.def (crc): Remove lib/crc.c
6902 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
6903 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
6904 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
6905 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
6906 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
6907 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
6908
6909 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
6912
6913 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 Split config.h for util and core.
6916
6917 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
6918 (ADDR32): Likewise.
6919 (DATA32): Likewise.
6920 (BSS_START_SYMBOL): Likewise.
6921 (END_SYMBOL): Likewise.
6922 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
6923 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
6924 * config.h.in: New file.
6925 * configure.ac: Use config-util.h as config define file.
6926 Rename MACHINE into GRUB_MACHINE. All users updated.
6927 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
6928 updated.
6929 (NESTED_FUNC_ATTR): Likewise.
6930 Substitue new variables.
6931 (COND_HAVE_ASM_USCORE): New conditional.
6932 * grub-core/Makefile.am (ASM_PREFIX): New variable.
6933 (kernel_syms.lst): Use ASM_PREFIX.
6934 * grub-core/kern/emu/console.c: Include config-util.h.
6935 * grub-core/kern/emu/misc.c: Likewise.
6936 * grub-core/kern/emu/mm.c: Likewise.
6937 * include/grub/emu/misc.h: Likewise.
6938 * include/grub/libgcc.h: Likewise.
6939
6940 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6941
6942 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
6943 constants usage.
6944 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
6945 Fix GRUB_TERM_KEY_* constants usage.
6946 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
6947
6948 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
6951 print pointer.
6952 * grub-core/bus/usb/uhci.c: Remove empty define.
6953 (grub_uhci_check_transfer): Add missing cast.
6954 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
6955 print pointer.
6956 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
6957 PRIuGRUB_SIZE.
6958 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
6959
6960 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/Makefile.core.def (legacycfg): Add
6963 lib/i386/pc/vesa_modes_table.c on emu.
6964
6965 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6966
6967 Reduce number of temporary files generated by build system.
6968
6969 * grub-core/gencmdlist.sh: Removed.
6970 * grub-core/genfslist.sh: Removed.
6971 * grub-core/genhandlerlist.sh: Removed.
6972 * grub-core/genmodsrc.sh: Removed.
6973 * grub-core/genpartmaplist.sh: Removed.
6974 * grub-core/genparttoollist.sh: Removed.
6975 * grub-core/gentermiinallist.sh: Removed.
6976 * grub-core/genvideolist.sh: Removed.
6977
6978 * grub-core/genmod.sh.in: New file.
6979 * grub-core/gensyminfo.sh.in: New file.
6980
6981 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
6982 * conf/Makefile.extra-dist: Update with new files.
6983 * gentpl.py: Remove rules related to unnecessary temporary files.
6984 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
6985 and und-* files.
6986 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
6987 genmod.sh scripts.
6988 * grub-core/bus/usb/uhci.c: Remove empty #define.
6989 * grub-core/genmoddep.awk: Updated with new syminfo format.
6990 * util/bash-completion.d/Makefile.am: Add config.log to
6991 CLEANFILES.
6992
6993 2010-09-19 Yves Blusseau <blusseau@zetam.org>
6994
6995 * Makefile.util.def: Add forgotten $(LIBINTL) library.
6996
6997 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6998
6999 * util/grub-mkconfig.in: Check the config script for syntax errors
7000 before saving.
7001
7002 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
7003 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * Makefile.util.def (grub-install): Use util/grub-install.in on all
7006 platforms.
7007 * util/grub-install.in: Add EFI and IEEE1275 support.
7008 * util/i386/efi/grub-install.in: Removed.
7009 * util/ieee1275/grub-install.in: Likewise.
7010
7011 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
7014 (grub_cmd_cmosclean): Likewise.
7015 (GRUB_MOD_INIT): Register command cmosclean.
7016 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
7017 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
7018
7019 2010-09-18 Carles Pina i Estany <carles@pina.cat>
7020 2010-09-18 Aleš Nesrsta <starous@volny.cz>
7021 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 Add keyboard layouts support.
7024
7025 * Makefile.util.def (grub-mklayout): New file.
7026 (grub-kbdcomp): New script.
7027 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
7028 Add keyboard_layouts.h.
7029 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
7030 commands/boot.c on yeeloong.
7031 (keylayouts): New module.
7032 * grub-core/bus/usb/ohci.c
7033 * grub-core/bus/usb/uhci.c
7034 * grub-core/bus/usb/usbhub.c (rescan): New variable.
7035 (grub_usb_add_hub): Poll interrupt pipe for device handling.
7036 (attach_root_port): Likewise.
7037 (poll_nonroot_hub): Likewise.
7038 (grub_usb_poll_devices): Likewise.
7039 (detach_device): Close transfer.
7040 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
7041 function.
7042 (grub_usb_bulk_setup_readwrite): Likewise.
7043 (grub_usb_bulk_finish_readwrite): Likewise.
7044 * grub-core/commands/keylayouts.c: New file.
7045 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
7046 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
7047 aliases.
7048 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
7049 support scancode 2.
7050 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
7051 * include/grub/keyboard_layouts.h: New file.
7052 * util/grub-mklayout.c: New file.
7053 * util/grub-kbdcomp.in: Likewise.
7054
7055 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 Unify memory types.
7058
7059 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
7060 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
7061 types.
7062 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
7063 (grub_upper_mem): Likewise.
7064 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
7065 * include/grub/memory.h (grub_memory_type_t): New enum.
7066 All users updated.
7067
7068 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 * grub-core/Makefile.core.def (lsapm): New module.
7071 * grub-core/commands/i386/pc/lsapm.c: New file.
7072 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
7073 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
7074 Likewise.
7075 * include/grub/i386/pc/apm.h: New file.
7076 * include/multiboot.h (multiboot_apm_info): New struct.
7077
7078 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 GRUB-legacy configuration file support.
7081
7082 * Makefile.util.def (grub-menulst2cfg): New util.
7083 * docs/man/grub-menulst2cfg.h2m: New file.
7084 * grub-core/Makefile.core.def (legacycfg): New module.
7085 * grub-core/commands/legacycfg.c: New file.
7086 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
7087 (grub_normal_add_menu_entry): ... this.
7088 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
7089 (grub_normal_set_password): ...this.
7090 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
7091 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
7092 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
7093 * grub-core/lib/legacy_parse.c: New file.
7094 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
7095 * include/grub/i386/pc/vesa_modes_table.h: New file.
7096 * include/grub/legacy_parse.h: Likewise.
7097 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
7098 * util/grub-menulst2cfg.c: New file.
7099
7100 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7101
7102 * grub-core/kern/emu/hostdisk.c
7103 (convert_system_partition_to_system_disk): Initialise node.
7104
7105 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7106
7107 * grub-core/kern/emu/hostdisk.c
7108 (convert_system_partition_to_system_disk): Fix devmapper memory pool
7109 leak.
7110 Reported and based on patch by: Modestas Vainius.
7111
7112 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7113
7114 Fix DM-RAID probing with recent versions of device-mapper udev
7115 rules.
7116
7117 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
7118 canonicalise device paths under /dev/mapper/.
7119 (convert_system_partition_to_system_disk): Compare the
7120 uncanonicalised path to /dev/mapper/ rather than the canonicalised
7121 path, since device nodes under /dev/mapper/ are often symlinks.
7122
7123 2010-09-17 Yves Blusseau <blusseau@zetam.org>
7124
7125 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
7126
7127 2010-09-16 Yves Blusseau <blusseau@zetam.org>
7128
7129 * configure.ac: Avoid some annoying error messages if freetype-config
7130 program is not found.
7131
7132 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7133
7134 Support RAID on virtio devices, and others.
7135
7136 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
7137 Rename to ...
7138 [__MINGW32__] (grub_find_device): ... this.
7139 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
7140 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
7141 reasonable default if dir is NULL.
7142 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
7143 ...
7144 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
7145 (grub_guess_root_device): Update callers.
7146 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
7147
7148 * util/raid.c (grub_util_getdiskname): Remove.
7149 (grub_util_raid_getmembers): Use grub_find_device rather than
7150 grub_util_getdiskname.
7151
7152 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7153
7154 * docs/grub.texi (serial): Remove obsolete comment about GRUB
7155 needing to be compiled with serial support.
7156 (ls): Indicate that multiple files are accepted.
7157 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
7158 indicate that multiple files are accepted.
7159
7160 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7161
7162 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
7163 libgrub_a_init.c, and util/bash-completion.d/grub.
7164
7165 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * util/grub-setup.c (setup): Fix incorrect container semantics.
7168
7169 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7170
7171 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
7172 misusage.
7173 Reported by: J. Nick Terry
7174
7175 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 Move embedding routines to partmap sources files.
7178
7179 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
7180 [GRUB_UTIL]: New variable.
7181 (gpt_partition_map_iterate): Set part.parent.
7182 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
7183 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
7184 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
7185 New function.
7186 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
7187 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
7188 (grub_partition_map) [GRUB_UTIL]: New field embed.
7189 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
7190 (setup): Use ->embed.
7191
7192 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
7195 function.
7196 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
7197 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
7198
7199 2010-09-15 Yves Blusseau <blusseau@zetam.org>
7200
7201 Add function to get completions from usage.
7202
7203 * util/bash-completion.d/grub-completion.bash.in: Add function to get
7204 completions from usage. Use LC_ALL=C to get options properly.
7205
7206 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/gnulib/basename-lgpl.c: Imported.
7209 * grub-core/gnulib/basename.c: Likewise.
7210 * grub-core/gnulib/dirname-lgpl.c: Likewise.
7211 * grub-core/gnulib/dirname.c: Likewise.
7212 * grub-core/gnulib/dirname.h: Likewise.
7213 * grub-core/gnulib/stripslash.c: Likewise.
7214
7215 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7216
7217 * grub-core/gnulib/error.c: Resynced.
7218 * grub-core/gnulib/getopt.c: Likewise.
7219 * grub-core/gnulib/getopt_int.h: Likewise.
7220 * grub-core/gnulib/regex.h: Likewise.
7221 * grub-core/gnulib/regex_internal.c: Likewise.
7222 * grub-core/gnulib/regex_internal.h: Likewise.
7223
7224 2010-09-15 Szymon Janc <szymon@janc.net.pl>
7225
7226 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
7227 CRC calculations and validity checks.
7228 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
7229 calculations.
7230
7231 2010-09-15 Szymon Janc <szymon@janc.net.pl>
7232
7233 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
7234
7235 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 Fix incorrect echo options handling.
7238 Reported by: Yves Blusseau.
7239
7240 * include/grub/command.h (grub_command_flags_t): New flags
7241 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
7242 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
7243 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
7244
7245 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
7248 users updated.
7249 (GRUB_COMMAND_FLAG_MENU): Likewise.
7250 (GRUB_COMMAND_FLAG_BOTH): Likewise.
7251 (GRUB_COMMAND_FLAG_TITLE): Removed.
7252 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
7253 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
7254 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
7255 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
7256 (grub_command_flags_t): New enum. All users updated.
7257
7258 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
7259
7260 Fix solaris compilation.
7261
7262 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
7263 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
7264 (grub-emu-list): Likewise.
7265
7266 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 Remove deprecated root command.
7269
7270 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
7271 updated.
7272
7273 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * util/i386/pc/grub-setup.c: Merge this ...
7276 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
7277 * util/grub-setup.c: ... into this.
7278 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
7279 New struct.
7280
7281 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
7284 possible.
7285
7286 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
7289 allocate p.
7290
7291 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7294 explicit root argument to set to prevent UUID to be interpreted as
7295 argument to set.
7296
7297 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
7300
7301 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 Don't export grub_gate_a20.
7304
7305 * grub-core/kern/i386/pc/init.c: Remove leftovers.
7306 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
7307 to ...
7308 (grub_gate_a20): ... this. All users updated.
7309 * include/grub/i386/pc/init.h: Removed. All users updated.
7310
7311 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 Create euro.pf2 which supports most European languages.
7314
7315 * Makefile.am (grubdata_DATA): Add euro.pf2.
7316 (euro.pf2): New target.
7317 (CLEANFILES): Add euro.pf2.
7318
7319 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * configure.ac: Disable emu-usb by default to prevent inadvertent
7322 device takeover.
7323
7324 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 Disable usbserial on grub-emu since our libusb code isn't good enough
7327 yet.
7328
7329 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
7330 (usbserial_pl2303): Likewise.
7331 (usbserial_ftdi): Likewise.
7332
7333 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * include/grub/disk.h (grub_disk): Remove has_partitions.
7336 All users updated.
7337 * disk/loopback.c (grub_loopback): Remove has_partitions.
7338 All users updated.
7339 (options): Remove partitions. All users updated.
7340 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
7341 * util/i386/pc/grub-setup.c (setup): copy partition table only when
7342 actual partition table is found.
7343
7344 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Remove readability checks (too many false negatives).
7347
7348 * util/grub-install.in: Remove readability checks.
7349 * util/grub-mkconfig.in: Likewise.
7350 * util/grub.d/10_hurd.in: Likewise.
7351 * util/grub.d/10_kfreebsd.in: Likewise.
7352 * util/grub.d/10_linux.in: Likewise.
7353 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
7354 way.
7355
7356 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 Enable acpi shutdown on all ACPI platforms.
7359
7360 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
7361 on coreboo, multiboot and EFI.
7362 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
7363 (grub_acpi_halt): Likewise.
7364 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
7365 (grub_cmd_halt): Don't call grub_acpi_halt directly.
7366 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
7367 * grub-core/lib/i386/halt.c (grub_halt)
7368 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
7369
7370 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
7373 context.
7374
7375 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * grub-core/video/efi_gop.c: Fix over-80-chars line.
7378 * grub-core/video/efi_uga.c: Likewise.
7379
7380 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 Filter devaliases and never open same device twice.
7383
7384 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
7385 (last_ihandle): Likewise.
7386 (ofdisk_hash_ent): New member shortest.
7387 (ofdisk_hash_add): Add canonical path too.
7388 (scan): New function.
7389 (grub_ofdisk_iterate): Iterate over hashed entries.
7390 (compute_dev_path): Don't add :0.
7391 (grub_ofdisk_open): Don't really open the disk.
7392 (grub_ofdisk_close): Avoid closing unrelated disk.
7393 (grub_ofdisk_read): Implement reopen logic.
7394 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
7395 New function.
7396 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
7397 New proto.
7398
7399 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 Fix sparc64.
7402
7403 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
7404 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
7405 right address. Add sparc64_ieee1275_ldflags.
7406 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
7407 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
7408 to grub_host_to_target_addr
7409 (load_image): Likewise.
7410
7411 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * grub-core/normal/completion.c (complete_file): Handle device
7414 containing slash.
7415 Fix based on patch by Doug Nazar.
7416
7417 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 grub-mknetdir script.
7420
7421 * Makefile.util.def (grub-mknetdir): New module.
7422 * tests/util/grub-shell.in: Support boot=net
7423 * util/grub-mknetdir.in: New file.
7424
7425 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 videoinfo on non-vbe.
7428
7429 * grub-core/Makefile.core.def (vbeinfo): Removed.
7430 (vbetest): Removed.
7431 (videoinfo): New module.
7432 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
7433 * grub-core/commands/i386/pc/vbetest.c: Removed.
7434 * grub-core/commands/videoinfo.c: New file.
7435 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
7436 specification.
7437 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
7438 as vbetest.
7439 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
7440 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
7441 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
7442 mode_number. New parameter mode. All users updated.
7443 (grub_video_gop_iterate): New function.
7444 (grub_video_efi_gop): New member iterate.
7445 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
7446 (grub_vbe_set_video_mode): Remove setting useless fields.
7447 (vbe2videoinfo): New function.
7448 (grub_video_vbe_iterate): Likewise.
7449 (grub_video_vbe_setup): Use vbe2videoinfo.
7450 (grub_video_vbe_print_adapter_specific_info): New function.
7451 (grub_video_vbe_adapter): New fields iterate and
7452 print_adapter_specific_info.
7453 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
7454 All users updated.
7455 (grub_video_mode_info): New field mode_number.
7456 (grub_video_adapter): New fields iterate and
7457 print_adapter_specific_info.
7458
7459 2010-09-13 Tristan Gingold <gingold@free.fr>
7460 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
7461 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 * grub-core/commands/efi/lsefisystab.c: New file.
7464 * grub-core/commands/efi/lssal.c: Likewise.
7465 * grub-core/Makefile.core.def (lsacpi): New module.
7466 (lsefisystab): Likewise.
7467 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
7468 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
7469 (grub_efi_sal_system_table): New struct.
7470 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
7471 (grub_efi_sal_system_table_memory_descriptor): Likewise.
7472 (grub_efi_sal_system_table_platform_features): Likewise.
7473 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
7474 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
7475 (grub_efi_sal_system_table_ap_wakeup): Likewise.
7476 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
7477
7478 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 Support explicit user claim that a device is BIOS-visible.
7481
7482 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
7483 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
7484 * grub-core/kern/emu/hostdisk.c
7485 (convert_system_partition_to_system_disk): Support mdX.
7486 (find_system_device): New parameter add. All users updated.
7487 (grub_util_biosdisk_is_present): New function.
7488 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
7489 proto.
7490
7491 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Search hints support.
7494
7495 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
7496 All users updated.
7497
7498 2010-09-13 Yves Blusseau <blusseau@zetam.org>
7499
7500 Bash completion script for util commands
7501
7502 * Makefile.am: Add util/bash-completion.d directory
7503 * configure.ac: Likewise.
7504 * util/bash-completion.d/Makefile.am: New file.
7505 * util/bash-completion.d/grub-completion.bash.in: Likewise.
7506
7507 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
7510 (print_backlog): set backlog_ucs4 and backlog_glyphs.
7511 Reported by: Yves Blusseau.
7512
7513 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
7516 partition size and offset.
7517
7518 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
7521
7522 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
7525
7526 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7527
7528 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
7529 (grub_xvasprintf): Likewise.
7530
7531 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
7534
7535 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
7538 args ending with NULL.
7539
7540 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
7543 pointer.
7544
7545 2010-09-11 Szymon Janc <szymon@janc.net.pl>
7546
7547 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
7548
7549 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 Shutdown using ACPI.
7552
7553 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
7554 * grub-core/commands/acpihalt.c: New file.
7555 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
7556 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
7557 (grub_acpi_halt): New proto.
7558 (GRUB_ACPI_SLP_EN): New const.
7559 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
7560 (GRUB_ACPI_OPCODE_*): New enum.
7561 (GRUB_ACPI_EXTOPCODE_*): Likewise.
7562
7563 2010-09-11 Tristan Gingold <gingold@free.fr>
7564 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
7565 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * commands/lsacpi.c: New file.
7568 * grub-core/Makefile.core.def (lsacpi): New module.
7569 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
7570 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
7571 (grub_acpi_madt_entry_header): New struct.
7572 (grub_acpi_madt): Likewise.
7573 (grub_acpi_madt_entry_interrupt_override): Likewise.
7574 (grub_acpi_madt_entry_sapic): Likewise.
7575 (grub_acpi_madt_entry_lsapic): Likewise.
7576 (grub_acpi_madt_entry_platform_int_source): Likewise.
7577 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
7578 (PRIuGRUB_UINT32_T): Likewise.
7579 (PRIxGRUB_UINT64_T): Likewise.
7580
7581 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 Implement loading palette on ieee1275_fb.
7584
7585 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
7586 (have_setcolors): Likewise.
7587 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
7588 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
7589 (grub_video_ieee1275_set_palette): Implement.
7590
7591 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7592 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
7593
7594 * util/grub-install.in (grub_partition): New variable.
7595 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
7596 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
7597 Fixes a bug reported by Yves Blusseau.
7598
7599 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 Fix emu on mipsel.
7602
7603 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
7604 =grub_cpu_flush_cache on all mips and not only yeeloong.
7605 * configure.ac (COND_mips): New conditional.
7606 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
7607 platforms.
7608 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
7609 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
7610 [GRUB_LINKER_HAVE_INIT]: New function.
7611 (grub_emu_post_init): Likewise.
7612 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
7613 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
7614 * include/grub/cache.h (_mips): Include mips/cache.h.
7615 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
7616 LVM and RAID prototypes.
7617 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
7618 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
7619 function.
7620
7621 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7622
7623 * util/grub-install.in: Don't try to verify core.img until after
7624 running grub-mkimage to create it.
7625
7626 2010-09-10 Robert Millan <rmh@gnu.org>
7627
7628 * util/grub.d/10_hurd.in: Add misc readability checks.
7629 * util/grub.d/10_kfreebsd.in: Likewise.
7630 * util/grub.d/10_linux.in: Likewise.
7631
7632 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7633
7634 * util/grub-install.in: ${imgext} won't be defined here until the
7635 install branch is merged. For the meantime, only verify core.img on
7636 i386-pc and sparc64-ieee1275 platforms.
7637
7638 2010-09-10 Robert Millan <rmh@gnu.org>
7639
7640 Solaris support in grub_find_zpool_from_dir(). Thanks
7641 Seth Goldberg for referring to getextmntent() facility.
7642
7643 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
7644 `sys/mkdev.h'.
7645 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
7646 `<sys/mnttab.h>'.
7647 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
7648 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
7649 method for finding zpool name.
7650
7651 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7652
7653 grub-fstest needs the host and hostfs modules while other utilities
7654 actively require those modules to be absent, so grub-fstest needs
7655 its own initialisation and finalisation code.
7656
7657 * Makefile.am (grub_fstest.pp): New target.
7658 (grub_fstest_init.lst): Likewise.
7659 (grub_fstest_init.c): Likewise.
7660 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
7661
7662 2010-09-10 Robert Millan <rmh@gnu.org>
7663
7664 * configure.ac: Check for `struct statfs.f_fstypename' and
7665 `struct statfs.f_mntfromname'.
7666
7667 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
7668 kFreeBSD-specific code.
7669
7670 2010-09-10 Robert Millan <rmh@gnu.org>
7671
7672 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
7673 on ZFS. Now non-main filesystems are supported as / too.
7674
7675 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
7676
7677 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
7678 and grub-core/disk/host.c to ...
7679 (grub-fstest): ... here. Having the host disk implementation
7680 present confuses grub-probe and other utility programs.
7681
7682 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
7683 when writing to a file, not when writing to stdout.
7684
7685 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
7686
7687 * tests/partmap_test.in: New test for partitions.
7688 * Makefile.util.def: Rules for new test.
7689
7690 2010-09-09 Robert Millan <rmh@gnu.org>
7691
7692 * util/grub-probe.c (probe): Fix a pair of unhandled error
7693 conditions.
7694
7695 2010-09-09 Robert Millan <rmh@gnu.org>
7696
7697 Basic Btrfs support (detection and UUID).
7698
7699 * grub-core/fs/btrfs.c: New file.
7700 * Makefile.util.def (library): Register btrfs.c.
7701 * grub-core/Makefile.core.def: Likewise.
7702
7703 2010-09-08 Robert Millan <rmh@gnu.org>
7704
7705 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
7706 with (optional) parameters to specify device and relative path.
7707 * util/grub-install.in: Use is_path_readable_by_grub() to
7708 verify readability of a few critical files.
7709 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
7710 verify readability of grub.cfg.new.
7711
7712 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 Split minix.mod into minix.mod and minix2.mod.
7715
7716 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
7717 * grub-core/Makefile.core.def (minix2): New module.
7718 * grub-core/fs/minix.c: Use definitions instead of runtime version
7719 checking.
7720 * grub-core/fs/minix2.c: New file.
7721
7722 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7723
7724 Add new --boot-directory option to replace --root-directory
7725
7726 * util/grub-install.in: Add new --boot-directory option
7727 * util/grub-reboot.in: Likewise.
7728 * util/grub-set-default.in: Likewise.
7729
7730 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7731
7732 * util/grub-mkconfig.in: Use new variable.
7733
7734 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7735
7736 * configure.ac: Define some useful variables.
7737
7738 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7741 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
7742 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
7743 Use terminfo and don't use cursor-on/cursor-off unless it's known
7744 to work.
7745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
7746 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
7747
7748 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
7749
7750 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
7751 starts with "(,", fill the drive containing the loaded image in
7752 between those two characters, but expect that a full partition
7753 specification including partition map names will follow.
7754
7755 2010-09-08 Robert Millan <rmh@gnu.org>
7756
7757 * configure.ac: Remove `--enable-grub-fstest' option.
7758 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
7759
7760 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
7761 `grub-fstest' instead of `grub-probe' for readability verification.
7762 * util/grub-probe.c (probe): Remove readability verification kludge.
7763
7764 2010-09-08 Robert Millan <rmh@gnu.org>
7765
7766 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
7767 initializing `GRUB_FS'.
7768
7769 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
7770
7771 Not command (!) support to GRUB script.
7772
7773 * tests/grub_script_not.in: New test.
7774 * Makefile.util.def: Rules for new test.
7775
7776 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
7777 ! command as a special case.
7778 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
7779
7780 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7781
7782 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
7783 grub_free.
7784
7785 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7786
7787 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
7788
7789 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7790
7791 * docs/grub.texi (Shell-like scripting): Documentation for break,
7792 continue, shift and return commands.
7793
7794 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 Rename CD-ROM to cd on BIOS.
7797
7798 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
7799 "cd".
7800 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
7801
7802 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
7805 * util/grub-probe.c (main): Likewise.
7806 * util/i386/pc/grub-setup.c (main): Likewise.
7807 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7808 Reported and debugged by: alexxy
7809
7810 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
7813 diagnostic info.
7814
7815 2010-09-05 Jo Shields <directhex@apebox.org>
7816
7817 * util/grub.d/30_os-prober.in: Add missing classes.
7818
7819 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * docs/grub.texi (Theme file format): Document new position format.
7822
7823 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
7826 a table. Use @code instead of @verbatim.
7827
7828 2010-09-05 Colin D Bennett <colin@gibibit.com>
7829
7830 Gfxmenu documentation.
7831
7832 * docs/grub.texi (Theme file format): New chapter.
7833
7834 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7835
7836 * grub-core/Makefile.core.def (xzio): New module.
7837 * grub-core/io/xzio.c: New file.
7838 * grub-core/lib/xzembed/xz.h: New file (from xembed).
7839 * grub-core/lib/xzembed/xz_config.h: Likewise.
7840 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
7841 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
7842 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
7843 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
7844 * grub-core/lib/xzembed/xz_private.h: Likewise.
7845 * grub-core/lib/xzembed/xz_stream.h: Likewise.
7846 * include/grub/file.h (grub_file_filter_id): New compression filter
7847 GRUB_FILE_FILTER_XZIO.
7848
7849 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
7852 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
7853 size.
7854
7855 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
7858 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
7859
7860 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7861
7862 Uncompressed checksum support.
7863
7864 * grub-core/commands/hashsum.c (options): Add option --uncompress.
7865 (check_list): New parameter uncompress.
7866 (grub_cmd_hashsum): Handle --uncompress.
7867
7868 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 Reintroduce testload.
7871
7872 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
7873 from here ...
7874 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
7875 (GRUB_MOD_INIT): New function.
7876 (GRUB_MOD_FINI): Likewise.
7877 * grub-core/Makefile.core.def (testload): New module.
7878
7879 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7880
7881 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
7882 (uint8_t): New type.
7883 (uint16_t): Likewise.
7884 (uint32_t): Likewise.
7885 (uint64_t): Likewise.
7886
7887 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7888
7889 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
7890
7891 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7892
7893 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
7894 Made static.
7895 (grub_gzfile_open): Removed. All users updated.
7896 (GRUB_MOD_INIT): New function.
7897 (GRUB_MOD_FINI): Likewise.
7898 * grub-core/kern/file.c (grub_file_filters_all): New variable.
7899 (grub_file_filters_enabled): Likewise.
7900 (grub_file_open): Handle filters.
7901 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
7902 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
7903 * include/grub/file.h (grub_file_filter_id_t): New type.
7904 (grub_file_filter_t): Likewise.
7905 (grub_file_filters_all): New extern variable.
7906 (grub_file_filters_enabled): Likewise.
7907 (grub_file_filter_register): New inline function.
7908 (grub_file_filter_unregister): Likewise.
7909 (grub_file_filter_disable): Likewise.
7910 (grub_file_filter_disable_compression): Likewise.
7911 * include/grub/gzio.h: Removed.
7912
7913 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7914
7915 Filename expansion support for wildcards in GRUB script.
7916
7917 * tests/grub_script_expansion.in: New test.
7918 * Makefile.util.def: Rule for new test.
7919
7920 * grub-core/commands/wildcard.c: New file, implements filename
7921 expansion support for GRUB script.
7922 * grub-core/Makefile.core.def: Rule update for regexp.mod.
7923 * grub-core/script/argv.c: Cosmetic changes.
7924 * grub-core/script/execute.c (grub_script_arglist_to_argv):
7925 Refactored to perform wildcard expansion on arguments.
7926 * include/grub/script_sh.h (grub_script_wildcard_translator): New
7927 struct.
7928
7929 * tests/util/grub-shell.in: Fix quoting for read input.
7930
7931 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7932
7933 Support for updating environment variables with matched substrings
7934 of regexp.
7935
7936 * tests/grub_cmd_regexp.in: New test.
7937 * Makefile.util.def: Rule for new test.
7938
7939 * grub-core/commands/regexp.c: New option -s to update environment
7940 variables with regexp matches.
7941
7942 2010-09-04 Szymon Janc <szymon@janc.net.pl>
7943
7944 * include/grub/file.h (grub_file): New member not_easly_seekable.
7945 (grub_file_seekable): New inline function.
7946 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
7947 easily seekable.
7948 (grub_gzio_open): Set not_easly_seekable.
7949 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
7950 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
7951
7952 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7953
7954 Support for options to appear multiple times on cmdline.
7955
7956 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
7957 * grub-core/commands/extcmd.c: Support for repeatable option.
7958 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
7959 repeatable option support.
7960
7961 Refactor menuentry into a regular command.
7962
7963 * grub-core/commands/menuentry.c: New file, menuentry command
7964 implementation.
7965 * grub-core/Makefile.core.def: Rule update for normal.mod.
7966 * grub-core/normal/main.c: Moved menuentry creation to
7967 grub-core/commands/menuentry.c.
7968 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
7969 (grub_menu_execute_entry_real): Removed.
7970 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
7971 function.
7972 (grub_script_execute_menuentry): Removed.
7973 * grub-core/script/parser.y (menuentry): Removed.
7974 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
7975 * grub-core/script/yylex.l (menuentry): Removed.
7976 * include/grub/menu.h (grub_menu_init): New prototype.
7977 (grub_menu_fini): New prototype.
7978 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
7979 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
7980 (grub_script_execute_sourcecode): New prototype.
7981
7982 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7983
7984 "return" command for GRUB script functions.
7985
7986 * tests/grub_script_return.in: New test.
7987 * Makefile.util.def: Rules for new test.
7988
7989 * grub-core/script/execute.c (grub_script_return): New function.
7990 * grub-core/script/main.c: Register/unregister return commaond.
7991 * include/grub/script_sh.h (grub_script_return): New prototype.
7992
7993 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7994
7995 "setparams" command to update positional parameters.
7996
7997 * tests/grub_script_setparams.in: New test.
7998 * Makefile.util.def: Rules for new test.
7999
8000 * grub-core/script/argv.c (grub_script_argv_make): New function.
8001 * grub-core/script/execute.c (replace_scope): New function.
8002 (grub_script_setparams): New function.
8003 * grub-core/script/lexer.c: Remove unused variables.
8004 * grub-core/script/main.c: Register/unregister setparams command.
8005 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
8006 (grub_script_setparams): New prototype.
8007
8008 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8009
8010 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
8011 grub_free order.
8012
8013 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8014
8015 Support for passing block of commands as an argument to extcmds.
8016
8017 * Makefile.util.def: Rules for new test.
8018 * tests/grub_script_blockarg.in: New test.
8019 * grub-core/tests/test_blockarg.c: New file, block argument
8020 command used in the test.
8021
8022 * include/grub/extcmd.h (grub_extcmd_context): New struct.
8023 (grub_register_extcmd_prio): New function prototype.
8024 (grub_extcmd_dispatcher): New function prototype.
8025 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
8026 type.
8027 * include/grub/script_sh.h (struct grub_script): New members
8028 `children', `next_siblings' and `refcnt' for block arguments and
8029 reference counting.
8030 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
8031 (grub_script_arg): New member `script' for block argument.
8032 (grub_script_argv): New member `script' for block argument.
8033 (grub_parser_param): New member `scripts' for block argument.
8034 (grub_script_mem_free): New extern function prototype.
8035 (grub_script_ref): New function prototype.
8036 (grub_script_unref): New function prototype.
8037
8038 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
8039 extcmd form to support block arguments.
8040 * grub-core/script/argv.c: Block arguments support.
8041 * grub-core/script/execute.c: Likewise.
8042 * grub-core/script/lexer.c: Likewise.
8043 * grub-core/script/main.c: Likewise.
8044 * grub-core/script/script.c: Likewise.
8045 * grub-core/script/parser.y: Likewise. New `block' and `block0'
8046 non-terminals.
8047
8048 * grub-core/commands/acpi.c: Update extcmd implementations with
8049 grub_extcmd_context_t.
8050 * grub-core/commands/cat.c: Likewise.
8051 * grub-core/commands/echo.c: Likewise.
8052 * grub-core/commands/extcmd.c: Likewise.
8053 * grub-core/commands/hashsum.c: Likewise.
8054 * grub-core/commands/hdparm.c: Likewise.
8055 * grub-core/commands/help.c: Likewise.
8056 * grub-core/commands/hexdump.c: Likewise.
8057 * grub-core/commands/i386/cpuid.c: Likewise.
8058 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8059 * grub-core/commands/i386/pc/halt.c: Likewise.
8060 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8061 * grub-core/commands/iorw.c: Likewise.
8062 * grub-core/commands/keystatus.c: Likewise.
8063 * grub-core/commands/loadenv.c: Likewise.
8064 * grub-core/commands/ls.c: Likewise.
8065 * grub-core/commands/lspci.c: Likewise.
8066 * grub-core/commands/memrw.c: Likewise.
8067 * grub-core/commands/probe.c: Likewise.
8068 * grub-core/commands/search_wrap.c: Likewise.
8069 * grub-core/commands/setpci.c: Likewise.
8070 * grub-core/commands/sleep.c: Likewise.
8071 * grub-core/disk/loopback.c: Likewise.
8072 * grub-core/hello/hello.c: Likewise.
8073 * grub-core/loader/i386/bsd.c: Likewise.
8074 * grub-core/loader/xnu.c: Likewise.
8075 * grub-core/term/gfxterm.c: Likewise.
8076 * grub-core/term/serial.c: Likewise.
8077 * grub-core/tests/lib/functional_test.c: Likewise.
8078
8079 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8080
8081 Multi-line quoted strings support.
8082
8083 * grub-core/script/lexer.c (append_newline): Removed.
8084 (grub_script_lexer_yywrap): Refactored.
8085 (grub_script_lexer_init): Refactored.
8086 * grub-core/script/yylex.l (yywrap): New function.
8087 (grub_lexer_resplit): New function.
8088 (grub_lexer_unput): New function.
8089 * include/grub/script_sh.h (grub_lexer_param): New members, unput
8090 and resplit.
8091 * tests/grub_script_echo1.in: Added few more testcases.
8092
8093 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * grub-core/kern/misc.c: Don't add abort alias in utils.
8096 Reported by: echoline.
8097
8098 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
8099
8100 Add missing files into "make dist" tarball for other platforms.
8101
8102 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
8103 * conf/Makefile.common (dist_noinst_DATA): New variable.
8104 * conf/Makefile.extra-dist: Added missing make dist files.
8105 * grub-core/Makefile.core.def: Likewise.
8106
8107 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 Compress grub_prefix.
8110
8111 * grub-core/boot/i386/pc/lnxboot.S: Use
8112 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
8113 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
8114 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
8115 GRUB_MACHINE_PREFIX_END. All users updated.
8116 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
8117 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
8118 + 0x40.
8119 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
8120 * util/grub-mkimage.c (image_target_desc): Change data_end to
8121 prefix_end. All users updated.
8122
8123 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
8126 value.
8127 (grub_openbsd_boot): Likewise.
8128 (grub_netbsd_boot): Likewise.
8129 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
8130 (grub_xnu_boot): Likewise.
8131
8132 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 * configure.ac: Clean LIBS variable after tests.
8135
8136 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8137
8138 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
8139
8140 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
8143 echo if libdevmapper will be used.
8144
8145 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
8146
8147 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
8148 constant for the same file.
8149
8150 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
8153
8154 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8155
8156 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
8157 grub-core/*.pp.
8158
8159 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8160
8161 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
8162 required by the boot protocol.
8163
8164 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
8165 ebp and edi members.
8166 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
8167 state.ebp and state.edi.
8168 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
8169 %ebp and %edi according to grub_relocator32_ebp and
8170 grub_relocator32_edi respectively.
8171 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
8172 and state.edi.
8173
8174 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 Add i386-pc-pxe image target.
8177
8178 * util/grub-mkimage.c (image_target_desc): New enum value
8179 IMAGE_I386_PC_PXE.
8180 (image_targets): New target i386-pc-pxe.
8181 (generate_image): Handle i386-pc-pxe image.
8182
8183 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 Fix grub_pxe_scan.
8186
8187 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
8188 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
8189 All users updated.
8190 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
8191 (grub_pxe_pxenv): Correct type.
8192
8193 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8194
8195 * NEWS: Document most of the important changes since 1.98.
8196
8197 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8198
8199 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
8200 generated manual page) a little.
8201
8202 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8203
8204 * docs/grub.texi: Add myself as an author.
8205
8206 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * Makefile.util.def (libgrub.a): Add missing sunpc.
8209 Reported by: Seth Goldberg.
8210
8211 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8212
8213 Interrupt wrapping and code simplifications.
8214
8215 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
8216 x86_noieee1275 which are functionaly equivalent in this case.
8217 (grub-install): Make source on each platform explicit. Enable on
8218 all noemu.
8219 * gentpl.py (x86_efi_pc): Removed group.
8220 (x86_noefi): Likewise.
8221 (i386_noefi): Likewise.
8222 (x86_noieee1275): Likewise.
8223 (i386_noieee1275): Likewise.
8224 (i386_noefi_noieee1275): Likewise.
8225 (i386_pc_qemu_coreboot): Likewise.
8226 (i386_coreboot_multiboot): Likewise.
8227 (i386_pc_coreboot_multiboot_qemu): Likewise.
8228 (x86_noefi_mips): Likewise.
8229 (noieee1275): Likewise.
8230 (ieee1275_mips): Likewise.
8231 (noemu_noieee1275): Likewise.
8232 (cmos): New group.
8233 (usb): Likewise.
8234 (videoinkernel): Likewise.
8235 (videomodules): Likewise.
8236 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
8237 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
8238 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
8239 include/grub/loader.h, include/grub/msdos_partition.h,
8240 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
8241 include/grub/machine/console.h, include/grub/machine/vga.h,
8242 include/grub/machine/vbe.h, include/grub/machine/init.h,
8243 include/grub/machine/kernel.h, include/grub/cpu/time.h,
8244 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
8245 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
8246 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
8247 * grub-core/Makefile.core.def (kernel): Explicit the source for
8248 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
8249 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
8250 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
8251 Use videoinkernel tag.
8252 (usb): Enable on all usb.
8253 (usbserial_common): Likewise.
8254 (usbserial_pl2303): Likewise.
8255 (usbserial_ftdi): Likewise.
8256 (uhci): Enable on all x86.
8257 (ohci): Enable on all pci.
8258 (cmostest): Enable on all CMOS.
8259 (acpi): Include commands/acpi.c on all platforms.
8260 (halt): Add relevant lib/*/halt.c.
8261 (hdparm): Enable on all pci.
8262 (lspci): Likewise.
8263 (usbtest): Enable on all usb.
8264 (ata): Enable on all pci.
8265 (ata_pthru): Likewise.
8266 (usbms): Enable on all usb.
8267 (usb_keyboard): Likewise.
8268 (font): Use tag videomodules.
8269 (bufio): Likewise.
8270 (datetime): Use tag cmos. Enable on all noemu.
8271 (mmap): Use tags common and x86.
8272 (gfxterm): Use tag videomodules.
8273 (bitmap): Likewise.
8274 (bitmap_scale): Likewise.
8275 (video_fb): Likewise.
8276 (video): Likewise.
8277 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
8278 adjust padding accordingly. All users updated.
8279 (grub_ohci_transaction): Fix bad format specification.
8280 (GRUB_MOD_INIT): Add asserts for struct size.
8281 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
8282 (grub_alloc_td): Likewise.
8283 (grub_free_queue): Likewise.
8284 (grub_uhci_transfer): Likewise.
8285 (grub_uhci_transaction): Fix bad format specification.
8286 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
8287 (grub_usb_bulk_readwrite): Likewise.
8288 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
8289 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
8290 Made static.
8291 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
8292 Made static.
8293 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
8294 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
8295 Transformed into C.
8296 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
8297 Moved from here ...
8298 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
8299 ... here. Transformed into C. Made static.
8300 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
8301 Moved from here ...
8302 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
8303 ... here. Transformed into C. Made static.
8304 * grub-core/kern/i386/pc/startup.S
8305 (grub_biosdisk_check_int13_extensions): Moved from here ...
8306 * grub-core/disk/i386/pc/biosdisk.c
8307 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
8308 Made static.
8309 * grub-core/kern/i386/pc/startup.S
8310 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
8311 * grub-core/disk/i386/pc/biosdisk.c
8312 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
8313 Transformed into C. Made static.
8314 * grub-core/kern/i386/pc/startup.S
8315 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
8316 * grub-core/disk/i386/pc/biosdisk.c
8317 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
8318 Transformed into C. Made static.
8319 * grub-core/kern/i386/pc/startup.S
8320 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
8321 * grub-core/disk/i386/pc/biosdisk.c
8322 (grub_biosdisk_get_diskinfo_standard): ... here.
8323 Transformed into C. Made static.
8324 * grub-core/kern/i386/pc/startup.S
8325 (grub_biosdisk_get_num_floppies): Moved from here ...
8326 * grub-core/disk/i386/pc/biosdisk.c
8327 (grub_biosdisk_get_num_floppies): ... here.
8328 Transformed into C. Made static.
8329 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
8330 New function.
8331 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
8332 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
8333 Transformed into C. Made static.
8334 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
8335 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
8336 Transformed into C. Made static.
8337 * grub-core/kern/i386/ieee1275/init.c: Removed.
8338 * grub-core/kern/i386/misc.S: Likewise.
8339 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
8340 Splitted from here ...
8341 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
8342 Transformed into C. Made static. All users updated.
8343 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
8344 Transformed into C. Made static. All users updated.
8345 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
8346 Moved from here...
8347 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
8348 Transformed into C. Made static. All users updated.
8349 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
8350 Moved from here...
8351 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
8352 Transformed into C. Made static. All users updated.
8353 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
8354 Removed (replaced by C version).
8355 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
8356 Moved from here...
8357 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
8358 Transformed into C. Made static.
8359 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
8360 Moved from here...
8361 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
8362 ... here. Transformed into C.
8363 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
8364 Moved from here...
8365 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
8366 ... here. Transformed into C.
8367 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
8368 Moved from here...
8369 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
8370 ... here. Transformed into C. Made static.
8371 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
8372 Moved from here...
8373 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
8374 ... here. Transformed into C.
8375 * grub-core/kern/i386/pc/startup.S
8376 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
8377 * grub-core/video/i386/pc/vbe.c
8378 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
8379 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
8380 Moved from here...
8381 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
8382 ... here. Transformed into C.
8383 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
8384 Moved from here...
8385 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
8386 ... here. Transformed into C.
8387 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
8388 Moved from here...
8389 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
8390 ... here. Transformed into C.
8391 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
8392 Moved from here...
8393 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
8394 ... here. Transformed into C.
8395 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
8396 Moved from here...
8397 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
8398 ... here. Transformed into C. Made static.
8399 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
8400 Moved from here...
8401 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
8402 ... here. Transformed into C. Made static.
8403 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
8404 Moved from here...
8405 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
8406 ... here. Transformed into C. Made static.
8407 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
8408 pxe_rm_entry as third argument.
8409 (grub_bios_interrupt): New function.
8410 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
8411 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
8412 of calling grub_stop.
8413 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
8414 * grub-core/lib/efi/halt.c (grub_halt): ...here.
8415 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
8416 * grub-core/lib/emu/halt.c (grub_halt): ... here.
8417 * grub-core/lib/i386/halt.c: Moved from here ...
8418 * grub-core/lib/i386/halt.c: ... here.
8419 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
8420 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
8421 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
8422 grub_stop_floppy.
8423 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
8424 * include/grub/i386/coreboot/init.h: Removed.
8425 * include/grub/i386/multiboot/init.h: Likewise.
8426 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
8427 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
8428 * include/grub/i386/pc/int.h: New file.
8429 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
8430 (grub_pxe_scan): Removed.
8431 (grub_pxe_call): Update prototype.
8432 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
8433 prototypes.
8434 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
8435 * include/grub/i386/qemu/init.h: Removed.
8436 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
8437 noreturn.
8438 (grub_halt): Likewise.
8439 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
8440 (grub_reboot): Likewise.
8441 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
8442 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
8443 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
8444
8445 2010-08-30 Robert Millan <rmh@gnu.org>
8446
8447 * NEWS: Document addition of ZFS support in `grub-install' and
8448 `grub-mkconfig'.
8449
8450 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
8451
8452 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
8453 dprintf output.
8454
8455 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8456
8457 Remove leftover embedding of font objects.
8458
8459 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8460 * util/grub-install.in (font): Removed.
8461 * util/grub-mkimage.c (generate_image): Remove font support. All users
8462 updated.
8463
8464 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 Remove leftover embedding of font objects.
8467
8468 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8469 * util/grub-install.in (font): Removed.
8470 * util/grub-mkimage.c (generate_image): Remove font support. All users
8471 updated.
8472
8473 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * docs/grub.texi (Network): Fix reference to pxe_blksize.
8476 Reported by: Ian Turner
8477
8478 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
8481 timeout to avoid indefinite boot stalling.
8482
8483 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
8486 (grub_env_write_color_highlight): Likewise.
8487
8488 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/normal/term.c (print_more): Return to normal and not
8491 to standard state after printing "---MORE---".
8492
8493 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
8496 Mask out the bit 0x80 since it has other meaning that specifiing color.
8497
8498 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 New relocator. Allows for more kernel support and more straightforward
8501 loader writing.
8502
8503 * Makefile.am (BOOTTARGET): New variable.
8504 (QEMU32): Likewise.
8505 (linux.init.x86_64): New target.
8506 (linux.init.i386): Likewise.
8507 (multiboot.elf): Likewise.
8508 (kfreebsd.elf): Likewise.
8509 (kfreebsd.aout): Likewise.
8510 (pc-chainloader.elf): Likewise.
8511 (pc-chainloader.bin): Likewise.
8512 (ntldr.elf): Likewise.
8513 (ntldr.bin): Likewise.
8514 (multiboot2.elf): Likewise.
8515 (kfreebsd.init.x86_64): Likewise.
8516 (kfreebsd.init.i386): Likewise.
8517 (knetbsd.init.i386): Likewise.
8518 (kopenbsd.init.i386): Likewise.
8519 (knetbsd.init.x86_64): Likewise.
8520 (kopenbsd.init.x86_64): Likewise.
8521 (linux-initramfs.i386): Likewise.
8522 (linux-initramfs.x86_64): Likewise.
8523 (kfreebsd-mfsroot.i386.img): Likewise.
8524 (knetbsd.image.i386): Likewise.
8525 (kopenbsd.image.i386): Likewise.
8526 (kopenbsd.image.x86_64): Likewise.
8527 (knetbsd.miniroot-image.i386.img): Likewise.
8528 (kfreebsd-mfsroot.x86_64.img): Likewise.
8529 (knetbsd.image.x86_64): Likewise.
8530 (knetbsd.miniroot-image.x86_64.img): Likewise.
8531 (kfreebsd-mfsroot.i386.gz): Likewise.
8532 (bootcheck-kfreebsd-i386): Likewise.
8533 (kfreebsd-mfsroot.x86_64.gz): Likewise.
8534 (bootcheck-kfreebsd-x86_64): Likewise.
8535 (knetbsd.miniroot-image.i386.gz): Likewise.
8536 (bootcheck-knetbsd-i386): Likewise.
8537 (bootcheck-kopenbsd-i386): Likewise.
8538 (bootcheck-kopenbsd-x86_64): Likewise.
8539 (knetbsd.miniroot-image.x86_64.gz): Likewise.
8540 (bootcheck-knetbsd-x86_64): Likewise.
8541 (bootcheck-linux-i386): Likewise.
8542 (bootcheck-linux-x86_64): Likewise.
8543 (bootcheck-linux16-i386): Likewise.
8544 (bootcheck-linux16-x86_64): Likewise.
8545 (bootcheck-multiboot): Likewise.
8546 (bootcheck-multiboot2): Likewise.
8547 (bootcheck-kfreebsd-aout): Likewise.
8548 (bootcheck-pc-chainloader): Likewise.
8549 (bootcheck-ntldr): Likewise.
8550 (CLEANFILES): Add new targets.
8551 (BOOTCHECKS): New variable.
8552 (.PHONY): Add bootchecks.
8553 (SUCCESSFUL_BOOT_STRING): New variable.
8554 (BOOTCHECK_TIMEOUT): Likewise.
8555 (bootcheck): New target
8556 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
8557 * configure.ac: Correct efiemu excuse.
8558 * docs/grub.texi (Supported kernels): New chapter.
8559 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
8560 include/grub/mm_private.h. Simplify inclusion of
8561 include/grub/boot.h, include/grub/loader.h
8562 and include/grub/msdos_partition.h
8563 (KERNEL_HEADER_FILES) [i386_coreboot]:
8564 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
8565 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
8566 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
8567 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
8568 include/grub/machine/loader.h.
8569 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
8570 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
8571 extra_dist.
8572 (pci.mod): Enable on i386-multiboot.
8573 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
8574 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
8575 i386-qemu.
8576 (relocator.mod): Rewritten.
8577 (aout.mod): Enable on all x86.
8578 (bsd.mod): Likewise.
8579 (ntldr.mod): New module.
8580 (linux.mod): Use loader/i386/linux.c on all x86.
8581 (xnu.mod): Enable on all x86.
8582 (vga_text.mod): disable on EFI and QEMU.
8583 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
8584 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
8585 * grub-core/efiemu/loadcore.c: Likewise.
8586 * grub-core/efiemu/main.c: Likewise.
8587 (grub_efiemu_exit_boot_services): Removed.
8588 (grub_efiemu_finish_boot_services): Likewise.
8589 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
8590 function.
8591 * grub-core/efiemu/i386/nocfgtables.c: New file.
8592 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
8593 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
8594 (grub_efi_finish_boot_services): Moved from here ...
8595 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
8596 Fille finish memory map and related data.
8597 (finish_mmap_buf): New variable.
8598 (grub_efi_uintn_t finish_mmap_size): Likewise.
8599 (grub_efi_uintn_t finish_key): Likewise.
8600 (grub_efi_uintn_t finish_desc_size): Likewise.
8601 (grub_efi_uint32_t finish_desc_version): Likewise.
8602 (grub_efi_is_finished): Likewise.
8603 (grub_efi_get_memory_map): Use saved memory map if EFI is already
8604 finished.
8605 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
8606 (grub_elf64_phdr_iterate): Likewise.
8607 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
8608 (grub_os_area_size): Likewise.
8609 (grub_machine_init): Don't reserve os area.
8610 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
8611 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
8612 * grub-core/kern/i386/loader.S: Removed.
8613 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
8614 (grub_os_area_size): Likewise.
8615 (grub_machine_init): Don't reserve os area.
8616 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8617 Don't call grub_dl_unload_all.
8618 Don't include loader.S.
8619 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8620 Declare the memory after _end as available.
8621 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
8622 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
8623 (GRUB_MM_ALLOC_MAGIC): Moved from here...
8624 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
8625 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
8626 * include/grub/mm_private.h (grub_mm_header): ... here.
8627 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
8628 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
8629 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
8630 (grub_mm_region): ..here. Removed addr. Added pre_size.
8631 All users updated.
8632 * grub-core/kern/mm.c (base): Renamed to ...
8633 (grub_mm_base): ... this. Made global.
8634 (grub_real_malloc): Alloc from end of region.
8635 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
8636 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
8637 * grub-core/kern/powerpc/cache_flush.S: ... here.
8638 * grub-core/lib/efi/relocator.c: New file.
8639 * grub-core/lib/i386/relocator.c: Rewritten.
8640 * grub-core/lib/i386/relocator16.S: New file.
8641 * grub-core/lib/i386/relocator32.S: Likewise.
8642 * grub-core/lib/i386/relocator64.S: Likewise.
8643 * grub-core/lib/i386/relocator_asm.S: Rewritten.
8644 * grub-core/lib/i386/relocator_common.S: New file.
8645 * grub-core/lib/ieee1275/relocator.c: Likewise.
8646 * grub-core/lib/mips/relocator.c: Rewritten.
8647 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
8648 stylistic adjustments.
8649 * grub-core/lib/powerpc/relocator.c: New file.
8650 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
8651 * grub-core/lib/relocator.c: Rewritten.
8652 * grub-core/lib/x86_64/relocator_asm.S: New file.
8653 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
8654 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
8655 (bsd_tag): New struct.
8656 (tags): New variable.
8657 (tags_last): Likewise.
8658 (netbsd_module): New struct.
8659 (netbsd_mods): New variable.
8660 (netbsd_mods_last): Likewise.
8661 (openbsd_opts): New parameter "serial".
8662 (OPENBSD_SERIAL_ARG): New definition.
8663 (netbsd_opts): New parameter "serial".
8664 (NETBSD_SERIAL_ARG): New definition.
8665 (grub_freebsd_add_meta): Reorganised into ...
8666 (grub_bsd_add_meta): ...this. All users updated.
8667 (grub_freebsd_add_mmap): Reorganised into ...
8668 (generate_e820_mmap): ...this...
8669 (grub_bsd_add_mmap): ...and this. All users updated.
8670 (grub_freebsd_list_modules): Use tags.
8671 (grub_netbsd_add_meta_module): New function.
8672 (grub_netbsd_list_modules): Likewise.
8673 (grub_freebsd_boot): Use relocator and finish EFI.
8674 (grub_openbsd_boot): Likewise.
8675 (grub_netbsd_setup_video): New function.
8676 (grub_netbsd_add_modules): Likewise.
8677 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
8678 and finish EFI.
8679 (grub_bsd_unload): Unload tags.
8680 (grub_bsd_load_aout): Use relocator.
8681 (grub_bsd_elf32_size_hook): New function.
8682 (grub_bsd_elf32_hook): Use relocator.
8683 (grub_bsd_elf64_size_hook): New function.
8684 (grub_bsd_elf64_hook): Use relocator.
8685 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
8686 (grub_bsd_load): Zero-out openbsd_ramdisk.
8687 (grub_bsd_load): Use relocator.
8688 (grub_cmd_openbsd): Support serial.
8689 (grub_cmd_netbsd): Support modules.
8690 (grub_cmd_freebsd_module): Use relocator.
8691 (grub_netbsd_module_load): New function.
8692 (grub_cmd_netbsd_module): Likewise.
8693 (grub_cmd_openbsd_ramdisk): Likewise.
8694 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
8695 kopenbsd_ramdisk.
8696 (GRUB_MOD_FINI): Unregister new commands.
8697 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
8698 (grub_freebsd_load_elfmodule_obj): Use relocator.
8699 (grub_freebsd_load_elfmodule): Likewise.
8700 (grub_freebsd_load_elf_meta): Likewise.
8701 (grub_netbsd_load_elf_meta): New function.
8702 (grub_openbsd_find_ramdisk): Likewise.
8703 * grub-core/loader/i386/bsd_helper.S: Removed.
8704 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
8705 * grub-core/loader/i386/bsd_trampoline.S: Removed.
8706 * grub-core/loader/i386/efi/linux.c: Likewise.
8707 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
8708 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
8709 (DEFAULT_VIDEO_MODE): Likewise.
8710 (real_mode_target): New variable.
8711 (prot_mode_target): Likewise.
8712 (initrd_mem_target): Likewise.
8713 (relocator): Likewise.
8714 (efi_mmap_buf): Likewise.
8715 (efi_mmap_size): Likewise.
8716 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
8717 (free_pages): Use relocator.
8718 (allocate_pages): Account for efi_mmap and use relocator. Return error.
8719 (grub_linux_setup_video): Return error.
8720 (grub_linux_trampoline_start): Removed.
8721 (grub_linux_trampoline_end): Likewise.
8722 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
8723 andd video parameters depending on firmware.
8724 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
8725 [GRUB_MACHINE_EFI]: Pass EFI parameters.
8726 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
8727 (grub_cmd_initrd): Use relocator.
8728 * grub-core/loader/i386/linux_trampoline.S: Removed.
8729 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
8730 (elf_sec_entsize): Likewise.
8731 (elf_sec_shstrndx): Likewise.
8732 (elf_sections): Likewise.
8733 (grub_multiboot_load): Use relocator.
8734 (grub_multiboot_get_mbi_size): Account for sections.
8735 (grub_multiboot_make_mbi): Use relocator and support sections.
8736 (grub_multiboot_add_elfsyms): New function.
8737 (grub_multiboot_free_mbi): Free sections.
8738 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
8739 (grub_linux_real_target): Likewise.
8740 (grub_linux_real_chunk): Likewise.
8741 (grub_linux16_prot_size): Likewise.
8742 (grub_linux16_boot): Use relocator.
8743 (grub_linux_unload): Unload relocator.
8744 (grub_cmd_linux): Use relocator.
8745 (grub_cmd_initrd): Likewise.
8746 * grub-core/loader/i386/pc/ntldr.c: New file.
8747 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
8748 Don't try to guess CPU frequency.
8749 (grub_xnu_set_video): Stretch bitmap.
8750 (grub_xnu_boot): Use relocator.
8751 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
8752 (grub_linux_unload): Free relocator.
8753 (grub_linux_load32): Use relocator.
8754 (grub_linux_load64): Likewise.
8755 (grub_cmd_initrd): Likewise.
8756 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
8757 (grub_multiboot_unload): Unload relocator.
8758 (grub_cmd_multiboot): Use relocator.
8759 (grub_cmd_module): Likewise.
8760 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
8761 Use relocator and support sections.
8762 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
8763 (elf_sec_entsize): Likewise.
8764 (elf_sec_shstrndx): Likewise.
8765 (elf_sections): Likewise.
8766 (grub_multiboot_load): Use relocator.
8767 (grub_multiboot_get_mbi_size): Account for sections.
8768 (grub_multiboot_make_mbi): Use relocator and support sections.
8769 (grub_multiboot_add_elfsyms): New function.
8770 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
8771 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
8772 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
8773 Prototype changed. All users updated.
8774 (grub_xnu_align_heap): Simplified.
8775 (grub_xnu_writetree_toheap): Likewise.
8776 (grub_xnu_unload): Unload relocator.
8777 (grub_cmd_xnu_kernel): Use relocator.
8778 (grub_cmd_xnu_kernel64): Likewise.
8779 (grub_xnu_register_memory): Simplified.
8780 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
8781 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
8782 EFI is finished.
8783 (grub_console_checkkey): Likewise.
8784 (grub_console_getkey): Likewise.
8785 (grub_console_getwh): Likewise.
8786 (grub_console_getxy): Likewise.
8787 (grub_console_gotoxy): Likewise.
8788 (grub_console_cls): Likewise.
8789 (grub_console_setcolorstate): Likewise.
8790 (grub_console_setcursor): Likewise.
8791 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
8792 * grub-core/tests/boot/kbsd.init-i386.S: New file.
8793 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
8794 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
8795 * grub-core/tests/boot/kernel-8086.S: Likewise.
8796 * grub-core/tests/boot/kernel-i386.S: Likewise.
8797 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
8798 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
8799 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
8800 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
8801 * grub-core/tests/boot/knetbsd.cfg: Likewise.
8802 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
8803 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
8804 * grub-core/tests/boot/linux.cfg: Likewise.
8805 * grub-core/tests/boot/linux.init-i386.S: Likewise.
8806 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
8807 * grub-core/tests/boot/linux16.cfg: Likewise.
8808 * grub-core/tests/boot/multiboot.cfg: Likewise.
8809 * grub-core/tests/boot/multiboot2.cfg: Likewise.
8810 * grub-core/tests/boot/ntldr.cfg: Likewise.
8811 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
8812 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
8813 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
8814 New definition.
8815 * include/grub/dl.h (grub_dl_unload_all): Removed.
8816 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
8817 (grub_efi_finish_boot_services): Change prototype.
8818 (grub_efi_is_finished): New variable.
8819 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
8820 Changed prototype.
8821 (grub_efiemu_finish_boot_services): Removed.
8822 (grub_machine_efiemu_init_tables): New prototype.
8823 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
8824 (grub_elf64_phdr_iterate): Likewise.
8825 * include/grub/i386/bsd.h: Include relocator.h.
8826 (freebsd_tag_header): New struct.
8827 (grub_openbsd_bios_mmap): Removed.
8828 (grub_unix_real_boot): Removed.
8829 (grub_freebsd_load_elfmodule32): Changed prototype.
8830 (grub_freebsd_load_elfmodule_obj64): Likewise.
8831 (grub_freebsd_load_elf_meta32): Likewise.
8832 (grub_freebsd_load_elf_meta64): Likewise.
8833 (grub_freebsd_add_meta): Removed.
8834 (grub_netbsd_load_elf_meta32): New prototype.
8835 (grub_netbsd_load_elf_meta64): Likewise.
8836 (grub_bsd_add_meta): Likewise.
8837 (grub_openbsd_ramdisk_descriptor): New struct.
8838 (grub_openbsd_find_ramdisk32): New prototype.
8839 (grub_openbsd_find_ramdisk64): Likewise.
8840 * include/grub/i386/coreboot/loader.h: Removed.
8841 * include/grub/i386/efi/loader.h: Likewise.
8842 * include/grub/i386/ieee1275/loader.h: Likewise.
8843 * include/grub/i386/linux.h (linux_kernel_header): Change void *
8844 to grub_uint32_t.
8845 * include/grub/i386/loader.h: Removed.
8846 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
8847 value.
8848 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
8849 (grub_phys_addr_t): New type.
8850 (grub_vtop): New inline function.
8851 (grub_map_memory): Likewise.
8852 (grub_unmap_memory): Likewise.
8853 * include/grub/i386/multiboot/loader.h: Removed.
8854 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
8855 (NETBSD_BTINFO_CONSOLE): New definition.
8856 (NETBSD_BTINFO_SYMTAB): Likewise.
8857 (NETBSD_BTINFO_MODULES): Likewise.
8858 (NETBSD_BTINFO_FRAMEBUF): Likewise.
8859 (grub_netbsd_bootinfo): New struct.
8860 (grub_netbsd_btinfo_common): Use explicit bitsize.
8861 (grub_netbsd_btinfo_mmap_entry): Removed.
8862 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
8863 (grub_netbsd_btinfo_bootdisk): New struct.
8864 (grub_netbsd_btinfo_symtab): Likewise.
8865 (grub_netbsd_btinfo_serial): Likewise.
8866 (grub_netbsd_btinfo_modules): Likewise.
8867 (grub_netbsd_btinfo_framebuf): Likewise.
8868 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
8869 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
8870 Likewise.
8871 (grub_openbsd_bootargs): Use explicit bitsize.
8872 (grub_openbsd_bootarg_console): New struct.
8873 (GRUB_OPENBSD_COM_MAJOR): New definition.
8874 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
8875 * include/grub/i386/pc/efiemu.h: Removed.
8876 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
8877 * include/grub/i386/qemu/loader.h: Removed.
8878 * include/grub/i386/relocator.h: Rewritten.
8879 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
8880 * include/grub/mips/memory.h: New file.
8881 * include/grub/mips/multiboot.h: Rewritten.
8882 * include/grub/mips/relocator.h: Rewritten.
8883 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
8884 (grub_vtop): New function.
8885 (grub_map_memory): Likewise.
8886 (grub_unmap_memory): Likewise.
8887 * include/grub/misc.h (ALIGN_DOWN): New definition.
8888 * include/grub/mm.h (grub_mm_check_real): New proto.
8889 (GRUB_MM_CHECK): New definition.
8890 * include/grub/mm_private.h: New file.
8891 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
8892 (grub_multiboot_get_mbi_size): Removed.
8893 (grub_multiboot_make_mbi): Change prottype.
8894 (grub_multiboot_set_accepts_video): New proto.
8895 (grub_multiboot_add_elfsyms): Likewise.
8896 (grub_multiboot_payload_eip): New variable.
8897 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
8898 New prototype.
8899 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
8900 New definition.
8901 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
8902 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
8903 * include/grub/powerpc/ieee1275/loader.h: Removed.
8904 * include/grub/powerpc/memory.h: New file.
8905 * include/grub/powerpc/relocator.h: Likewise.
8906 * include/grub/relocator.h: Likewise.
8907 * include/grub/relocator_private.h: Likewise.
8908 * include/grub/sparc64/ieee1275/loader.h: Removed.
8909 * include/grub/x86_64/memory.h: New file.
8910 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
8911 (grub_xnu_heap_malloc): Likewise.
8912 (grub_xnu_heap_real_start): Removed.
8913 (grub_xnu_heap_start): Likewise.
8914 (grub_xnu_relocator): New variable.
8915 (grub_xnu_heap_target_start): Likewise.
8916 * tests/util/grub-shell.in: Support non-pc.
8917 * util/grub-mkimage.c (image_targets): Fix multiboot target.
8918
8919 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
8922 on malloc error.
8923 (grub_bidi_logical_to_visual): Check that malloc succeded.
8924 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
8925 puts.
8926 (grub_xputs_normal): Likewise.
8927
8928 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
8931 extra_dist.
8932
8933 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/efiemu/runtime/efiemu.sh: Removed.
8936
8937 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
8940
8941 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
8944 dprintf.
8945
8946 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
8947
8948 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
8949
8950 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/normal/term.c (print_more): Fix a memory leak.
8953 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
8954 (grub_xputs_normal): Likewise.
8955
8956 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
8959 the begining of the string
8960
8961 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * grub-core/script/script.c (grub_script_parse): Free parsed on
8964 failure.
8965
8966 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
8969 on failure.
8970
8971 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
8974 return.
8975
8976 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
8979 (scroll_up): Fix a memory leak.
8980
8981 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
8984 errors.
8985
8986 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 Handle USB pendrives exposed as floppies.
8989
8990 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
8991 floppy.
8992 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8993 Check for partitions on all devices.
8994
8995 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
8998 (readkey): Likewise.
8999
9000 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9001
9002 Multiple variable names support to "export" command.
9003
9004 * normal/context.c (grub_cmd_export): "export" command supports
9005 multiple variable names.
9006
9007 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
9008
9009 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
9010 --target=drive output to Mach device name.
9011
9012 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
9013
9014 New Automake based build system for GRUB.
9015
9016 * ABOUT-NLS: New file.
9017 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
9018 in Makefile.util.def file.
9019 * Makefile.util.def: New file. Autogen build definitions file for
9020 GRUB host utils.
9021 * conf/Makefile.common: New file. Common variables for GRUB host
9022 utils and target modules.
9023 * conf/Makefile.extra-dist: New file. Extra files for make dist.
9024 * docs/Makefile.am: New file. Automake file for docs.
9025 * gentpl.py: New file. Python script to generate Autogen
9026 template.
9027 * grub-core/Makefile.am: New file. GRUB target modules' rules
9028 that doesn't fit in Makefile.core.def file.
9029 * grub-core/Makefile.core.def: New file. Autogen build
9030 definitions file for GRUB target modules.
9031 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
9032 specific setjmp.S file.
9033 * po/Makefile.am: New file.
9034
9035 * .bzrignore: New ignores.
9036 * INSTALL: New requirements, without Ruby.
9037 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
9038 * autogen.sh: Updated to invoke autogen as necessary.
9039 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
9040 and defines for Automake conditionals.
9041 * geninit.sh: Refactoring.
9042
9043 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
9044 necessary.
9045 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
9046 New prototype.
9047
9048 * include/grub/test.h: Fix functional test modules' naming.
9049 * grub-core/tests/example_functional_test.c: Fix test module name.
9050
9051 * util/misc.c: Hosted versions' of grub functions for libgrub.a
9052 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
9053 * util/grub-editenv.c: Likewise.
9054 * util/grub-fstest.c: Likewise.
9055 * util/grub-mkdevicemap.c: Likewise.
9056 * util/grub-mkfont.c: Likewise.
9057 * util/grub-mkimage.c: Likewise.
9058 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9059 * util/grub-probe.c: Likewise.
9060 * util/grub-script-check.c: Likewise.
9061 * util/i386/pc/grub-setup.c: Likewise.
9062 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9063
9064 * tests/util/grub-shell.in: Fix override directory path.
9065 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
9066 * util/import_gcry.py: Create Makefile.gcry.def file instead.
9067
9068 * util/lvm.c: Update #includes.
9069 * util/raid.c: Likewise.
9070 * util/resolve.c: Likewise.
9071 * grub-core/bus/emu/pci.c: Likewise.
9072 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
9073 * grub-core/lib/posix_wrap/string.h: Likewise.
9074 * grub-core/kern/emu/main.c: Likewise.
9075
9076 * grub-core/gensymlist.sh: New file. Script for generating kernel
9077 symbols file.
9078 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
9079
9080 * grub-core/gentrigtables.c: Fix unused variable warnings.
9081
9082 * Makefile.in: Removed.
9083 * conf/any-emu.rmk: Removed.
9084 * conf/common.rmk: Removed.
9085 * conf/i386-coreboot.rmk: Removed.
9086 * conf/i386-efi.rmk: Removed.
9087 * conf/i386-ieee1275.rmk: Removed.
9088 * conf/i386-multiboot.rmk: Removed.
9089 * conf/i386-pc.rmk: Removed.
9090 * conf/i386-qemu.rmk: Removed.
9091 * conf/i386.rmk: Removed.
9092 * conf/mips-yeeloong.rmk: Removed.
9093 * conf/mips.rmk: Removed.
9094 * conf/powerpc-ieee1275.rmk: Removed.
9095 * conf/sparc64-ieee1275.rmk: Removed.
9096 * conf/tests.rmk: Removed.
9097 * conf/x86-efi.rmk: Removed.
9098 * conf/x86_64-efi.rmk: Removed.
9099 * gendistlist.sh: Removed.
9100 * geninitheader.sh: Removed.
9101 * genkernsyms.sh.in: Removed.
9102 * genmk.rb: Removed.
9103 * gensymlist.sh.in: Removed.
9104 * mkinstalldirs: Removed.
9105 * boot: Moved ...
9106 * grub-core/boot: ... to here.
9107 * bus: Moved ...
9108 * grub-core/bus: ... to here.
9109 * commands: Moved ...
9110 * grub-core/commands: ... to here.
9111 * disk: Moved ...
9112 * grub-core/disk: ... to here.
9113 * efiemu: Moved ...
9114 * grub-core/efiemu: ... to here.
9115 * font: Moved ...
9116 * grub-core/font: ... to here.
9117 * fs: Moved ...
9118 * grub-core/fs: ... to here.
9119 * gencmdlist.sh: Moved ...
9120 * grub-core/gencmdlist.sh: ... to here.
9121 * genemuinit.sh: Moved ...
9122 * grub-core/genemuinit.sh: ... to here.
9123 * genemuinitheader.sh: Moved ...
9124 * grub-core/genemuinitheader.sh: ... to here.
9125 * genfslist.sh: Moved ...
9126 * grub-core/genfslist.sh: ... to here.
9127 * genhandlerlist.sh: Moved ...
9128 * grub-core/genhandlerlist.sh: ... to here.
9129 * genmoddep.awk: Moved ...
9130 * grub-core/genmoddep.awk: ... to here.
9131 * genmodsrc.sh: Moved ...
9132 * grub-core/genmodsrc.sh: ... to here.
9133 * genpartmaplist.sh: Moved ...
9134 * grub-core/genpartmaplist.sh: ... to here.
9135 * genparttoollist.sh: Moved ...
9136 * grub-core/genparttoollist.sh: ... to here.
9137 * genterminallist.sh: Moved ...
9138 * grub-core/genterminallist.sh: ... to here.
9139 * gentrigtables.c: Moved ...
9140 * grub-core/gentrigtables.c: ... to here.
9141 * genvideolist.sh: Moved ...
9142 * grub-core/genvideolist.sh: ... to here.
9143 * gettext: Moved ...
9144 * grub-core/gettext: ... to here.
9145 * gfxmenu: Moved ...
9146 * grub-core/gfxmenu: ... to here.
9147 * gnulib: Moved ...
9148 * grub-core/gnulib: ... to here.
9149 * hello: Moved ...
9150 * grub-core/hello: ... to here.
9151 * hook: Moved ...
9152 * grub-core/hook: ... to here.
9153 * io: Moved ...
9154 * grub-core/io: ... to here.
9155 * kern: Moved ...
9156 * grub-core/kern: ... to here.
9157 * lib: Moved ...
9158 * grub-core/lib: ... to here.
9159 * loader: Moved ...
9160 * grub-core/loader: ... to here.
9161 * mmap: Moved ...
9162 * grub-core/mmap: ... to here.
9163 * normal: Moved ...
9164 * grub-core/normal: ... to here.
9165 * partmap: Moved ...
9166 * grub-core/partmap: ... to here.
9167 * parttool: Moved ...
9168 * grub-core/parttool: ... to here.
9169 * script: Moved ...
9170 * grub-core/script: ... to here.
9171 * term: Moved ...
9172 * grub-core/term: ... to here
9173 * tests/example_functional_test.c: Moved ...
9174 * grub-core/tests/example_functional_test.c: ... to here.
9175 * tests/lib/functional_test.c: Moved ...
9176 * grub-core/tests/lib/functional_test.c: ... to here.
9177 * tests/lib/test.c: Moved ...
9178 * grub-core/tests/lib/test.c: ... to here.
9179 * video: Moved ...
9180 * grub-core/video: ... to here.
9181
9182 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
9183
9184 Replace --enable-grub-emu-modules with grub-emu-lite.
9185
9186 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
9187 cache.S.
9188
9189 * include/grub/emu/misc.h (grub_emu_init): New prototype.
9190 * kern/emu/full.c: New file. For grub-emu specific initialization.
9191 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
9192 * kern/emu/main.c: Call initialization function grub_emu_init.
9193
9194 * Makefile.in: Include grub-emu-lite in install.
9195 * commands/parttool.c: Use grub_no_autoload to differentiate
9196 between grub-emu and grub-emu-lite.
9197 * include/grub/misc.h: New variable grub_no_autoload.
9198
9199 * conf/any-emu.rmk: New rules for grub-emu-lite.
9200 * configure.ac: Remove --enable-grub-emu-modules.
9201 * genmk.rb: Cleanup unnecessary rules.
9202 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
9203
9204 * normal/main.c: Don't load list files on grub-emu-lite.
9205 * util/misc.c (grub_arch_sync_caches): Removed.
9206
9207 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
9208
9209 * kern/mips/startup.S (grub_prefix): Update comment to refer to
9210 grub-mkimage rather than grub-mkelfimage.
9211 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9212
9213 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
9216 a key after CapsLock or NumLock. It's just a qemu bug.
9217
9218 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
9221 needed by libusb wrapper.
9222
9223 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9224
9225 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
9226
9227 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
9228
9229 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
9230 --nounzip is passed.
9231
9232 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 USB hotunplugging and USB serial support.
9235
9236 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
9237 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
9238 (grub_uhci_transfer): Respect timeout and set *actual.
9239 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
9240 non-standard length.
9241 (grub_usb_device_attach): Autoload modules.
9242 (GRUB_MOD_INIT): Set grub_term_poll_usb.
9243 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
9244 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
9245 users updated.
9246 (grub_usb_add_hub): Fill nports and children.
9247 (attach_root_port): Receive hub instead of controller.
9248 All users updated. Fill hub->devices.
9249 (grub_usb_root_hub): Allocate hub->devices.
9250 (detach_device): New function.
9251 (poll_nonroot_hub): Fill children and detach devices.
9252 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
9253 actual arguments. All users updated.
9254 (grub_usb_bulk_read_extended): New function.
9255 * bus/usb/serial/common.c: New file.
9256 * bus/usb/serial/ftdi.c: Likewise.
9257 * bus/usb/serial/pl2303.c: Likewise.
9258 * commands/terminal.c (handle_command): Support wildcard.
9259 * commands/usbtest.c: Output "Unknown" instead of empty string.
9260 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
9261 (usbserial_common_mod_SOURCES): New variable.
9262 (usbserial_common_mod_CFLAGS): Likewise.
9263 (usbserial_common_mod_LDFLAGS): Likewise.
9264 (pkglib_MODULES): Add usbserial_pl2303.mod.
9265 (usbserial_pl2303_mod_SOURCES): New variable.
9266 (usbserial_pl2303_mod_CFLAGS): Likewise.
9267 (usbserial_pl2303_mod_LDFLAGS): Likewise.
9268 (pkglib_MODULES): Add usbserial_ftdi.mod.
9269 (usbserial_ftdi_mod_SOURCES): New variable.
9270 (usbserial_ftdi_mod_CFLAGS): Likewise.
9271 (usbserial_ftdi_mod_LDFLAGS): Likewise.
9272 (pkglib_MODULES): Add serial.mod.
9273 (serial_mod_SOURCES): New variable.
9274 (serial_mod_CFLAGS): Likewise.
9275 (serial_mod_LDFLAGS): Likewise.
9276 * conf/i386-pc.rmk: Likewise.
9277 * conf/mips-yeeloong.rmk: Likewise.
9278 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
9279 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
9280 * disk/usbms.c (first_available_slot): New variable.
9281 (grub_usbms_attach): Don't reuse free slots due to potential cache
9282 problems.
9283 * include/grub/serial.h: Moved to ..
9284 * include/grub/ns8250.h: ...this.
9285 * include/grub/serial.h: New file.
9286 * include/grub/term.h (grub_term_poll_usb): New variable.
9287 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
9288 readkey. All users updated.
9289 (grub_terminfo_output_state): Pass term to put.
9290 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
9291 (grub_usb_controller_dev): Add timeout and actual arguments to
9292 transfer. All users updated.
9293 (grub_usb_interface): New field detach_data.
9294 (grub_usb_device): New fields children and nports.
9295 (grub_usb_ep_type_t): New type.
9296 (grub_usb_get_ep_type): New function.
9297 (grub_usb_bulk_read_extended): Likewise.
9298 * include/grub/usbdesc.h (grub_usb_desc): New type.
9299 * include/grub/usbserial.h: New file.
9300 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
9301 * kern/term.c (grub_term_poll_usb): New variable.
9302 (grub_getkey): Call grub_term_poll_usb if set.
9303 (grub_checkkey): Likewise.
9304 (grub_getkeystatus): Likewise.
9305 * term/serial.c: Moved controller-specific parts to ...
9306 * term/ns8250.c: ... here.
9307 * term/serial.c: Mostly rewritten.
9308 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
9309 according to spec.
9310
9311 2010-08-20 Robert Millan <rmh@gnu.org>
9312
9313 Make kFreeBSD code more generic to support ext2fs as root, ufs as
9314 a separate module and maybe other interesting combinations.
9315
9316 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
9317 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
9318 (kfreebsd_entry): Add generic filesystem module load routine.
9319 Map GRUB `ext2' to kFreeBSD `ext2fs'.
9320
9321 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
9322
9323 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
9324 "numcenter" (I misunderstood the purpose of this entry).
9325 * docs/grub.texi (sendkey): Likewise.
9326
9327 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
9328
9329 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
9330 status flag options; simply omitting the option is equivalent and
9331 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
9332 (keysym_table): Rename "num5numlock" to "numlock".
9333 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
9334 can uniformly say that only the last of multiple `sendkey'
9335 invocations has any effect.
9336 * docs/grub.texi (sendkey): New section.
9337
9338 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
9339
9340 * commands/i386/pc/sendkey.c (options): Fix three typos.
9341
9342 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 Implement sendkey support.
9345
9346 * commands/i386/pc/sendkey.c: New file.
9347 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
9348 (sendkey_mod_SOURCES): New variable.
9349 (sendkey_mod_CFLAGS): Likewise.
9350 (sendkey_mod_LDFLAGS): Likewise.
9351
9352 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
9353
9354 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
9355 fix warnings from Autoconf.
9356
9357 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
9358
9359 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
9360 to avoid false positives with some assemblers that output things
9361 like "someprefix_func" as part of their output.
9362
9363 2010-08-15 Robert Millan <rmh@gnu.org>
9364
9365 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
9366 errors.
9367 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
9368 grub_get_libzfs_handle() errors.
9369
9370 2010-08-14 Robert Millan <rmh@gnu.org>
9371
9372 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
9373 filesystem is not ZFS.
9374
9375 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9376
9377 Fix for misspelled color names defaulting to black/black (bug
9378 reported by Doug Nazar)
9379
9380 * include/grub/normal.h (grub_parse_color_name_pair): Add return
9381 status to prototype.
9382 * normal/color.c (grub_parse_color_name_pair): Return failure
9383 status.
9384 (grub_env_write_color_normal): Ignore bad color names.
9385 (grub_env_write_color_highlight): Likewise.
9386 * normal/main.c (GRUB_MOD_INIT): Set default color names.
9387
9388 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9389
9390 "shift" command support to GRUB script.
9391
9392 * include/grub/script_sh.h (grub_script_shift): New prototype.
9393 * script/execute.c (grub_script_shift): New function.
9394 * script/main.c (grub_script_init): Register shift command.
9395 (grub_script_fini): Unregister shift command.
9396 * util/grub-script-check.c (grub_script_cmd_shift): New function.
9397
9398 * tests/grub_script_shift.in: New testcase.
9399 * conf/tests.rmk: Rules for new testcase.
9400
9401 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9402
9403 "continue" command support to GRUB script.
9404
9405 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
9406 (grub_script_break): Continue support.
9407 * script/main.c (grub_script_init): Register continue command.
9408 (grub_script_fini): Unregister continue command.
9409
9410 * tests/grub_script_continue.in: New testcase.
9411 * conf/tests.rmk: Rules for new testcase.
9412
9413 2010-08-12 BVK Chaitanya <bvk@dbook>
9414
9415 "break" command support to GRUB script.
9416
9417 * conf/common.rmk: Rule updates to grub-script-check.
9418 * include/grub/misc.h (grub_min): New function.
9419 * include/grub/script_sh.h (grub_script_init): New prototype.
9420 (grub_script_fini): New prototype.
9421 (grub_script_break): New prototype.
9422 * script/main.c (grub_script_init): New function.
9423 (grub_script_fini): New function.
9424 * script/execute.c (grub_script_break): New function.
9425 * normal/main.c: Calls to grub_script_{init,fini}.
9426 * util/grub-script-check.c (grub_script_break): New function.
9427
9428 * tests/grub_script_break.in: New testcase.
9429 * conf/tests.rmk: Rules for new test case.
9430
9431 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9432
9433 Function parameters support to GRUB script.
9434
9435 * script/yylex.l (VARIABLE): Regular expression update.
9436 * script/function.c (grub_script_function_call): Moved ...
9437 * script/execute.c (grub_script_function_call): ... to here.
9438 (grub_script_execute_arglist_to_argv): Removed.
9439 (grub_script_arglist_to_argv): New function.
9440 * script/argv.c: New file.
9441 (grub_script_argv_free): New function.
9442 (grub_script_argv_next): Likewise.
9443 (grub_script_argv_append): Likewise.
9444 (grub_script_argv_split_append): Likewise.
9445 * include/grub/script_sh.h (grub_script_argv): New struct.
9446 (grub_script_argv_free): New function.
9447 (grub_script_argv_next): Likewise.
9448 (grub_script_argv_append): Likewise.
9449 (grub_script_argv_split_append): Likewise.
9450
9451 * conf/common.rmk (normal.mod): New source script/argv.c.
9452
9453 * tests/grub_script_echo1.in: More tests.
9454 * tests/grub_script_vars1.in: Likewise.
9455 * tests/grub_script_functions.in: New test case.
9456 * conf/tests.rmk: Rules for new testcase.
9457
9458 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9459
9460 Remove grub_script_cmdblock struct.
9461
9462 * include/grub/script_sh.h: Remove grub_script_cmdblock.
9463 * script/parser.y: Likewise.
9464 * script/execute.c: Rename cmdblock suffix to cmdlist.
9465 * script/script.c: Likewise.
9466 * util/grub-script-check.c: Likewise.
9467
9468 2010-08-11 Yves Blusseau <blusseau@zetam.org>
9469
9470 * .bzrignore: add grub-macho2img
9471
9472 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
9475
9476 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 Remove the dump of sm712 initialisation sequence.
9479
9480 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
9481 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
9482 (GRUB_VGA_IO_MISC_WRITE): Likewise.
9483 (GRUB_VGA_CR_*): Added many registers.
9484 (GRUB_VGA_SR_*): Likewise.
9485 (GRUB_VGA_GR_*): Likewise.
9486 (grub_vga_write_arx): New function.
9487 (grub_video_hw_config): New struct.
9488 (grub_vga_set_geometry): New function.
9489 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
9490 GRUB_PCI_CLASS_SUBCLASS_VGA.
9491 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
9492 * video/sm712.c (grub_sm712_write_reg): New function
9493 (grub_sm712_read_reg): Likewise.
9494 (grub_sm712_sr_write): Likewise.
9495 (grub_sm712_gr_write): Likewise.
9496 (grub_sm712_cr_write): Likewise.
9497 (grub_sm712_write_arx): Likewise.
9498 (grub_sm712_cr_shadow_write): Likewise.
9499 (grub_sm712_write_dda_lookup): Likewise.
9500 (grub_video_sm712_setup): Initialise the video rather then
9501 blindly replay the dump.
9502 (main) [TEST]: Add a routine to be able to compile as standalone for
9503 tests.
9504 * video/sm712_init.c (sm712_init): Removed.
9505 (sm712_sr_seq1): New array.
9506 (sm712_sr_seq2): Likewise.
9507
9508 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * include/grub/vga.h: Add missing grub/pci.h include.
9511
9512 2010-08-10 Yves Blusseau <blusseau@zetam.org>
9513
9514 * util/grub-macho2img.c (main): fix typo
9515
9516 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
9519 (grub_vga_gr_read): Likewise.
9520 (grub_vga_cr_write): Likewise.
9521 (grub_vga_cr_read): Likewise.
9522 (grub_vga_sr_write): Likewise.
9523 (grub_vga_sr_read): Likewise.
9524 (grub_vga_palette_read): Likewise.
9525 (grub_vga_palette_write): Likewise.
9526 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
9527 (grub_sm712_sr_read): New function.
9528 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
9529 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
9530
9531 2010-08-09 Robert Millan <rmh@gnu.org>
9532
9533 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
9534 out unused variables on non-ZFS build.
9535
9536 2010-08-08 Robert Millan <rmh@gnu.org>
9537
9538 Fix path generation for sub-filesystems in ZFS.
9539
9540 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
9541 missing slash.
9542
9543 2010-08-08 Robert Millan <rmh@gnu.org>
9544
9545 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
9546
9547 2010-08-08 Robert Millan <rmh@gnu.org>
9548
9549 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
9550 exist, issue a proper error message (rely on `ls' for translated
9551 strings).
9552
9553 2010-08-08 Robert Millan <rmh@gnu.org>
9554
9555 Fix grub-probe invocation.
9556
9557 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
9558
9559 2010-08-04 Robert Millan <rmh@gnu.org>
9560
9561 * configure.ac: Remove checks for getfsstat() and getmntany().
9562 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
9563 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
9564 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
9565 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
9566 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
9567 function.
9568 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
9569 via find_mount_point_from_dir() and getfsstat() / getmntany().
9570
9571 2010-08-04 Robert Millan <rmh@gnu.org>
9572
9573 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9574 (grub_find_zpool_from_mount_point): Merge into ...
9575 (grub_find_zpool_from_dir): ... this.
9576 * kern/emu/misc.c: Likewise.
9577
9578 * kern/emu/misc.c
9579 (grub_make_system_path_relative_to_its_root): Replace
9580 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
9581 with grub_find_zpool_from_dir().
9582 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
9583
9584 2010-08-04 Robert Millan <rmh@gnu.org>
9585
9586 Support OpenSolaris in ZFS device resolution.
9587
9588 * configure.ac: Check for getmntany().
9589 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
9590 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
9591 support.
9592
9593 2010-08-03 Robert Millan <rmh@gnu.org>
9594
9595 Fix grub-emu build.
9596
9597 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
9598 * include/grub/emu/misc.h: ... here.
9599
9600 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
9601 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
9602
9603 * util/misc.c: Remove `<grub/util/libzfs.h>'.
9604 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
9605 (grub_get_libzfs_handle): Move to ...
9606 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
9607 (grub_get_libzfs_handle): ... here.
9608
9609 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
9610
9611 * script/execute.c (grub_script_execute_cmdline): Check for NULL
9612 as command name case.
9613
9614 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
9615
9616 * disk/raid.c (insert_array): Select unique numbers for named arrays
9617 as well, for use as keys in the disk cache.
9618
9619 2010-08-01 Robert Millan <rmh@gnu.org>
9620
9621 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
9622 kFreeBSD device name, except on ZFS where the filesystem label is
9623 used.
9624 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
9625 `/boot/zfs/zpool.cache'.
9626 Set mountfrom kernel variable using ${kfreebsd_device}.
9627
9628 2010-08-01 Robert Millan <rmh@gnu.org>
9629
9630 Make it even harder to use uninitialized `libzfs_handle' (and
9631 make the interface a bit simpler).
9632
9633 * include/grub/util/misc.h (grub_util_init_libzfs)
9634 (libzfs_handle): Remove.
9635 (grub_get_libzfs_handle): New prototype.
9636
9637 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
9638 attribute.
9639 (grub_util_init_libzfs): Remove.
9640 (grub_get_libzfs_handle): New function.
9641
9642 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
9643 grub_get_libzfs_handle() to obtain a libzfs handle instead of
9644 accessing `libzfs_handle' directly.
9645
9646 2010-08-01 Robert Millan <rmh@gnu.org>
9647
9648 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9649 (grub_find_zpool_from_mount_point): New function prototypes.
9650
9651 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9652 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9653
9654 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9655 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9656 `static' attribute.
9657
9658 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9659 finding zpool from mount point into ...
9660 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9661
9662 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9663 requested path is part of a ZFS pool, use
9664 grub_find_zpool_from_mount_point() to detect its filesystem name,
9665 and generate a path with `/fsname@path' syntax.
9666
9667 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9668
9669 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
9670 (void) rather than () so that this is a proper prototype.
9671
9672 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
9675
9676 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
9679 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
9680
9681 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9682
9683 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
9684
9685 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9686
9687 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
9688
9689 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9690
9691 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
9692 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
9693 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
9694 disable gfxpayload.
9695 (Shell-like scripting): Add real content.
9696 (Serial terminal): Suggest `terminal_input serial; terminal_output
9697 serial' rather than putting the two commands on separate lines,
9698 since console input will be inoperative after the first command.
9699 (menuentry): Document --class, --users, and --hotkey options.
9700 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
9701 Vladimir Serbinenko).
9702
9703 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9704 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9705
9706 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
9707
9708 2010-08-01 Robert Millan <rmh@gnu.org>
9709
9710 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9711 (grub_find_zpool_from_mount_point): New function prototypes.
9712
9713 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9714 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9715
9716 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9717 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9718 `static' attribute.
9719
9720 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9721 finding zpool from mount point into ...
9722 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9723
9724 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9725 requested path is part of a ZFS pool, use
9726 grub_find_zpool_from_mount_point() to detect its filesystem name,
9727 and generate a path with `/fsname@path' syntax.
9728
9729 2010-08-01 Robert Millan <rmh@gnu.org>
9730
9731 Prevent accidental use of uninitialized libzfs_handle.
9732
9733 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
9734 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
9735 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
9736
9737 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9738
9739 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
9740 util/grub.d/10_linux.in). Fixes Debian bug #591093.
9741
9742 2010-08-01 Robert Millan <rmh@gnu.org>
9743
9744 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
9745
9746 2010-07-31 Robert Millan <rmh@gnu.org>
9747
9748 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
9749
9750 2010-07-31 Robert Millan <rmh@gnu.org>
9751
9752 * kern/emu/misc.c: Add missing license header.
9753
9754 2010-07-31 Robert Millan <rmh@gnu.org>
9755
9756 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
9757
9758 * include/grub/util/libnvpair.h: Include `<config.h>'.
9759 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
9760 declaring libnvpair prototypes ourselves.
9761 * include/grub/util/libzfs.h: Include `<config.h>'.
9762 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
9763 declaring libzfs prototypes ourselves.
9764
9765 (libzfs_handle): Moved to ...
9766 * include/grub/util/misc.h (libzfs_handle): ... here.
9767 Include `<grub/util/libzfs.h>'.
9768
9769 2010-07-30 Robert Millan <rmh@gnu.org>
9770
9771 * include/grub/emu/misc.h: Add missing license header.
9772
9773 2010-07-30 Robert Millan <rmh@gnu.org>
9774
9775 Enable `grub-probe -t device' resolution on ZFS.
9776
9777 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
9778 * include/grub/util/libnvpair.h: New file.
9779 * include/grub/util/libzfs.h: New file.
9780
9781 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
9782 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
9783 `<grub/util/libnvpair.h>'.
9784 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
9785
9786 (find_mount_point_from_dir): New static function.
9787 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
9788 function.
9789 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
9790 find_root_device_from_libzfs() before ressorting to find_root_device().
9791
9792 * include/grub/util/misc.h (grub_util_init_libzfs): New function
9793 prototype.
9794 * util/misc.c: Include `<grub/util/libzfs.h>'.
9795 (grub_util_init_libzfs): New function.
9796 [HAVE_LIBZFS] (libzfs_handle): New global variable.
9797 [HAVE_LIBZFS] (fini_libzfs): New static function.
9798 (grub_util_init_libzfs): New function.
9799 * util/grub-probe.c (main): Call grub_util_init_libzfs().
9800
9801 2010-07-30 Robert Millan <rmh@gnu.org>
9802
9803 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
9804 (xmalloc, xrealloc, xstrdup, xasprintf): Add
9805 `warn_unused_result' attribute.
9806 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
9807 (grub_xasprintf, grub_xvasprintf): Likewise.
9808 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
9809
9810 2010-07-29 Robert Millan <rmh@gnu.org>
9811
9812 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
9813 (probe): Handle `PRINT_FS_LABEL'.
9814 (main): Handle `-t fs_label'.
9815
9816 2010-07-29 Robert Millan <rmh@gnu.org>
9817
9818 * configure.ac: Remove grub-mkisofs checks.
9819
9820 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9821
9822 * util/ieee1275/grub-install.in: Don't use empty grub_device.
9823 Reported by: Lennart Sorensen.
9824
9825 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
9828 prior to terminal_input/terminal_output separation. It's been over 1.5
9829 years and those versions weren't widely deployed.
9830
9831 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
9832
9833 * disk/raid.c (insert_array): Don't count named arrays when looking
9834 for unused array numbers.
9835 Reported and tested by: Michael Guntsche.
9836
9837 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9838
9839 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
9840 implementation of this so that grub-emu links again, with a note
9841 that this should support hotplugging in the future.
9842
9843 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9844
9845 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9846
9847 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9848
9849 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
9850 handle on failure.
9851 (grub_loopback_close): Remove empty function.
9852 (grub_loopback_dev): Remove close method.
9853
9854 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9855
9856 Disable EFI cursor when the EFI console becomes inactive.
9857
9858 * term/efi/console.c (grub_efi_console_init): New function.
9859 (grub_efi_console_fini): New function.
9860 (grub_console_term_output): Register init and fini methods.
9861
9862 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * tests/util/grub-shell-tester.in: Remove bashism and declare as
9865 sh script.
9866
9867 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * disk/loopback.c (grub_loopback): Replace filename with file.
9870 (delete_loopback): Handle new semantics.
9871 (grub_cmd_loopback): Likewise.
9872 (grub_loopback_iterate): Likewise.
9873 (grub_loopback_close): Likewise.
9874
9875 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
9878 with -p "".
9879 Reported by: Tito Keitel.
9880
9881 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9882
9883 * docs/grub.texi (Naming convention): Document new naming convention.
9884
9885 2010-07-20 Vadim Solomin <vadic052@gmail.com>
9886 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9887
9888 Generate device.map in something closer to the old ordering.
9889
9890 * util/deviceiter.c (struct device): New declaration.
9891 (compare_file_names): Rename to ...
9892 (compare_devices): ... this. Sort by kernel name in preference to
9893 the stable by-id name, but keep the latter as a fallback comparison.
9894 Update header comment.
9895 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
9896 of `struct device' rather than of plain file names.
9897
9898 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
9899
9900 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
9901 on i386.
9902
9903 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9904
9905 * commands/acpi.c (setup_common_tables): Use sizeof instead of
9906 hardcoding size.
9907 (setv1table): Likewise.
9908
9909 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9910
9911 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
9912 removing the homehost if present.
9913 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
9914 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
9915 removing the homehost if present.
9916 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
9917 if possible.
9918 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
9919
9920 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
9921 parameter. Set its pointer target to 0.
9922 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
9923 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
9924 `data_offset' value from the superblock for 1.x metadata.
9925 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
9926 data on the device.
9927 (insert_array): Record the start sector of data on the device.
9928 (grub_raid_register): Pass start_sector parameters to
9929 grub_raid_list->detect and insert_array.
9930 * include/grub/raid.h (struct grub_raid_array): Add start_sector
9931 member.
9932 (struct grub_raid): Add start_sector parameter to `detect'.
9933
9934 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
9935 __attribute__ ((packed)), leaving a comment.
9936 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
9937 (grub_mdraid_detect_09): ... here and ...
9938 (grub_mdraid_detect_1x): ... here.
9939
9940 2010-07-20 Peter Henn <peter.henn@web.de>
9941
9942 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
9943 chunk size and disk size, which are already given as sector counts
9944 as distinct from the 0.90 units. Fetch the correct device number
9945 from the role table instead of using the table index.
9946
9947 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
9948
9949 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
9950 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
9951 (WriteMostly1): New macro.
9952 Set array->name to NULL for metadata format 0.90. Add support for
9953 metadata 1.x. Fix some comments.
9954 * disk/raid.c (): Add support for name based RAID arrays. Fix a
9955 few comments.
9956 * util/getroot.c (grub_util_get_grub_dev): Add support for
9957 /dev/md/name style devices.
9958
9959 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9960
9961 * .bzrignore: Ignore 20_linux_xen.
9962
9963 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
9964
9965 * util/import_unicode.py: Remove unnecessary imports.
9966
9967 2010-07-17 Aleš Nesrsta <starous@volny.cz>
9968
9969 Hotplugging and USB hub support.
9970
9971 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
9972 (grub_ohci): Likewise.
9973 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
9974 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
9975 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
9976 (GRUB_OHCI_CTRL_EDS): Likewise.
9977 (GRUB_OHCI_BULK_EDS): Likewise.
9978 (GRUB_OHCI_TDS): Likewise.
9979 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
9980 (grub_ohci_ed_phys2virt): New function.
9981 (grub_ohci_virt_to_phys): Likewise.
9982 (grub_ohci_td_phys2virt): Likewise.
9983 (grub_ohci_td_virt2phys): Likewise.
9984 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
9985 attachment.
9986 (grub_ohci_find_ed): New function.
9987 (grub_ohci_alloc_td): Likewise.
9988 (grub_ohci_free_td): Likewise.
9989 (grub_ohci_free_tds): Likewise.
9990 (grub_ohci_transfer): Use previously allocated memory.
9991 (grub_ohci_portstatus): Reset status changed bit.
9992 (grub_ohci_detect_dev): Supply status changed.
9993 (grub_ohci_fini_hw): Free memory.
9994 (grub_ohci_restore_hw): Reallocate memory.
9995 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
9996 Reset status change.
9997 (grub_uhci_detect_dev): Supply status_change.
9998 * bus/usb/usb.c (attach_hooks): New var.
9999 (grub_usb_device_attach): New function.
10000 (grub_usb_register_attach_hook_class): Likewise.
10001 (grub_usb_unregister_attach_hook_class): Likewise.
10002 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
10003 (grub_usb_add_hub): Reset connection changed bit.
10004 (attach_root_port): New function.
10005 (grub_usb_root_hub): Likewise.
10006 (poll_nonroot_hub): Likewise.
10007 (grub_usb_poll_devices): Likewise.
10008 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
10009 * disk/usbms.c (grub_usbms_open): Use device hooks.
10010 (grub_usbms_iterate) :Poll devices.
10011 (grub_usbms_finddevs): Split into ...
10012 (grub_usbms_attach): ... this ...
10013 (grub_usbms_attach): ... and this.
10014 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
10015 in detect_dev.
10016 (grub_usb_interface): New fields attached and detach_hook.
10017 (grub_usb_attach_hook_class): New type.
10018 (grub_usb_attach_desc): New struct.
10019 (grub_usb_register_attach_hook_class): New function.
10020 (grub_usb_unregister_attach_hook_class): Likewise.
10021 (grub_usb_poll_devices): Likewise.
10022 (grub_usb_device_attach): Likewise.
10023 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
10024 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
10025
10026 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
10029 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
10030 delta determination style. Works with most NetBSD partitions too.
10031
10032 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
10035 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
10036
10037 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
10040
10041 2010-07-14 Anton Blanchard <anton@samba.org>
10042
10043 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
10044 ET_DYN files.
10045
10046 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10047
10048 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
10049
10050 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10051
10052 * kern/partition.c (grub_partition_check_containment): New function to
10053 check that a partition is physically contained in a parent. Since
10054 offsets are relative (and non-negative), this reduces to checking that
10055 the partition ends before its parent.
10056 (grub_partition_map_probe): Discard out-of-range sub-partitions.
10057 (grub_partition_iterate): Likewise.
10058 * include/grub/partition.h (grub_partition_map): Slightly more detailed
10059 comments.
10060 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
10061 partitions that start before their parent, and add debug printfs.
10062
10063 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
10064
10065 * Makefile.in (.SUFFIX): Spell correctly, as ...
10066 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
10067 bare module name without `.mod', e.g. `test') tried to invoke a
10068 Modula-2 compiler.
10069
10070 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
10071
10072 * README: Point to the Info manual.
10073
10074 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
10075
10076 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
10077 2nd superblock position from partition size.
10078
10079 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
10080
10081 * Makefile.in (MAINTAINER_CLEANFILES): Remove
10082 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
10083 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
10084 outputs.
10085
10086 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 Restructure SCSI .id handling.
10089 Reported and tested by: Aleš Nesrsta.
10090
10091 * disk/ata.c (grub_atapi_close): Removed. All users updated.
10092 (grub_atapi_dev): Changed .name to "ata". New field .id.
10093 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
10094 (grub_usbms_dev): New field .id.
10095 * disk/scsi.c (grub_scsi_iterate): Generate name.
10096 (grub_scsi_open): Parse name.
10097 * include/grub/scsi.h (grub_make_scsi_id): New function.
10098 (grub_scsi_dev): Change iterate and open to number instead of naming
10099 busses. All users updated.
10100 (grub_scsi): Remove name. Add .bus.
10101
10102 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * commands/help.c (grub_cmd_help): Fix a typo.
10105
10106 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
10109 Reported and tested by: Colin Watson.
10110
10111 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
10114 in this context.
10115
10116 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
10119
10120 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
10121
10122 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
10123 indentation.
10124
10125 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10126
10127 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
10128 and disk/raid6_recover.c.
10129 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10130 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10131
10132 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10133
10134 * term/gfxterm.c (repaint_schedulded): Rename to ...
10135 (repaint_scheduled): ... this. Update all callers.
10136 (repaint_was_schedulded): Rename to ...
10137 (repaint_was_scheduled): ... this. Update all callers.
10138
10139 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10140
10141 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
10142 which we expect to be handled by upper layers.
10143
10144 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
10145
10146 * bus/usb/usbhub.c: #include time.h header.
10147
10148 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10149
10150 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
10151 entry_name also for entries without stat blocks (e.g. ".."); fixes
10152 corruption of the first entry in a directory.
10153
10154 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10155
10156 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
10157 after setting gfxterm as the active terminal. GRUB_BACKGROUND
10158 doesn't work otherwise.
10159
10160 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10161
10162 * docs/grub.texi (Features): Update list of supported file systems.
10163 (GNU/Linux): Update for GRUB 2.
10164 (Serial terminal): Remove mention of --disable-serial, which was a
10165 GRUB Legacy configure option. Update instructions to use
10166 `terminal_input' and `terminal_output' rather than `terminal'.
10167 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
10168 configuration' and `Installing GRUB using grub-install'.
10169 (Menu entry editor): Update for GRUB 2.
10170 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
10171 Document new -a, -u, and -v options.
10172 (initrd): New section.
10173 (initrd16): New section.
10174 (linux): New section.
10175 (linux16): New section.
10176 (search): The `var' argument to `--set' is optional.
10177 (GRUB only offers a rescue shell): Go into a little more detail on
10178 drive ordering.
10179
10180 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10181
10182 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
10183
10184 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10185
10186 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
10187 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
10188
10189 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10190
10191 * util/i386/pc/grub-setup.c (setup): Rename prefix to
10192 install_prefix, in line with install_dos_part and install_bsd_part.
10193 Add new prefix variable, which is copied to install_prefix after
10194 comparing core.img in memory with the one read from disk in the
10195 no-embedding case, and use that rather than overwriting
10196 install_prefix immediately when installing to a partition.
10197 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
10198 Bicakci.
10199
10200 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
10201
10202 * configure.ac: Avoid == in test command, it's not portable.
10203 * util/grub.d/30_os-prober.in: Likewise.
10204
10205 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
10206
10207 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
10208
10209 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
10210
10211 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
10212 multiple (top-level) partmaps.
10213
10214 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * util/i386/efi/grub-install.in: Don't use empty grub_device.
10217 Reported by: Tino Keitel.
10218
10219 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 Bidi and diacritics support.
10222
10223 * Makefile.in (widthspec.bin): New target.
10224 (widthspec.h): Likewise.
10225 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
10226 * autogen.sh: Generate unidata.c.
10227 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
10228 * commands/ls.c (grub_ls_list_devices): Likewise.
10229 (grub_ls_list_files): Likewise.
10230 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
10231 (grub_mini_cmd_lsmod): Likewise.
10232 * commands/read.c: Likewise.
10233 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
10234 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
10235 * lib/arg.c (grub_arg_show_help): Likewise.
10236 * lib/crypto.c (grub_password_get): Likewise.
10237 * normal/auth.c (grub_username_get): Likewise.
10238 * normal/misc.c (grub_normal_print_device_info): Likewise.
10239 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
10240 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
10241 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
10242 (normal/charset.c_DEPENDENCIES): New variable.
10243 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
10244 (pkglib_MODULES): Remove charset.mod.
10245 (charset_mod_SOURCES): Removed.
10246 (charset_mod_CFLAGS): Likewise.
10247 (charset_mod_LDFLAGS): Likewise.
10248 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
10249 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
10250 and term/tparm.c.
10251 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10252 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10253 (kernel_img_HEADERS): Add terminfo.h.
10254 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
10255 Fill ->font. Reverse ascii bitmaps.
10256 (grub_font_get_xheight): New function.
10257 * font/font.c (grub_font_get_string_width): Moved from here ...
10258 * gfxmenu/font.c (grub_font_get_string_width): ... here.
10259 * font/font.c (grub_font_draw_string): Moved from here ...
10260 * gfxmenu/font.c (grub_font_draw_string): ... here.
10261 * font/font.c (grub_font_dup_glyph): New function.
10262 (grub_font_blit_glyph): Likewise.
10263 (grub_font_blit_glyph_mirror): Likewise.
10264 (blit_comb): Likewise.
10265 (grub_font_construct_dry_run): Likewise.
10266 (grub_font_get_constructed_device_width): Likewise.
10267 (grub_font_construct_glyph): Likewise.
10268 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
10269 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
10270 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
10271 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
10272 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
10273 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
10274 (grub_font_get_xheight): New proto.
10275 (grub_font_get_constructed_device_width): Likewise.
10276 (grub_font_construct_glyph): Likewise.
10277 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
10278 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
10279 * include/grub/font.h (grub_font_draw_string): Moved from here ...
10280 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
10281 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
10282 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
10283 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
10284 (grub_console_getcharwidth): Likewise.
10285 * include/grub/misc.h (grub_xputs): New proto.
10286 (grub_puts): Inlined.
10287 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
10288 (grub_normal_get_line_counter): Removed.
10289 (grub_install_newline_hook): Likewise.
10290 (grub_normal_get_char_counter): New proto.
10291 (grub_normal_reset_more): Likewise.
10292 (grub_xputs_normal): Likewise.
10293 * include/grub/powerpc/ieee1275/console.h: Removed.
10294 * include/grub/sparc64/ieee1275/console.h: Likewise.
10295 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
10296 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
10297 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
10298 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
10299 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
10300 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
10301 (grub_term_input): Pass reference to self. All users updated.
10302 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
10303 Pass reference to self. New fields normal_color, highlight_color and
10304 data. All users updated.
10305 (grub_putchar): Removed.
10306 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
10307 (grub_unicode_estimate_width): New function.
10308 (grub_term_getcharwidth): Add defaults.
10309 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
10310 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
10311 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
10312 (grub_cls): Remove EXPORT_FUNC.
10313 (grub_setcolorstate): Inline.
10314 (grub_newline_hook): Removed.
10315 * include/grub/terminfo.h: Rewritten. All users updated.
10316 * include/grub/unicode.h: New file.
10317 * include/grub/video.h (grub_video_signed_rect): New type.
10318 * kern/emu/console.c (grub_console_highlight_color): Removed.
10319 (grub_console_normal_color): Likewise.
10320 (grub_console_standard_color): Made static.
10321 (grub_ncurses_putchar): Remove mapping.
10322 (grub_ncurses_getcharwidth): Removed.
10323 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10324 (grub_ncurses_setcolor): Removed.
10325 (grub_ncurses_getcolor): Likewise.
10326 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
10327 (grub_console_putchar): ... this.
10328 (grub_console_putchar): Handle argument difference.
10329 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
10330 console_init_early and console_init_lately.
10331 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
10332 * kern/misc.c (grub_puts): Removed.
10333 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
10334 (grub_vsnprintf_real): Remove str = NULL support.
10335 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
10336 * normal/charset.c (grub_utf8_to_ucs4): ... here.
10337 * kern/term.c (grub_putcode): Renamed to ...
10338 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
10339 (grub_putchar): Removed.
10340 (grub_xputs_dumb): New function.
10341 (grub_xputs): New variable.
10342 * lib/charset.c: Move from here ...
10343 * normal/charset.c: ... to here.
10344 (grub_ucs4_to_utf8): New function.
10345 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
10346 (join_types): New variable.
10347 (unpack_join): New function.
10348 (bidi_types): New variable.
10349 (unpack_bidi): New function.
10350 (get_bidi_type): Likewise.
10351 (get_join_type): Likewise.
10352 (is_mirrored): Likewise.
10353 (grub_unicode_get_comb_type): Likewise.
10354 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
10355 (is_type_after): Likewise.
10356 (grub_unicode_aglomerate_comb): Likewise.
10357 (bidi_line_wrap): Likewise.
10358 (grub_bidi_line_logical_to_visual): Likewise.
10359 (grub_bidi_logical_to_visual): Likewise.
10360 (grub_unicode_mirror_code): Likewise.
10361 (grub_unicode_shape_code): Likewise.
10362 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
10363 Don't use grub_putchar.
10364 * normal/main.c (grub_normal_init_page): Use grub_putcode.
10365 (grub_normal_reader_init): Likewise.
10366 (grub_xputs_saved): New variable.
10367 (GRUB_MOD_INIT): Set grub_xputs.
10368 (GRUB_MOD_FINI): Restore grub_xputs.
10369 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
10370 (menu_init): Avoid printing gfxmenu error.
10371 (show_menu): Use grub_normal_get_char_counter.
10372 * normal/menu_entry.c (update_screen): Fix out-of-array.
10373 (complete): Avoid NULL dereferencing.
10374 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
10375 * normal/menu_text.c (print_spaces): Removed.
10376 (grub_print_ucs4): Likewise.
10377 (grub_print_message_indented): Use grub_print_ucs4.
10378 (print_message): Use grub_putcode.
10379 (print_entry): Hanlde diacritics.
10380 * normal/term.c (term_state): New type.
10381 (grub_more_lines): Removed.
10382 (term_states): New variable.
10383 (grub_normal_line_counter): Renamed to ..
10384 (grub_normal_char_counter): ...this. All users updated.
10385 (grub_normal_get_line_counter): Renamed to ...
10386 (grub_normal_get_char_counter): ... this.
10387 (grub_normal_reset_more): New function.
10388 (process_newline): Removed.
10389 (print_more): New function.
10390 (grub_install_newline_hook): Removed.
10391 (map_code): New function.
10392 (grub_puts_terminal): Use grub_print_ucs4.
10393 (putglyph): New function.
10394 (putcode_real): Likewise.
10395 (grub_putcode): Use putcode_real.
10396 (get_maxwidth): New function.
10397 (get_startwidth): Likewise.
10398 (print_ucs4_terminal): Likewise.
10399 (find_term_state): Likewise.
10400 (put_glyphs_terminal): Likewise.
10401 (print_backlog): Likewise.
10402 (print_ucs4_real): Likewise.
10403 (grub_print_ucs4): Likewise.
10404 (grub_xputs_normal): Likewise.
10405 * term/efi/console.c (grub_console_putchar): Output diacritics.
10406 (grub_console_getcharwidth): Removed.
10407 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
10408 * term/gfxterm.c (clear_char): Free chars.
10409 (scroll_up): Avoid leaking memory.
10410 (grub_gfxterm_putchar): Support diacritics.
10411 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
10412 * term/i386/pc/console.c (grub_console_term_output): Declare as
10413 GRUB_TERM_CODE_TYPE_VGA.
10414 * term/i386/pc/vga.c (grub_vga_term): Declare as
10415 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
10416 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
10417 GRUB_TERM_CODE_TYPE_VGA.
10418 * term/i386/vga_common.c (map_char): Removed.
10419 (grub_console_putchar): Likewise.
10420 (grub_console_getcharwidth): Likewise.
10421 * term/ieee1275/ofconsole.c: Simplify using terminfo.
10422 (colors): Reordered to match terminfo.
10423 (grub_ofconsole_normal_color): Removed.
10424 (grub_ofconsole_writeesc): Likewise.
10425 (grub_ofconsole_highlight_color): Likewise.
10426 (grub_ofconsole_getcharwidth): Likewise.
10427 (grub_ofconsole_setcolorstate): Likewise.
10428 (grub_ofconsole_setcolor): Likewise.
10429 (grub_ofconsole_getcolor): Likewise.
10430 (grub_ofconsole_readkey): Renamed to ...
10431 (readkey): ... this. Remove escape sequence handling. Return -1 on no
10432 key.
10433 (grub_ofconsole_checkkey): Removed.
10434 (grub_ofconsole_getkey): Likewise.
10435 (grub_ofconsole_getxy): Likewise.
10436 (grub_ofconsole_gotoxy): Likewise.
10437 (grub_ofconsole_cls): Likewise.
10438 (grub_ofconsole_refresh): Likewise.
10439 (grub_ofconsole_terminfo_input): New struct.
10440 (grub_ofconsole_terminfo_output): Likewise.
10441 (grub_ofconsole_term_input): Use terminfo.
10442 (grub_ofconsole_term_output): Likewise.
10443 (grub_console_init): Split into ...
10444 (grub_console_init_early): ...this and ...
10445 (grub_console_init_lately): ...this. Use terminfo.
10446 (grub_ofconsole_putchar): Renamed to ...
10447 (put): ... this. Remove mapping.
10448 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10449 * term/serial.c: Simplify using terminfo.
10450 (xpos): Removed.
10451 (ypos): Likewise.
10452 (keep_track): Likewise.
10453 (registered): Likewise.
10454 (input_buf): Likewise.
10455 (npending): Likewise.
10456 (serial_translate_key_sequence): Likewise.
10457 (fill_input_buf): Likewise.
10458 (grub_serial_checkkey): Likewise.
10459 (grub_serial_getkey): Likewise.
10460 (grub_serial_getxy): Likewise.
10461 (grub_serial_gotoxy): Likewise.
10462 (grub_serial_putchar): Likewise.
10463 (grub_serial_cls): Likewise.
10464 (grub_serial_setcolorstate): Likewise.
10465 (grub_serial_setcursor): Likewise.
10466 (serial_hw_init): Use serial_hw_fetch.
10467 (grub_serial_terminfo_input): New variable.
10468 (grub_serial_terminfo_output): Likewise.
10469 (grub_serial_term_input): Use terminfo.
10470 (grub_serial_term_output): Likewise.
10471 * term/terminfo.c (putstr): Use put.
10472 (grub_terminfo_all_free): New function
10473 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
10474 (grub_terminfo_output_register): New function.
10475 (grub_terminfo_output_unregister): Likewise.
10476 (grub_terminfo_getxy): Likewise.
10477 (grub_terminfo_readkey): Likewise.
10478 (grub_terminfo_checkkey): Likewise.
10479 (grub_terminfo_getkey): Likewise.
10480 (grub_terminfo_input_init): Likewise.
10481 (print_terminfo): Likewise.
10482 (grub_cmd_terminfo): Handle encoding.
10483 (grub_terminfo_gotoxy): Track position.
10484 (grub_terminfo_cls): Likewise.
10485 (grub_terminfo_putchar): Likewise.
10486 (grub_terminfo_setcolorstate): Handle colors
10487 (grub_terminfo_cursor_on): This ...
10488 (grub_terminfo_cursor_off): ... and this merged into ...
10489 (grub_terminfo_setcursor): ... this.
10490 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
10491 * unicode/ArabicShaping.txt: New file (imported from Unicode).
10492 * unicode/BidiMirroring.txt: Likewise.
10493 * unicode/UnicodeData.txt: Likewise.
10494 * unicode/COPYING: Likewise.
10495 * util/grub-editenv.c (grub_putchar): Removed.
10496 (grub_xputs_real): New function.
10497 (grub_xputs): New variable.
10498 * util/grub-fstest.c (grub_putchar): Removed.
10499 (grub_xputs_real): New function.
10500 (grub_xputs): New variable.
10501 * util/grub-mkdevicemap.c (grub_putchar): Removed.
10502 (grub_xputs_real): New function.
10503 (grub_xputs): New variable.
10504 * util/grub-probe.c (grub_putchar): Removed.
10505 (grub_xputs_real): New function.
10506 (grub_xputs): New variable.
10507 * util/grub-script-check.c (grub_putchar): Removed.
10508 (grub_xputs_real): New function.
10509 (grub_xputs): New variable.
10510 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
10511 (grub_xputs_real): New function.
10512 (grub_xputs): New variable.
10513 * util/import_unicode.py: New file.
10514 * util/grub-mkfont.c (ft_errmsgs): New array.
10515 (grub_glyph_info): Make bitmap a pointer.
10516 (file_formats): New type WIDTH_SPEC.
10517 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
10518 (options): Add width-spec.
10519 (help): Likewise.
10520 (add_char): Renamed to ...
10521 (add_glyph): ... this.
10522 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
10523 (glyph_replace): New type.
10524 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
10525 (add_char): New function.
10526 (add_subst): Likewise.
10527 (process_cursive): Likewise.
10528 (add_font): Handle GSUB.
10529 (write_font_width_spec): New function.
10530 (main): Sort glyphs.
10531 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
10532 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
10533 * kern/term.c (grub_cls): Moved from here...
10534 * normal/term.c (grub_cls): ... here.
10535
10536 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10537
10538 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
10539 suitable for using within the format argument of printf when
10540 converting grub_size_t.
10541 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
10542 "x" to convert grub_size_t arguments.
10543
10544 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
10547 too long captions.
10548 (list_get_minimal_size): Take selection box into account.
10549
10550 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
10553 NULL font.
10554
10555 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10556
10557 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
10558 devices when iterating over /dev/disk/by-id; they will be handled
10559 later if appropriate, which they aren't always (e.g. LVM).
10560
10561 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10562
10563 * include/grub/misc.h (grub_reboot): Declare as noreturn.
10564 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
10565 fails.
10566 (grub_halt): Likewise.
10567 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
10568 reset-all fails.
10569 (grub_halt): Don't return, even if all of shut-down, power-off, and
10570 poweroff fail.
10571
10572 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10573
10574 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
10575 arguments, not three.
10576
10577 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10578
10579 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
10580 * util/grub.d/10_linux.in: Use it to check for LVM, so that
10581 LVM-on-RAID is handled correctly.
10582
10583 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10584
10585 * docs/grub.texi (Changes from GRUB Legacy): New section.
10586 (Future): Fix typo.
10587
10588 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10589
10590 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
10591 grub.d/README accidentally ends up executable for one reason or
10592 another. Ignore it.
10593
10594 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10595
10596 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
10597 (gpt_partition_map_iterate): Support non-512B sectors.
10598
10599 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 * kern/efi/init.c (grub_efi_init): Disable watchdog.
10602 Tested by: Seth Goldberg.
10603
10604 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
10607 Properly align mbi.
10608 Reported by: Seth Goldberg.
10609
10610 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10611
10612 * util/grub-mkrescue.in: Avoid module duplication.
10613
10614 2010-07-01 Sean Finney <seanius@seanius.net>
10615
10616 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
10617
10618 2010-07-01 Sean Finney <seanius@seanius.net>
10619
10620 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
10621
10622 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 * disk/lvm.c (grub_lvm_checkvalue): New function.
10625 (grub_lvm_check_flag): Likewise.
10626
10627 2010-07-01 Robert Millan <rmh@gnu.org>
10628
10629 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
10630 Support 'p' as partition separator on kernel of FreeBSD (used
10631 with GPT labels).
10632 (grub_util_biosdisk_get_grub_dev): Likewise.
10633
10634 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 Yeeloong firmware port.
10637
10638 * boot/mips/yeeloong/fwstart.S: New file.
10639 * bus/cs5536.c (gpiodump): New const.
10640 (set_io_space): New function.
10641 (set_iod): Likewise.
10642 (set_p2d): Likewise.
10643 (grub_cs5536_init_geode): Likewise.
10644 * commands/mips/yeeloong/lsspd.c: New file.
10645 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
10646 (serial_mod_SOURCES): New variable.
10647 (serial_mod_CFLAGS): Likewise.
10648 (serial_mod_LDFLAGS): Likewise.
10649 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
10650 term/terminfo.c and term/tparm.c.
10651 (pkglib_IMAGES): Add fwstart.img.
10652 (fwstart_img_SOURCES): New variable.
10653 (fwstart_img_CFLAGS): Likewise.
10654 (fwstart_img_ASFLAGS): Likewise.
10655 (fwstart_img_LDFLAGS): Likewise.
10656 (fwstart_img_FORMAT): Likewise.
10657 (pkglib_MODULES): Add lsspd.mod.
10658 (lsspd_mod_SOURCES): New variable.
10659 (lsspd_mod_CFLAGS): Likewise.
10660 (lsspd_mod_LDFLAGS): Likewise.
10661 (pkglib_MODULES): Add halt.mod.
10662 (halt_mod_SOURCES): New variable.
10663 (halt_mod_CFLAGS): Likewise.
10664 (halt_mod_LDFLAGS): Likewise.
10665 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
10666 (serial_mod_SOURCES): Removed.
10667 (serial_mod_CFLAGS): Likewise.
10668 (serial_mod_LDFLAGS): Likewise.
10669 * disk/ata.c (check_device): New function.
10670 (grub_ata_device_initialize): Use check_device.
10671 (grub_ata_iterate): Recheck devices.
10672 (grub_ata_open): Likewise.
10673 (grub_atapi_iterate): Likewise.
10674 (grub_atapi_open): Likewise.
10675 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
10676 (GRUB_ATA_CH1_PORT1): Likewise.
10677 (GRUB_ATA_CH0_PORT2): Likewise.
10678 (GRUB_ATA_CH1_PORT2): Likewise.
10679 * include/grub/mips/loongson.h: New file.
10680 * include/grub/mips/yeeloong/ec.h: Likewise.
10681 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
10682 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
10683 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
10684 * include/grub/misc.h (grub_halt): Declare as noreturn.
10685 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
10686 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
10687 (UART_ENABLE_FIFO_TRIGGER1): New definition.
10688 (UART_ENABLE_DTRRTS): Likewise.
10689 (UART_ENABLE_MODEM): Removed.
10690 (UART_ENABLE_OUT2): New const.
10691 * include/grub/term.h (grub_term_register_input_active): New function.
10692 (grub_term_register_output_active): Likewise.
10693 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
10694 argument.
10695 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
10696 (init_pci): New function.
10697 (grub_machine_init): Execute platform init when firmware. Init serial.
10698 (grub_halt): Implement.
10699 (grub_exit): Likewise.
10700 (grub_reboot): Likewise.
10701 * term/serial.c (serial_hw_init): Update macros.
10702 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
10703 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
10704 (image_targets): New target mipsel-yeeloong-flash.
10705 (generate_image): Support IMAGE_YEELOONG_FLASH.
10706 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
10707 (grub_video_sm712_setup): Init card.
10708 (grub_video_sm712_set_palette): Removed.
10709 * video/sm712_init.c: New file.
10710
10711 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
10712
10713 * Makefile.in (install-local): Temporarily prepend $(builddir) to
10714 PATH when running help2man and then run it on the unadorned
10715 executable names, rather than passing $(builddir)/* paths to
10716 help2man. This avoids the build directory ending up in generated
10717 manual pages.
10718
10719 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10720
10721 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
10722 to avoid accidents when debugging with 'sh -x'.
10723 * util/grub-mkrescue.in: Likewise.
10724 * util/grub.d/00_header.in: Likewise.
10725 * util/grub.d/10_hurd.in: Likewise.
10726 * util/grub.d/10_kfreebsd.in: Likewise.
10727 * util/grub.d/10_linux.in: Likewise.
10728 * util/grub.d/10_netbsd.in: Likewise.
10729 * util/grub.d/10_windows.in: Likewise.
10730 * util/grub.d/20_linux_xen.in: Likewise.
10731 * util/grub.d/30_os-prober.in: Likewise.
10732 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10733
10734 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10735
10736 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
10737 last character in the buffer.
10738 Reported by: Vladimir Serbinenko.
10739
10740 2010-06-29 Robert Millan <rmh@gnu.org>
10741
10742 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
10743 (Command-line and menu entry commands): Document `badram' command.
10744
10745 2010-06-28 Robert Millan <rmh@gnu.org>
10746
10747 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
10748 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
10749 command using ${GRUB_BADRAM} as parameter.
10750
10751 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10752
10753 * docs/grub.texi (Device map): New section.
10754 (Themes): New section (stub).
10755 * Makefile.in (docs/grub.info): The info documentation now builds
10756 without errors. Make sure it stays that way.
10757
10758 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 Use normal parser for menu entries.
10761 Reported by: Thomas Frauendorfer
10762
10763 * include/grub/parser.h (grub_parser_execute): Don't export.
10764 * normal/menu.c (grub_menu_execute_entry_real): New function.
10765 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
10766
10767 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10768
10769 * docs/grub.texi (Embedded configuration): New section (replacing
10770 old "Preset Menu" stub).
10771 (Images): New section.
10772 (configfile): Note that any menu entries defined in `file' are shown
10773 immediately.
10774
10775 2010-06-28 Josh Triplett <josh@joshtriplett.org>
10776
10777 * mmap/i386/pc/mmap_helper.S: Set CF on return.
10778
10779 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10780
10781 * util/grub-install.in: Add --debug-image= option.
10782
10783 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10784
10785 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
10786 possible on Linux.
10787
10788 * util/deviceiter.c (check_device): Rename to ...
10789 (check_device_readable_unique): ... this. Update all callers.
10790 Maintain and check a list of which devices (by canonicalized name)
10791 have already been seen.
10792 (clear_seen_devices): New function.
10793 (compare_file_names) [__linux__]: New function.
10794 (grub_util_iterate_devices): Clear the list of seen devices on exit
10795 and (just in case) on entry.
10796 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
10797 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
10798 seen-devices list, superseded by general code in check_device.
10799
10800 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10801
10802 * commands/cat.c (options): New variable.
10803 (grub_cmd_cat): Parse options. If the --dos option is given, print
10804 DOS-style "\r\n" line endings as simple newlines (Debian bug
10805 #586358).
10806 (GRUB_MOD_INIT): Use extcmd.
10807 (GRUB_MOD_FINI): Likewise.
10808 * docs/grub.texi (cat): Document --dos.
10809
10810 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 XEN with Linux grub-mkconfig support.
10813
10814 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
10815 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
10816 GRUB_CMDLINE_XEN_DEFAULT.
10817 * util/grub.d/20_linux_xen.in: New file.
10818
10819 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 Initialise VGA video on qemu ourselves.
10822
10823 * boot/i386/qemu/boot.S: Don't call 0xc000.
10824 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
10825 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
10826 (kernel_img_HEADERS): Add pci.h.
10827 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
10828 * configure.ac: Force unifont on qemu and yeeloong.
10829 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
10830 (grub_vga_palette_write): Use correct register.
10831 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
10832 Call grub_qemu_init_cirrus.
10833 * kern/i386/qemu/init.c: New file.
10834 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
10835
10836 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
10837
10838 2010-06-26 Pavel Roskin <proski@gnu.org>
10839
10840 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
10841 13.
10842
10843 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10844
10845 * docs/grub.texi (Simple configuration): Explain that
10846 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
10847 set to `true' to disable their respective recovery entries, not
10848 merely set.
10849
10850 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10851
10852 Make the `source' command slightly faster.
10853
10854 * normal/main.c (grub_normal_execute): Don't re-read list files when
10855 nested.
10856
10857 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10858
10859 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
10860 field position and mask size to red fields from mode_info, not
10861 green.
10862 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
10863 Remove redundant tag->common.framebuffer_type assignment.
10864 Reported by: Seth Goldberg.
10865
10866 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10867
10868 Sync up other versions of the Linux loader with Robert Millan's
10869 change of 2010-01-09, "Make loader output a bit more user-friendly".
10870
10871 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
10872 grub_dprintf().
10873 (grub_cmd_linux): Likewise.
10874 (grub_cmd_initrd): Likewise.
10875 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
10876 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10877
10878 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
10879
10880 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
10881 larger than MEMORY_MAP_SIZE.
10882
10883 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
10884
10885 Fix parallel build.
10886
10887 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
10888 dependency.
10889 * script/parser.y: #include grub_script.tab.h header.
10890
10891 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 Support >3GiB and <16MiB RAM in i386-qemu.
10894
10895 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
10896 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
10897 (grub_lower_mem): Removed.
10898 (grub_upper_mem): Likewise.
10899 (mem_size): Made static.
10900 (above_4g): New variable.
10901 (grub_machine_mmap_init): Detect small mem_size and above_4g.
10902 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
10903 support.
10904
10905 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 Cirrus 5446 and Bochs video cards support.
10908
10909 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
10910 video_bochs.mod
10911 (video_cirrus_mod_SOURCES): New variable.
10912 (video_cirrus_mod_CFLAGS): Likewise.
10913 (video_cirrus_mod_LDFLAGS): Likewise.
10914 (video_bochs_mod_SOURCES): Likewise.
10915 (video_bochs_mod_CFLAGS): Likewise.
10916 (video_bochs_mod_LDFLAGS): Likewise.
10917 * include/grub/vga.h: New file.
10918 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
10919 (grub_video_fb_set_page_t): New type.
10920 (grub_video_fb_setup): New prototype.
10921 (grub_video_fb_swap_buffers): Likewise.
10922 (grub_video_fb_get_info_and_fini): Likewise.
10923 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
10924 (CRTC_DATA_PORT): Likewise.
10925 (CRTC_CURSOR): Likewise.
10926 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10927 (CRTC_CURSOR_ADDR_LOW): Likewise.
10928 (CRTC_CURSOR_DISABLE): Likewise.
10929 (update_cursor): Use grub_vga_cr_write.
10930 (grub_vga_text_setcursor): Likewise.
10931 * video/bochs.c: New file.
10932 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
10933 (palette): Likewise.
10934 (palette_size): Likewise.
10935 (framebuffer): New variable.
10936 (grub_video_fb_init): Use 'framebuffer'.
10937 (grub_video_fb_fini): Likewise.
10938 (grub_video_fb_get_info): Likewise.
10939 (grub_video_fb_get_palette): Likewise.
10940 (grub_video_fb_set_palette): Likewise.
10941 (grub_video_fb_set_viewport): Likewise.
10942 (grub_video_fb_get_viewport): Likewise.
10943 (grub_video_fb_map_color): Likewise.
10944 (grub_video_fb_map_rgb): Likewise.
10945 (grub_video_fb_map_rgba): Likewise.
10946 (grub_video_fb_unmap_color): Likewise.
10947 (grub_video_fb_unmap_color_int): Likewise.
10948 (grub_video_fb_fill_rect): Likewise.
10949 (grub_video_fb_blit_bitmap): Likewise.
10950 (grub_video_fb_blit_render_target): Likewise.
10951 (grub_video_fb_scroll): Likewise.
10952 (grub_video_fb_create_render_target): Likewise.
10953 (grub_video_fb_doublebuf_blit_init): Likewise.
10954 (grub_video_fb_set_active_render_target): Handle doublebuffering.
10955 (doublebuf_pageflipping_update_screen): New function.
10956 (doublebuf_pageflipping_init): Likewise.
10957 (grub_video_fb_setup): Likewise.
10958 (grub_video_fb_swap_buffers): Likewise.
10959 (grub_video_fb_get_info_and_fini): Likewise.
10960 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
10961 All users updated.
10962 (doublebuf_pageflipping_commit): Restructured into ...
10963 (doublebuf_pageflipping_set_page): ... this.
10964 (doublebuf_pageflipping_update_screen): Removed.
10965 (doublebuf_pageflipping_init): Likewise.
10966 (double_buffering_init): Likewise.
10967 (grub_video_vbe_setup): Use grub_video_fb_setup.
10968 (grub_video_vbe_swap_buffers): Removed.
10969 (grub_video_vbe_set_active_render_target): Likewise.
10970 (grub_video_vbe_get_active_render_target): Likewise.
10971 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
10972 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
10973 grub_video_fb_set_active_render_target and
10974 grub_video_fb_get_active_render_target.
10975 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
10976 (SEQUENCER_DATA_PORT): Likewise.
10977 (MAP_MASK_REGISTER): Likewise.
10978 (CRTC_ADDR_PORT): Likewise.
10979 (CRTC_DATA_PORT): Likewise.
10980 (START_ADDR_HIGH_REGISTER): Likewise.
10981 (START_ADDR_LOW_REGISTER): Likewise.
10982 (GRAPHICS_ADDR_PORT): Likewise.
10983 (GRAPHICS_DATA_PORT): Likewise.
10984 (READ_MAP_REGISTER): Likewise.
10985 (INPUT_STATUS1_REGISTER): Likewise.
10986 (INPUT_STATUS1_VERTR_BIT): Likewise.
10987 (get_map_mask): Use grub_vga_sr_read.
10988 (set_map_mask): Use grub_vga_sr_write.
10989 (set_read_map): Use grub_vga_gr_write.
10990 (set_start_address): Use grub_vga_cr_write.
10991 * video/sm712.c (framebuffer): Remove leftover fields.
10992
10993 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
10994
10995 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
10996 setting GRUB_VIDEO_BACKEND. Make it available as a user override
10997 instead. Replace the gfxterm backend check with a check that
10998 ${GRUB_PREFIX}/video.lst is non-empty.
10999 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
11000 again.
11001 (load_video): New generated function. Call it before loading
11002 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
11003 * util/grub.d/10_linux.in (linux_entry): Call load_video.
11004 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
11005 * docs/grub.texi (Simple configuration): Document
11006 GRUB_VIDEO_BACKEND.
11007
11008 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 Use video functions in linux and xnu loaders.
11011
11012 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
11013 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
11014 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
11015 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
11016 loader/i386/pc/linux.c.
11017 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
11018 (find_line_len): Removed.
11019 (find_framebuf): Likewise.
11020 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
11021 * loader/i386/efi/xnu.c: Removed.
11022 * loader/i386/pc/xnu.c: Moved from here...
11023 * loader/i386/xnu.c: ...here.
11024
11025 Enable priorities in video drivers.
11026
11027 * include/grub/video.h (grub_video_adapter_prio_t): New type.
11028 (grub_video_adapter): New field prio.
11029 (grub_video_register): Respect prio when inserting.
11030 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
11031 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
11032 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
11033 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
11034 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
11035 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
11036 * video/sm712.c (grub_video_sm712_adapter): Likewise.
11037
11038 Fix SDL driver ID.
11039
11040 * include/grub/video.h (grub_video_driver_id_t): New value
11041 GRUB_VIDEO_DRIVER_SDL.
11042 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
11043
11044 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11045
11046 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
11047 argument to printf.
11048 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11049
11050 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11051
11052 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
11053 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11054
11055 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11056
11057 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
11058 directly, and recommend grub-install instead.
11059 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11060
11061 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11062
11063 Fix i386-pc prefix handling with nested partitions (Debian bug
11064 #585068). Note that the case where the core image is booted using
11065 multiboot and relocated from its original location still requires
11066 more work.
11067
11068 * kern/i386/pc/init.c (make_install_device): If the prefix starts
11069 with "(,", fill the boot drive in between those two characters, but
11070 expect that a full partition specification including partition map
11071 names will follow.
11072 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
11073 specified, write a prefix without the drive name but including a
11074 full partition specification.
11075
11076 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
11077
11078 * util/grub-mkconfig.in: Ignore non-option arguments, for
11079 compatibility with older versions (before 2010-06-12) which did the
11080 same. In particular, this makes it easier to ship an update-grub
11081 wrapper which is compatible with that used with GRUB Legacy (Debian
11082 bug #586056).
11083
11084 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11085
11086 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
11087 for manual page generation.
11088
11089 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11090
11091 * po/POTFILES: Remove leftover commands/handler.c.
11092
11093 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
11094
11095 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
11096 left this script non-functional.
11097
11098 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
11099
11100 * docs/man/grub-emu.h2m: New file.
11101
11102 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
11103
11104 * docs/grub.texi (Commands): Document reduced command set in rescue
11105 mode.
11106 (cpuid): New section.
11107
11108 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
11109
11110 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
11111 new partition naming style.
11112 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
11113
11114 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
11115
11116 Add "-o grub.iso" like cmdline options support.
11117
11118 * util/grub-install.in: Improve cmdline option parsing.
11119 * util/grub-mkconfig.in: Likewise.
11120 * util/grub-mkrescue.in: Likewise.
11121 * util/grub-reboot.in: Likewise.
11122 * util/grub-set-default.in: Likewise.
11123 * util/i386/efi/grub-install.in: Likewise.
11124 * util/ieee1275/grub-install.in: Likewise.
11125 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11126
11127 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11128
11129 * .bzrignore: Ignore 41_custom.
11130
11131 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
11132
11133 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
11134
11135 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11136
11137 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
11138 prototype declarations.
11139
11140 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
11141 generating fs, partmap, and video lists.
11142 * include/grub/fs.h (grub_fs_register): Omit prototype if
11143 GRUB_LST_GENERATOR is defined.
11144 * include/grub/partition.h (grub_partition_map_register): Likewise.
11145 * include/grub/video.h (grub_video_register): Likewise.
11146
11147 2010-06-12 Javier Martín <lordhabbit@gmail.com>
11148
11149 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
11150
11151 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
11152
11153 * util/grub-mkrescue.in: Support --xorriso argument.
11154
11155 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11156
11157 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
11158 Suggested by: Thomas Schmitt.
11159
11160 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
11163 Suggested by: Thomas Schmitt.
11164
11165 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 custom.cfg support.
11168
11169 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
11170 * util/grub.d/41_custom.in: New file.
11171
11172 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11173
11174 * util/grub-mkrescue.in (make_image): Remove sh module, which has
11175 been merged back into normal.
11176
11177 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
11178
11179 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
11180 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
11181
11182 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
11183
11184 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
11185 when generating manual pages.
11186 * docs/man/grub-bin2h.h2m: New file.
11187 * docs/man/grub-editenv.h2m: New file.
11188 * docs/man/grub-fstest.h2m: New file.
11189 * docs/man/grub-install.h2m: New file.
11190 * docs/man/grub-macho2img.h2m: New file.
11191 * docs/man/grub-mkconfig.h2m: New file.
11192 * docs/man/grub-mkdevicemap.h2m: New file.
11193 * docs/man/grub-mkfont.h2m: New file.
11194 * docs/man/grub-mkimage.h2m: New file.
11195 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
11196 * docs/man/grub-mkrelpath.h2m: New file.
11197 * docs/man/grub-mkrescue.h2m: New file.
11198 * docs/man/grub-ofpathname.h2m: New file.
11199 * docs/man/grub-pe2elf.h2m: New file.
11200 * docs/man/grub-probe.h2m: New file.
11201 * docs/man/grub-reboot.h2m: New file.
11202 * docs/man/grub-script-check.h2m: New file.
11203 * docs/man/grub-set-default.h2m: New file.
11204 * docs/man/grub-setup.h2m: New file.
11205
11206 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 Use FOR_* macros instead of *_iterate whenever possible.
11209
11210 * commands/handler.c: Removed.
11211 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
11212 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
11213 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11214 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
11215 (grub_probe_SOURCES): Remove kern/parser.c.
11216 (util/grub-script-check.c_DEPENDENCIES): Removed.
11217 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
11218 and grub_script_check_init.c.
11219 (grub_script_check_init.lst): Removed.
11220 (grub_script_check_init.h): Likewise.
11221 (grub_script_check_init.c): Likewise.
11222 (pkglib_MODULES): Remove handler.mod and sh.mod.
11223 (handler_mod_SOURCES): Removed.
11224 (handler_mod_CFLAGS): Likewise.
11225 (handler_mod_LDFLAGS): Likewise.
11226 (normal_mod_SOURCES): Remove normal/handler.c.
11227 Add script/main.c, script/script.c, script/execute.c,
11228 script/function.c, script/lexer.c, grub_script.tab.c
11229 and grub_script.yy.c.
11230 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11231 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11232 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
11233 (grub_setup_SOURCES): Remove kern/parser.c.
11234 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11235 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
11236 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11237 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11238 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11239 (grub_setup_SOURCES): Remove kern/parser.c.
11240 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11241 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
11242 * include/grub/command.h (grub_command_iterate): Removed.
11243 (FOR_COMMANDS): New macro.
11244 * include/grub/dl.h (grub_dl): New member next.
11245 (grub_dl_iterate): Removed.
11246 (grub_dl_head): New variable declaration.
11247 (FOR_DL_MODULES): New macro.
11248 * include/grub/fs.h: Include list.h.
11249 (grub_fs): Make next first element.
11250 (grub_fs_list): New variable declaration.
11251 (grub_fs_register): Make inline.
11252 (grub_fs_unregister): Likewise.
11253 (grub_fs_iterate): Removed.
11254 (FOR_FILESYSTEMS): New macro.
11255 * include/grub/handler.h: Removed.
11256 * include/grub/list.h (grub_list_hook_t): Removed.
11257 (grub_list_test_t): Likewise.
11258 (grub_list_pop): Likewise.
11259 (grub_list_iterate): Likewise.
11260 (grub_list_insert): Likewise.
11261 (FOR_LIST_ELEMENTS): New macro.
11262 * include/grub/parser.h (grub_parser_class): Removed.
11263 (grub_parser_register): Likewise.
11264 (grub_parser_unregister): Likewise.
11265 (grub_parser_get_current): Likewise.
11266 (grub_parser_set_current): Likewise.
11267 (grub_register_rescue_parser): Likewise.
11268 (grub_rescue_parse_line): New function.
11269 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
11270 * include/grub/script_sh.h (grub_script_function_list): New variable
11271 declaration.
11272 (FOR_SCRIPT_FUNCTIONS): New macro.
11273 (grub_script_function_iterate): Removed.
11274 (grub_normal_parse_line): New prototype.
11275 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
11276 (FOR_DISABLED_TERM_INPUTS): Likewise.
11277 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
11278 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
11279 * include/grub/video.h (grub_video_adapter): Move 'next' to first
11280 element.
11281 (grub_video_register): Inline.
11282 (grub_video_unregister): Likewise.
11283 (grub_video_adapter_list): New variable declaration.
11284 (grub_video_iterate): Removed.
11285 (FOR_VIDEO_ADAPTERS): New macro.
11286 * kern/dl.c (grub_dl_list): Removed. All users updated.
11287 (grub_dl_iterate): Removed.
11288 * kern/fs.c (grub_fs_list): Make global.
11289 (grub_fs_register): Removed.
11290 (grub_fs_unregister): Likewise.
11291 (grub_fs_iterate): Likewise.
11292 * kern/handler.c: Removed.
11293 * kern/list.c (grub_list_pop): Removed.
11294 (grub_list_iterate): Likewise.
11295 (grub_list_insert): Likewise.
11296 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
11297 (grub_prio_list_insert): Don't use grub_list_insert.
11298 * kern/main.c (grub_register_rescue_parser): Don't call
11299 grub_register_rescue_parser.
11300 * kern/parser.c (grub_parser_class): Removed.
11301 (grub_parser_execute): Use grub_rescue_parse_line.
11302 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
11303 (grub_rescue_parser): Removed.
11304 (grub_register_rescue_parser): Likewise.
11305 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
11306 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
11307 (grub_auth_check_authentication): Likewise.
11308 * normal/completion.c (iterate_command): Removed.
11309 (grub_normal_do_completion): Use FOR_COMMANDS.
11310 * normal/handler.c: Removed.
11311 * normal/main.c (read_config_file): Remove parser changing.
11312 (grub_normal_execute): Don't call read_handler_list.
11313 (grub_normal_read_line_real): Statically allocate prompt.
11314 (grub_cmdline_run): Use grub_normal_parse_line.
11315 (GRUB_MOD_FINI): Don't call free_handler_list.
11316 * normal/menu_entry.c (run): Likewise.
11317 * script/function.c (grub_script_function_list): Make global.
11318 (grub_script_function_iterate): Removed.
11319 * script/main.c (grub_normal_parse_line): Make global.
11320 (grub_sh_parser): Removed.
11321 (GRUB_MOD_INIT): Likewise.
11322 (GRUB_MOD_FINI): Likewise.
11323 * tests/lib/functional_test.c (grub_functional_test): Use
11324 FOR_LIST_ELEMENTS.
11325 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
11326 (grub_test_run): Use FOR_LIST_ELEMENTS.
11327 * tests/lib/unit_test.c (main): Likewise.
11328 * util/deviceiter.c (grub_util_iterate_devices): Don't use
11329 grub_list_pop.
11330 * util/grub-fstest.c (grub_term_input_class): Removed.
11331 (grub_term_output_class): Likewise.
11332 * util/grub-probe.c: Likewise.
11333 * util/i386/pc/grub-setup.c: Likewise.
11334 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11335 * util/grub-script-check.c (main): Don't call grub_init_all and
11336 grub_fini_all.
11337 * video/video.c (grub_video_adapter_list): Make global.
11338 (grub_video_register): Removed.
11339 (grub_video_unregister): Likewise.
11340 (grub_video_iterate): Likewise.
11341
11342 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
11345 reported by Henrique Ferreiro.
11346
11347 2010-06-09 Robert Millan <rmh@gnu.org>
11348
11349 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
11350 ones, when both are available.
11351
11352 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11353
11354 Make --version uniform and avoid hard-coded program name.
11355
11356 * util/grub-mkimage.c (main): Use `program_name' instead of
11357 hard-coded string.
11358 * util/i386/pc/grub-setup.c (main): Likewise.
11359 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
11360 * util/grub-install.in: Save the basename of $0 in $self, and use the
11361 latter in informational messages. Use the same format for --version
11362 as the binary programs.
11363 * util/grub-mkconfig.in: Likewise.
11364 * util/grub-mkrescue.in: Likewise.
11365 * util/grub-reboot.in: Likewise.
11366 * util/grub-set-default.in: Likewise.
11367 * util/i386/efi/grub-install.in: Likewise.
11368 * util/ieee1275/grub-install.in: Likewise.
11369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11370
11371 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11372
11373 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
11374 embedding area. Use <= instead of == when checking for non-emptiness.
11375
11376 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11377
11378 * configure.ac: Add `.' to the directories searched for unifont.
11379
11380 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11381
11382 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
11383 grub_script.yy.h.
11384
11385 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11386
11387 * docs/grub.texi (History): Expand to cover GRUB 2.
11388 (Serial terminal): Refer to `terminal_input' and `terminal_output'
11389 commands, not `terminal'.
11390 (serial): Likewise.
11391 (terminal_input): New section.
11392 (terminal_output): New section.
11393 (uppermem): New section (stub).
11394 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
11395
11396 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11397
11398 * docs/grub.texi (Security): Menu entries are unrestricted by
11399 default, not restricted to superusers as I had previously thought.
11400 Reword to account for this.
11401
11402 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11403
11404 * kern/emu/misc.c (device_mapper_null_log): New function.
11405 (grub_device_mapper_supported): New function.
11406 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
11407 prototype.
11408 * kern/emu/hostdisk.c (find_partition_start): Check whether
11409 device-mapper is supported before trying to use it.
11410 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
11411
11412 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11413
11414 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
11415 (File name syntax): Likewise.
11416 (help): --all is no longer supported in GRUB 2. Be more precise
11417 about pattern matching.
11418
11419 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11420
11421 * normal/completion.c (grub_normal_do_completion): When completing
11422 arguments to "set" and the current word contains an equals sign,
11423 skip to after the equals sign before starting completion.
11424
11425 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11426
11427 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
11428
11429 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11430
11431 * docs/grub.texi (Network): New section.
11432 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
11433 `(nd)' as in GRUB Legacy.
11434 (pxe_unload): New section.
11435
11436 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11437
11438 * docs/grub.texi (Troubleshooting): `echo' is not usually available
11439 in the rescue shell, so recommend using `set' instead. Thanks,
11440 Jordan Uggla.
11441
11442 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11443
11444 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
11445 (password): New section.
11446 (password_pbkdf2): New section.
11447 (search): New section.
11448 (Security): New section.
11449 (Troubleshooting): New section, currently very incomplete.
11450 (Invoking grub-mkpasswd-pbkdf2): New section.
11451 (Internals): New section, currently very incomplete.
11452
11453 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11454
11455 * util/grub.d/00_header.in: Add some more quoting (of
11456 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
11457 work again.
11458 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
11459
11460 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11461
11462 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
11463 to `count', fixing variable shadowing that broke the -c option.
11464
11465 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
11466
11467 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
11468 in case they contain spaces.
11469
11470 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11471
11472 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
11473 "part_" to partmap module names, in line with grub-install.
11474 Reported by: Jindřich Makovička (Debian bug #584426).
11475
11476 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11477
11478 * util/grub-mkimage.c: Make target-related error messages slightly
11479 more helpful; -O talks about "format". Explicitly point to the use
11480 of -O if no target is specified.
11481 Reported by: Didier Raboud (Debian bug #584415).
11482
11483 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
11484
11485 * INSTALL: Document several build requirements for optional features
11486 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
11487
11488 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11489
11490 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
11491 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
11492 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
11493
11494 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11495
11496 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
11497 Thanks to Jordan Uggla for spotting this.
11498
11499 2010-06-02 Aleš Nesrsta <starous@volny.cz>
11500
11501 Finally make USB usable.
11502
11503 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
11504 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
11505 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
11506 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
11507 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
11508 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
11509 (GRUB_OHCI_FSMPS): Likewise.
11510 (GRUB_OHCI_PERIODIC_START): Likewise.
11511 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
11512 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
11513 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
11514 (GRUB_OHCI_SET_PORT_RESET): Likewise.
11515 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
11516 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
11517 (grub_ohci_transaction): Likewise.
11518 (grub_ohci_transfer): Improve condition detection algorithms.
11519 Handle toggle property. Program the transactions correctly.
11520 Improve error handling. Various important fixups.
11521 (grub_ohci_portstatus): Put register writes in right order.
11522 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
11523 (grub_uhci_transfer): Don't show "failed" message on success.
11524 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
11525 array.
11526 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
11527 determine its size.
11528 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
11529 before initialization is completed. Use IN direction for empty
11530 transfers. Use last_trans and compute toggle.
11531 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
11532 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
11533 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
11534 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
11535 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
11536 (grub_usb_device): Increase toggle to 256.
11537 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
11538 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
11539 GRUB_USBMS_SUBCLASS_SFF8070.
11540 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
11541 (grub_scsi_inquiry): New member page and alloc_length.
11542 (grub_scsi_request_sense): New structure.
11543 (grub_scsi_request_sense_data): Likewise.
11544 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
11545 control.
11546 * disk/scsi.c (grub_scsi_request_sense): New function.
11547 (grub_scsi_test_unit_ready): Likewise.
11548 (grub_scsi_inquiry): Fill new fields.
11549 (grub_scsi_read_capacity): Likewise.
11550 (grub_scsi_read10): Add request sense at the end.
11551 (grub_scsi_read12): Likewise.
11552 (grub_scsi_write10): Likewise.
11553 (grub_scsi_write12): Likewise.
11554 (grub_scsi_open): Add Test Unit Ready.
11555 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
11556 Support additional subclasses. Con't clear halt yet. Activate the
11557 proper config. Calculate LUNs correctly.
11558 (grub_usbms_transfer): Various important fixups.
11559
11560 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
11563 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
11564 (grub_ohci_fini_hw): New function.
11565 (grub_ohci_restore_hw): Likewise.
11566 (GRUB_MOD_INIT(ohci)): Register preboot hook.
11567 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
11568 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
11569
11570 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 Dedicated DMA allocations.
11573
11574 * bus/pci.c (grub_memalign_dma32): New function
11575 (grub_dma_free): Likewise.
11576 (grub_dma_get_virt): Likewise.
11577 (grub_dma_get_phys): Likewise.
11578 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
11579 (grub_ohci_pci_iter): Use dma32_alloc.
11580 (grub_ohci_transfer): Likewise.
11581 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
11582 (grub_usb_bulk_readwrite): Likewise.
11583 * include/grub/pci.h: Add declarations.
11584
11585 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 CS5536 support.
11588
11589 * bus/cs5536.c: New file.
11590 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
11591 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
11592 (cs5536_mod_SOURCES): New variable.
11593 (cs5536_mod_CFLAGS): Likewise.
11594 (cs5536_mod_LDFLAGS): Likewise.
11595 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
11596 machine/pci.h.
11597 (kernel_img_SOURCES): Add bus/cs5536.c.
11598 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
11599 usb_keyboard.mod.
11600 (usb_mod_SOURCES): New variable.
11601 (usb_mod_CFLAGS): New variable.
11602 (usb_mod_LDFLAGS): New variable.
11603 (usbtest_mod_SOURCES): New variable.
11604 (usbtest_mod_CFLAGS): New variable.
11605 (usbtest_mod_LDFLAGS): New variable.
11606 (ohci_mod_SOURCES): New variable.
11607 (ohci_mod_CFLAGS): New variable.
11608 (ohci_mod_LDFLAGS): New variable.
11609 (usbms_mod_SOURCES): New variable.
11610 (usbms_mod_CFLAGS): New variable.
11611 (usbms_mod_LDFLAGS): New variable.
11612 (usb_keyboard_mod_SOURCES): New variable.
11613 (usb_keyboard_mod_CFLAGS): New variable.
11614 (usb_keyboard_mod_LDFLAGS): New variable.
11615 * include/grub/smbus.h: New file.
11616 * include/grub/cs5536.h: New file.
11617
11618 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11619
11620 * util/grub.d/00_header.in: Add safety check to make sure that
11621 ${locale_dir} exists before trying to probe it.
11622
11623 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11624
11625 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
11626 per the GNU Coding Standards; this is now too obscure to be worth
11627 documenting.
11628 (QNX): Likewise.
11629 (chainloader): Remove cross-reference to `SCO UnixWare'.
11630
11631 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11632
11633 * docs/grub.texi (Chain-loading): New section.
11634 (DOS/Windows): New section, borrowed from GRUB Legacy with details
11635 adjusted for GRUB 2.
11636 (SCO UnixWare): Likewise.
11637 (QNX): Likewise.
11638 (chainloader): Add reference to `Block list syntax'.
11639 (drivemap): New section.
11640 (parttool): New section.
11641
11642 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11643
11644 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
11645 the grub shell'.
11646 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
11647 (Installing GRUB using grub-install): Remove reference to the grub
11648 shell; mention `grub-mkimage' and `grub-setup' instead.
11649 (Invoking grub-install): Likewise.
11650 (Interface): Add reference to `Menu entry editor'.
11651 (serial): Remove `--device' option.
11652
11653 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11654
11655 * docs/grub.texi (Configuration): New section, documenting
11656 configuration file generation using grub-mkconfig. I've left a slot
11657 for documenting the full shell scripting format but have not yet
11658 started on writing that up.
11659 (Invoking grub-mkconfig): New section.
11660
11661 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11662
11663 * docs/grub.texi (direntry): Remove grub-terminfo reference.
11664 (GNU GRUB manual): Likewise.
11665 (General commands): Update description of `terminfo' for GRUB 2.
11666
11667 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11668
11669 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
11670 (GRUB_MOD_INIT): Fix capitalisation.
11671 * docs/grub.texi (Command-line and menu entry commands): Document
11672 gettext and gptsync commands.
11673
11674 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11675
11676 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
11677 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
11678
11679 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
11680
11681 Add btrfs probing support, currently only in the single-device case.
11682
11683 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
11684 function.
11685 (grub_guess_root_device): Call find_root_device_from_mountinfo
11686 before looking in /dev.
11687
11688 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11689
11690 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
11691 GRUB_DISK_SIZE_UNKNOWN.
11692 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
11693
11694 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
11695
11696 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
11697 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
11698 corrupted or not synced properly.
11699
11700 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11701
11702 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
11703 Reported by: Seth Goldberg.
11704
11705 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
11708 addition of dest.
11709 Reported by: Seth Goldberg.
11710
11711 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
11714 Reported by: Seth Goldberg.
11715
11716 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
11719 64-bit address as signed on MIPS.
11720
11721 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11722
11723 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
11724 to the empty string.
11725
11726 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
11727
11728 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
11729
11730 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
11731 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
11732 * kern/misc.c (__enable_execute_stack): Disable on
11733 GRUB_MACHINE_EMU.
11734
11735 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11736
11737 Make grub-probe work with symbolic links under /dev/mapper as well
11738 as with real block devices. The Linux world seems to be (at best)
11739 in transition here, and GRUB shouldn't get caught in the middle.
11740
11741 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
11742 /dev/mapper.
11743
11744 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11745
11746 * util/grub-script-check.c (main): Ensure defined behaviour on empty
11747 input files (in which case exit zero).
11748
11749 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11750
11751 * kern/emu/misc.c (canonicalize_file_name): realpath can still
11752 return NULL for various reasons even if it has a maximum-length
11753 buffer: for example, there might be a symlink loop, or the path
11754 might exceed PATH_MAX. If this happens, return NULL.
11755
11756 2010-05-27 Robert Millan <rmh@gnu.org>
11757
11758 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
11759 partmap module to handle cross-partmap setups.
11760 Reported by Orestes Mas. Gràcies!
11761
11762 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11763
11764 * util/grub-mkrescue.in: Initialise override_dir rather than
11765 assuming that it's unset or empty in the environment.
11766
11767 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
11768
11769 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
11770 variable index into p_index to suppress a warning with -Wshadow.
11771
11772 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
11773
11774 * INSTALL: Added flex >= 2.5.35 requirement.
11775
11776 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11777
11778 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
11779
11780 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 cmostest support.
11783
11784 * commands/i386/cmostest.c: New file.
11785 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
11786 (cmostest_mod_SOURCES): New variable.
11787 (cmostest_mod_CFLAGS): Likewise.
11788 (cmostest_mod_LDFLAGS): Likewise.
11789 * conf/i386-pc.rmk: Likewise.
11790 * docs/grub.texi (Vendor power-on keys): New section.
11791 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
11792 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
11793 and GRUB_BUTTON_CMOS_ADDRESS.
11794 * util/grub.d/00_header.in: Handle powering-on by separate button.
11795
11796 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11797
11798 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
11799 Removed drawing_scrollbar argument. All users updated
11800 Fixes #29792.
11801 Reported by Jo Shields
11802
11803 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11804
11805 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
11806 buffer since gfxterm handles double repaint.
11807
11808 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
11811 * term/gfxterm.c (real_scroll): Likewise.
11812
11813 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
11816 before calling BIOS.
11817
11818 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 * include/grub/i18n.h: Always enable grub_gettext.
11821
11822 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
11825 partition naming style.
11826
11827 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
11828
11829 * util/grub-mkconfig.in: Fix handling of -o so that it works when
11830 not the first option.
11831
11832 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11833
11834 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
11835
11836 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11837
11838 * util/misc.c: Move inclusion of <limits.h> to ...
11839 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
11840
11841 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
11842
11843 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
11844 Fix merge error in NetBSD code.
11845 (find_partition_start) [__NetBSD__]: Likewise.
11846
11847 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
11848
11849 Fix grub-mkrescue usage unit testing.
11850
11851 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
11852
11853 2010-05-18 Christian Franke <franke@computer.org>
11854
11855 * util/grub.d/10_windows.in: Use path names instead of
11856 drive letters to prevent warning from Cygwin 1.7.
11857 Add drivemap command to menuentry if needed.
11858
11859 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
11860
11861 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
11862 gnumach and gnumach.gz.
11863
11864 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * include/grub/i18n.h (gettext): Inline instead of using #define.
11867 (grub_gettext): Likewise.
11868 (_): Likewise.
11869
11870 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
11873 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
11874 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
11875 (main): Add a slash after pkglibdirroot.
11876
11877 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11878
11879 * util/grub-install.in: Add missing "in" keyword.
11880
11881 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11882
11883 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
11884 Reported by: Seth Goldberg.
11885
11886 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
11889
11890 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11891
11892 * configure.ac: Check for Linux device-mapper support.
11893
11894 * util/hostdisk.c (device_is_mapped): New function.
11895 (find_partition_start): New function, partly broken out from
11896 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
11897 device-mapper support added.
11898 (linux_find_partition): Use find_partition_start.
11899 (convert_system_partition_to_system_disk): Add `st' argument.
11900 Support Linux /dev/mapper/* devices if device-mapper support is
11901 available; only DM-RAID devices are understood at present.
11902 (find_system_device): Add `st' argument. Pass it to
11903 convert_system_partition_to_system_disk.
11904 (grub_util_biosdisk_get_grub_dev): Pass stat result to
11905 find_system_device and convert_system_partition_to_system_disk. Use
11906 find_partition_start.
11907
11908 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
11909 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
11910 * util/deviceiter.c [__linux__]: Define MINOR.
11911 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
11912 * util/mkdevicemap.c (grub_putchar): New function.
11913 (grub_getkey): New function.
11914 (grub_refresh): New function.
11915 (main): Set debug=all if -v -v is used.
11916
11917 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11918
11919 Fix build with non-GNU libcs.
11920
11921 * util/misc.c (canonicalize_file_name): Move to ...
11922 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
11923 grub_make_system_path_relative_to_its_root.
11924
11925 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11926
11927 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
11928 we handle finding grub-mkimage. Default to finding grub-mkimage in
11929 ${bindir} with program_transform_name applied, and provide a
11930 --grub-mkimage option to override this.
11931
11932 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 Remove grub-mkisofs.
11935
11936 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
11937 (grub_mkisofs_SOURCES): Removed.
11938 (grub_mkisofs_CFLAGS): Removed.
11939 * util/mkisofs/defaults.h: Removed.
11940 * util/mkisofs/eltorito.c: Likewise.
11941 * util/mkisofs/exclude.h: Likewise.
11942 * util/mkisofs/hash.c: Likewise.
11943 * util/mkisofs/include/: Likewise.
11944 * util/mkisofs/include/fctldefs.h: Likewise.
11945 * util/mkisofs/include/mconfig.h: Likewise.
11946 * util/mkisofs/include/prototyp.h: Likewise.
11947 * util/mkisofs/include/statdefs.h: Likewise.
11948 * util/mkisofs/iso9660.h: Likewise.
11949 * util/mkisofs/joliet.c: Likewise.
11950 * util/mkisofs/match.c: Likewise.
11951 * util/mkisofs/match.h: Likewise.
11952 * util/mkisofs/mkisofs.c: Likewise.
11953 * util/mkisofs/mkisofs.h: Likewise.
11954 * util/mkisofs/msdos_partition.h: Likewise.
11955 * util/mkisofs/multi.c: Likewise.
11956 * util/mkisofs/name.c: Likewise.
11957 * util/mkisofs/rock.c: Likewise.
11958 * util/mkisofs/tree.c: Likewise.
11959 * util/mkisofs/write.c: Likewise.
11960
11961 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11962
11963 Unify grub-mkimage accross platforms.
11964
11965 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
11966 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
11967 (grub_mkelfimage_SOURCES): Removed.
11968 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
11969 (util/grub-mkimage.c_DEPENDENCIES): .. this.
11970 (bin_UTILITIES): Add grub-mkimage.
11971 (grub_mkimage_SOURCES): New variable.
11972 (kernel_img_HEADERS): Remove machine/kernel.h.
11973 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
11974 (pkglib_PROGRAMS): Add kernel.img.
11975 (kernel_img_HEADERS): Add machine/kernel.h.
11976 (kernel_img_FORMAT): Removed.
11977 (bin_UTILITIES): Remove grub-mkimage.
11978 (grub_mkimage_SOURCES): Removed.
11979 (grub_mkimage_CFLAGS): Likewise.
11980 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11981 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
11982 (pkglib_PROGRAMS): Add kernel.img.
11983 (bin_UTILITIES): Remove grub-mkimage.
11984 (grub_mkimage_SOURCES): Removed.
11985 (grub_mkimage_CFLAGS): Likewise.
11986 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11987 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
11988 (pkglib_PROGRAMS): Add kernel.img.
11989 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
11990 (pkglib_PROGRAMS): Add kernel.img.
11991 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
11992 (grub_mkimage_SOURCES): Removed.
11993 (grub_mkimage_CFLAGS): Likewise.
11994 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11995 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
11996 (pkglib_PROGRAMS): Add kernel.img.
11997 (bin_UTILITIES): Remove grub-mkimage.
11998 (grub_mkimage_SOURCES): Removed.
11999 (grub_mkimage_CFLAGS): Likewise.
12000 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12001 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
12002 (grub_mkimage_SOURCES): Removed.
12003 (grub_mkimage_CFLAGS): Likewise.
12004 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12005 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
12006 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
12007 (grub_pe32_optional_header): ... this.
12008 (grub_pe64_optional_header): ... and this. All users updated.
12009 (GRUB_PE32_PE32_MAGIC): Split into ..
12010 (GRUB_PE32_PE32_MAGIC): .. this.
12011 (GRUB_PE32_PE64_MAGIC): .. and this.
12012 (GRUB_PE32_SIGNATURE_SIZE): New definition.
12013 * include/grub/elf.h (PT_GNU_STACK): New definition.
12014 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
12015 * include/grub/i386/efi/kernel.h: Likewise.
12016 * include/grub/i386/kernel.h: Likewise.
12017 * include/grub/i386/pc/kernel.h: Likewise.
12018 * include/grub/i386/qemu/boot.h: Likewise.
12019 * include/grub/mips/kernel.h: Likewise.
12020 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12021 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12022 * include/grub/powerpc/kernel.h: Likewise.
12023 * include/grub/sparc64/ieee1275/boot.h: Likewise.
12024 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12025 * include/grub/sparc64/kernel.h: Likewise.
12026 * include/grub/x86_64/efi/kernel.h: Likewise.
12027 * include/grub/x86_64/kernel.h: Likewise.
12028 * include/grub/offsets.h: New file.
12029 * include/grub/kernel.h (grub_module_info): Split into ...
12030 (grub_module_info32): ... this.
12031 (grub_module_info64): ... and this.
12032 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
12033 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
12034 (grub_boot_blocklist): Moved from here ...
12035 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
12036 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
12037 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
12038 * include/grub/types.h (grub_target_to_host16): Removed.
12039 (grub_target_to_host32): Likewise.
12040 (grub_target_to_host64): Likewise.
12041 (grub_host_to_target16): Likewise.
12042 (grub_host_to_target32): Likewise.
12043 (grub_host_to_target64): Likewise.
12044 (grub_host_to_target_addr): Likewise.
12045
12046 Support grub-mkrescue for efi, coreboot and qemu.
12047
12048 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
12049 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
12050 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
12051 * util/grub-mkrawimage.c: Moved from here ...
12052 * util/grub-mkimage.c: ... here. All users updated.
12053 (ALIGN_ADDR): Use image_target.
12054 (TARGET_NO_FIELD): New const.
12055 (image_target_desc): New type.
12056 (image_targets): New array.
12057 (grub_target_to_host64): Use image_target.
12058 (grub_target_to_host32): Likewise.
12059 (grub_target_to_host16): Likewise.
12060 (grub_host_to_target64): Likewise.
12061 (grub_host_to_target32): Likewise.
12062 (grub_host_to_target16): Likewise.
12063 (grub_host_to_target_addr): Likewise.
12064 (generate_image): Handle multiimage.
12065 (main): Require -O parameter. All users updated.
12066 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
12067 util/efi/grub-mkimage.c
12068 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
12069 New option --rom-directory.
12070 Use xorriso.
12071 * util/i386/efi/grub-mkimage.c: Removed.
12072 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
12073 (grub_target_to_host32): Likewise.
12074 (grub_target_to_host64): Likewise.
12075 (grub_host_to_target16): Likewise.
12076 (grub_host_to_target32): Likewise.
12077 (grub_host_to_target64): Likewise.
12078 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
12079 (grub_target_to_host32): Likewise.
12080 (grub_target_to_host64): Likewise.
12081 (grub_host_to_target16): Likewise.
12082 (grub_host_to_target32): Likewise.
12083 (grub_host_to_target64): Likewise.
12084
12085 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
12086
12087 Source tree is reorganized for emu build.
12088
12089 * include/grub/util/console.h: Move from here...
12090 * include/grub/emu/console.h: ...to here.
12091 * include/grub/util/getroot.h: Move from here...
12092 * include/grub/emu/getroot.h: ...to here.
12093 * include/grub/util/hostdisk.h: Move from here...
12094 * include/grub/emu/hostdisk.h: ...to here.
12095 * util/console.c: Move from here...
12096 * kern/emu/console.c: ...to here.
12097 * util/getroot.c: Move from here...
12098 * kern/emu/getroot.c: ...to here.
12099 * util/grub-emu.c: Move from here...
12100 * kern/emu/main.c: ...to here.
12101 * util/hostdisk.c: Move from here...
12102 * kern/emu/hostdisk.c: ...to here.
12103 * util/hostfs.c: Move from here...
12104 * kern/emu/hostfs.c: ...to here.
12105 * util/mm.c: Move from here...
12106 * kern/emu/mm.c: ...to here.
12107 * util/pci.c: Move from here...
12108 * bus/emu/pci.c: ...to here.
12109 * util/sdl.c: Move from here...
12110 * video/emu/sdl.c: ...to here.
12111 * util/time.c: Move from here...
12112 * kern/emu/time.c: ...to here.
12113 * util/usb.c: Move from here...
12114 * bus/usb/emu/usb.c: ...to here.
12115
12116 * include/grub/emu/misc.h: New header for grub-emu functions.
12117 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
12118
12119 * conf/any-emu.rmk: Rule updates for above renames.
12120 * conf/common.rmk: Likewise.
12121 * conf/i386-pc.rmk: Likewise.
12122 * conf/i386-qemu.rmk: Likewise.
12123 * conf/mips.rmk: Likewise.
12124 * conf/sparc64-ieee1275.rmk: Likewise.
12125 * conf/x86-efi.rmk: Likewise.
12126
12127 * disk/lvm.h: #include updates for above renames.
12128 * util/grub-mkrelpath.c: Likewise.
12129 * util/grub-probe.c: Likewise.
12130 * util/i386/pc/grub-setup.c: Likewise.
12131 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12132 * kern/emu/console.c: Likewise.
12133 * kern/emu/getroot.c: Likewise.
12134 * kern/emu/hostdisk.c: Likewise.
12135 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
12136
12137 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
12138 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
12139 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
12140 * util/misc.c: Remove grub-emu functions.
12141
12142 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 Fix gfxmenu crash.
12145 Reported by: Thorsten Grützmacher.
12146
12147 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
12148 timeout hook.
12149 (circprog_set_property): Register and unregister timeout hook.
12150 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
12151 (label_destroy): Free template. and unregister hook.
12152 (label_set_state): New function.
12153 (label_set_property): Handle templates and hooks.
12154 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
12155 timeout hook.
12156 (progress_bar_set_property): Register and unregister timeout hook.
12157 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
12158 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
12159 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
12160 (update_timeout_visit): Removed.
12161 (update_timeouts): New function.
12162 (redraw_timeouts): Likewise.
12163 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
12164 (grub_gfxmenu_clear_timeout): Likewise.
12165 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
12166 (grub_gfxmenu_timeout_notify): Likewise.
12167 (grub_gfxmenu_timeout_notifications): New external variable.
12168 (grub_gfxmenu_timeout_register): New function.
12169 (grub_gfxmenu_timeout_unregister): Likewise.
12170
12171 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 Transform (broken) vga terminal into (working) vga video driver.
12174
12175 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
12176 video/i386/pc/vga.c.
12177 * include/grub/video.h (grub_video_driver_id):
12178 Add GRUB_VIDEO_DRIVER_VGA.
12179 * term/i386/pc/vga.c: Renamed to ...
12180 * video/i386/pc/vga.c: ...this
12181 (DEBUG_VGA): Removed.
12182 (CHAR_WIDTH): Likewise.
12183 (CHAR_HEIGHT): Likewise.
12184 (TEXT_WIDTH): Likewise.
12185 (TEXT_HEIGHT): Likewise.
12186 (DEFAULT_FG_COLOR): Likewise.
12187 (DEFAULT_BG_COLOR): Likewise.
12188 (colored_char): Likewise.
12189 (xpos): Likewise.
12190 (ypos): Likewise.
12191 (cursor_state): Likewise.
12192 (fg_color): Likewise.
12193 (bg_color): Likewise.
12194 (text_buf): Likewise.
12195 (page): Likewise.
12196 (font): Likewise.
12197 (framebuffer): New variable.
12198 (set_read_map): Disabled.
12199 (setup): New variable.
12200 (is_target): Likewise.
12201 (grub_vga_mod_init): Likewise.
12202 (grub_vga_mod_fini): Likewise.
12203 (check_vga_mem): Likewise.
12204 (write_char): Likewise.
12205 (write_cursor): Likewise.
12206 (scroll_up): Likewise.
12207 (grub_vga_putchar): Likewise.
12208 (grub_vga_getcharwidth): Likewise.
12209 (grub_vga_getwh): Likewise.
12210 (grub_vga_getxy): Likewise.
12211 (grub_vga_gotoxy): Likewise.
12212 (grub_vga_cls): Likewise.
12213 (grub_vga_setcolorstate): Likewise.
12214 (grub_vga_setcursor): Likewise.
12215 (grub_video_vga_init): New function.
12216 (grub_video_vga_setup): Likewise.
12217 (grub_video_vga_fini): Likewise.
12218 (update_target): Likewise.
12219 (grub_video_vga_blit_bitmap): Likewise.
12220 (grub_video_vga_blit_render_target): Likewise.
12221 (grub_video_vga_set_active_render_target): Likewise.
12222 (grub_video_vga_get_active_render_target): Likewise.
12223 (grub_video_vga_swap_buffers): Likewise.
12224 (grub_video_vga_set_palette): Likewise.
12225 (grub_video_vga_get_info_and_fini): Likewise.
12226 (grub_vga_term): Removed.
12227 (grub_video_vga_adapter): New variable.
12228 (GRUB_MOD_INIT): Register a video driver instead of terminal.
12229 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
12230
12231 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12232
12233 * video/readers/jpeg.c: Indented.
12234
12235 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 Various jpeg cleanups.
12238
12239 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
12240 (grub_jpeg_decode_quan_table): Use sizeof.
12241 (grub_jpeg_decode_du): Use ARRAY_SIZE.
12242
12243 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
12244
12245 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
12246 tables. Ignore non-last ac bit.
12247 (grub_jpeg_decode_quan_table): Likewise.
12248
12249 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
12252 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
12253 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12254 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
12255 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
12256 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
12257
12258 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
12261 error.
12262
12263 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
12266
12267 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
12270 condition.
12271
12272 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
12275 part.
12276
12277 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
12280 pointers.
12281
12282 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
12285
12286 2010-05-01 Christian Franke <franke@computer.org>
12287
12288 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
12289 Remove broken Cygwin path conversion.
12290 * util/misc.c: [__CYGWIN__] Add include and define.
12291 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
12292 for Cygwin 1.7.
12293 (make_system_path_relative_to_its_root): Simplify loop, replace early
12294 return by break.
12295 [__CYGWIN__] Add conversion to win32 path.
12296 Include "/" case in trailing slash removal.
12297
12298 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 * kern/main.c (grub_load_config): Fix copy-pasted comment.
12301 Reported by: Seth Goldberg
12302
12303 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * commands/help.c (grub_cmd_help): Fix a typo.
12306 Reported by: Seth Goldberg
12307
12308 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12309
12310 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
12311 name and add N_.
12312 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
12313 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
12314 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
12315 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
12316 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
12317 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
12318 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
12319 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
12320 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
12321 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12322 * normal/context.c (GRUB_MOD_INIT): Likewise.
12323 * normal/main.c (GRUB_MOD_INIT): Likewise.
12324 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
12325 * term/serial.c (GRUB_MOD_INIT): Likewise.
12326 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
12327
12328 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
12331 extra == 0.
12332
12333 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 * commands/iorw.c: New file.
12336 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
12337 (iorw_mod_SOURCES): New variable.
12338 (iorw_mod_CFLAGS): Likewise.
12339 (iorw_mod_LDFLAGS): Likewise.
12340
12341 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12342
12343 Hotkey support
12344
12345 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
12346 * normal/main.c (hotkey_aliases): New variable.
12347 (grub_normal_add_menu_entry): Parse "--hotkey".
12348 * normal/menu_text.c (run_menu): Handle hotkeys.
12349
12350 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12351
12352 * kern/i386/coreboot/init.c (grub_machine_init): Call
12353 grub_machine_mmap_init on qemu.
12354
12355 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12356
12357 * boot/i386/qemu/boot.S: Add a missing .code16.
12358
12359 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12360
12361 Use LBIO on coreboot.
12362
12363 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
12364 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
12365 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
12366 New declaration.
12367 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
12368 grub_machine_mmap_init on coreboot.
12369 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
12370 GRUB_LINUXBIOS_MEMBER_LINK.
12371 (grub_machine_mmap_iterate): Fix declaration.
12372 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
12373
12374 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 Split coreboot and multiboot ports.
12377
12378 * conf/i386-multiboot.rmk: New file.
12379 * configure.ac: Add multiboot port.
12380 * include/grub/i386/multiboot/boot.h: New file.
12381 * include/grub/i386/multiboot/console.h: Likewise.
12382 * include/grub/i386/multiboot/init.h: Likewise.
12383 * include/grub/i386/multiboot/kernel.h: Likewise.
12384 * include/grub/i386/multiboot/loader.h: Likewise.
12385 * include/grub/i386/multiboot/memory.h: Likewise.
12386 * include/grub/i386/multiboot/serial.h: Likewise.
12387 * include/grub/i386/multiboot/time.h: Likewise.
12388 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
12389 * loader/multiboot.c: Likewise.
12390 * loader/multiboot_mbi2.c: Likewise.
12391 * util/grub-mkrescue.in: Generate multiboot rescue.
12392
12393 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12394
12395 * kern/parser.c (grub_parser_execute): Cope with read-only config.
12396
12397 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12398
12399 Merge handling of input and output terminals. Fix a hang.
12400
12401 * commands/terminal.c (abstract_terminal): New struct.
12402 (handle_command): New function. Based on grub_cmd_terminal_input.
12403 (grub_cmd_terminal_input): Use handle_command.
12404 (grub_cmd_terminal_output): Use handle_command.
12405
12406 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
12407
12408 Fix comment handling.
12409
12410 * tests/grub_script_comments.in: New testcase.
12411 * conf/tests.rmk: Rules for new testcase.
12412 * script/yylex.l: Updated flex rules.
12413
12414 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
12415
12416 * docs/grub.texi (play): Document that zero pitches produce rests.
12417 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
12418 if argc is 1.
12419
12420 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
12423 autogen issues.
12424
12425 2010-04-26 Christian Franke <franke@computer.org>
12426
12427 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
12428 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
12429 (grub_get_prefix): Remove function.
12430 * util/grub-emu.c (main): Replace grub_get_prefix () call by
12431 make_system_path_relative_to_its_root ().
12432 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
12433
12434 2010-04-24 Christian Franke <franke@computer.org>
12435
12436 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
12437 (kernel_img_LDFLAGS): Remove -static-libgcc.
12438
12439 2010-04-24 Christian Franke <franke@computer.org>
12440
12441 * configure.ac: Do not CHECK_BSS_START_SYMBOL
12442 and CHECK_END_SYMBOL if grub-emu is built.
12443 Unset TARGET_OBJ2ELF if grub-emu is built
12444 without module support.
12445
12446 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
12447
12448 Nilfs2 support.
12449
12450 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
12451 (grub_fstest_SOURCES): Likewise.
12452 (pkglib_MODULES): Add nilfs2.mod.
12453 (nilfs2_mod_SOURCES): New variable.
12454 (nilfs2_mod_CFLAGS): Likewise.
12455 (nilfs2_mod_LDFLAGS): Likewise.
12456 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12457 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12458 * fs/nilfs2.c: New file.
12459
12460 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
12461
12462 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
12463 is not supported.
12464
12465 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
12466
12467 Add grub-mkconfig support for NetBSD.
12468
12469 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
12470 * util/grub-mkconfig.in: export new NetBSD specific variables.
12471 * po/POTFILES-shell: added 10_netbsd.in.
12472 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
12473
12474 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
12475
12476 Fix emu build with grub-emu-pci and grub-emu-modules.
12477
12478 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
12479 functions.
12480 * include/grub/libpciaccess.h: New file.
12481 * conf/any-emu.rmk: Update kernel headers for emu build.
12482
12483 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12484
12485 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
12486
12487 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12488
12489 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
12490
12491 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12492
12493 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
12494 Retrieve chosen/bootpath if bootpath isn't hardcoded.
12495 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
12496 util/ieee1275/ofpath.c.
12497 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
12498 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
12499 * include/grub/sparc64/ieee1275/boot.h
12500 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
12501 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
12502 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
12503 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
12504 const char *.
12505 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
12506 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
12507 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
12508 install.
12509
12510 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
12511
12512 * util/grub-mkconfig.in: Corrected two == equality tests.
12513 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
12514 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
12515 expect a number appended to it.
12516 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
12517 expects a number appended to it.
12518
12519 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
12522
12523 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 * util/hostdisk.c (make_device_name): Change to new partition naming.
12526
12527 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12528
12529 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
12530
12531 2010-04-17 Christian Franke <franke@computer.org>
12532
12533 * Makefile.in: Add missing localedir setting.
12534
12535 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
12536
12537 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
12538 mistake in r2156. Noticed by Anthony Fok.
12539
12540 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
12541 @localedir@.
12542 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12543
12544 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
12545
12546 Fix a spurious, uninitialized variable warning.
12547
12548 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
12549 Initialize variable, shdr.
12550 (grub_freebsd_load_elfmodule): Likewise.
12551 (grub_freebsd_load_elf_meta): Likewise.
12552
12553 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
12554
12555 Fix for escaped dollar in double quoted strings.
12556
12557 * script/yylex.l: Updated flex rules.
12558 * conf/tests.rmk: Rule for new testcase.
12559 * tests/grub_script_dollar.in: New testcase.
12560
12561 2010-04-13 Carles Pina i Estany <carles@pina.cat>
12562 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
12563
12564 Enclose all translated strings in grub.cfg in single quotes, and
12565 escape them appropriately (Ubuntu bug #552921).
12566
12567 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
12568 * util/grub.d/10_hurd.in: Use it.
12569 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12570 * util/grub.d/10_linux.in (linux_entry): Likewise.
12571
12572 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12573
12574 Fix cygwin compilation.
12575
12576 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
12577 * include/grub/misc.h (__register_frame_info)
12578 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
12579 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12580 * kern/misc.c (__register_frame_info)
12581 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
12582 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12583
12584 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12585
12586 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
12587
12588 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12589
12590 Unify libgcc processing.
12591
12592 * Makefile.in (kernel_img_LDFLAGS): New variable.
12593 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
12594 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
12595 overwriting.
12596 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
12597 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
12598 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
12599 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
12600 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
12601 overwriting. Remove -lgcc and -static-libgcc
12602 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
12603 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12604 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12605 (kernel_img_LDFLAGS): Append instead of overwriting.
12606 Remove -lgcc and -static-libgcc
12607 * conf/sparc64-ieee1275.rmk: Likewise.
12608 * include/grub/powerpc/libgcc.h: Move to ...
12609 * include/grub/libgcc.h: .. this.
12610 * include/grub/libgcc.h: Don't export most of the function on x86.
12611 (__bswapsi2): New export.
12612 (__bswapdi2): Likewise.
12613 * include/grub/mips/libgcc.h: Removed.
12614 * include/grub/sparc64/libgcc.h: Likewise.
12615
12616 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12617
12618 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
12619 disk_info_msg (conflicts with gettexting into languages with cases).
12620
12621 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12622
12623 Add grub-probe support for NetBSD.
12624
12625 * util/getroot.c (find_root_device): Convert block device to
12626 character device on NetBSD.
12627 * util/probe.c (probe): Require character device on NetBSD.
12628 * util/hostdisk.c: NetBSD specific headers.
12629 (configure_device_driver): new function to tune device driver
12630 parameters (currently only for NetBSD floppy driver).
12631 (grub_util_biosdisk_open): NetBSD specific code (get disk size
12632 via disklabel ioctl).
12633 (open_device): call configure_device_driver on NetBSD.
12634 (convert_system_partition_to_system_disk): NetBSD specific code.
12635 (device_is_wholedisk): Likewise.
12636 (grub_util_biosdisk_get_grub_dev): Likewise.
12637 (make_device_name): Fixed a typo in bsd_part_str.
12638 * configure.ac: check for opendisk() and getrawpartition() on
12639 NetBSD and set LIBUTIL.
12640 * Makefile.in: add LIBUTIL to LIBS.
12641
12642 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12643
12644 Documentation fix.
12645
12646 * util/grub-script-check.c: Better help message.
12647
12648 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12649
12650 Fix FreeBSD build.
12651
12652 * configure.ac: Flex version check.
12653 * conf/common.rmk: Add -Wno-error to sh.mod.
12654 * script/yylex.l: Remove all #pragma.
12655
12656 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12657
12658 * include/grub/util/misc.h (canonicalise_file_name): Add missing
12659 prototype.
12660 Reported by: Seth Goldberg.
12661
12662 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
12665 Rename "module" to "module2".
12666 Reported by: Seth Goldberg.
12667
12668 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
12671 EXPORT_FUNC.
12672 Reported by: Seth Goldberg.
12673
12674 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12675
12676 * lib/posix_wrap/locale.h: Add missing file.
12677 Reported by: Seth Goldberg.
12678
12679 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12680
12681 grub-emu module load support.
12682
12683 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
12684 NO_DYNAMIC_MODULES switched to this.
12685 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
12686 (CFLAGS): Likewise.
12687 * conf/any-emu.rmk: Generate symlist.
12688 (kernel_img_HEADERS): Add util/datetime.h.
12689 (kernel_img_HEADERS) [sdl]: Add sdl.h.
12690 (kernel_img_HEADERS) [libusb]: Add libusb.h.
12691 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
12692 kern/$(target_cpu)/cache.S.
12693 * configure.ac (grub-emu-modules): New option.
12694 * genmk.rb: Handle multiple source lists.
12695 * include/grub/sdl.h: New file.
12696 * include/grub/libusb.h: Likewise.
12697 * util/grub-emu.c (main): Hanle (host) root.
12698 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
12699 GRUB_ERR_UNKNOWN_DEVICE.
12700 * util/misc.c: Move mm functions to ...
12701 * util/mm.c: ... here. All users updated.
12702
12703 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
12706 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
12707 missing files.
12708 (maintainer-clean): Remove libgcrypt-grub.
12709
12710 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
12713
12714 2010-04-09 EFI Coder <eficoder@hotmail.com>
12715
12716 * normal/menu_text.c (print_message): Clean up the message and show
12717 the Fn information when on EFI
12718 * term/efi/console.c (grub_console_checkkey): Add F4 support.
12719
12720 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12721
12722 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
12723 All users updated.
12724 * normal/crypto.c (read_crypto_list): Likewise.
12725 * normal/dyncmd.c (read_command_list): Likewise.
12726 * normal/term.c (read_terminal_list): Likewise.
12727 * normal/main.c (read_lists): Use explicit prefix.
12728 (read_lists_hook): Use read_lists.
12729 (grub_normal_execute): Likewise.
12730
12731 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12732
12733 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
12734 Reported by: Thomas Schmitt.
12735 Add -no-emul-boot to grub-mkisofs parameters.
12736
12737 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 * font/font.c: Indented.
12740
12741 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12742
12743 Elif support to GRUB script (by Deepak Vankadaru).
12744
12745 * tests/grub_script_if.in: New testcase.
12746 * conf/tests.rmk: Rule for new testcase.
12747 * script/parser.y: Grammar rules for elif.
12748
12749 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12750
12751 While and until loops support to GRUB script.
12752
12753 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
12754 (grub_script_create_cmdwhile): New function prototype.
12755 (grub_script_execute_cmdwhile): New function prototype.
12756 * script/execute.c (grub_script_execute_cmdwhile): New function.
12757 * script/parser.y (command): New commands.
12758 (whilecmd): New grammar rule.
12759 (untilcmd): New grammar rule.
12760 * script/script.c (grub_script_create_cmdwhile): New function.
12761 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
12762 function.
12763
12764 * tests/grub_script_while1.in: New testcase.
12765 * conf/tests.rmk: Rule for new testcase.
12766
12767 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
12770 as *.jpg.
12771
12772 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
12773
12774 GRUB_BACKGROUND support.
12775
12776 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
12777 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
12778
12779 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 Load fonts and modules for gfxmenu in grub-mkconfig.
12782 Idea by: Mario Vazquez
12783
12784 * util/grub.d/00_header.in: Load pf2 and image modules.
12785
12786 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 grub-mkconfig multiple terminal support.
12789
12790 * util/grub-mkconfig.in: Handle multiple terminals correctly.
12791 * util/grub.d/00_header.in: Likewise.
12792
12793 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12794
12795 * Makefile.in: Specify files explicitly instead of using $< and $@ since
12796 we use cd $(srcdir).
12797
12798 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
12799
12800 * util/grub.d/10_linux.in: Only use the first word of
12801 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
12802 spaces in GRUB_DISTRIBUTOR.
12803 * util/grub.d/10_kfreebsd.in: Likewise.
12804 * util/grub.d/10_hurd.in: Likewise.
12805
12806 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
12807
12808 Fix unit testing framework for Qemu 0.12.
12809
12810 * tests/util/grub-shell.in: Remove -serial stdio option.
12811
12812 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 POSIX header file wrappers.
12815
12816 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
12817 equivalents.
12818 * lib/posix_wrap/ctype.h: Likewise.
12819 * lib/posix_wrap/errno.h: Likewise.
12820 * lib/posix_wrap/langinfo.h: Likewise.
12821 * lib/posix_wrap/limits.h: Likewise.
12822 * lib/posix_wrap/localcharset.h: Likewise.
12823 * lib/posix_wrap/stdint.h: Likewise.
12824 * lib/posix_wrap/stdio.h: Likewise.
12825 * lib/posix_wrap/stdlib.h: Likewise.
12826 * lib/posix_wrap/string.h: Likewise.
12827 * lib/posix_wrap/sys/types.h: Likewise.
12828 * lib/posix_wrap/unistd.h: Likewise.
12829 * lib/posix_wrap/wchar.h: Likewise.
12830 * lib/posix_wrap/wctype.h: Likewise.
12831 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
12832 (grub_script.yy.h): Likewise.
12833 * script/yylex.l: Remove POSIX emulation #defines.
12834 * Makefile.in (POSIX_CFLAGS): New variable.
12835 (GNULIB_UTIL_CFLAGS): Likewise.
12836
12837 Regexp support.
12838
12839 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
12840 (regexp_mod_SOURCES): New variable.
12841 (regexp_mod_CFLAGS): Likewise.
12842 (regexp_mod_LDFLAGS): Likewise.
12843 * commands/regexp.c: New file.
12844 * gnulib/regcomp.c: New file. Imported from gnulib.
12845 * gnulib/regex.c: Likewise.
12846 * gnulib/regex_internal.c: Likewise.
12847 * gnulib/regex_internal.h: Likewise.
12848 * gnulib/regexec.c: Likewise.
12849 * gnulib/regex.h: Likewise.
12850
12851 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
12854 unsupported video mode types.
12855
12856 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12857
12858 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
12859
12860 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
12863 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
12864
12865 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 Remove unused grub_vga_get_font.
12868
12869 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
12870 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
12871
12872 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12873
12874 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
12875 * include/grub/misc.h: Likewise.
12876
12877 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12878
12879 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
12880 for which failure is fatal.
12881
12882 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12883
12884 * util/grub-install.in: Use mkdir -p to create grub directory.
12885 * util/i386/efi/grub-install.in: Likewise.
12886 * util/ieee1275/grub-install.in: Likewise.
12887
12888 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12889
12890 * Makefile.in (LEX): new variable.
12891
12892 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12893
12894 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
12895 `=' and added double quotes on operands of this equality test.
12896
12897 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * Makefile.in (uninstall): Remove a leftover debug echo.
12900 Reported by: Grégoire Sutre
12901
12902 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12903
12904 MIPS multiboot2 support.
12905
12906 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
12907 (multiboot2_mod_SOURCES): New variable.
12908 (multiboot2_mod_CFLAGS): Likewise.
12909 (multiboot2_mod_LDFLAGS): Likewise.
12910 (multiboot2_mod_ASFLAGS): Likewise.
12911 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
12912 definition.
12913 (MULTIBOOT_ENTRY_REGISTER): Likewise.
12914 (MULTIBOOT_MBI_REGISTER): Likewise.
12915 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
12916 (MULTIBOOT_ELF32_MACHINE): Likewise.
12917 (MULTIBOOT_ELF64_MACHINE): Likewise.
12918 * include/grub/mips/multiboot.h: New file.
12919 * include/grub/video.h (grub_video_driver_id): New type
12920 GRUB_VIDEO_DRIVER_SM712.
12921 (grub_video_get_info_and_fini): Export.
12922 (grub_video_get_palette): Likewise.
12923 (grub_video_get_driver_id): Likewise.
12924 * include/multiboot2.h: Resynced with spec.
12925 * loader/i386/multiboot.c: Moved from here ...
12926 * loader/multiboot.c: ... here. All users updated.
12927 (grub_multiboot_boot): Use platform-specific macros.
12928 * loader/i386/multiboot_elfxx.c: Moved from here ...
12929 * loader/multiboot_elfxx.c: ... here. All users updated.
12930 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
12931 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
12932 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
12933
12934 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 Import gnulib argp module.
12937
12938 * gnulib/argp-ba.c: New file.
12939 * gnulib/argp-eexst.c: Likewise.
12940 * gnulib/argp-fmtstream.c: Likewise.
12941 * gnulib/argp-fmtstream.h: Likewise.
12942 * gnulib/argp-fs-xinl.c: Likewise.
12943 * gnulib/argp-help.c: Likewise.
12944 * gnulib/argp-namefrob.h: Likewise.
12945 * gnulib/argp-parse.c: Likewise.
12946 * gnulib/argp-pin.c: Likewise.
12947 * gnulib/argp-pv.c: Likewise.
12948 * gnulib/argp-pvh.c: Likewise.
12949 * gnulib/argp-version-etc.c: Likewise.
12950 * gnulib/argp-version-etc.h: Likewise.
12951 * gnulib/argp-xinl.c: Likewise.
12952 * gnulib/argp.h: Likewise.
12953
12954 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 * kern/device.c (grub_device_iterate): Clear errors after failed
12957 opening device.
12958
12959 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
12962 returned by firmware.
12963
12964 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
12967 compilation on coreboot and qemu
12968
12969 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * include/multiboot2.h: Resync with spec.
12972
12973 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 Multiboot2 tag support
12976
12977 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
12978 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
12979 Remove loader/multiboot_loader.c.
12980 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
12981 (grub_multiboot2_real_boot): Likewise.
12982 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
12983 (grub_get_multiboot_mmap_count): New proto.
12984 (grub_fill_multiboot_mmap): Likewise.
12985 (grub_multiboot_set_video_mode): Likewise.
12986 (grub_multiboot_set_console): Likewise.
12987 (grub_multiboot_load): Likewise.
12988 (grub_multiboot_load_elf): Likewise.
12989 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
12990 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
12991 * include/multiboot.h: Resynced with specification.
12992 * include/multiboot2.h: Resynced with specification.
12993 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
12994 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
12995 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
12996 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
12997 users updated.
12998 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
12999 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
13000 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
13001 Removed.
13002 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
13003 Moved from here...
13004 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
13005 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
13006 Moved from here...
13007 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
13008 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
13009 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
13010 All users updated.
13011 * loader/i386/multiboot_mbi2.c: New file.
13012
13013 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 Resync with gnulib.
13016
13017 * Makefile.in (GNULIB_CFLAGS): New variable.
13018 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
13019 (grub_script_check_CFLAGS): New variable.
13020 * gnulib/alloca.h: Resync with gnulib.
13021 * gnulib/error.c: Likewise.
13022 * gnulib/error.h: Likewise.
13023 * gnulib/fnmatch.c: Likewise.
13024 * gnulib/fnmatch_loop.c: Likewise.
13025 * gnulib/getdelim.c: Likewise.
13026 * gnulib/getline.c: Likewise.
13027 * gnulib/getopt.c: Likewise.
13028 * gnulib/getopt1.c: Likewise.
13029 * gnulib/getopt_int.h: Likewise.
13030 * gnulib/gettext.h: Likewise.
13031 * gnulib/progname.c: Likewise.
13032 * gnulib/progname.h: Likewise.
13033
13034 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
13035
13036 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
13037 which is the case with --disabled-nls.
13038
13039 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
13040 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
13041 * util/misc.c: Likewise.
13042 * util/mkisofs/mkisofs.c: Likewise.
13043 * util/mkisofs/mkisofs.h: Likewise.
13044
13045 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 Simplify Apple CC support.
13048
13049 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
13050 Add 0 byte at the end not to have a symbol with empty target.
13051 * mmap/i386/pc/mmap_helper.S: Likewise.
13052 * genmk.rb: Ignore errors 2030 and 2050.
13053 * kern/i386/pc/startup.S: Use LOCAL when possible.
13054
13055 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
13056
13057 Testcase and the fix for final semicolon on cmdline.
13058
13059 * tests/grub_script_final_semicolon.in: New testcase.
13060 * conf/tests.rmk: Rules for the new testcase.
13061 * script/parser.y: Grammar fix.
13062
13063 2010-03-26 BVK Chaitanya <bvk@localhost>
13064
13065 Blank lines testcase for GRUB script.
13066
13067 * tests/grub_script_blanklines.in: New testcase.
13068 * conf/tests.rmk: Rules for the new testcase.
13069
13070 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 Don't use __FILE__.
13073
13074 * genmk.rb: Add -DGRUB_FILE to all C targets.
13075 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
13076 * include/grub/list.h: Likewise.
13077 * include/grub/misc.h: Likewise.
13078 * include/grub/mm.h: Likewise.
13079 * include/grub/test.h: Likewise.
13080 * kern/mm.c: Likewise.
13081 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13082
13083 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 Sunpc partitions support.
13086
13087 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
13088 (grub_fstest_SOURCES): Likewise.
13089 (pkglib_MODULES): Add part_sunpc.mod.
13090 (part_sunpc_mod_SOURCES): New variable.
13091 (part_sunpc_mod_CFLAGS): Likewise.
13092 (part_sunpc_mod_LDFLAGS): Likewise.
13093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
13094 * partmap/sunpc.c: New file.
13095
13096 2010-03-26 BVK Chaitanya <bvk@localhost>
13097
13098 For loop support to GRUB script.
13099
13100 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
13101 (grub_script_create_cmdfor): New function prototype.
13102 (grub_script_execute_cmdfor): New function prototype.
13103 * script/execute.c (grub_script_execute_cmdfor): New function.
13104 * script/parser.y (command): New for command.
13105 (forcmd): New grammar rule.
13106 * script/script.c (grub_script_create_cmdfor): New function.
13107 * util/grub-script-check.c (grub_script_execute_cmdfor): New
13108 function.
13109 * tests/grub_script_for1.in: New testcase.
13110 * conf/tests.rmk: Rules for new testcase.
13111
13112 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 Nested partitions
13115
13116 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
13117 'partition' is NULL, grub_partition_get_start already does that.
13118 * commands/loadenv.c (check_blocklists): Likewise.
13119 (write_blocklists): Likewise.
13120 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
13121 (grub_fstest_SOURCES): Likewise.
13122 (pkglib_MODULES): Add part_bsd.mod.
13123 (part_bsd_mod_SOURCES): New variable.
13124 (part_bsd_mod_CFLAGS): Likewise.
13125 (part_bsd_mod_LDFLAGS): Likewise.
13126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
13127 (grub_emu_SOURCES): Likewise.
13128 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13129 * include/grub/bsdlabel.h: New file.
13130 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
13131 'get_name'.
13132 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
13133 (grub_partition_map_list): New variable.
13134 (grub_partition_map_register): Inline.
13135 (grub_partition_map_unregister): Likewise.
13136 (FOR_PARTITION_MAPS): New macro.
13137 (grub_partition_map_iterate): Removed.
13138 (grub_partition_get_start): Handle nested partitions.
13139 * include/grub/msdos_partition.h: Remove bsd-related entries.
13140 (grub_pc_partition): Remove.
13141 * kern/disk.c (grub_disk_close): Free partition data.
13142 (grub_disk_adjust_range): Handle nested partitions.
13143 * kern/partition.c (grub_partition_map_probe): New function.
13144 (grub_partition_probe): Parse name to number, handle subpartitions.
13145 (get_partmap): New function.
13146 (grub_partition_iterate): Handle subpartitions.
13147 (grub_partition_get_name): Likewise.
13148 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
13149 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
13150 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
13151 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
13152 Set 'number'.
13153 (acorn_partition_map_probe): Remove.
13154 (acorn_partition_map_get_name): Likewise.
13155 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
13156 Set 'number'.
13157 Set 'index' to 0 since there can be only one partition entry per sector.
13158 (amiga_partition_map_probe): Remove.
13159 (amiga_partition_map_get_name): Likewise.
13160 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
13161 Set 'number'.
13162 Set 'offset' and 'index' to real positions of partitions.
13163 (apple_partition_map_probe): Remove.
13164 (apple_partition_map_get_name): Likewise.
13165 * partmap/bsdlabel.c: New file.
13166 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
13167 Set 'number'.
13168 Allocate 'data' so it can be correctly freed.
13169 Set 'index' to offset inside sector.
13170 (gpt_partition_map_probe): Remove.
13171 (gpt_partition_map_get_name): Likewise.
13172 * partmap/msdos.c (grub_partition_parse): Remove.
13173 (pc_partition_map_iterate): Don't force raw access.
13174 Set 'number'.
13175 Make 'ext_offset' a local variable.
13176 (pc_partition_map_probe): Remove.
13177 (pc_partition_map_get_name): Remove.
13178 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
13179 Set 'number'.
13180 (sun_partition_map_probe): Remove.
13181 (sun_partition_map_get_name): Likewise.
13182 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
13183 (grub_pcpart_type): Likewise.
13184 * util/hostdisk.c (open_device): Handle new numbering scheme.
13185 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
13186 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
13187 * util/grub-probe.c (probe_partmap): Handle nested paritions.
13188 * util/grub-install.in: Insert all subpartition modules.
13189 * util/ieee1275/grub-install.in: Likewise.
13190
13191 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
13192
13193 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
13194 grammar.
13195
13196 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
13197
13198 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
13199
13200 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
13201
13202 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
13203 match where 'make install' puts them.
13204 * util/i386/efi/grub-install.in: Likewise.
13205
13206 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
13207
13208 * .bzrignore: Add gentrigtables, grub-script-check,
13209 grub_script_check_init.c, grub_script_check_init.h, and
13210 trigtables.c.
13211
13212 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
13213
13214 * kern/parser.c: Indented.
13215
13216 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
13219
13220 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
13221
13222 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
13223 alpha_mask_size == 0 case.
13224
13225 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
13226
13227 GRUB shell lexer and parser improvements.
13228
13229 * conf/any-emu.rmk: Build rule updates.
13230 * conf/common.rmk: Likewise.
13231 * conf/i386-coreboot.rmk: Likewise.
13232 * conf/i386-efi.rmk: Likewise.
13233 * conf/i386-ieee1275.rmk: Likewise.
13234 * conf/i386-pc.rmk: Likewise.
13235 * conf/powerpc-ieee1275.rmk: Likewise.
13236 * conf/x86_64-efi.rmk: Likewise.
13237
13238 * configure.ac: Configure check for flex.
13239
13240 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
13241 types.
13242 (grub_lexer_param): Struct member updates.
13243 (grub_parser_param): Likewise.
13244 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
13245 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
13246 (grub_script_lexer_init): Prototype update.
13247 (grub_script_lexer_record_start): Likewise.
13248 (grub_script_lexer_record_stop): Likewise.
13249 (grub_script_lexer_yywrap): New function prototype.
13250 (grub_script_lexer_fini): Likewise.
13251 (grub_script_execute_argument_to_string): Removed by...
13252 (grub_script_execute_argument_to_argv): ...better version.
13253
13254 * script/execute.c (ROUND_UPTO): New macro.
13255 (grub_script_execute_cmdline): Out of memory fixes.
13256 (grub_script_execute_menuentry): Likewise.
13257 (grub_script_execute_argument_to_string): Removed. Update all
13258 users by...
13259 (grub_script_execute_argument_to_argv): ...better version.
13260 * script/function.c (grub_script_function_create): Use
13261 grub_script_execute_argument_to_argv instead of
13262 grub_script_execute_argument_to_string.
13263
13264 * script/lexer.c (check_varstate): Removed.
13265 (check_textstate): Removed.
13266 (grub_script_lexer_record_start): Likewise.
13267 (grub_script_lexer_record_stop): Likewise.
13268 (recordchar): Replaced with...
13269 (grub_script_lexer_record): ...new function.
13270 (nextchar): Removed.
13271 (grub_script_lexer_init): Rewritten.
13272 (grub_script_yylex): Rewritten.
13273 (append_newline): New function.
13274 (grub_script_lexer_yywrap): New function.
13275 (grub_script_lexer_fini): New function.
13276 (grub_script_yyerror): Sets error flag.
13277
13278 * script/yylex.l: New file.
13279 (grub_lexer_yyfree): Wrapper for flex yyffre.
13280 (grub_lexer_yyalloc): Likewise.
13281 (grub_lexer_yyrealloc): Likewise.
13282 * script/parser.y: Refactored.
13283
13284 * script/script.c (grub_script_arg_add): Out of memory fixes.
13285 (grub_script_add_arglist): Likewise.
13286 (grub_script_create_cmdline): Likewise.
13287 (grub_script_create_cmdmenu): Likewise.
13288 (grub_script_add_cmd): Likewise.
13289 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
13290 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
13291 unnecessary code.
13292
13293 * tests/grub_script_echo1.in: New testcase.
13294 * tests/grub_script_vars1.in: New testcase.
13295 * tests/grub_script_echo_keywords.in: New testcase.
13296
13297 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 Remove some redundancy in build system.
13300
13301 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
13302 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
13303 (TARGET_LDFLAGS): Add -nostdlib.
13304 (TARGET_IMG_LDFLAGS): Likewise.
13305 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
13306 anything since mmap isn't available.
13307 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
13308 Add util/time.c.
13309 (pkglib_MODULES): Remove reboot.mod.
13310 (reboot_mod_SOURCES): Removed.
13311 (reboot_mod_CFLAGS): Likewise.
13312 (reboot_mod_LDFLAGS): Likewise.
13313 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
13314 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
13315 (DEFSYMFILES): Add kernel_syms.lst.
13316 (kernel_img_HEADERS): Add common headers.
13317 (symlist.c): New target.
13318 (kernel_syms.lst): Likewise.
13319 (pkglib_MODULES): Add memdisk.mod.
13320 (memdisk_mod_SOURCES): New variable.
13321 (memdisk_mod_CFLAGS): Likewise.
13322 (memdisk_mod_LDFLAGS): Likewise.
13323 (pkglib_MODULES): Add reboot.mod.
13324 (reboot_mod_SOURCES): New variable.
13325 (reboot_mod_CFLAGS): Likewise.
13326 (reboot_mod_LDFLAGS): Likewise.
13327 (pkglib_MODULES): Add date.mod.
13328 (date_mod_SOURCES): New variable.
13329 (date_mod_CFLAGS): Likewise.
13330 (date_mod_LDFLAGS): Likewise.
13331 (pkglib_MODULES): Add datehook.mod.
13332 (datehook_mod_SOURCES): New variable.
13333 (datehook_mod_CFLAGS): Likewise.
13334 (datehook_mod_LDFLAGS): Likewise.
13335 (pkglib_MODULES): Add lsmmap.mod.
13336 (lsmmap_mod_SOURCES): New variable.
13337 (lsmmap_mod_CFLAGS): Likewise.
13338 (lsmmap_mod_LDFLAGS): Likewise.
13339 (pkglib_MODULES): Add boot.mod.
13340 (boot_mod_SOURCES): New variable.
13341 (boot_mod_CFLAGS): Likewise.
13342 (boot_mod_LDFLAGS): Likewise.
13343 * conf/i386-coreboot.rmk: Removed redundant parts.
13344 * conf/i386-ieee1275.rmk: Likewise.
13345 * conf/i386-pc.rmk: Likewise.
13346 * conf/mips-yeeloong.rmk: Likewise.
13347 * conf/mips.rmk: Likewise.
13348 * conf/powerpc-ieee1275.rmk: Likewise.
13349 * conf/sparc64-ieee1275.rmk: Likewise.
13350 * conf/x86_64-efi.rmk: Likewise.
13351 * conf/i386-coreboot.rmk: Moved qemu parts ..
13352 * conf/i386-qemu.rmk: ... here
13353 * conf/i386-efi.rmk: Moved common parts to...
13354 * conf/x86-efi.rmk: ... here.
13355 * conf/i386.rmk: Added modules common to all x86 variants.
13356 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
13357 * disk/memdisk.c: Remove grub/machine/kernel.h.
13358 * gensymlist.sh.in: Include symbol.h.
13359 * hook/datehook.c: Correct module name.
13360 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
13361 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
13362 * include/grub/i386/efi/serial.h: New file.
13363 * include/grub/x86_64/efi/serial.h: Likewise.
13364 * util/time.c: Likewise.
13365 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
13366
13367 2010-03-14 Colin King <colin.king@ubuntu.com>
13368 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
13369
13370 Shrink the pre-partition-table part of boot.img by eight bytes.
13371
13372 * boot/i386/pc/boot.S (ERR): New macro.
13373 (chs_mode): Use ERR.
13374 (geometry_error): Likewise.
13375 (hd_probe_error): Remove. This is only used once, so we wrwite
13376 it inline instead.
13377 (read_error): Instead of printing read_error_string, just set up
13378 %si and fall through to ...
13379 (error_message): ... this new function, also used by ERR.
13380
13381 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
13382
13383 Speed up consecutive hostdisk operations on the same device.
13384
13385 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
13386 (grub_util_biosdisk_open): Initialise disk->data.
13387 (struct linux_partition_cache): New structure.
13388 (linux_find_partition): Cache partition start positions; these are
13389 expensive to compute on every read and write.
13390 (open_device): Cache open file descriptor in disk->data, so that we
13391 don't have to reopen it and flush the buffer cache for consecutive
13392 operations on the same device.
13393 (grub_util_biosdisk_close): New function.
13394 (grub_util_biosdisk_dev): Set `close' member.
13395
13396 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
13397 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
13398 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13399 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
13400 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
13401
13402 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 Compile parts of grub-emu as modules.
13405
13406 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
13407 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
13408 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
13409 (all-local): Add $(GRUB_EMU).
13410 (install-local): Install $(GRUB_EMU).
13411 (uninstall): Uninstall $(GRUB_EMU).
13412 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
13413 * kern/dl.c: Likewise.
13414 * commands/sleep.c: Not include machine/time.h.
13415 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
13416 (COMMON_CFLAGS): Likewise.
13417 (sbin_UTILITIES): Remove grub-emu.
13418 (grub_emu_SOURCES): Removed.
13419 (kernel_img_RELOCATABLE): New variable.
13420 (pkglib_PROGRAMS): Add kernel.img.
13421 (kernel_img_SOURCES): New variable
13422 (kernel_img_CFLAGS): Likewise.
13423 (kernel_img_LDFLAGS): Likewise.
13424 (TARGET_NO_STRIP): Likewise.
13425 (TARGET_NO_DYNAMIC_MODULES): Likewise.
13426 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
13427 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
13428 (grub-emu): New target.
13429 (GRUB_EMU): New variable.
13430 * configure.ac: Whitelist -emu as possible x86_64 architecture.
13431 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
13432 * loader/xnu.c: Likewise.
13433 * include/grub/pci.h: Likewise.
13434 * genemuinit.sh: New file.
13435 * genemuinitheader.sh: Likewise.
13436 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
13437 Support TARGET_NO_DYNAMIC_MODULES.
13438 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
13439 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
13440 * disk/loopback.c: Likewise.
13441 * font/font_cmd.c: Likewise.
13442 * partmap/acorn.c: Likewise.
13443 * partmap/amiga.c: Likewise.
13444 * partmap/apple.c: Likewise.
13445 * partmap/gpt.c: Likewise.
13446 * partmap/msdos.c: Likewise.
13447 * partmap/sun.c: Likewise.
13448 * parttool/msdospart.c: Likewise.
13449 * term/gfxterm.c: Likewise.
13450 * video/bitmap.c: Likewise.
13451 * video/readers/jpeg.c: Likewise.
13452 * video/readers/png.c: Likewise.
13453 * video/readers/tga.c: Likewise.
13454 * video/video.c: Likewise.
13455 * util/grub-emu.c (read_command_list): Removed.
13456 (main): Don't call util_init_nls.
13457 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
13458 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
13459
13460 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
13463 date.mod, datehook.mod.
13464 (datetime_mod_SOURCES): New variable.
13465 (datetime_mod_CFLAGS): Likewise.
13466 (datetime_mod_LDFLAGS): Likewise.
13467 (date_mod_SOURCES): Likewise.
13468 (date_mod_CFLAGS): Likewise.
13469 (date_mod_LDFLAGS): Likewise.
13470 (datehook_mod_SOURCES): Likewise.
13471 (datehook_mod_CFLAGS): Likewise.
13472 (datehook_mod_LDFLAGS): Likewise.
13473 * conf/sparc64-ieee1275.rmk: Likewise.
13474 * lib/ieee1275/datetime.c: New file.
13475
13476 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
13479 (ieee1275_fb_mod_SOURCES): New variable.
13480 (ieee1275_fb_mod_CFLAGS): Likewise.
13481 (ieee1275_fb_mod_LDFLAGS): Likewise.
13482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
13483 New proto.
13484 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
13485 (HEAP_MAX_ADDR): Likewise.
13486 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
13487 type.
13488 Correct stop condition.
13489 (grub_ieee1275_devices_iterate): New function.
13490 * video/ieee1275.c: New file.
13491
13492 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
13495
13496 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
13497 as scratch.
13498 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
13499 SCRATCH_PAD_DISKBOOT as scratch.
13500 (bootit): Pass Openfirmware pointer in %o4.
13501 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
13502 of 0x200000.
13503 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
13504 with util/grub-mkrawimage.c.
13505 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
13506 * include/grub/aout.h (AOUT_MID_SUN): New definition.
13507 (grub_aout_get_type) [GRUB_UTIL]: Removed.
13508 (grub_aout_load) [GRUB_UTIL]: Likewise.
13509 * include/grub/kernel.h (grub_modules_get_end): New proto.
13510 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
13511 (SCRATCH_PAD_BOOT): New definition.
13512 (SCRATCH_PAD_DISKBOOT): Likewise.
13513 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
13514 * include/grub/sparc64/ieee1275/ieee1275.h
13515 (grub_ieee1275_original_stack): New variable
13516 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
13517 New definition
13518 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
13519 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
13520 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
13521 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
13522 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
13523 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
13524 (grub_platform_image_format_t): New type.
13525 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
13526 * kern/main.c (grub_modules_get_end)
13527 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
13528 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
13529 (codestart): Switch stacks.
13530 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
13531 variable.
13532 (grub_heap_init): Use grub_modules_get_end.
13533 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
13534 stack.
13535 * util/grub-mkrawimage.c (generate_image): Support sparc64.
13536 (main): Likewise.
13537 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
13538
13539 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
13540
13541 * util/grub-mkrescue.in: Base ISO UUID on UTC.
13542
13543 2010-03-08 Matt Kraai <kraai@ftbfs.org>
13544
13545 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
13546 bug #559005).
13547
13548 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 * genmoddep.awk: Output all missing symbols and not only first.
13551
13552 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 * NEWS: Put the date of 1.98 release.
13555
13556 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
13559 ft2build.h.
13560
13561 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
13564 completition in the middle of string.
13565
13566 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 * util/grub-mkrescue.in: Use mktemp with explicit template.
13569
13570 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13571
13572 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
13573
13574 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13575
13576 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
13577 right pointer.
13578
13579 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 Fix FreeBSD compilation.
13582
13583 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
13584 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
13585
13586 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
13589
13590 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13591
13592 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
13593
13594 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
13597
13598 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
13599
13600 Support relative image path in theme file.
13601
13602 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
13603 (image_set_property): Handle theme_dir and relative path.
13604
13605 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13606
13607 * configure.ac: Alias amd64 to x86_64.
13608
13609 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * NEWS: mention multiboot on EFI.
13612
13613 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * kern/main.c (grub_load_modules): Handle errors from init functions of
13616 embeded modules.
13617
13618 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * normal/autofs.c (autoload_fs_module): Handle errors.
13621
13622 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 Disable linux.mod on qemu-mips since it's not functional and leads
13625 to compilation failure.
13626
13627 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
13628 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
13629 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
13630 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
13631 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
13632 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
13633 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
13634 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
13635 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
13636 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
13637 Reported by: BVK Chaitanya
13638
13639 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
13640
13641 * INSTALL: Add gettext as a dependency and add qemu to a new section
13642 "Prerequisites for make-check".
13643
13644 2010-03-04 Christian Franke <franke@computer.org>
13645
13646 * util/grub-pe2elf.c: Add missing include "progname.h".
13647
13648 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 * normal/crypto.c (read_crypto_list): Fix a typo.
13651 Reported by: Seth Goldberg.
13652
13653 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
13656 Reported by: Seth Goldberg.
13657
13658 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
13661 ascii.bitmaps.
13662
13663 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * genmk.rb: Remove terminal*.lst in make clean.
13666 Reported by: Seth Goldberg.
13667
13668 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * util/i386/efi/grub-install.in: Copy gettext files.
13671
13672 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13673
13674 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
13675
13676 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 Wait for user entry basing on presence of output rather than on errors.
13679
13680 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
13681 (grub_install_newline_hook): Likewise.
13682 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
13683 * normal/menu.c (show_menu): Check line_counter to determine presence
13684 of output.
13685 * normal/term.c (grub_normal_line_counter): New variable.
13686 (grub_normal_get_line_counter): New function.
13687 (grub_install_newline_hook): Likewise.
13688
13689 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13690
13691 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
13692
13693 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * configure.ac: Update version to 1.98.
13696
13697 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * util/grub.d/10_linux.in (linux_entry): Don't default to
13700 gfxpayload=keep if Linux doesn't support video handover.
13701
13702 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 Don't compile video modules on yeeloong since video subsystem is part
13705 of kernel.
13706
13707 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
13708 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
13709 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
13710 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
13711 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
13712 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
13713 * include/grub/bitmap_scale.h: Likewise.
13714 * include/grub/bufio.h: Likewise.
13715 * include/grub/font.h: Likewise.
13716 * include/grub/gfxterm.h: Likewise.
13717 * include/grub/video.h: Likewise.
13718 * include/grub/vbe.h: Don't include video_fb.h.
13719 * video/i386/pc/vbe.c: Include video_fb.h.
13720 * commands/i386/pc/vbetest.c: Include video.h.
13721
13722 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
13723
13724 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
13725 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
13726 default entry if GRUB_SAVEDEFAULT=true. This allows using
13727 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
13728 saving a new default on every boot.
13729
13730 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13731
13732 * normal/crypto.c (read_crypto_list): Fix a memory leak.
13733 * normal/term.c (read_terminal_list): Likewise.
13734 * normal/main.c (grub_normal_init_page): Likewise.
13735 (grub_normal_read_line_real): Likewise.
13736
13737 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
13740 memory leak.
13741 Reported by: Seth Goldberg.
13742
13743 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
13744
13745 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
13746 duplicate declaration of `start'.
13747
13748 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
13751 filename.
13752 Reported by: Georgy Buranov
13753
13754 2010-02-20 Carles Pina i Estany <carles@pina.cat>
13755
13756 * util/grub-mkrawimage.c (usage): Change string formatting to
13757 improve gettext.
13758
13759 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13760
13761 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
13762 backspace keys.
13763
13764 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
13767 Reported by: Michael Suchanek.
13768
13769 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13770
13771 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
13772 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
13773
13774 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 Remove any reference to non-free fonts.
13777
13778 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
13779 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
13780 uses non-free components.
13781 * font/font.c (grub_font_get_name): Remove example name.
13782 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
13783 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13784 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
13785 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
13786
13787 2010-02-16 Georgy Buranov <gburanov@gmail.com>
13788
13789 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
13790
13791 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
13794 Double divisor.
13795 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
13796 features.
13797 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
13798
13799 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * gensymlist.sh.in: Use TARGET_CC instead of CC.
13802
13803 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13804
13805 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
13806 * docs/grub.texi (Command-line and menu entry commands): Document play
13807 command.
13808
13809 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13810
13811 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
13812 parse arguments as inline tempo and notes. Move code for playing notes
13813 to...
13814 (play): ... new function.
13815
13816 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13817
13818 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
13819 grub_uint16_t instead of short.
13820 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
13821 disk from little endian to cpu endianness.
13822
13823 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
13824
13825 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
13826 GRUB_TICKS_PER_SECOND instead of 120.
13827
13828 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
13831 escape sequence after \e.
13832
13833 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
13836 non-ASCII characters.
13837
13838 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
13841 set root in single quotes to prevent \, from being unescaped.
13842
13843 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 Prevent unknown commands from stopping menuentry execution.
13846
13847 * script/execute.c (grub_script_execute_cmdline): Print error after
13848 unknown command.
13849
13850 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
13853 Reported by: Pavel Pisa.
13854
13855 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
13858
13859 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13860
13861 Merge grub_ieee1275_map_physical into grub_map and rename to
13862 grub_ieee1275_map
13863
13864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
13865 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
13866 Remove.
13867 * kern/ieee1275/openfw.c (grub_map): Rename to ...
13868 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
13869 necessary.
13870 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
13871
13872 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
13875 opening and not after.
13876
13877 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
13880 constants.
13881
13882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13883
13884 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
13885 (alloc_phys): Use ALIGN_UP instead of align_addr.
13886
13887 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
13890
13891 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
13894
13895 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
13898 verbose dprintf.
13899
13900 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 Fix over-4GiB seek on sparc64.
13903
13904 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
13905 Replace pos_i and pos_lo with pos. All users updated.
13906 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13907 New constant.
13908 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13909 Likewise.
13910 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
13911 and pos_lo.
13912
13913 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * util/grub-mkrawimage.c (main): Call set_program_name.
13916
13917 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 Properly align 64-bit targets.
13920
13921 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
13922 (generate_image): Use ALIGN_ADDR.
13923
13924 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 Properly create cross-endian images.
13927
13928 * include/grub/types.h (grub_host_to_target_addr): New macro
13929 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
13930
13931 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
13934
13935 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
13938
13939 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
13940 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
13941 (grub_linux_boot): Divide by 64K when on VESA.
13942
13943 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13944
13945 Support GRUB_GFXPAYLOAD_LINUX.
13946
13947 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
13948 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
13949
13950 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
13953 to show messages instead of discarding them.
13954 Process errors after executing command and not before. Keep old method
13955 too as precaution.
13956
13957 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 * configure.ac: Check for ft2build.h.
13960
13961 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13962
13963 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
13964
13965 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 * genkernsyms.sh.in: Use TARGET_CC.
13968
13969 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
13970
13971 * NEWS: Update.
13972
13973 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13974
13975 * include/grub/multiboot2.h: Remove leftover file.
13976 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
13977 * include/grub/partition.h [GRUB_UTIL]: Likewise.
13978
13979 2010-02-07 Yves Blusseau <blusseau@zetam.org>
13980
13981 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
13982
13983 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 Fix warnings in grub-emu when compiling with maximum warning options.
13986
13987 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
13988 (grub_arch_modules_addr): Return 0 and not NULL.
13989 * util/misc.c (ENABLE_RELOCATABLE): New definition.
13990 (xstrdup): Use newstr instead of dup.
13991 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
13992 of disk to dsk to avoid shadowing.
13993 (find_free_slot): Fix prototype.
13994 * util/getroot.c (grub_util_is_dmraid): Make static.
13995 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
13996 Add missing prototype.
13997 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
13998
13999 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14000
14001 * loader/i386/linux.c (grub_linux_setup_video): Handle error
14002 appropriately.
14003
14004 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
14007 code out.
14008
14009 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14010
14011 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
14012 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
14013 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
14014 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
14015 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
14016 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
14017
14018 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * include/grub/err.h (grub_err_printf): Don't export.
14021
14022 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14023
14024 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
14025
14026 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * include/grub/i18n.h (grub_gettext_dummy): Removed.
14029 * kern/misc.c (grub_gettext_dummy): Make static.
14030
14031 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14032
14033 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
14034 by non-valid ones.
14035 * kern/term.c (grub_putchar): Likewise.
14036
14037 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
14040 buggy hook call and memory leak.
14041
14042 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
14045
14046 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
14049
14050 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
14053 modevar.
14054 Return grub_errno on allocation error.
14055
14056 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
14059
14060 2010-02-06 Yves Blusseau <blusseau@zetam.org>
14061
14062 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
14063 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
14064
14065 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14066
14067 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
14068 non-pxe disk.
14069 (grub_pxefs_open): Likewise.
14070
14071 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14072
14073 * util/grub.d/10_hurd.in: Add --class information to menuentries.
14074 * util/grub.d/10_kfreebsd.in: Likewise.
14075 * util/grub.d/10_linux.in: Likewise.
14076
14077 2010-02-06 Colin D Bennett <colin@gibibit.com>
14078
14079 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
14080 (gfxmenu_mod_SOURCES): New variable.
14081 (gfxmenu_mod_CFLAGS): Likewise.
14082 (gfxmenu_mod_LDFLAGS): Likewise.
14083 * include/grub/term.h (grub_term_set_current_output): Declare
14084 argument as const.
14085 * docs/gfxmenu-theme-example.txt: New file.
14086 * gfxmenu/gfxmenu.c: Likewise.
14087 * gfxmenu/gui_box.c: Likewise.
14088 * gfxmenu/gui_canvas.c: Likewise.
14089 * gfxmenu/gui_circular_progress.c: Likewise.
14090 * gfxmenu/gui_image.c: Likewise.
14091 * gfxmenu/gui_label.c: Likewise.
14092 * gfxmenu/gui_list.c: Likewise.
14093 * gfxmenu/gui_progress_bar.c: Likewise.
14094 * gfxmenu/gui_string_util.c: Likewise.
14095 * gfxmenu/gui_util.c: Likewise.
14096 * gfxmenu/icon_manager.c: Likewise.
14097 * gfxmenu/model.c: Likewise.
14098 * gfxmenu/named_colors.c: Likewise.
14099 * gfxmenu/theme_loader.c: Likewise.
14100 * gfxmenu/view.c: Likewise.
14101 * gfxmenu/widget-box.c: Likewise.
14102 * include/grub/gfxmenu_model.h: Likewise.
14103 * include/grub/gfxmenu_view.h: Likewise.
14104 * include/grub/gfxwidgets.h: Likewise.
14105 * include/grub/gui.h: Likewise.
14106 * include/grub/gui_string_util.h: Likewise.
14107 * include/grub/icon_manager.h: Likewise.
14108
14109 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14110
14111 Agglomerate scrolling in gfxterm.
14112
14113 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
14114 (grub_virtual_screen_setup): Initialise 'total_screen'.
14115 (write_char): Split to ...
14116 (paint_char): ... this ...
14117 (write_char): ... and this.
14118 (paint_char): Handle delayed scrolling.
14119 (draw_cursor): Likewise.
14120 (scroll_up): Split to ...
14121 (real_scroll): ... this ...
14122 (scroll_up): ... and this.
14123 (real_scroll): Handle multi-line scroll and draw below-the-bottom
14124 characters.
14125 (grub_gfxterm_refresh): Call real_scroll.
14126
14127 2010-02-06 Colin D Bennett <colin@gibibit.com>
14128
14129 * include/grub/misc.h (grub_iscntrl): New inline function.
14130 (grub_isalnum): Likewise.
14131 (grub_strtol): Likewise.
14132
14133 2010-02-06 Colin D Bennett <colin@gibibit.com>
14134
14135 * normal/menu_text.c (get_entry_number): Move from here ...
14136 * normal/menu.c (get_entry_number): ... moved here.
14137 * include/grub/menu.h (grub_menu_get_default_entry_index):
14138 New prototype.
14139 * normal/menu.c (grub_menu_get_default_entry_index): New function.
14140 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
14141 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
14142 (grub_menu_viewer_should_return): Likewise.
14143 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
14144 * normal/menu_text.c (run_menu): Enable menu switching.
14145 * normal/menu_viewer.c (should_return): New variable.
14146 (menu_viewer_changed): Likewise.
14147 (grub_menu_viewer_show_menu): Handle menu viewer changes.
14148 (grub_menu_viewer_should_return): New function.
14149 (menuviewer_write_hook): Likewise.
14150 (grub_menu_viewer_init): Likewise.
14151
14152 2010-02-06 Colin D Bennet <colin@gibibit.com>
14153 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14154
14155 Support for gfxterm in a window.
14156
14157 * include/grub/gfxterm.h: New file.
14158 * include/grub/video.h (struct grub_video_rect): New declaration.
14159 (grub_video_rect_t): Likewise.
14160 * term/gfxterm.c (struct grub_gfxterm_window): New type.
14161 (refcount): New variable.
14162 (render_target): Likewise.
14163 (window): Likewise.
14164 (repaint_callback): Likewise.
14165 (grub_virtual_screen_setup): Use 'render_target'.
14166 (init_window): New function.
14167 (grub_gfxterm_init_window): Likewise.
14168 (grub_gfxterm_init): Check reference counter.
14169 Use init_window.
14170 (destroy_window): New function.
14171 (grub_gfxterm_destroy_window): Likewise.
14172 (grub_gfxterm_fini): Check reference counter.
14173 Use destroy_window.
14174 (redraw_screen_rect): Restore viewport.
14175 Use 'render_target' and 'window'.
14176 Call 'repaint_callback'.
14177 (write_char): Use 'render_target'.
14178 (draw_cursor): Likewise.
14179 (scroll_up): Restore viewport.
14180 Use 'render_target' and 'window'.
14181 Call 'repaint_callback'.
14182 (grub_gfxterm_cls): Likewise.
14183 (grub_gfxterm_refresh): Use 'window'.
14184 (grub_gfxterm_set_repaint_callback): New function.
14185 (grub_gfxterm_background_image_cmd): Use 'window'.
14186 (grub_gfxterm_get_term): New function.
14187 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
14188
14189 2010-02-06 Colin D Bennett <colin@gibibit.com>
14190
14191 Bitmap scaling support.
14192
14193 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
14194 (bitmap_scale_mod_SOURCES): New variable.
14195 (bitmap_scale_mod_CFLAGS): Likewise.
14196 (bitmap_scale_mod_LDFLAGS): Likewise.
14197 * include/grub/bitmap_scale.h: New file.
14198 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
14199 (background_image_cmd_options): New variable.
14200 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
14201 (cmd): Rename and change type to ...
14202 (background_image_cmd_handle): ... this. All users updated.
14203 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
14204 * video/bitmap_scale.c: New file.
14205
14206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 SDL support.
14209
14210 * Makefile.in (LIBSDL): New variable.
14211 (enable_grub_emu_sdl): Likewise.
14212 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
14213 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
14214 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
14215 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
14216 * util/sdl.c: New file.
14217
14218 2010-02-06 Colin D Bennett <colin@gibibit.com>
14219 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 Double buffering support.
14222
14223 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
14224 * include/grub/video.h: Update comment.
14225 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
14226 New type.
14227 (grub_video_fb_doublebuf_blit_init): New prototype.
14228 * term/gfxterm.c (scroll_up): Support double buffering.
14229 (grub_gfxterm_refresh): Likewise.
14230 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
14231 (grub_video_fb_doublebuf_blit_init): Likewise.
14232 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
14233 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
14234 'displayed_page', 'render_page' and 'update_screen'.
14235 (grub_video_vbe_fini): Free offscreen buffer.
14236 (doublebuf_pageflipping_commit): New function.
14237 (doublebuf_pageflipping_update_screen): Likewise.
14238 (doublebuf_pageflipping_init): Likewise.
14239 (double_buffering_init): Likewise.
14240 (grub_video_vbe_setup): Enable doublebuffering.
14241 (grub_video_vbe_swap_buffers): Implement.
14242 (grub_video_vbe_set_active_render_target): Handle double buffering.
14243 (grub_video_vbe_get_active_render_target): Likewise.
14244 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
14245 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
14246 (grub_video_vbe_enable_double_buffering): Likewise.
14247 (grub_video_vbe_swap_buffers): Use update_screen.
14248 (grub_video_set_mode): Use double buffering.
14249
14250 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14251
14252 * maintainance/gentrigtables.py: Remove.
14253 * lib/trig.c: Likewise.
14254
14255 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
14256
14257 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
14258 `trigtables.c'.
14259 (trigtables.c): New rule.
14260 (gentrigtables): Likewise.
14261 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
14262
14263 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14264
14265 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
14266 integer constants.
14267
14268 2010-02-06 Colin D Bennet <colin@gibibit.com>
14269
14270 Trigonometry support.
14271
14272 * include/grub/trig.h: New file.
14273 * lib/trig.c: Likewise.
14274 * maintainance/gentrigtables.py: Likewise.
14275 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
14276 (trig_mod_SOURCES): New variable.
14277 (trig_mod_CFLAGS): Likewise.
14278 (trig_mod_LDFLAGS): Likewise.
14279
14280 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
14283 disk devices.
14284
14285 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14286
14287 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
14288 error.
14289
14290 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14291
14292 * util/hostdisk.c (open_device): Don't use partition device when reading
14293 before the partition.
14294 (grub_util_biosdisk_read): Don't read from partition and before the
14295 partition in single operation.
14296 (grub_util_biosdisk_write): Don't write to partition and before the
14297 partition in single operation.
14298
14299 2010-02-03 Torsten Landschoff <torsten@debian.org>
14300
14301 * kern/disk.c (grub_disk_read): Fix offset computation when reading
14302 last sectors.
14303
14304 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
14307 CDROM reads.
14308 (grub_biosdisk_write): Refuse to write to CDROM.
14309
14310 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
14313
14314 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14315
14316 * font/font.c (find_glyph): Check that bmp_idx is available before
14317 using it.
14318 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
14319 with (font == NULL).
14320
14321 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
14322
14323 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
14324
14325 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
14326
14327 * include/grub/script_sh.h (sourcecode): Add const qualifier.
14328 * util/grub-script-check.c (getline): Fix empty lines case.
14329
14330 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
14331
14332 * Makefile.in (check): Exit with fail status when one of the tests
14333 fails.
14334 * tests/example_functional_test.c (example_test): Fix reversed assert.
14335 * tests/example_unit_test.c (example_test): Likewise.
14336
14337 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
14338
14339 * util/grub.d/10_linux.in: This script does not use any of the
14340 contents of gettext.sh, only the external command `gettext', so stop
14341 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
14342 the same prefix as GRUB.)
14343 * util/grub.d/10_kfreebsd.in: Likewise.
14344
14345 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14346
14347 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
14348 of the line.
14349
14350 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * kern/disk.c (grub_disk_read): Fix offset computation when reading
14353 last sectors.
14354
14355 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
14358 having a 4KiB and not 32KiB buffer size.
14359
14360 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14361
14362 * util/hostfs.c: Include `<errno.h>'.
14363 (grub_hostfs_read): Handle errors from fseeko() and fread().
14364
14365 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14366
14367 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
14368 loop when using read hooks on files whose size isn't sector-aligned.
14369
14370 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14371
14372 Remove unused parameter.
14373
14374 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
14375 (grub_iso9660_open): Remove initialization of `data->length'.
14376
14377 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14378
14379 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
14380 memleak conditions.
14381
14382 2010-01-27 Carles Pina i Estany <carles@pina.cat>
14383
14384 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
14385 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
14386
14387 2010-01-26 Carles Pina i Estany <carles@pina.cat>
14388
14389 * util/bin2h.c (usage): Fix warning (space after backslash).
14390
14391 2010-01-26 Carles Pina i Estany <carles@pina.cat>
14392
14393 * font/font.c: Include `grub/fontformat.h.
14394 Remove font file format constants.
14395 (grub_font_load): Use the new macros.
14396 * include/grub/fontformat.h: New file.
14397 * util/grub-mkfont.c: Include `grub/fontformat.c'.
14398 (write_font_pf2): Use the new macros.
14399
14400 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
14401
14402 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
14403 does.
14404
14405 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
14406
14407 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
14408
14409 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
14410 (_start): Macroify `0x7F'.
14411
14412 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
14413 (make_install_device): Use "(pxe)" as fallback prefix when booting
14414 via PXE.
14415
14416 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 * configure.ac: Reset LIBS after check for libgcc symbols.
14419
14420 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
14421
14422 * util/hostdisk.c (open_device): Add trailing newline to debug
14423 message.
14424
14425 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
14426
14427 * configure.ac: Check for `limits.h'.
14428 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
14429
14430 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
14431
14432 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
14433 capitalize error strings.
14434
14435 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
14436
14437 * util/grub.d/10_hurd.in: Add a recovery mode.
14438
14439 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * configure.ac: Check for libgcc symbols with -nostdlib.
14442
14443 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
14444
14445 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
14446
14447 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14448
14449 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
14450 stack since heap may be unavailable at that point.
14451 (grub_ofconsole_gotoxy): Likewise.
14452
14453 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 * configure.ac: Check for _restgpr_14_x.
14456 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
14457 and _savegpr_* prototypes.
14458
14459 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
14460
14461 Use generic grub_reboot() for i386-efi.
14462
14463 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
14464 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
14465 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
14466
14467 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14468
14469 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
14470 presence of "prefix" variable as it breaks when normal.mod is
14471 embedded.
14472
14473 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
14476 stack since heap is unavailable at that point.
14477
14478 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14479
14480 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
14481 (grub_freebsd_bootinfo): Rewritten.
14482 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
14483
14484 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
14487
14488 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
14489
14490 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
14491 domain now.
14492
14493 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
14494
14495 * util/misc.c (make_system_path_relative_to_its_root): Change the work
14496 around for handling "/" to the correct fix. Fix a memory leak. Use
14497 xstrdup instead of strdup.
14498
14499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
14502
14503 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Optimise glyph lookup by Basic Multilingual Plane lookup array.
14506
14507 * font/font.c (struct grub_font): New member 'bmp_idx'.
14508 (font_init): Initialise 'bmp_idx'.
14509 (load_font_index): Fill 'bmp_idx'.
14510 (find_glyph): Make inline. Use bmp_idx for BMP characters.
14511
14512 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14513
14514 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
14515 unnecessary calls.
14516
14517 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14518
14519 Move context handling out of the kernel.
14520
14521 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
14522 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
14523 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
14524 * conf/i386-efi.rmk: Likewise.
14525 * conf/i386-ieee1275.rmk: Likewise.
14526 * conf/i386-pc.rmk: Likewise.
14527 * conf/powerpc-ieee1275.rmk: Likewise.
14528 * conf/sparc64-ieee1275.rmk: Likewise.
14529 * conf/x86_64-efi.rmk: Likewise.
14530 * include/grub/env.h: Include grub/menu.h.
14531 (grub_env_var_type): Removed.
14532 (grub_env_var): Replaced field 'type' with 'global'.
14533 (grub_env_find): New prototype.
14534 (grub_env_context_open): Remove EXPORT_FUNC.
14535 (grub_env_context_close): Likewise.
14536 (grub_env_export): Likewise.
14537 (grub_env_set_data_slot): Removed.
14538 (grub_env_get_data_slot): Likewise.
14539 (grub_env_unset_data_slot): Likewise.
14540 (grub_env_unset_menu): New prototype.
14541 (grub_env_set_menu): Likewise.
14542 (grub_env_get_menu): Likewise.
14543 * include/grub/env_private.h: New file.
14544 * include/grub/normal.h (grub_context_init): New prototype.
14545 (grub_context_fini): Likewise.
14546 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
14547 * normal/context.c (grub_cmd_export): ... to here.
14548 * kern/env.c: Include env_private.h.
14549 (HASHSZ): Moved to include/grub/env_private.h.
14550 (grub_env_context): Likewise.
14551 (grub_env_sorted_var): Likewise.
14552 (current_context): Renamed from this ...
14553 (grub_current_context): ...to this. 'static' removed. All users updated.
14554 (grub_env_find): Removed 'static'.
14555 (grub_env_context_open): Moved to normal/context.c.
14556 (grub_env_context_close): Likewise.
14557 (grub_env_export): Likewise.
14558 (mangle_data_slot_name): Removed.
14559 (grub_env_set_data_slot): Likewise.
14560 (grub_env_get_data_slot): Likewise.
14561 (grub_env_unset_data_slot): Likewise.
14562 * kern/main.c (grub_set_root_dev): Don't export root.
14563 It will be done later.
14564 (grub_main): Don't export prefix.
14565 It will be done later.
14566 * normal/context.c: New file.
14567 * normal/main.c (free_menu): Use grub_env_unset_menu.
14568 (grub_normal_add_menu_entry): Use grub_env_get_menu.
14569 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
14570 (GRUB_MOD_INIT(normal)): Call grub_context_init.
14571 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
14572
14573 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 setpci support.
14576
14577 * commands/setpci.c: New file.
14578 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
14579 (setpci_mod_SOURCES): New variable.
14580 (setpci_mod_CFLAGS): Likewise.
14581 (setpci_mod_LDFLAGS): Likewise.
14582
14583 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 Byte-addressable PCI configuration space.
14586
14587 * bus/pci.c (grub_pci_make_address): Use byte address instead of
14588 dword address.
14589 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
14590 GRUB_PCI_REG_CACHELINE.
14591 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
14592 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
14593 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
14594 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
14595 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
14596 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
14597 grub_pci_make_address.
14598 (lock_rom_area): Likewise.
14599 * commands/lspci.c (grub_lspci_iter): Use macroses
14600 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
14601 of grub_pci_make_address.
14602 * disk/ata.c (grub_ata_pciinit): Likewise.
14603 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
14604 (GRUB_PCI_REG_VENDOR): Likewise.
14605 (GRUB_PCI_REG_DEVICE): Likewise.
14606 (GRUB_PCI_REG_COMMAND): Likewise.
14607 (GRUB_PCI_REG_STATUS): Likewise.
14608 (GRUB_PCI_REG_REVISION): Likewise.
14609 (GRUB_PCI_REG_CLASS): Likewise.
14610 (GRUB_PCI_REG_CACHELINE): Likewise.
14611 (GRUB_PCI_REG_LAT_TIMER): Likewise.
14612 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
14613 (GRUB_PCI_REG_BIST): Likewise.
14614 (GRUB_PCI_REG_ADDRESSES): Likewise.
14615 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14616 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14617 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14618 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14619 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14620 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14621 (GRUB_PCI_REG_CIS_POINTER): Likewise.
14622 (GRUB_PCI_REG_SUBVENDOR): Likewise.
14623 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
14624 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
14625 (GRUB_PCI_REG_CAP_POINTER): Likewise.
14626 (GRUB_PCI_REG_IRQ_LINE): Likewise.
14627 (GRUB_PCI_REG_IRQ_PIN): Likewise.
14628 (GRUB_PCI_REG_MIN_GNT): Likewise.
14629 (GRUB_PCI_REG_MAX_LAT): Likewise.
14630 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
14631 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
14632 * video/efi_uga.c (find_framebuf): Likewise.
14633 * video/sm712.c (grub_video_sm712_setup): Likewise.
14634 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
14635 space.
14636
14637 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14638
14639 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
14640 can be reliably determined to be supported.
14641
14642 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14643
14644 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
14645 that VESA is supported.
14646 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
14647 supported.
14648
14649 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14650
14651 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
14652
14653 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14654
14655 * util/misc.c (make_system_path_relative_to_its_root): Work around
14656 special-casing of "/", as previous incarnation of this routine did.
14657
14658 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14659
14660 Fix any-emu compilation.
14661
14662 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
14663 * grub_bin2h_SOURCES: New variable.
14664
14665 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14666
14667 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
14668
14669 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14670
14671 * util/grub.d/00_header.in: Fix handling of locale_dir.
14672
14673 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
14676 as possible unifont location (Gentoo).
14677 Reported by: Alexander Brüning
14678
14679 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 Don't try to generate lists for kernel.img.
14682
14683 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
14684 (pkglib_MODULES): Remove kernel.img.
14685 (kernel_img_EXPORTS): Removed.
14686 (kernel_img_RELOCATABLE): New variable.
14687 * conf/x86_64-efi.rmk: Likewise.
14688 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
14689
14690 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
14693 grub_xasprintf or grub_snprintf.
14694 (grub_vsprintf): Likewise.
14695 (grub_snprintf): New proto.
14696 (grub_vsnprintf): Likewise.
14697 (grub_xasprintf): Likewise.
14698 (grub_xvasprintf): Likewise.
14699 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
14700 (grub_sprintf): Removed.
14701 (grub_vsnprintf): New function.
14702 (grub_snprintf): Likewise.
14703 (grub_xvasprintf): Likewise.
14704 (grub_xasprintf): Likewise.
14705 (grub_vsprintf): Renamed to ...
14706 (grub_vsnprintf_real): ...this. New argument max_len.
14707
14708 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
14709
14710 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
14711 fix grub-script-check warning.
14712
14713 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * include/grub/font.h (grub_font_load): Fix prototype.
14716
14717 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
14720
14721 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 * include/grub/x86_64/at_keyboard.h: New file.
14724
14725 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * loader/mips/linux.c: Include missing grub/i18n.h.
14728
14729 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14730
14731 * normal/menu.c (notify_execution_failure): Clarify error message.
14732
14733 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14734
14735 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
14736 return value (and revert all return statements). Update users.
14737
14738 2010-01-20 Dan Merillat <debian@dan.merillat.org>
14739
14740 * kern/device.c (grub_device_iterate): Allocate new part_ent
14741 structure based on sizeof (*p) rather than sizeof (p->next), to
14742 account for structure padding.
14743
14744 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
14745 disk is NULL, which might happen for LVM physical volumes with no
14746 LVM signature.
14747
14748 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14749
14750 * loader/mips/linux.c (grub_cmd_initrd)
14751 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
14752
14753 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14754
14755 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
14756 (grub_video_video_init, grub_video_bitmap_init)
14757 (grub_font_manager_init, grub_term_gfxterm_init)
14758 (grub_at_keyboard_init): New extern declarations.
14759 (grub_machine_init): Initialize gfxterm and at_keyboard.
14760
14761 * kern/main.c (grub_main): Revert grub_printf delay kludge.
14762
14763 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
14764 `gfxterm.mod' into core image.
14765
14766 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14767 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14768 (kernel_img_FORMAT): Copy to ...
14769
14770 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14771 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14772 (kernel_img_FORMAT): ... here, and ...
14773
14774 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14775 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14776 (kernel_img_FORMAT): ... here.
14777
14778 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
14779 and input (at_keyboard) terminals in kernel.
14780 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
14781
14782 (pkglib_MODULES): Remove `pci.mod'.
14783 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
14784 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
14785 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14786 (at_keyboard_mod_LDFLAGS): Remove variables.
14787
14788 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
14789
14790 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
14791
14792 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
14793
14794 * include/grub/mips/libgcc.h: Only export symbols for functions
14795 that libgcc provides.
14796
14797 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
14798
14799 MIPS support.
14800
14801 * bus/bonito.c: New file.
14802 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
14803 GRUB_PCI_NUM_DEVICES.
14804 * term/i386/pc/serial.c: Move to ...
14805 * term/serial.c: ... here. All users updated.
14806 * util/i386/pc/grub-mkimage.c: Move to ...
14807 * util/grub-mkrawimage.c: ... here. All users updated.
14808 * term/i386/pc/at_keyboard.c: Move to ...
14809 * term/at_keyboard.c: ... here. All users updated.
14810 * conf/mips-qemu-mips.rmk: New file.
14811 * conf/mips-yeeloong.rmk: Likewise.
14812 * conf/mips.rmk: Likewise.
14813 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
14814 mipsel-qemu-mips.
14815 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
14816 to port addresses.
14817 (grub_ata_pciinit): Support CS5536.
14818 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
14819 * font/font_cmd.c (loadfont_command): Open file before passing it to
14820 grub_font_load.
14821 (pseudo_file_read): New function.
14822 (pseudo_file_close): Likewise.
14823 (pseudo_fs): New structure.
14824 (load_font_module): New function.
14825 (GRUB_MOD_INIT(font_manager)): Load embedded font.
14826 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
14827 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
14828 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
14829 * include/grub/i386/at_keyboard.h: Split into ...
14830 * include/grub/at_keyboard.h: ... this ...
14831 * include/grub/i386/at_keyboard.h: ... and this.
14832 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
14833 New prototype.
14834 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
14835 updated.
14836 (grub_elf64_size): Likewise.
14837 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
14838 filename.
14839 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
14840 * include/grub/i386/coreboot/serial.h: Rewritten.
14841 * include/grub/i386/ieee1275/serial.h: Include
14842 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
14843 * include/grub/i386/pc/serial.h: Moved from here ...
14844 * include/grub/serial.h: ... to here. All users updated.
14845 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
14846 (GRUB_PCI_NUM_BUS): Likewise.
14847 (GRUB_PCI_NUM_DEVICES): Likewise.
14848 (grub_pci_device_map_range): Add missing volatile keyword.
14849 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
14850 * include/grub/mips/at_keyboard.h: New file.
14851 * include/grub/mips/cache.h: Likewise.
14852 * include/grub/mips/io.h: Likewise.
14853 * include/grub/mips/kernel.h: Likewise.
14854 * include/grub/mips/libgcc.h: Likewise.
14855 * include/grub/mips/pci.h: Likewise.
14856 * include/grub/mips/qemu-mips/boot.h: Likewise.
14857 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14858 * include/grub/mips/qemu-mips/loader.h: Likewise.
14859 * include/grub/mips/qemu-mips/memory.h: Likewise.
14860 * include/grub/mips/qemu-mips/serial.h: Likewise.
14861 * include/grub/mips/qemu-mips/time.h: Likewise.
14862 * include/grub/mips/relocator.h: Likewise.
14863 * include/grub/mips/time.h: Likewise.
14864 * include/grub/mips/types.h: Likewise.
14865 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
14866 * include/grub/mips/yeeloong/boot.h: Likewise.
14867 * include/grub/mips/yeeloong/kernel.h: Likewise.
14868 * include/grub/mips/yeeloong/loader.h: Likewise.
14869 * include/grub/mips/yeeloong/memory.h: Likewise.
14870 * include/grub/mips/yeeloong/pci.h: Likewise.
14871 * include/grub/mips/yeeloong/serial.h: Likewise.
14872 * include/grub/mips/yeeloong/time.h: Likewise.
14873 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
14874 * kern/elf.c (grub_elf32_size): New parameter. All users
14875 updated.
14876 (grub_elf64_size): Likewise.
14877 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
14878 Load modules before saying "Welcome to GRUB!".
14879 Call grub_refresh after saying "Welcome to GRUB!".
14880 * kern/mips/cache.S: New file.
14881 * kern/mips/cache_flush.S: Likewise.
14882 * kern/mips/dl.c: Likewise.
14883 * kern/mips/init.c: Likewise.
14884 * kern/mips/qemu-mips/init.c: Likewise.
14885 * kern/mips/startup.S: Likewise.
14886 * kern/mips/yeeloong/init.c: Likewise.
14887 * kern/term.c (grub_putcode): Handle NULL terminal.
14888 (grub_getcharwidth): Likewise.
14889 (grub_getkey): Likewise.
14890 (grub_checkkey): Likewise.
14891 (grub_getkeystatus): Likewise.
14892 (grub_getxy): Likewise.
14893 (grub_getwh): Likewise.
14894 (grub_gotoxy): Likewise.
14895 (grub_cls): Likewise.
14896 (grub_setcolorstate): Likewise.
14897 (grub_setcolor): Likewise.
14898 (grub_getcolor): Likewise.
14899 (grub_refresh): Likewise.
14900 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
14901 (write_jump): Add hatch nop.
14902 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
14903 * lib/mips/setjmp.S: New file.
14904 * loader/mips/linux.c: Likewise.
14905 * term/i386/pc/at_keyboard.c: Move from here ...
14906 * term/at_keyboard.c: ... to here.
14907 * term/i386/pc/serial.c: Moved from here ...
14908 * term/serial.c: ... to here. All users updated.
14909 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
14910 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
14911 (serial_translate_key_sequence): Avoid deadlock.
14912 (grub_serial_getkey): Handle backspace.
14913 (grub_serial_putchar): Fix newline handling.
14914 * util/i386/pc/grub-mkimage.c: Move from here ...
14915 * util/grub-mkrawimage.c: ... to here. All users updated.
14916 (generate_image): New parameters 'font_path' and 'format'.
14917 Support embedding font.
14918 Use grub_host_to_target* instead of grub_cpu_to_le*.
14919 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
14920 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
14921 (options): New option "--font".
14922 (usage): Likewise.
14923 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
14924 (main): Handle "--font".
14925 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
14926 (grub_virtual_screen_setup): Set bg_color_display.
14927 (redraw_screen_rect): Use bg_color_display instead of incorrect
14928 bg_color.
14929 (grub_gfxterm_cls): Likewise.
14930 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
14931 Support embedding config file.
14932 (add_segments): Likewise.
14933 (options): New option "--config".
14934 (main): Handle "--config".
14935 * video/sm712.c: New file.
14936
14937 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14938
14939 Fix parallel builds.
14940
14941 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
14942 font.c depend on ascii.h).
14943
14944 2010-01-12 Carles Pina i Estany <carles@pina.cat>
14945
14946 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
14947
14948 2010-01-11 Carles Pina i Estany <carles@pina.cat>
14949
14950 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
14951 By default: disabled.
14952 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
14953 parameter.
14954
14955 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14956
14957 * font/font.c: Update copyright years.
14958 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
14959
14960 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14961
14962 * font/font.c: Include `ascii.h'.
14963 (ASCII_BITMAP_SIZE): New macro.
14964 (ascii_font_glyph): Define.
14965 (ascii_glyph_lookup): New function.
14966 (grub_font_get_string_width): Change comment. If glyph not found, use
14967 ascii_glyph_lookup.
14968 (grub_font_get_glyph_with_fallback): If glyph not available returns
14969 ascii_glyph_lookup.
14970 * util/grub-mkfont.c (file_formats): New enum.
14971 (options): Add `ascii-bitmaps' new option.
14972 (usage): Add `asii-bitmaps' new option.
14973 (write_font_ascii_bitmap): New function.
14974 (write_font): Rename to ...
14975 (write_font_p2): ... this. Remove print_glyphs call.
14976 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
14977 used. Call print_glyphs.
14978 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
14979
14980 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14981
14982 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
14983 (grub_bin2h_SOURCES): New variable.
14984 * util/bin2h.c: New file.
14985
14986 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * include/multiboot.h: Resynced with spec.
14989 * include/multiboot2.h: Likewise.
14990 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
14991 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
14992
14993 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14994
14995 * include/grub/term.h (grub_term_register_input,
14996 grub_term_register_output): Check return of terminal init()
14997 routines, and abort if errors are raised.
14998
14999 * commands/terminal.c: Update copyright year.
15000
15001 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15002
15003 * commands/terminal.c (grub_cmd_terminal_input)
15004 (grub_cmd_terminal_output): Check return of terminal init()
15005 routines, and abort if errors are raised.
15006
15007 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15008
15009 * include/grub/i386/bsd.h: Fix include pathes.
15010
15011 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 Add missing *BSD copyright headers.
15014
15015 * include/grub/aout.h: Add BSD licence.
15016 * include/grub/i386/bsd.h: Parts under different licences moved to ...
15017 * include/grub/i386/freebsd_linker.h: ... here,
15018 * include/grub/i386/freebsd_reboot.h: ... here,
15019 * include/grub/i386/netbsd_bootinfo.h: ... here,
15020 * include/grub/i386/netbsd_reboot.h: ... here,
15021 * include/grub/i386/openbsd_bootarg.h: ... here,
15022 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
15023 licence to each file.
15024
15025 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15026
15027 * acinclude.m4: Remove `nop' assembly instruction; it's not
15028 implemented by all architectures.
15029
15030 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15031
15032 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
15033 ELILO. This is no longer necessary.
15034
15035 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
15036
15037 Added new tool, grub-scrit-check to verify grub.cfg syntax.
15038
15039 * util/grub-script-check.c: grub-script-check tool.
15040 * conf/common.rmk: Make rules for grub-script-check.
15041
15042 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15043
15044 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
15045 spotting it back in 2008. Shame on me for forgetting he did.
15046
15047 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
15048
15049 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15050
15051 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
15052 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
15053 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
15054 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
15055 (GRUB_VIDEO_TYPE_EFI): Rename to ...
15056 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
15057
15058 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
15059
15060 * include/grub/test.h: Add license header.
15061 * tests/example_functional_test.c: Likewise.
15062 * tests/example_unit_test.c: Likewise.
15063 * tests/lib/functional_test.c: Likewise.
15064 * tests/lib/test.c: Likewise.
15065 * tests/lib/unit_test.c: Likewise.
15066
15067 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 Use flag-based instead of hook-based video mode selection and "auto"
15070 keyword.
15071
15072 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
15073 (grub_video_set_mode): Changed prototype. All users updated.
15074 (grub_video_check_mode_flag): New inline function.
15075 * video/video.c (parse_modespec): New function.
15076 (grub_video_set_mode): Parse flags and keywords.
15077
15078 2010-01-17 Carles Pina i Estany <carles@pina.cat>
15079
15080 * util/misc.c (grub_util_info): Fix the order of the parameters in a
15081 fprintf call.
15082
15083 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
15084
15085 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
15086
15087 2010-01-16 Carles Pina i Estany <carles@pina.cat>
15088
15089 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
15090 string.
15091 * util/grub-emu.c (usage): Likewise.
15092 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
15093 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15094 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15095 * util/i386/pc/grub-setup.c (usage): Likewise.
15096
15097 2010-01-16 Carles Pina i Estany <carles@pina.cat>
15098
15099 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
15100 the message.
15101 (grub_util_info): Likewise.
15102 (grub_util_error): Likewise.
15103 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
15104 and/or new lines in `grub_util_warna', `grub_util_info',
15105 `grub_util_error' calls.
15106 * util/getroot.c: Likewise.
15107 * util/grub-editenv.c: Likewise.
15108 * util/grub-emu.c: Likewise.
15109 * util/grub-fstest.c: Likewise.
15110 * util/grub-mkdevicemap.c: Likewise.
15111 * util/grub-mkfont.c: Likewise.
15112 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15113 * util/grub-mkrelpath.c: Likewise.
15114 * util/grub-pe2elf.c: Likewise.
15115 * util/grub-probe.c: Likewise.
15116 * util/hostdisk.c: Likewise.
15117 * util/i386/efi/grub-mkimage.c: Likewise.
15118 * util/i386/pc/grub-mkimage.c: Likewise.
15119 * util/i386/pc/grub-setup.c: Likewise.
15120 * util/ieee1275/ofpath.c: Likewise.
15121 * util/mkisofs/eltorito.c: Likewise.
15122 * util/mkisofs/rock.c: Likewise.
15123 * util/mkisofs/write.c: Likewise.
15124 * util/raid.c: Likewise.
15125 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15126 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15127
15128 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15129
15130 Enable multiboot on non-pc.
15131
15132 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
15133 multiboot.mod and multiboot2.mod to ...
15134 * conf/i386.rmk (pkglib_MODULES): ... here.
15135 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
15136 Moved to ...
15137 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
15138 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
15139 Moved to ...
15140 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
15141 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
15142 Moved to ...
15143 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
15144 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
15145 Moved to ...
15146 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
15147 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
15148 relocator.mod.
15149 (ata_mod_SOURCES): Removed.
15150 (ata_mod_CFLAGS): Likewise.
15151 (ata_mod_LDFLAGS): Likewise.
15152 (relocator_mod_SOURCES): Removed.
15153 (relocator_mod_CFLAGS): Likewise.
15154 (relocator_mod_ASFLAGS): Likewise.
15155 (relocator_mod_LDFLAGS): Likewise.
15156 Include i386.mk.
15157 * include/grub/x86_64/multiboot.h: New file.
15158 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
15159 Terminate EFI.
15160
15161 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15162
15163 Video multiboot support.
15164
15165 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
15166 New prototype.
15167 * include/multiboot.h: Resynced with multiboot specification.
15168 * include/multiboot2.h: Likewise.
15169 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
15170 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
15171 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
15172 (HAS_VGA_TEXT): Likewise.
15173 (accepts_video): New variable.
15174 (grub_multiboot_set_accepts_video): New function.
15175 (grub_multiboot_get_mbi_size): Account for video structures.
15176 (set_video_mode): New function.
15177 (retrieve_video_parameters): Likewise.
15178 (grub_multiboot_make_mbi): Fill video fields.
15179
15180 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15181
15182 Video driver ids.
15183
15184 * include/grub/video.h (grub_video_driver_id): New type.
15185 (grub_video_adapter): New member 'id'. All users updated.
15186 (grub_video_get_driver_id): New proto.
15187 * video/video.c (grub_video_get_driver_id): New function.
15188
15189 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15190
15191 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
15192 `var=val'.
15193
15194 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15195
15196 * normal/cmdline.c (print_completion): Gettextizze.
15197
15198 2001-01-14 Carles Pina i Estany <carles@pina.cat>
15199
15200 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
15201
15202 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15203
15204 * gettext/gettext.c (grub_gettext_translate): Push and pop
15205 grub_errno.
15206 (grub_gettext_delete_list): Change comment style.
15207 * kern/err.c (grub_error): Gettextizze.
15208 (grub_fatal): Gettextizze.
15209
15210 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
15211
15212 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
15213 (grub_linux16_real_boot): ... this.
15214 * kern/i386/loader.S: Likewise.
15215 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
15216 (grub_linux16_boot): New function. Switches to text mode and calls
15217 grub_linux16_real_boot().
15218
15219 * loader/i386/bsd.c: Include `<grub/video.h>'.
15220 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
15221 text mode before calling grub_unix_real_boot().
15222
15223 * loader/i386/multiboot.c: Include `<grub/video.h>'.
15224 (grub_multiboot_boot): Switch to text mode before calling
15225 grub_relocator32_boot().
15226
15227 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
15228 (grub_chainloader_boot): Switch to text mode before calling
15229 grub_chainloader_real_boot().
15230
15231 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15232 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15233
15234 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
15235 non-empty value.
15236
15237 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15238 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15239
15240 * util/grub.d/00_header.in: Define a "savedefault" function for use
15241 in menu entries.
15242 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
15243
15244 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15245 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15246
15247 * util/grub-mkconfig_lib.in (save_default_entry): Only set
15248 saved_entry if boot_once is unset.
15249 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
15250 previous saved entry (i.e. grub-reboot).
15251
15252 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15253
15254 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
15255
15256 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15257
15258 * util/grub.d/00_header.in: Use `set var=val' rather than plain
15259 `var=val'.
15260 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
15261
15262 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15263
15264 * util/grub-reboot.in: Fix --version output.
15265 * util/grub-set-default.in: Likewise.
15266
15267 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15268
15269 * util/grub.d/00_header.in: Silently ignore zero-sized environment
15270 blocks.
15271
15272 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15273
15274 * util/grub.d/00_header.in: Quote the value assigned to `default',
15275 in case it contains spaces.
15276
15277 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15278
15279 * util/grub.d/30_os-prober.in: Fix merge error that moved a
15280 `save_default_entry' call from the macosx case to the linux case.
15281
15282 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15283 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
15284
15285 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
15286 in `chosen' environment variable.
15287 * normal/menu_text.c (get_entry_number): Check if the variable
15288 matches the title of a menu entry.
15289 (run_menu): Pass menu to get_entry_number.
15290
15291 * util/grub-reboot.in: New file.
15292 * util/grub-set-default.in: New file.
15293 * conf/common.rmk (grub-reboot): New utility.
15294 (grub-set-default): New utility.
15295
15296 * util/grub-mkconfig_lib.in (save_default_entry): New function.
15297 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
15298 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
15299 move it to `saved_entry' for the next boot. Load environment on
15300 initialisation.
15301 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
15302 * util/grub.d/10_hurd.in: Likewise.
15303 * util/grub.d/10_linux.in (linux_entry): Likewise.
15304 * util/grub.d/10_windows.in: Likewise.
15305 * util/grub.d/30_os-prober.in: Likewise.
15306
15307 * util/grub-install.in: Create environment block.
15308 * util/i386/efi/grub-install.in: Likewise.
15309 * util/ieee1275/grub-install.in: Likewise.
15310 * util/sparc64/ieee1275/grub-install.in: Likewise.
15311
15312 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
15313
15314 Unit testing framework for GRUB.
15315
15316 * Makefile.in: Test framework build rules for 'make check'.
15317 * conf/tests.rmk: Build rules for individual tests and framework.
15318
15319 * include/grub/test.h: Header file for whitebox tests.
15320 * tests/lib/functional_test.c: Framework support for whitebox
15321 functional tests.
15322 * tests/lib/test.c: Common whitebox testing code for unit and
15323 functional tests.
15324 * tests/lib/unit_test.c: Framework support for whitebox unit
15325 tests.
15326
15327 * tests/util/grub-shell-tester.in: Support utility for grub-script
15328 tests.
15329 * tests/util/grub-shell.in: Utility to execute grub-script
15330 commands in a Qemu instance.
15331
15332 * tests/example_functional_test.c: Example whitebox functional
15333 test.
15334 * tests/example_grub_script_test.in: Example grub-script test.
15335 * tests/example_scripted_test.in: Example scripted test.
15336 * tests/example_unit_test.c: Example whitebox unit test.
15337
15338 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15339
15340 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
15341 Add loader/i386/multiboot_mbi.c.
15342 (multiboot2_mod_SOURCES): Likewise.
15343 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
15344 (multiboot2_mod_SOURCES): Likewise.
15345 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
15346 (grub_multiboot_make_mbi): Likewise.
15347 (grub_multiboot_free_mbi): Likewise.
15348 (grub_multiboot_init_mbi): Likewise.
15349 (grub_multiboot_add_module): Likewise.
15350 (grub_multiboot_set_bootdev): Likewise.
15351 * loader/i386/multiboot.c (mbi): Removed.
15352 (mbi_dest): Likewise.
15353 (alloc_mbi): New variable.
15354 (grub_multiboot_payload_size): Removed. All users updated.
15355 (grub_multiboot_pure_size): New variable.
15356 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
15357 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
15358 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
15359 (grub_fill_multiboot_mmap): Likewise.
15360 (grub_multiboot_get_bootdev): Likewise.
15361 (grub_multiboot): Use multiboot_mbi functions.
15362 * loader/i386/multiboot_mbi.c: New file.
15363
15364 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15365
15366 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
15367 it would result in module crash.
15368
15369 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15370
15371 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
15372 (grub_ofconsole_getwh): Split to ...
15373 (grub_ofconsole_getwh): ... this.
15374 (grub_ofconsole_dimensions): ...and this.
15375 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
15376
15377 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
15378
15379 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
15380
15381 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * loader/i386/pc/multiboot2.c: Removed stalled file.
15384
15385 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15386
15387 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
15388 Reported by: Grégoire Sutre
15389
15390 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
15391
15392 * util/misc.c (canonicalize_file_name): New function.
15393 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
15394 instead of realpath().
15395
15396 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
15397
15398 * util/grub-install.in (usage): Clarify meaning of --root-directory,
15399 and make it clearer that it's optional. Based on confusion
15400 witnessed on IRC.
15401
15402 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
15405 in premature implicit newline.
15406
15407 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
15410 which resulted in garbled command line at the end of screen.
15411
15412 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15413
15414 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
15415 initialization with similar approach as with other Linux loaders.
15416
15417 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15418
15419 Fix i386-ieee1275 build.
15420
15421 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
15422 and grub_term_height() for video_{width,height} initialization.
15423
15424 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15425
15426 Fix grub-emu build.
15427
15428 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
15429
15430 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15431 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15432
15433 Support for multiple terminals.
15434
15435 * Makefile.in (pkglib_DATA): terminal.lst.
15436 (terminal.lst): New target.
15437 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
15438 (GRUB_MOD_INIT(handler)): Likewise.
15439 (GRUB_MOD_FINI(handler)): Likewise.
15440 * commands/help.c (grub_cmd_help): Handle multiple terminals.
15441 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
15442 * commands/sleep.c (do_print): Use grub_term_restore_pos.
15443 (grub_cmd_sleep): Use grub_term_save_pos.
15444 * commands/terminal.c: New file.
15445 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
15446 commands/terminal.c and lib/charset.c.
15447 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
15448 (pkglib_MODULES): Add terminal.mod.
15449 (terminal_mod_SOURCES): New variable.
15450 (terminal_mod_CFLAGS): Likewise.
15451 (terminal_mod_LDFLAGS): Likewise.
15452 * genhandlerlist.sh: Don't handle terminals.
15453 * genmk.rb: Generate terminal-*.lst.
15454 * genterminallist.sh: New file.
15455 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
15456 (grub_is_valid_utf8): Likewise.
15457 (grub_utf8_to_ucs4_alloc): Likewise.
15458 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
15459 (grub_menu_register_viewer): Changed argument.
15460 (grub_menu_try_text): New proto.
15461 (grub_gfxmenu_try_hook): New declaration.
15462 * include/grub/normal.h (grub_normal_exit_level): New declaration.
15463 (grub_menu_init_page): Additional argument term.
15464 (grub_normal_init_page): Likewise.
15465 (grub_cmdline_get): Arguments simplified.
15466 (grub_utf8_to_ucs4_alloc): Removed.
15467 (grub_print_ucs4): Additional argument term.
15468 (grub_getstringwidth): Likewise.
15469 (grub_print_message_indented): Likewise.
15470 (grub_menu_text_register_instances): New proto.
15471 (grub_show_menu): Likewise.
15472 (read_terminal_list): Likewise.
15473 (grub_set_more): Likewise.
15474 * include/grub/parser.h: Include handler.h.
15475 * include/grub/reader.h: Rewritten.
15476 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
15477 (GRUB_TERM_WIDTH): Changed to function.
15478 (GRUB_TERM_HEIGHT): Likewise.
15479 (GRUB_TERM_BORDER_WIDTH): Likewise.
15480 (GRUB_TERM_BORDER_HEIGHT): Likewise.
15481 (GRUB_TERM_NUM_ENTRIES): Likewise.
15482 (GRUB_TERM_ENTRY_WIDTH): Likewise.
15483 (GRUB_TERM_CURSOR_X): Likewise.
15484 (grub_term_input_class): Likewise.
15485 (grub_term_output_class): Likewise.
15486 (grub_term_outputs_disabled): New declaration.
15487 (grub_term_inputs_disabled): Likewise.
15488 (grub_term_outputs): Likewise.
15489 (grub_term_inputs): Likewise.
15490 (grub_term_register_input): Rewritten.
15491 (grub_term_register_output): Likewise.
15492 (grub_term_unregister_input): Likewise.
15493 (grub_term_unregister_output): Likewise.
15494 (FOR_ACTIVE_TERM_INPUTS): New macro.
15495 (FOR_DISABLED_TERM_INPUTS): Likewise.
15496 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15497 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15498 * include/grub/terminfo.h: Add oterm argument to all protypes.
15499 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
15500 Use grub_rescue_run.
15501 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
15502 All users updated.
15503 * kern/reader.c: Removed. All users updated.
15504 * kern/rescue_reader.c (grub_rescue_init): Removed.
15505 (grub_rescue_reader): Likewise.
15506 (grub_register_rescue_reader): Likewise.
15507 (grub_rescue_run): New function based on kern/reader.c.
15508 * kern/term.c: Adapted for multiterm.
15509 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
15510 (grub_is_valid_utf8): Likewise.
15511 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
15512 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
15513 right terminal.
15514 * loader/i386/linux.c (grub_linux_boot): Likewise.
15515 * normal/auth.c (grub_username_get): New function.
15516 (grub_auth_check_authentication): Use grub_username_get.
15517 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
15518 * normal/color.c: Adapt for multiterm.
15519 * normal/main.c (read_config_file): Don't use grub_reader_loop.
15520 (grub_normal_init_page): Additional argument term.
15521 (read_lists): Call read_terminal_lists.
15522 (grub_enter_normal_mode): Call grub_cmdline_run.
15523 Handle grub_normal_exit_level.
15524 (grub_cmd_normal): Make reentrant.
15525 (grub_cmd_normal_exit): New function.
15526 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
15527 * normal/menu.c: Adapt for multiterm.
15528 * normal/menu_entry.c: Likewise.
15529 * normal/menu_text.c: Likewise.
15530 * normal/menu_viewer.c: Removed. All users updated.
15531 * normal/term.c: New file.
15532 * util/console.c: Change order of includes to workaround a bug in
15533 ncurses headers.
15534 * term/terminfo.c: New argument oterm on all exported functions.
15535 All users updated.
15536 * util/grub-editenv.c (grub_term_input_class): Removed.
15537 (grub_term_output_class): Likewise.
15538
15539 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15540
15541 Make loader output a bit more user-friendly.
15542
15543 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
15544 is being loaded. Likewise for the Hurd.
15545
15546 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
15547 that kernel of FreeBSD ${version} is being loaded.
15548
15549 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
15550 grub_dprintf().
15551 (grub_cmd_initrd): Likewise.
15552 * util/grub.d/10_linux.in (linux_entry): Print message indicating
15553 that Linux ${version} is being loaded. Likewise for initrd.
15554
15555 2010-01-09 Carles Pina i Estany <carles@pina.cat>
15556
15557 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
15558
15559 2010-01-08 Carles Pina i Estany <carles@pina.cat>
15560
15561 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
15562 (GRUB_MOD_INIT): Gettextizze.
15563 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
15564 (GRUB_MOD_INIT): Gettextizze.
15565 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
15566 (grub_cmd_linux): Capitalise Linux.
15567 (GRUB_MOD_INIT): Gettextizze.
15568 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
15569 (grub_cmd_linux): Capitalise Linux.
15570 (GRUB_MOD_INIT): Gettextizze.
15571 * loader/i386/linux.c: Include `<grub/i18n.h>'.
15572 (grub_cmd_linux): Capitalise Linux.
15573 (GRUB_MOD_INIT): Gettextizze.
15574 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
15575 (GRUB_MOD_INIT): Gettextizze.
15576 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
15577 (grub_cmd_linux): Capitalise Linux.
15578 (GRUB_MOD_INIT): Gettextizze.
15579 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
15580 (grub_cpu_xnu_init): Gettextizze.
15581 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
15582 (GRUB_MOD_INIT): Gettextizze.
15583 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
15584 (GRUB_MOD_INIT): Gettextizze.
15585 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
15586 (grub_linux_load64): Capitalise Linux.
15587 (GRUB_MOD_INIT): Gettextizze.
15588 * loader/xnu.c: Include `<grub/i18n.h>'.
15589 (GRUB_MOD_INIT): Gettextizze.
15590 * po/POTFILES: Add `loader/efi/appleloader.c',
15591 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
15592 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
15593 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
15594 `loader/i386/xnu.c', `loader/multiboot_loader.c',
15595 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
15596 and `loader/xnu.c'.
15597
15598 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15599
15600 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
15601
15602 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15603
15604 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
15605 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
15606 * util/mkisofs/mkisofs.c (main): Readjust --version output.
15607
15608 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15609
15610 Reset Multiboot 2 support. New loader implements the draft in
15611 /branches/multiboot2 and shares as much code as possible with the
15612 production Multiboot 1 implementation.
15613
15614 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
15615 * loader/multiboot2.c: Likewise.
15616 * loader/i386/multiboot_helper.S: Likewise.
15617 * include/multiboot2.h: Replace with latest version from the draft
15618 in /branches/multiboot2.
15619
15620 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
15621 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
15622 and `loader/multiboot2.c'.
15623 (pkglib_MODULES): Add `multiboot2.mod'.
15624 (multiboot2_mod_SOURCES): New variable.
15625 (multiboot2_mod_LDFLAGS): Likewise.
15626 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
15627
15628 * conf/i386-pc.rmk: Likewise.
15629
15630 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15631 (multiboot_mod_SOURCES): Remove variable.
15632 (multiboot_mod_LDFLAGS): Likewise.
15633 (multiboot_mod_CFLAGS): Likewise.
15634
15635 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
15636 `<multiboot2.h>' instead of `<multiboot.h>'.
15637 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
15638 (MULTIBOOT_HEADER_MAGIC): New macros.
15639
15640 * loader/multiboot_loader.c (module_version_status): Remove variable.
15641 (find_multi_boot2_header): Remove function.
15642 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
15643 logic. Always check for the Multiboot version we're compiling for.
15644 (grub_cmd_module_loader): Likewise.
15645 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
15646 command instead of `multiboot'.
15647
15648 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15649
15650 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
15651 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
15652 all users.
15653
15654 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15655 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15656
15657 Fix breakage introduced with previous commit.
15658
15659 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
15660 commands.
15661 * normal/handler.c (read_handler_list): Revert part of previous commit
15662 affecting this file.
15663 * normal/main.c (read_lists): Move read_handler_list() call back to ...
15664 (grub_normal_execute): ... here.
15665
15666 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15667
15668 Merge prefix-redefinition-fix branch.
15669
15670 * normal/autofs.c (read_fs_list): Make function capable of being
15671 run multiple times, gracefuly replacing the previous data
15672 structures.
15673 * normal/dyncmd.c (read_command_list): Likewise.
15674 * normal/handler.c (read_handler_list): Likewise.
15675 * normal/main.c (read_lists): New function. Calls all the
15676 list reading functions.
15677 (grub_normal_execute): Use read_lists() instead of calling all
15678 list reading functions explicitly. Register read_lists() as a
15679 variable hook attached to ${prefix}.
15680
15681 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 Merge crypto branch.
15684
15685 * Makefile.in (pkglib_DATA): Add crypto.lst.
15686 (crypto.lst): New target.
15687 * commands/hashsum.c: New file.
15688 * commands/password.c (check_password): Use grub_crypto_memcmp.
15689 * commands/password_pbkdf2.c: New file.
15690 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
15691 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
15692 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
15693 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
15694 -I$(srcdir)/lib/libgcrypt_wrap.
15695 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
15696 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
15697 password_pbkdf2.mod.
15698 (crypto_mod_SOURCES): New variable.
15699 (crypto_mod_CFLAGS): Likewise.
15700 (crypto_mod_LDFLAGS): Likewise.
15701 (hashsum_mod_SOURCES): New variable.
15702 (hashsum_mod_CFLAGS): Likewise.
15703 (hashsum_mod_LDFLAGS): Likewise.
15704 (pbkdf2_mod_SOURCES): New variable.
15705 (pbkdf2_mod_CFLAGS): Likewise.
15706 (pbkdf2_mod_LDFLAGS): Likewise.
15707 (password_pbkdf2_mod_SOURCES): New variable.
15708 (password_pbkdf2_mod_CFLAGS): Likewise.
15709 (password_pbkdf2_mod_LDFLAGS): Likewise.
15710 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
15711 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
15712 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
15713 Include conf/gcry.rmk.
15714 * include/grub/auth.h: Rewritten.
15715 * include/grub/crypto.h: New file.
15716 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
15717 * include/grub/normal.h (read_crypto_list): New prototype.
15718 * lib/crypto.c: New file.
15719 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15720 * lib/pbkdf2.c: Likewise.
15721 * normal/auth.c (grub_auth_strcmp): Removed.
15722 (grub_iswordseparator): Likewise.
15723 (grub_auth_strword): Likewise.
15724 (is_authenticated): Use grub_strword.
15725 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
15726 and grub_strword. Pass entered password to authentication callback.
15727 * normal/crypto.c: New file.
15728 * normal/main.c: Call read_crypto_list.
15729 * util/grub-mkpasswd-pbkdf2.c: New file.
15730 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
15731
15732 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 Fix descent and ascent calculation.
15735
15736 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
15737 (options): New option "asce".
15738 (usage): Likewise.
15739 (add_char): Ignore invalid glyphs for descent calculation.
15740 Calculate ascent from actual content.
15741 (print_glyphs): Use 'asce'.
15742 (write_font): Likewise. Allow ascent override.
15743 (main): Handle "asce" option.
15744
15745 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15746
15747 * kern/err.c: Include `<grub/i18n.h>'.
15748 (grub_print_error): Add full stop. Gettextizze.
15749 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
15750 (grub_bsd_load_elf): Capitalise ELF.
15751 (grub_cmd_freebsd_loadenv): Add `s' in error string.
15752 (grub_cmd_freebsd_module): Likewise.
15753 (grub_cmd_freebsd_module_elf): Likewise.
15754 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
15755
15756 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15757
15758 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
15759 * commands/search_file.c (HELP_MESSAGE): New macro.
15760 * commands/search_label.c (HELP_MESSAGE): Likewise.
15761 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
15762 * po/POTFILES: Add `commands/search_file.c',
15763 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
15764 `commands/search.c'.
15765
15766 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15767
15768 * config.rpath: Update from Gnulib.
15769
15770 2010-01-05 Yves Blusseau <blusseau@zetam.org>
15771
15772 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
15773
15774 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
15775
15776 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
15777
15778 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15779
15780 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
15781 arguments to fread so that we get a return value in bytes, rather
15782 than something that will normally be rounded down to 0.
15783 Adjust error handling to avoid producing garbage when size_t is not
15784 the same size as long long.
15785
15786 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15787
15788 * util/mkisofs/write.c (padblock_write): Check return value of
15789 fread.
15790
15791 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15792
15793 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
15794 floppy images now.
15795
15796 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
15797
15798 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15799
15800 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
15801 instead of manual alignment.
15802 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
15803 verbose). Avoid attempts to read past end of the device
15804 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
15805 but GRUB_DISK_CACHE_SIZE may exceed that).
15806
15807 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15808
15809 * commands/crc.c (grub_cmd_crc): Abort on read errors.
15810 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
15811 it to upper layer.
15812
15813 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
15816 New constant.
15817 (grub_efi_piwg_device_path): New structure
15818 (grub_efi_piwg_device_path_t): New type.
15819 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
15820 (devpath_1): Transform to a structure. All users updated.
15821 (devpath_2): Likewise.
15822 (devpath_3): Likewise.
15823 (devpath_4): Likewise.
15824 (devpath_5): Likewise.
15825
15826 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 * loader/efi/appleloader.c: Restored. Update all users.
15829
15830 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15831
15832 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
15833
15834 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
15835 (struct boot_blocklist): Move from here ...
15836 * include/grub/i386/pc/boot.h [ASM_FILE]
15837 (struct grub_boot_blocklist): ... to here. Update all users.
15838 (setup): Only initialize `start' member of `first_block'
15839 structure. Add assert() calls to verify the other members.
15840
15841 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
15842 (generate_image): Fix broken blocklist length initialization.
15843 Add assert() call to verify blocklist `segment' field.
15844
15845 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15846
15847 * loader/efi/appleloader.c: Remove. Update all users.
15848
15849 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15850
15851 * boot/i386/pc/boot.S: Update copyright year.
15852 * boot/i386/pc/cdboot.S: Likewise.
15853 * boot/i386/pc/diskboot.S: Likewise.
15854 * boot/i386/pc/lnxboot.S: Likewise.
15855 * boot/i386/pc/pxeboot.S: Likewise.
15856 * bus/pci.c: Likewise.
15857 * commands/cmp.c: Likewise.
15858 * commands/help.c: Likewise.
15859 * commands/hexdump.c: Likewise.
15860 * commands/i386/pc/halt.c: Likewise.
15861 * commands/i386/pc/play.c: Likewise.
15862 * commands/i386/pc/vbeinfo.c: Likewise.
15863 * commands/ls.c: Likewise.
15864 * commands/test.c: Likewise.
15865 * disk/dmraid_nvidia.c: Likewise.
15866 * disk/i386/pc/biosdisk.c: Likewise.
15867 * disk/ieee1275/nand.c: Likewise.
15868 * disk/ieee1275/ofdisk.c: Likewise.
15869 * disk/lvm.c: Likewise.
15870 * disk/raid.c: Likewise.
15871 * disk/raid6_recover.c: Likewise.
15872 * disk/scsi.c: Likewise.
15873 * fs/affs.c: Likewise.
15874 * fs/cpio.c: Likewise.
15875 * fs/ext2.c: Likewise.
15876 * fs/hfs.c: Likewise.
15877 * fs/iso9660.c: Likewise.
15878 * fs/ntfs.c: Likewise.
15879 * fs/sfs.c: Likewise.
15880 * fs/udf.c: Likewise.
15881 * fs/ufs.c: Likewise.
15882 * fs/xfs.c: Likewise.
15883 * gencmdlist.sh: Likewise.
15884 * genmk.rb: Likewise.
15885 * include/grub/disk.h: Likewise.
15886 * include/grub/efi/api.h: Likewise.
15887 * include/grub/efi/efi.h: Likewise.
15888 * include/grub/efi/pe32.h: Likewise.
15889 * include/grub/elf.h: Likewise.
15890 * include/grub/fs.h: Likewise.
15891 * include/grub/i386/at_keyboard.h: Likewise.
15892 * include/grub/i386/pc/memory.h: Likewise.
15893 * include/grub/i386/pc/vbe.h: Likewise.
15894 * include/grub/i386/pci.h: Likewise.
15895 * include/grub/i386/tsc.h: Likewise.
15896 * include/grub/ieee1275/ieee1275.h: Likewise.
15897 * include/grub/ntfs.h: Likewise.
15898 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15899 * include/grub/sparc64/libgcc.h: Likewise.
15900 * include/grub/symbol.h: Likewise.
15901 * include/grub/types.h: Likewise.
15902 * include/multiboot2.h: Likewise.
15903 * io/gzio.c: Likewise.
15904 * kern/device.c: Likewise.
15905 * kern/disk.c: Likewise.
15906 * kern/efi/efi.c: Likewise.
15907 * kern/efi/mm.c: Likewise.
15908 * kern/elf.c: Likewise.
15909 * kern/file.c: Likewise.
15910 * kern/i386/dl.c: Likewise.
15911 * kern/i386/pc/init.c: Likewise.
15912 * kern/i386/pc/startup.S: Likewise.
15913 * kern/ieee1275/ieee1275.c: Likewise.
15914 * kern/ieee1275/init.c: Likewise.
15915 * kern/main.c: Likewise.
15916 * kern/mm.c: Likewise.
15917 * kern/powerpc/dl.c: Likewise.
15918 * kern/sparc64/dl.c: Likewise.
15919 * kern/x86_64/dl.c: Likewise.
15920 * lib/hexdump.c: Likewise.
15921 * loader/efi/appleloader.c: Likewise.
15922 * loader/i386/ieee1275/linux.c: Likewise.
15923 * loader/i386/pc/chainloader.c: Likewise.
15924 * loader/i386/pc/linux.c: Likewise.
15925 * loader/i386/pc/multiboot2.c: Likewise.
15926 * loader/ieee1275/multiboot2.c: Likewise.
15927 * loader/multiboot2.c: Likewise.
15928 * loader/multiboot_loader.c: Likewise.
15929 * loader/powerpc/ieee1275/linux.c: Likewise.
15930 * normal/completion.c: Likewise.
15931 * normal/menu_entry.c: Likewise.
15932 * partmap/apple.c: Likewise.
15933 * util/grub.d/10_hurd.in: Likewise.
15934 * util/hostfs.c: Likewise.
15935 * video/readers/png.c: Likewise.
15936
15937 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
15938
15939 * include/grub/misc.h (GNUC_PREREQ): New macro.
15940 (ATTRIBUTE_ERROR): New macro.
15941 * include/grub/list.h (grub_bad_type_cast_real): Use
15942 ATTRIBUTE_ERROR.
15943
15944 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15945
15946 * normal/menu_text.c (print_message): Change messages.
15947
15948 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15949
15950 * normal/menu_entry.c (store_completion): Gettextizze.
15951
15952 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15953
15954 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
15955
15956 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15957
15958 * po/POTFILES: Sort correctly.
15959
15960 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15961
15962 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
15963 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
15964 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
15965 full stop.
15966 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
15967 summary. Gettextizze the strings.
15968 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
15969 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
15970 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
15971 full stop.
15972 (GRUB_MOD_INIT): Remove command name from summary.
15973 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
15974 summary.
15975 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
15976 * term/i386/pc/serial.c (options): Add full stops.
15977 (GRUB_MOD_INIT): Remove command name from the summary.
15978
15979 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15980
15981 * commands/acpi.c: Gettextizze help strings and/or options. Include
15982 `grub/i18n.h' if needed.
15983 * commands/blocklist.c: Likewise.
15984 * commands/boot.c: Likewise.
15985 * commands/cat.c: Likewise.
15986 * commands/cmp.c: Likewise.
15987 * commands/configfile.c: Likewise.
15988 * commands/crc.c: Likewise.
15989 * commands/date.c: Likewise.
15990 * commands/echo.c: Likewise.
15991 * commands/efi/fixvideo.c: Likewise.
15992 * commands/efi/loadbios.c: Likewise.
15993 * commands/gptsync.c: Likewise.
15994 * commands/halt.c: Likewise.
15995 * commands/handler.c: Likewise.
15996 * commands/hdparm.c: Likewise.
15997 * commands/hexdump.c: Likewise.
15998 * commands/i386/cpuid.c: Likewise.
15999 * commands/i386/pc/drivemap.c: Likewise.
16000 * commands/i386/pc/halt.c: Likewise.
16001 * commands/i386/pc/pxecmd.c: Likewise.
16002 * commands/i386/pc/vbeinfo.c: Likewise.
16003 * commands/i386/pc/vbetest.c: Likewise.
16004 * commands/ieee1275/suspend.c: Likewise.
16005 * commands/keystatus.c: Likewise.
16006 * commands/loadenv.c: Likewise.
16007 * commands/ls.c: Likewise.
16008 * commands/lsmmap.c: Likewise.
16009 * commands/lspci.c: Likewise.
16010 * commands/memrw.c: Likewise.
16011 * commands/minicmd.c: Likewise.
16012 * commands/parttool.c: Likewise.
16013 * commands/password.c: Likewise.
16014 * commands/probe.c: Likewise.
16015 * commands/read.c: Likewise.
16016 * commands/reboot.c: Likewise.
16017 * commands/search.c: Likewise.
16018 * commands/sleep.c: Likewise.
16019 * commands/test.c: Likewise.
16020 * commands/true.c: Likewise.
16021 * commands/usbtest.c: Likewise.
16022 * commands/videotest.c: Likewise.
16023 * commands/xnu_uuid.c: Likewise.
16024 * disk/loopback.c: Likewise.
16025 * hello/hello.c: Likewise.
16026 * loader/i386/bsd.c: Likewise.
16027 * term/i386/pc/serial.c: Likewise.
16028 * po/POTFILES: Add new files.
16029
16030 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
16031
16032 * term/i386/pc/at_keyboard.c
16033 (keyboard_controller_wait_untill_ready): Rename to ...
16034 (keyboard_controller_wait_until_ready): ... this. Update all users.
16035
16036 2010-01-01 Carles Pina i Estany <carles@pina.cat>
16037
16038 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
16039 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
16040 string using string width.
16041 * normal/menu_text.c (grub_print_message_indented): Use
16042 grub_print_spaces and not print_spaces.
16043 (print_timeout): Likewise.
16044 (print_spaces): Move to...
16045 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
16046
16047 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
16048
16049 Import from Gnulib.
16050
16051 * gnulib/getdelim.c: New file.
16052 * gnulib/getline.c: Likewise.
16053
16054 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
16055
16056 * include/grub/list.h (grub_assert_fail): Removed.
16057 (grub_bad_type_cast_real): New function.
16058 (grub_bad_type_cast): New macro.
16059 (GRUB_AS_LIST): Use grub_bad_type_cast.
16060 (GRUB_AS_LIST_P): Likewise.
16061 (GRUB_AS_NAMED_LIST): Likewise.
16062 (GRUB_AS_NAMED_LIST_P): Likewise.
16063 (GRUB_AS_PRIO_LIST): Likewise.
16064 (GRUB_AS_PRIO_LIST_P): Likewise.
16065 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
16066
16067 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
16070 Fix syntax error.
16071
16072 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
16073
16074 * configure.ac: Check for TARGET_CFLAGS initialization before we
16075 initialize it ourselves (sigh).
16076 Move a few modifications to TARGET_CFLAGS to be unconditional
16077 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
16078 eh_frame)
16079
16080 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
16081 * term/i386/pc/at_keyboard.c
16082 (keyboard_controller_wait_untill_ready): Likewise.
16083 (keyboard_controller_led): Rename `led_status' paramter to avoid
16084 name conflict.
16085
16086 2009-12-28 Carles Pina i Estany <carles@pina.cat>
16087
16088 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
16089 quotes.
16090
16091 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16092
16093 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
16094
16095 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * normal/menu_text.c (grub_print_message_indented): Prevent
16098 past-the-end-of-array dereference.
16099
16100 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
16103 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
16104
16105 2009-12-27 Carles Pina i Estany <carles@pina.cat>
16106
16107 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
16108 * normal/main.c (grub_normal_read_line): Remove a space from the
16109 default prompt.
16110
16111 2009-12-27 Carles Pina i Estany <carles@pina.cat>
16112
16113 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
16114 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16115 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
16116 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
16117 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16118 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16119 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16120
16121 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16122
16123 * video/readers/jpeg.c (cmd): Declare.
16124 (grub_cmd_jpegtest): Use `grub_command_t' type.
16125 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16126 Assign to `cmd'.
16127 (GRUB_MOD_FINI): Use `cmd' to unregister.
16128 * video/readers/png.c (cmd): Declare.
16129 (grub_cmd_pngtest): Use `grub_command_t' type.
16130 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16131 Assign to `cmd'.
16132 (GRUB_MOD_FINI): Use `cmd' to unregister.
16133 * video/readers/tga.c (cmd): Declare.
16134 (grub_cmd_tgatest): Use `grub_command_t' type.
16135 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16136 Assign to `cmd'.
16137 (GRUB_MOD_FINI): Use `cmd' to unregister.
16138
16139 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16140
16141 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
16142 stops.
16143 * kern/corecmd.c (grub_register_core_commands): Likewise.
16144 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
16145 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
16146 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
16147 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16148 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
16149 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
16150 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
16151 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
16152 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16153 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16154 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16155 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16156 * normal/handler.c (insert_handler): Likewise.
16157 * normal/main.c (GRUB_MOD_INIT): Likewise.
16158 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16159
16160 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16161
16162 * commands/help.c (grub_cmd_help): Print the command name before the
16163 summary.
16164 (GRUB_MOD_INIT): Remove command name from the summary.
16165 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
16166 string as summary.
16167 * lib/arg.c (find_long): Print the command name before the summary.
16168 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
16169 summary.
16170 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
16171 * commands/cat.c (GRUB_MOD_INIT): Likewise.
16172 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
16173 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
16174 * commands/crc.c (GRUB_MOD_INIT): Likewise.
16175 * commands/date.c (GRUB_MOD_INIT): Likewise.
16176 * commands/echo.c (GRUB_MOD_INIT): Likewise.
16177 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
16178 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16179 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16180 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
16181 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
16182 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
16183 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
16184 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16185 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
16186 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
16187 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
16188 * commands/ls.c (GRUB_MOD_INIT): Likewise.
16189 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16190 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16191 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16192 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
16193 * commands/password.c (GRUB_MOD_INIT): Likewise.
16194 * commands/probe.c (GRUB_MOD_INIT): Likewise.
16195 * commands/read.c (GRUB_MOD_INIT): Likewise.
16196 * commands/search.c (GRUB_MOD_INIT): Likewise.
16197 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
16198 * commands/test.c (GRUB_MOD_INIT): Likewise.
16199 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
16200 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16201 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16202 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
16203 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16204 * lib/arg.c (GRUB_MOD_INIT): Likewise.
16205 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
16206 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
16207 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16208 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16209 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16210 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
16211 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
16212 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
16213
16214 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 Use search command for preliminar UUID search.
16217
16218 * commands/search.c: Split into ...
16219 * commands/search_wrap.c: ...this
16220 * commands/search.c: ...and this.
16221 * commands/search_file.c: New file.
16222 * commands/search_label.c: New file.
16223 * commands/search_uuid.c: New file.
16224 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
16225 Add commands/search_wrap.c, commands/search_file.c,
16226 commands/search_label.c and commands/search_uuid.c.
16227 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
16228 (search_mod_SOURCES): Set to commands/search_wrap.c.
16229 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
16230 search_label.mod.
16231 (search_fs_file_mod_SOURCES): New variable.
16232 (search_fs_file_mod_CFLAGS): Likewise.
16233 (search_fs_file_mod_LDFLAGS): Likewise.
16234 (search_label_mod_SOURCES): Likewise.
16235 (search_label_mod_CFLAGS): Likewise.
16236 (search_label_mod_LDFLAGS): Likewise.
16237 (search_fs_uuid_mod_SOURCES): New variable.
16238 (search_fs_uuid_mod_CFLAGS): Likewise.
16239 (search_fs_uuid_mod_LDFLAGS): Likewise.
16240 (fs_file_mod_SOURCES): Removed.
16241 (fs_file_mod_CFLAGS): Likewise.
16242 (fs_file_mod_LDFLAGS): Likewise.
16243 (fs_uuid_mod_SOURCES): Removed.
16244 (fs_uuid_mod_CFLAGS): Likewise.
16245 (fs_uuid_mod_LDFLAGS): Likewise.
16246 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
16247 Set to util/grub-install.in.
16248 * disk/fs_file.c: Removed.
16249 * disk/fs_uuid.c: Likewise.
16250 * include/grub/search.h: New file.
16251 * util/grub-install.in: Handle sparc64.
16252 Create and use load.cfg.
16253 * util/sparc64/ieee1275/grub-install.in: Removed.
16254
16255 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
16258 Ignore return status if CF is cleared.
16259 (grub_biosdisk_get_diskinfo_standard): Likewise.
16260
16261 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
16262
16263 * term/i386/pc/at_keyboard.c
16264 (keyboard_controller_wait_untill_ready): New function.
16265 (grub_keyboard_controller_write, grub_keyboard_controller_read)
16266 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
16267 for keyboard polling, rather than duplicate the same loop. This
16268 saves a few bytes in code size.
16269
16270 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 Support for (pxe[:server[:gateway]]) syntax and
16273 use environment variable for PXE.
16274
16275 * commands/i386/pc/pxecmd.c (options): Removed.
16276 (print_ip): Removed.
16277 (grub_cmd_pxe): Removed
16278 (grub_cmd_pxe_unload): New function.
16279 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
16280 (grub_pxe_your_ip): Made static.
16281 (grub_pxe_default_server_ip): Likewise.
16282 (grub_pxe_default_gateway_ip): Likewise.
16283 (grub_pxe_blksize): Likewise.
16284 (parse_ip): New function.
16285 (grub_pxe_open): Support server and gateway specification.
16286 (grub_pxe_close): Free disk->data.
16287 (grub_pxefs_open): Use disk->data.
16288 (grub_pxefs_read): Likewise.
16289 (grub_env_write_readonly): New function.
16290 (set_mac_env): Likewise.
16291 (set_env_limn_ro): Likewise.
16292 (parse_dhcp_vendor): Likewise.
16293 (grub_pxe_detect): Set the environment variables.
16294 (set_ip_env): New function.
16295 (write_ip_env): Likewise.
16296 (grub_env_write_pxe_default_server): Likewise.
16297 (grub_env_write_pxe_default_gateway): Likewise.
16298 (grub_env_write_pxe_blocksize): Likewise.
16299 (GRUB_MOD_INIT(pxe)): Set environment variables.
16300 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
16301 (grub_pxe_mac_addr_t): ... this. All users updated.
16302 (grub_pxe_your_ip): Removed.
16303 (grub_pxe_server_ip): Likewise.
16304 (grub_pxe_gateway_ip): Likewise.
16305 (grub_pxe_blksize): Likewise.
16306
16307 2009-12-25 Carles Pina i Estany <carles@pina.cat>
16308
16309 * commands/help.c: Include `<grub/i18n.h>'.
16310 (grub_cmd_help): Gettextizze.
16311 (GRUB_MOD_INIT): Likewise.
16312 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
16313 (GRUB_MOD_INIT): Gettextizze.
16314 * commands/search.c: Include `<grub/i18n.h>'.
16315 (options): Gettextizze.
16316 (GRUB_MOD_INIT): Gettextizze.
16317 * lib/arg.c: Include `<grub/i18n.h>'.
16318 (help_options): Gettextizze.
16319 (find_long): Likewise.
16320 (grub_arg_show_help): Likewise.
16321 * normal/dyncmd.c: Include `<grub/i18n.h>'.
16322 (read_command_list): Gettextizze.
16323 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
16324 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
16325
16326 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
16327
16328 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
16329 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
16330 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
16331 (led_status): New variable.
16332 (keyboard_controller_led): New function.
16333 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
16334 update led status for caps lock, num lock and scroll lock.
16335
16336 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
16337
16338 * util/hostdisk.c (open_device): Fix a comment.
16339
16340 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16341
16342 * util/grub-install.in (host_os): New variable.
16343 * util/i386/efi/grub-install.in (host_os): Likewise.
16344
16345 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16346
16347 * util/mkisofs/write.c (padblock_write): Abort when given an
16348 excedingly large embed image, instead of silently truncating it.
16349
16350 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16351
16352 * include/multiboot.h: Indentation fixes.
16353
16354 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16355
16356 * include/multiboot.h (struct multiboot_aout_symbol_table)
16357 (struct multiboot_elf_section_header_table): New structure
16358 declarations (stolen from GRUB Legacy).
16359 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
16360 table information.
16361
16362 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
16363 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
16364 type aliases.
16365
16366 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16367
16368 * include/multiboot.h: Make comments src2texi-friendly.
16369
16370 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16371
16372 For consistency with [multiboot]/docs/boot.S.
16373
16374 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
16375 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
16376 (MULTIBOOT_MAGIC2): Rename from this ...
16377 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
16378
16379 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16380
16381 * include/multiboot.h: Remove `<grub/types.h>'.
16382 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
16383 types. Update all users.
16384
16385 2009-12-25 Carles Pina i Estany <carles@pina.cat>
16386
16387 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
16388 `couldn't' and `can not' by `cannot'.
16389 * commands/i386/pc/drivemap.c: Likewise.
16390 * disk/ata.c: Likewise.
16391 * disk/ieee1275/nand.c: Likewise.
16392 * fs/affs.c: Likewise.
16393 * fs/fat.c: Likewise.
16394 * fs/hfs.c: Likewise.
16395 * fs/hfsplus.c: Likewise.
16396 * fs/iso9660.c: Likewise.
16397 * fs/jfs.c: Likewise.
16398 * fs/minix.c: Likewise.
16399 * fs/reiserfs.c: Likewise.
16400 * fs/sfs.c: Likewise.
16401 * fs/udf.c: Likewise.
16402 * fs/ufs.c: Likewise.
16403 * fs/xfs.c: Likewise.
16404 * loader/powerpc/ieee1275/linux.c: Likewise.
16405 * loader/sparc64/ieee1275/linux.c: Likewise.
16406 * util/grub-probe.c: Likewise.
16407 * util/misc.c: Likewise.
16408
16409 2009-12-24 Carles Pina i Estany <carles@pina.cat>
16410
16411 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
16412 grub_errno calls.
16413 * commands/acpi.c: Likewise.
16414 * commands/blocklist.c: Likewise.
16415 * commands/efi/loadbios.c: Likewise.
16416 * commands/i386/pc/drivemap.c: Likewise.
16417 * commands/loadenv.c: Likewise.
16418 * commands/memrw.c: Likewise.
16419 * commands/password.c: Likewise.
16420 * commands/videotest.c: Likewise.
16421 * disk/ata.c: Likewise.
16422 * disk/ata_pthru.c: Likewise.
16423 * disk/dmraid_nvidia.c: Likewise.
16424 * disk/ieee1275/nand.c: Likewise.
16425 * disk/ieee1275/ofdisk.c: Likewise.
16426 * disk/loopback.c: Likewise.
16427 * disk/lvm.c: Likewise.
16428 * disk/mdraid_linux.c: Likewise.
16429 * disk/raid.c: Likewise.
16430 * disk/raid6_recover.c: Likewise.
16431 * disk/scsi.c: Likewise.
16432 * efiemu/main.c: Likewise.
16433 * efiemu/mm.c: Likewise.
16434 * efiemu/pnvram.c: Likewise.
16435 * efiemu/symbols.c: Likewise.
16436 * font/font.c: Likewise.
16437 * fs/cpio.c: Likewise.
16438 * fs/hfsplus.c: Likewise.
16439 * fs/iso9660.c: Likewise.
16440 * fs/jfs.c: Likewise.
16441 * fs/minix.c: Likewise.
16442 * fs/ntfs.c: Likewise.
16443 * fs/ntfscomp.c: Likewise.
16444 * fs/reiserfs.c: Likewise.
16445 * fs/ufs.c: Likewise.
16446 * fs/xfs.c: Likewise.
16447 * gettext/gettext.c: Likewise.
16448 * include/grub/auth.h: Likewise.
16449 * kern/elf.c: Likewise.
16450 * kern/file.c: Likewise.
16451 * kern/ieee1275/init.c: Likewise.
16452 * kern/ieee1275/mmap.c: Likewise.
16453 * kern/ieee1275/openfw.c: Likewise.
16454 * kern/powerpc/dl.c: Likewise.
16455 * kern/sparc64/dl.c: Likewise.
16456 * lib/arg.c: Likewise.
16457 * loader/i386/bsd.c: Likewise.
16458 * loader/i386/bsdXX.c: Likewise.
16459 * loader/i386/efi/linux.c: Likewise.
16460 * loader/i386/efi/xnu.c: Likewise.
16461 * loader/i386/ieee1275/linux.c: Likewise.
16462 * loader/i386/linux.c: Likewise.
16463 * loader/i386/multiboot.c: Likewise.
16464 * loader/i386/pc/linux.c: Likewise.
16465 * loader/i386/pc/multiboot2.c: Likewise.
16466 * loader/i386/xnu.c: Likewise.
16467 * loader/ieee1275/multiboot2.c: Likewise.
16468 * loader/macho.c: Likewise.
16469 * loader/machoXX.c: Likewise.
16470 * loader/multiboot2.c: Likewise.
16471 * loader/multiboot_loader.c: Likewise.
16472 * loader/powerpc/ieee1275/linux.c: Likewise.
16473 * loader/sparc64/ieee1275/linux.c: Likewise.
16474 * loader/xnu.c: Likewise.
16475 * loader/xnu_resume.c: Likewise.
16476 * mmap/i386/pc/mmap.c: Likewise.
16477 * normal/menu_viewer.c: Likewise.
16478 * partmap/acorn.c: Likewise.
16479 * partmap/amiga.c: Likewise.
16480 * partmap/apple.c: Likewise.
16481 * script/lexer.c: Likewise.
16482 * term/gfxterm.c: Likewise.
16483 * term/i386/pc/serial.c: Likewise.
16484 * term/i386/pc/vga.c: Likewise.
16485 * term/ieee1275/ofconsole.c: Likewise.
16486 * term/terminfo.c: Likewise.
16487 * video/bitmap.c: Likewise.
16488 * video/efi_gop.c: Likewise.
16489 * video/efi_uga.c: Likewise.
16490 * video/fb/video_fb.c: Likewise.
16491 * video/i386/pc/vbe.c: Likewise.
16492 * video/readers/tga.c: Likewise.
16493 * video/video.c: Likewise.
16494
16495 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
16496
16497 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
16498 * commands/lspci.c: Likewise.
16499 * commands/probe.c: Likewise.
16500 * commands/xnu_uuid.c: Likewise.
16501 * conf/i386-coreboot.rmk: Likewise.
16502 * conf/i386-efi.rmk: Likewise.
16503 * conf/i386-ieee1275.rmk: Likewise.
16504 * conf/i386-pc.rmk: Likewise.
16505 * conf/powerpc-ieee1275.rmk: Likewise.
16506 * conf/sparc64-ieee1275.rmk: Likewise.
16507 * conf/x86_64-efi.rmk: Likewise.
16508 * fs/i386/pc/pxe.c: Likewise.
16509 * gettext/gettext.c: Likewise.
16510 * include/grub/efi/graphics_output.h: Likewise.
16511 * include/grub/i386/pc/memory.h: Likewise.
16512 * kern/env.c: Likewise.
16513 * kern/i386/qemu/startup.S: Likewise.
16514 * lib/i386/pc/biosnum.c: Likewise.
16515 * lib/i386/relocator.c: Likewise.
16516 * lib/i386/relocator_asm.S: Likewise.
16517 * lib/relocator.c: Likewise.
16518 * loader/i386/bsd.c: Likewise.
16519 * loader/i386/multiboot.c: Likewise.
16520 * loader/i386/pc/chainloader.c: Likewise.
16521 * loader/i386/xnu.c: Likewise.
16522 * loader/xnu.c: Likewise.
16523 * normal/main.c: Likewise.
16524 * normal/menu_text.c: Likewise.
16525 * util/getroot.c: Likewise.
16526 * util/grub-mkconfig_lib.in: Likewise.
16527 * util/grub.d/00_header.in: Likewise.
16528 * util/i386/pc/grub-mkimage.c: Likewise.
16529 * util/mkisofs/eltorito.c: Likewise.
16530 * util/mkisofs/exclude.h: Likewise.
16531 * util/mkisofs/hash.c: Likewise.
16532 * util/mkisofs/iso9660.h: Likewise.
16533 * util/mkisofs/joliet.c: Likewise.
16534 * util/mkisofs/mkisofs.c: Likewise.
16535 * util/mkisofs/mkisofs.h: Likewise.
16536 * util/mkisofs/multi.c: Likewise.
16537 * util/mkisofs/name.c: Likewise.
16538 * util/mkisofs/rock.c: Likewise.
16539 * util/mkisofs/tree.c: Likewise.
16540 * util/mkisofs/write.c: Likewise.
16541 * video/efi_gop.c: Likewise.
16542
16543 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
16544
16545 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
16546 size counting.
16547
16548 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16549
16550 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
16551 * genmk.rb (class SCRIPT): Modify the target file instead of source.
16552
16553 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
16556 (GRUB_MOD_INIT(memrw)): Update help line.
16557
16558 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16559
16560 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
16561 Use grub_extcmd_t. All users updated.
16562 (options): New variable.
16563 (grub_cmd_read): Restructure for readability. Support "-v" option.
16564 (grub_cmd_write): Restructure for readability.
16565
16566 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16567
16568 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
16569
16570 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16571
16572 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
16573 with the actual contents of the correspondending make variable.
16574 * util/grub-mkrescue.in (pkglib_DATA): New variable.
16575 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
16576 specifying `*.lst' and `efiemu??.o'
16577
16578 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16579
16580 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
16581 after function name.
16582 Noticed by Rene Engelhard <rene@debian.org>.
16583
16584 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16585
16586 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
16587 (options): New variable.
16588 (iospace): Likewise.
16589 (grub_lspci_iter): List IO spaces if "-i" was given.
16590 (grub_cmd_lspci): Parse options.
16591 (GRUB_MOD_INIT(lspci)): Use extcmd.
16592 (GRUB_MOD_FINI(lspci)): Likewise.
16593
16594 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16595
16596 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
16597 `function' keyword.
16598 Patch by Tony Mancill <tmancill@debian.org>.
16599
16600 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
16603 (grub_uhci_portstatus): Likewise.
16604 (grub_uhci_portstatus): Add necessary delay.
16605 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
16606
16607 2009-12-21 Carles Pina i Estany <carles@pina.cat>
16608
16609 * commands/acpi.c (options): Fix capitalizations and/or full stops.
16610 (GRUB_MOD_INIT): Likewise.
16611 * commands/boot.c (GRUB_MOD_INIT): Likewise.
16612 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
16613 * commands/echo.c (options): Fix capitalizations and/or full stops.
16614 * commands/efi/loadbios.c (enable_rom_area): Likewise.
16615 (enable_rom_area): Likewise.
16616 (GRUB_MOD_INIT): Likewise.
16617 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16618 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
16619 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16620 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
16621 * commands/hexdump.c (options): Likewise.
16622 * commands/i386/cpuid.c (options): Likewise.
16623 (GRUB_MOD_INIT): Likewise.
16624 * commands/i386/pc/drivemap.c (options): Likewise.
16625 (GRUB_MOD_INIT): Likewise.
16626 * commands/i386/pc/halt (options): Likewise.
16627 (GRUB_MOD_INIT): Likewise.
16628 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16629 * commands/i386/pc/pxecmd.c (options): Likewise.
16630 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
16631 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
16632 * commands/keystatus.c (options): Likewise.
16633 (GRUB_MOD_INIT): Likewise.
16634 * commands/loadenv.c (options): Likewise.
16635 * commands/ls.c (options): Likewise.
16636 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16637 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16638 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16639 * commands/parttool.c (helpmsg): Likewise.
16640 * commands/probe.c (options): Likewise.
16641 * commands/read.c (GRUB_MOD_INIT): Likewise.
16642 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
16643 * commands/search.c (options): Likewise.
16644 * commands/sleep.c (options): Likewise.
16645 * commands/test.c (GRUB_MOD_INIT): Likewise.
16646 * commands/true.c (GRUB_MOD_INIT): Likewise.
16647 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
16648 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
16649 * lib/arg.c (help_options): Likewise.
16650 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
16651 `$(XGETTEXT)'.
16652 * po/POTFILES: Add `commands/loadenv.c'.
16653
16654 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
16655
16656 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
16657 instead of specifying them explicit.
16658
16659 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16660
16661 * NEWS: Add grub-probe support for GNU/Hurd.
16662
16663 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16664
16665 * NEWS: gettext was added after 1.97.
16666
16667 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16668
16669 * util/mkisofs/msdos_partition.h: New file (based on
16670 include/grub/msdos_partition.h).
16671 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
16672 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
16673 (ld_options, main): Recognize --protective-msdos-label.
16674 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
16675 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
16676 (padblock_write): If `use_protective_msdos_label' is set, patch a
16677 protective DOS-style label in the output image.
16678
16679 * util/grub-mkrescue.in: Use --protective-msdos-label.
16680
16681 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16682
16683 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
16684 boot.
16685
16686 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16687
16688 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
16689 variables.
16690 (ld_options, main): Recognize `--embedded-boot'.
16691 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
16692 declarations.
16693 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
16694 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
16695 (padblock_write): Likewise. Rewrite to support embedded boot image.
16696
16697 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
16698 for BIOS-based disk boot instead of only ElTorito.
16699
16700 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16701
16702 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
16703 build (not needed for bootstrap).
16704
16705 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16706
16707 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
16708 from i386-pc build (not needed for bootstrap).
16709 Rewrite a pair of strings.
16710
16711 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16712
16713 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
16714
16715 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
16716
16717 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
16718
16719 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16720
16721 * kern/env.c (grub_env_context_open): Mark exported variable for
16722 reexport.
16723
16724 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16725
16726 * kern/env.c (grub_env_export): Create nonexistent variables before
16727 exporting.
16728
16729 2009-12-20 Carles Pina i Estany <carles@pina.cat>
16730
16731 * include/grub/auth.h: Include `<grub/i18n.h>'.
16732 (GRUB_GET_PASSWORD): Gettextizze string.
16733 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
16734 menu_text.c.
16735 (grub_utf8_to_ucs4_alloc): Fix indentation.
16736 (grub_print_ucs4): Likewise.
16737 (grub_getstringwidth): Likewise.
16738 (print_message_indented): New declaration.
16739 * normal/auth.c: Include `<grub/i18n.h>'.
16740 (grub_auth_check_authentication): Gettexttize string.
16741 * normal/cmdline.c: Include `<grub/i18n.h>'.
16742 (grub_cmdline_get): Gettextizze.
16743 * normal/color.c: Include `<grub/i18n.h>'.
16744 (grub_parse_color_name_pair): Gettexttize strings.
16745 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
16746 string (use `print_message_indented').
16747 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
16748 `include/grub/normal.h'.
16749 (print_message_indented): Renamed to ...
16750 (grub_print_message_indented): ... this. Remove `static' qualifer (now
16751 used in normal/main.c).
16752 (print_message): Use `grub_print_message_indented' instead of
16753 `print_message_indented'.
16754 (print_timeout): Likewise.
16755 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
16756 (grub_normal_print_device_info): Gettexttize strings.
16757 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
16758
16759 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
16762 of arguments. Return number of tokens and not arguments. All users
16763 updated.
16764
16765 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16766
16767 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
16768 non-MSDOS paritions.
16769
16770 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16771
16772 * include/grub/types.h (UNUSED): Removed since it conflicts with
16773 NetBSD headers. All users changed to direct __attribute__ ((unused)).
16774 Reported by Grégoire Sutre.
16775
16776 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16777
16778 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
16779 (grub_print_ucs4_alloc): Likewise.
16780 (grub_getstringwidth): Likewise.
16781 * normal/main.c (grub_normal_init_page): Gettextize version string.
16782 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
16783 (getstringwidth): Renamed to ...
16784 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
16785 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
16786 (grub_print_ucs4): Remove `static' qualifer (now used in
16787 normal/main.c).
16788 * po/POTFILES: Add normal/main.c.
16789
16790 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16791
16792 * normal/menu_text.c (STANDARD_MARGIN): New macro.
16793 (print_message_indented): Add `margin_left' and `margin_right'
16794 parameters.
16795 (print_message): Update `print_message_indented' calls. Adds '\n' to the
16796 strings.
16797 (print_timeout): Use `print_message_indented' to print the message.
16798 Deletes `second_stage' parameter.
16799 (run_menu): Update `print_timeout' calls.
16800
16801 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 Fix console palette on OpenFirmware.
16804
16805 * term/ieee1275/ofconsole.c (MAX): Removed.
16806 (colors): Redone based on VGA palette.
16807 (grub_ofconsole_setcolor): Discard brightness bit since only 8
16808 colors are supported.
16809 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
16810
16811 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 Fix potential EfiEmu double prepare.
16814
16815 * efiemu/main.c (prepared): New variable
16816 (grub_efiemu_unload): Set prepare to '0'.
16817 (grub_efiemu_prepare): Return if already prepared. Set prepared.
16818
16819 set_virtual_address_map support.
16820
16821 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
16822 prototype.
16823 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
16824 prototype.
16825 (grub_efiemu_crc32): Likewise.
16826 (grub_efiemu_crc64): Likewise.
16827 (grub_efiemu_set_virtual_address_map): Likewise.
16828 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
16829 New definition.
16830 (grub_autoefi_set_virtual_address_map): Likewise.
16831 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
16832 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
16833 Restructure flow to accomodate it.
16834 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
16835 (grub_efiemu_crc): Recompute CRC32.
16836 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
16837 (efiemu_ptv_relocated): ... this. Made global. All users updated.
16838 * efiemu/symbols.c (relocated_handle): New variable.
16839 (grub_efiemu_free_syms): Free relocated_handle.
16840 (grub_efiemu_alloc_syms): Allocate relocated_handle.
16841 (grub_efiemu_write_sym_markers): New function.
16842 (grub_efiemu_set_virtual_address_map): Likewise.
16843
16844 Newer XNU parameters.
16845
16846 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
16847 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
16848 (grub_xnu_fill_devicetree): New prototype.
16849 (grub_xnu_heap_real_start): New variable.
16850 * loader/xnu.c (get_name_ptr): New function.
16851 (grub_xnu_load_driver): Fill namelen and name.
16852
16853 64-bit xnu support.
16854
16855 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
16856 and 'loader/macho64.c'.
16857 * conf/i386-pc.rmk: Likewise.
16858 * conf/x86_64-efi.rmk: Likewise.
16859 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
16860 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
16861 * include/grub/macho.h (grub_macho_segment64): New structure.
16862 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
16863 (grub_macho_size32): ... to this.
16864 (grub_macho32_get_entry_point): Renamed from ...
16865 (grub_macho_get_entry_point32): ... to this.
16866 (grub_macho_contains_macho64): New prototype.
16867 (grub_macho_size64): Likewise.
16868 (grub_macho_get_entry_point64): Likewise.
16869 (grub_macho32_load): Renamed from ...
16870 (grub_macho_load32): ... to this.
16871 (grub_macho32_filesize): Renamed from ...
16872 (grub_macho_filesize32): ... to this.
16873 (grub_macho32_readfile): Renamed from ...
16874 (grub_macho_readfile32): ... to this.
16875 (grub_macho_filesize64): New prototype.
16876 (grub_macho_readfile64): Likewise.
16877 (grub_macho_parse32): Likewise.
16878 (grub_macho_parse64): Likewise.
16879 * loader/macho.c: Split into ...
16880 * loader/machoXX.c: ... and this. Replace 32 with XX.
16881 * loader/macho32.c: New file.
16882 * loader/macho64.c: Likewise.
16883 * loader/xnu.c (grub_xnu_is_64bit): New variable.
16884 (grub_cmd_xnu_kernel): Make 32-bit only.
16885 (grub_cmd_xnu_kernel64): New function.
16886 (grub_xnu_load_driver): Support Mach-O 64.
16887 (grub_cmd_xnu_mkext): Likewise.
16888 * util/grub.d/30_os-prober.in (osx_entry): New function.
16889 Generate entries for 64-bit boot too.
16890
16891 Eliminate ad-hoc tree format in XNU and EfiEmu.
16892
16893 * efiemu/main.c (grub_efiemu_prepare): Update comment.
16894 * efiemu/pnvram.c: Rewritten to use environment variables.
16895 All users updated.
16896
16897 Inline utf16_to_utf8.
16898
16899 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
16900 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
16901 All users updated.
16902 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
16903
16904 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
16905 * commands/usbtest.c (grub_usb_get_string): ... move here.
16906 (usb_print_str): Fix error handling.
16907 * include/grub/usb.h (grub_usb_get_string): Remove.
16908
16909 UTF-8 to UTF-16 transformation.
16910
16911 * conf/common.rmk (pkglib_MODULES): Add charset.mod
16912 (charset_mod_SOURCES): New variable.
16913 (charset_mod_CFLAGS): Likewise.
16914 (charset_mod_LDFLAGS): Likewise.
16915 * include/grub/utf.h: New file.
16916 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
16917
16918 Support for device properties.
16919
16920 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
16921 (grub_xnu_devprop_device_header): Likewise.
16922 (grub_xnu_devprop_device_descriptor): Likewise.
16923 (grub_xnu_devprop_add_device): New prototype.
16924 (grub_xnu_devprop_remove_device): Likewise.
16925 (grub_xnu_devprop_remove_property): Likewise.
16926 (grub_xnu_devprop_add_property_utf8): Likewise.
16927 (grub_xnu_devprop_add_property_utf16): Likewise.
16928 (grub_cpu_xnu_init): Likewise.
16929 (grub_cpu_xnu_fini): Likewise.
16930 (grub_cpu_xnu_unload): Likewise.
16931 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
16932 (property_descriptor): Likewise.
16933 (devices): New variable.
16934 (grub_xnu_devprop_remove_property): New function.
16935 (grub_xnu_devprop_add_device): Likewise.
16936 (grub_xnu_devprop_remove_device): Likewise.
16937 (grub_xnu_devprop_add_property): Likewise.
16938 (grub_xnu_devprop_add_property_utf8): Likewise.
16939 (grub_xnu_devprop_add_property_utf16): Likewise.
16940 (hextoval): Likewise.
16941 (grub_cpu_xnu_fill_devprop): Likewise.
16942 (grub_cmd_devprop_load): Likewise.
16943 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
16944 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
16945 (cmd_devprop_load): New variable.
16946 (grub_cpu_xnu_init): New function.
16947 (grub_cpu_xnu_fini): Likewise.
16948 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
16949 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
16950 (grub_cmd_xnu_devtree): Likewise.
16951 (hextoval): New function.
16952 (unescape): Likewise.
16953 (grub_xnu_fill_devicetree): Likewise.
16954
16955 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
16956 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
16957
16958 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16959
16960 Workaround for broken ATI VBE.
16961
16962 * video/i386/pc/vbe.c (last_set_mode): New variable.
16963 (grub_vbe_set_video_mode): Set 'last_set_mode'.
16964 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
16965 (grub_video_vbe_setup): Don't check for reserved flag.
16966
16967 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
16968
16969 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
16970 the `find' command.
16971
16972 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 UUID support for HFS.
16975
16976 * fs/hfs.c (grub_hfs_uuid): New function.
16977 (grub_hfs_fs): New value .uuid.
16978 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
16979
16980 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
16981
16982 Fix a segfault with parsing unknown long options.
16983
16984 * util/grub-mkrelpath.c (options): Zero terminate it.
16985
16986 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16987
16988 * include/grub/misc.h (grub_puts): New declaration.
16989 (grub_puts_): Likewise.
16990 * kern/misc.c (grub_puts): New definition.
16991 (grub_puts_): Likewise.
16992
16993 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16994
16995 * util/grub-probe.c (probe): Improve error message.
16996
16997 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16998
16999 * loader/i386/multiboot_elfxx.c
17000 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
17001 initialization.
17002
17003 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
17004
17005 Relocator framework
17006
17007 * loader/i386/xnu_helper.S: Removed. All users updated.
17008 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
17009 (relocator_mod_SOURCES): New variable.
17010 (relocator_mod_CFLAGS): Likewise.
17011 (relocator_mod_LDFLAGS): Likewise.
17012 (relocator_mod_ASFLAGS): Likewise.
17013 * conf/x86_64.rmk: Likewise.
17014 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
17015 (grub_multiboot_payload_entry_offset): Likewise.
17016 (grub_multiboot_forward_relocator): Likewise.
17017 (grub_multiboot_forward_relocator_end): Likewise.
17018 (grub_multiboot_backward_relocator): Likewise.
17019 (grub_multiboot_backward_relocator_end): Likewise.
17020 (grub_multiboot_payload_eip): New variable.
17021 (grub_multiboot_payload_orig): Likewise.
17022 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
17023 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
17024 * include/grub/i386/memory.h
17025 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
17026 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
17027 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
17028 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
17029 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
17030 * include/grub/i386/relocator.h: New file.
17031 * include/grub/x86_64/relocator.h: Likewise.
17032 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
17033 (XNU_RELOCATOR): New macro.
17034 (grub_xnu_launcher_start): Remove.
17035 (grub_xnu_launcher_end): Likewise.
17036 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
17037 (grub_xnu_heap_real_start): Remove.
17038 (grub_xnu_heap_start): Change to void *. All users updated.
17039 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
17040 * lib/i386/relocator.c: New file.
17041 * lib/i386/relocator_asm.S: Likewise.
17042 * lib/i386/relocator_backward.S: Likewise.
17043 * lib/mips/relocator.c: Likewise.
17044 * lib/mips/relocator_asm.S: Likewise.
17045 * lib/relocator.c: Likewise.
17046 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
17047 (entry): Removed.
17048 (playground): Likewise.
17049 (grub_multiboot_payload_orig): New variable.
17050 (grub_multiboot_payload_dest): Likewise.
17051 (grub_multiboot_payload_size): Likewise.
17052 (grub_multiboot_payload_eip): Likewise.
17053 (grub_multiboot_payload_esp): Likewise.
17054 (grub_multiboot_boot): Use grub_relocator32_boot.
17055 (grub_multiboot_unload): Free relocators.
17056 (grub_multiboot): Setup stack. Use relocators.
17057 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
17058 (grub_multiboot_load_elfXX): Use relocators.
17059 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
17060 (grub_multiboot_payload_size): Likewise.
17061 (grub_multiboot_payload_dest): Likewise.
17062 (grub_multiboot_payload_entry_offset): Likewise.
17063 (grub_multiboot_forward_relocator): Likewise.
17064 (grub_multiboot_backward_relocator): Likewise.
17065 (grub_multiboot_real_boot): Likewise.
17066 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
17067 (grub_xnu_entry_point): Likewise.
17068 (grub_xnu_arg1): Likewise.
17069 (grub_xnu_stack): Likewise.
17070 (grub_xnu_launch): Removed.
17071 (grub_xnu_boot_resume): New function.
17072 (grub_xnu_boot): Use relocators.
17073 * loader/i386/xnu_helper.S: Removed.
17074 * loader/xnu.c (grub_xnu_heap_start): New variable.
17075 (grub_xnu_heap_size): Likewise.
17076 (grub_xnu_heap_malloc): Use relocators.
17077 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
17078
17079 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
17080
17081 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
17082 anything.
17083
17084 2009-12-13 Carles Pina i Estany <carles@pina.cat>
17085
17086 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
17087 GRUB_ERR_NONE before calling grub_env_set.
17088
17089 2009-12-12 Robert Millan <rmh@aybabtu.com>
17090
17091 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
17092 * genmk.rb (video): New variable.
17093 (CLEANFILES, VIDEOFILES): Add #{video}.
17094 (#{video}): New target rule.
17095 * genvideolist.sh: New file.
17096 * Makefile.in (pkglib_DATA): Add video.lst.
17097 (video.lst): New target rule.
17098 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
17099 `video.lst'.
17100 * util/grub.d/30_os-prober.in: Replace `vbe' with
17101 ${GRUB_VIDEO_BACKEND}.
17102
17103 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
17104
17105 * THANKS: Add David Miller.
17106
17107 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 libpciaccess support.
17110
17111 * Makefile.in (LIBPCIACCESS): New variable.
17112 (enable_grub_emu_pci): Likewise.
17113 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
17114 util/pci.c and commands/lspci.c.
17115 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
17116 * configure.ac (grub-emu-pci): New option.
17117 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
17118 (grub_pci_device_unmap_range): Likewise.
17119 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
17120 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
17121 (grub_pci_address_t) [!GRUB_UTIL]: New type.
17122 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
17123 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
17124 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
17125 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
17126 * include/grub/pciutils.h: New file.
17127 * util/pci.c: Likewise.
17128
17129 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
17130
17131 * util/misc.c: Don't include <errno.h> twice.
17132
17133 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
17134
17135 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
17136 name in an error message.
17137 (grub_biosdisk_rw): Likewise.
17138
17139 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17140
17141 Eliminate NTFS 4Gib barrier.
17142
17143 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
17144 (read_run_data): Likewise.
17145 (grub_ntfs_read_run_list): Likewise.
17146 (grub_ntfs_read_block): Likewise.
17147 (grub_ntfs_iterate_dir): Likewise.
17148 (read_mft): Likewise.
17149 (read_data): Likewise.
17150 Use COM_LOG_LEN.
17151 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
17152 to avoid 64-bit division
17153 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
17154 (grub_ntfs_rlst): Use grub_disk_addr_t.
17155
17156 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17157
17158 Eliminate grub-fstest 4Gib barrier.
17159
17160 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
17161 (read_file): Fix error reporting.
17162
17163 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 Eliminate hexdump 4Gib barrier.
17166
17167 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
17168 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
17169
17170 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
17173 Fixes amarsh bug.
17174
17175 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
17176
17177 Remove miscellaneous files in distclean target.
17178
17179 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
17180
17181 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
17182
17183 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
17184 if they're already set. This resolves the conflict between my
17185 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
17186 fixing the --grub-probe option again.
17187 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
17188 change on 2009-10-06, so that we now once again source
17189 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
17190
17191 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
17192
17193 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
17194 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
17195 `util/devicemap.c'.
17196
17197 2009-12-08 Carles Pina i Estany <carles@pina.cat>
17198
17199 * include/grub/misc.h (grub_printf_): New declaration.
17200 * kern/misc.c (grub_printf_): New definition.
17201 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
17202 instead of `grub_printf' and `_'.
17203 * normal/menu_entry.c (store_completion): Likewise.
17204 (run): Likewise.
17205 (grub_menu_entry_run): Likewise.
17206 * normal/menu_text.c (grub_wait_after_message): Likewise.
17207 (notify_booting): Likewise.
17208 (notify_fallback): Likewise.
17209 (notify_execution_failure): Likewise.
17210
17211 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
17212
17213 * configure.ac: Check for vasprintf.
17214 * util/misc.c (asprintf): Move allocation from here ...
17215 (vasprintf): ... to here. New function.
17216 (xasprintf): New function.
17217 * include/grub/util/misc.h (vasprintf, xasprintf): Add
17218 prototypes.
17219 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
17220 * util/grub-mkfont.c (write_font): Likewise.
17221 * util/grub-probe.c (probe): Likewise.
17222 * util/hostdisk.c (make_device_name): Likewise.
17223
17224 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
17225
17226 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
17227 anything even prefixed with 'cdrom' as a cdrom.
17228
17229 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
17230
17231 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
17232 mount points.
17233
17234 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17235
17236 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
17237 grub_gettext_msg_list.
17238 (grub_gettext_gettranslation_from_position): Return const char *
17239 and not char *.
17240 (grub_gettext_translate): Add the translated strings into a list,
17241 returns from the list if existing there.
17242 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
17243 (grub_gettext_delete_list): Delete the list.
17244 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
17245 lang environment variable is changed.
17246 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
17247
17248 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Rename kernel.mod to kernel.img.
17251
17252 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
17253 (kernel_mod_EXPORTS): Rename to ...
17254 (kernel_img_EXPORTS): ... this.
17255 (kernel_mod_SOURCES): Rename to ...
17256 (kernel_img_SOURCES): ... this.
17257 (kernel_mod_HEADERS): Rename to ...
17258 (kernel_img_HEADERS): ... this. All users updated.
17259 (kernel_mod_CFLAGS): Rename to ...
17260 (kernel_img_CFLAGS): ... this.
17261 (kernel_mod_ASFLAGS): Rename to ...
17262 (kernel_img_ASFLAGS): ... this.
17263 (kernel_mod_LDFLAGS): Rename to ...
17264 (kernel_img_LDFLAGS): ... this.
17265 * conf/x86_64-efi.rmk: Likewise.
17266 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
17267 (read_kernel_image): ... this. All users updated.
17268 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
17269
17270 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17271
17272 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
17273 (print_spaces): New function.
17274 (grub_print_ucs4): New function.
17275 (getstringwidth): New function.
17276 (print_message_indented): New function.
17277 (print_message): Gettexttize strings using print_message_indented.
17278 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
17279 width.
17280 (get_entry_number): Gettextize and uses dynamic terminal width.
17281 (notify_booting, notify_fallback, notify_execution_failure):
17282 Gettextize.
17283 * normal/menu_entry.c (store_completion): Cleanup the gettextized
17284 string.
17285 (run): Likewise.
17286 (grub_menu_entry_run): Likewise.
17287 * PO/POTFILES: Add normal/menu_entry.c.
17288
17289 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
17290
17291 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
17292
17293 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17294
17295 * util/grub-install.in: Install gettext .mo files.
17296 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
17297
17298 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17299
17300 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
17301 grub_dprintf.
17302
17303 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
17304
17305 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
17306 non-firmware-dependant one in realmode.S takes precedence.
17307
17308 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
17309
17310 * commands/halt.c: Replace misc arch-specific headers with
17311 `<grub/misc.h>'.
17312 * commands/reboot.c: Likewise.
17313 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
17314 `<grub/misc.h>'.
17315 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
17316 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
17317 (kernel_img_SOURCES): ... to here.
17318
17319 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
17320 * include/grub/i386/pc/init.h: Likewise.
17321 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
17322 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17323
17324 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
17325
17326 * include/grub/i386/halt.h: Remove.
17327 * include/grub/i386/reboot.h: Likewise.
17328
17329 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
17330
17331 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
17332
17333 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
17334 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
17335 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
17336 "progname.h"
17337 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17338 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17339 (usage): Add missing comma in printf.
17340
17341 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
17342
17343 Use the same reboot approach on i386 coreboot and qemu as we do on
17344 BIOS.
17345
17346 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
17347 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
17348 * kern/i386/reboot.c: Remove.
17349 * include/grub/i386/reboot.h (grub_reboot): Export function.
17350 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
17351 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
17352 0xf000:0xfff0 instead of 0xffff:0x0000.
17353 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
17354 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
17355
17356 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
17357
17358 Fix $srcdir != $objdir build.
17359
17360 * Makefile.in (po/%.po): Rewrite as ...
17361 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
17362
17363 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17364
17365 Fix GNU/Hurd grub-install crash.
17366 * util/grub-probe.c (probe): Try to access `path' only when it is not
17367 NULL.
17368
17369 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 Correct module naming.
17372
17373 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
17374 (GRUB_MOD_INIT(efi_uga)): ... to this
17375 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
17376 (GRUB_MOD_FINI(efi_uga)): ... to this
17377 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
17378 (GRUB_MOD_INIT(efi_gop)): ... to this
17379 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
17380 (GRUB_MOD_FINI(efi_gop)): ... to this
17381
17382 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
17383
17384 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
17385 translatable.
17386 (usage): Translate `arg' strings using gettext().
17387 Thanks to Jordi Mallach for the suggestion.
17388
17389 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17390
17391 GOP support. Based on patch from Bean
17392 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17393
17394 * video/efi_gop.c: New file.
17395 * include/grub/efi/graphics_output.h: Likewise.
17396 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
17397 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17398 variables.
17399 * conf/x86_64-efi.rmk: Likewise.
17400
17401 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17402
17403 Rename efi_fb to efi_uga.
17404
17405 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
17406 'efi_uga.mod'.
17407 (efi_fb_mod_SOURCES): Rename this ...
17408 (efi_uga_mod_SOURCES): ... to this.
17409 (efi_fb_mod_CFLAGS): Rename this ...
17410 (efi_uga_mod_CFLAGS): ... to this.
17411 (efi_fb_mod_LDFLAGS): Rename this ...
17412 (efi_uga_mod_LDFLAGS): ... to this.
17413 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
17414 'efi_uga.mod'.
17415 (efi_fb_mod_SOURCES): Rename this ...
17416 (efi_uga_mod_SOURCES): ... to this.
17417 (efi_fb_mod_CFLAGS): Rename this ...
17418 (efi_uga_mod_CFLAGS): ... to this.
17419 (efi_fb_mod_LDFLAGS): Rename this ...
17420 (efi_uga_mod_LDFLAGS): ... to this.
17421 * video/efi_fb.c: Move this ...
17422 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
17423
17424 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17425
17426 * po/README: New file. Explain our PO file workflow.
17427
17428 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17429
17430 * po/ChangeLog: Remove. Move relevant entries back to ...
17431 * ChangeLog: ... here.
17432 * po/ca.po: Remove (now handled by TLP).
17433 * po/id.po: Likewise.
17434 * po/zh_CN.po: Likewise.
17435 * Makefile.in (LINGUAS): Initialize in a way that supports
17436 empty set.
17437
17438 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17439
17440 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
17441 reliing on po/LINGUAS.
17442 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
17443 (po/%.po): ... this.
17444
17445 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17446
17447 * util/i386/efi/grub-mkimage.c: Include "progname.h".
17448 (main): Use `program_name' instead of nonexistent `progname'.
17449
17450 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17451
17452 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17453 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
17454
17455 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17456
17457 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
17458 commit.
17459 * conf/i386-efi.rmk: Likewise.
17460 * conf/i386-ieee1275.rmk: Likewise.
17461 * conf/powerpc-ieee1275.rmk: Likewise.
17462 * conf/sparc64-ieee1275.rmk: Likewise.
17463 * conf/x86_64-efi.rmk: Likewise.
17464
17465 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17466
17467 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
17468
17469 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17470
17471 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
17472
17473 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17474
17475 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
17476 (grub_mkdevicemap_SOURCES): New variable.
17477 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
17478 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
17479 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
17480 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
17481 (grub_mkdevicemap_SOURCES): Remove.
17482 * conf/i386-efi.rmk: Likewise.
17483 * conf/i386-ieee1275.rmk: Likewise.
17484 * conf/i386-pc.rmk: Likewise.
17485 * conf/powerpc-ieee1275.rmk: Likewise.
17486 * conf/sparc64-ieee1275.rmk: Likewise.
17487 * conf/x86_64-efi.rmk: Likewise.
17488 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
17489 (usage): Fix strings to use `program_name'.
17490 (main): Initialize gettext.
17491 * util/grub-editenv.c: Likewise.
17492 * util/grub-emu.c: Likewise.
17493 * util/grub-fstest.c: Likewise.
17494 * util/grub-mkdevicemap.c: Likewise.
17495 * util/grub-mkfont.c: Likewise.
17496 * util/grub-mkrelpath.c: Likewise.
17497 * util/grub-pe2elf.c: Likewise.
17498 * util/grub-probe.c: Likewise.
17499 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17500 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17501 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17502
17503 * util/misc.c: Include `"progname.h"'.
17504 (progname): Remove variable.
17505 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
17506
17507 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17508
17509 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
17510 printf and print a newline after the menuentry header line.
17511 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17512
17513 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17514
17515 autoconf >= 2.60 support $(localedir).
17516
17517 * INSTALL: Note that autoconf 2.60 is required.
17518 * configure.ac (AC_PREREQ): Bump to 2.60.
17519 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
17520 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17521
17522 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
17523
17524 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
17525 aclocal is run.
17526
17527 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17528
17529 * normal/main.c (grub_normal_read_line): Fix off-by-one
17530 buffer overflow.
17531
17532 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17533
17534 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
17535 "parser.grub" in grub_command_execute() call.
17536
17537 2009-11-24 Carles Pina i Estany <carles@pina.cat>
17538
17539 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
17540 * conf/i386-efi.rmk: Likewise.
17541 * conf/i386-ieee1275.rmk: Likewise.
17542 * conf/i386-pc.rmk: Likewise.
17543 * conf/powerpc-ieee1275.rmk: Likewise.
17544 * conf/sparc64-ieee1275.rmk: Likewise.
17545 * conf/x86_64-efi.rmk: Likewise.
17546 * gettext/gettex.c: Include <grub/i18n.h>.
17547 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
17548 here ...
17549 * include/grub/i18n.h: ... to here
17550 * include/grub/i18n.h: ... to here.
17551 * kern/misc.c: Include <grub/i18n.h>
17552 (grub_gettext_dummy): Move above user.
17553
17554 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17555
17556 * util/Makefile.in (install-local): Convert a `for' into a normal
17557 shell expansion.
17558
17559 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
17560
17561 * autogen.sh: Add automake call.
17562 * config.guess: Remove.
17563 * config.sub: Likewise.
17564 * install-sh: Likewise.
17565
17566 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17567
17568 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
17569
17570 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17571
17572 * util/Makefile.in (install-local): Convert a make `$(foreach)'
17573 function to a normal shell `for'.
17574
17575 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17576
17577 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17578
17579 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17580
17581 * util/grub-mkrelpath.c: New file.
17582 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
17583 (grub_mkrelpath_SOURCES): New variable.
17584 * include/grub/util/misc.h: New function prototype.
17585 * util/misc.c (make_system_path_relative_to_its_root): New function.
17586
17587 * util/grub-mkconfig_lib.in (bindir): New variable.
17588 (grub_mkrelpath): Likewise.
17589 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
17590
17591 * util/probe.c (probe): Make the file path relative to its root.
17592 Change a info message to use the GRUB path. Enable again the
17593 check if we can read the file with GRUB facilities.
17594
17595 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
17596 to its root.
17597
17598 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17599
17600 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
17601 platform.
17602
17603 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17604
17605 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
17606 strncmp().
17607
17608 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17609
17610 * util/getroot.c (grub_util_is_dmraid): New function.
17611 (grub_util_get_dev_abstraction): Treat dmraid and multipath
17612 devices as normal ones, not as LVM.
17613
17614 2009-11-23 Carles Pina i Estany <carles@pina.cat>
17615
17616 * conf/common.rmk: Add grub-gettext_lib target and updates
17617 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
17618 LDFLAGS.
17619 * gettext/gettext.c: New file. (Reads mo files).
17620 * include/grub/file.h (grub_file_pread): New prototype.
17621 * include/grub/i18n.h (_): New prototype.
17622 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
17623 prototypes.
17624 * kern/misc.c (grub_gettext_dummy): New function.
17625 * normal/menu_text.c: Include <grub/i18n.h>.
17626 * normal/menu_text.c (print_timeout): Gettexttize string.
17627 * normal/menu_text.c (print_message): Gettexttize string.
17628 * po/POTFILES: Add `normal/menu_text.c'.
17629 * po/ca.po: Add new translations.
17630 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
17631 gettext module and defines locale_dir and lang in grub.cfg.
17632 * NEWS: Add gettext support.
17633
17634 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17635
17636 * util/hostdisk.c: Include `<grub/i18n.h>'.
17637 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
17638 (make_device_name): Rewrite using asprintf.
17639 (convert_system_partition_to_system_disk): Replace 0 with NULL.
17640 (find_system_device): If a device is not found, generate one just
17641 by reusing the OS path name.
17642 (read_device_map): Make it permissible for device.map not to exist.
17643
17644 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17645
17646 * script/sh/execute.c: Move from here ...
17647 * script/execute.c: ... to here. Update all users.
17648 * script/sh/function.c: Move from here ...
17649 * script/function.c: ... to here. Update all users.
17650 * script/sh/lexer.c: Move from here ...
17651 * script/lexer.c: ... to here. Update all users.
17652 * script/sh/main.c: Move from here ...
17653 * script/main.c: ... to here. Update all users.
17654 * script/sh/parser.y: Move from here ...
17655 * script/parser.y: ... to here. Update all users.
17656 * script/sh/script.c: Move from here ...
17657 * script/script.c: ... to here. Update all users.
17658
17659 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17660
17661 * configure.ac: Detect all `emu' platforms. Define
17662 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
17663 --enable-grub-emu logic. Disable include/grub/machine
17664 symlink on `emu' platforms.
17665
17666 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
17667 * gensymlist.sh.in: Likewise.
17668
17669 * include/grub/i386/coreboot/machine.h: Remove file.
17670 * include/grub/i386/efi/machine.h: Likewise.
17671 * include/grub/i386/ieee1275/machine.h: Likewise.
17672 * include/grub/i386/pc/machine.h: Likewise.
17673 * include/grub/i386/qemu/machine.h: Likewise.
17674 * include/grub/powerpc/ieee1275/machine.h: Likewise.
17675 * include/grub/sparc64/ieee1275/machine.h: Likewise.
17676 * include/grub/x86_64/efi/machine.h: Likewise.
17677
17678 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
17679 * commands/halt.c: Likewise.
17680 * commands/reboot.c: Likewise.
17681 * include/grub/autoefi.h: Likewise.
17682 * include/grub/i386/at_keyboard.h: Likewise.
17683 * include/grub/i386/kernel.h: Likewise.
17684 * include/grub/i386/loader.h: Likewise.
17685 * include/grub/i386/pc/memory.h: Likewise.
17686 * kern/dl.c: Likewise.
17687 * kern/i386/coreboot/init.c: Likewise.
17688 * loader/i386/bsd.c: Likewise.
17689 * loader/i386/linux.c: Likewise.
17690 * loader/multiboot_loader.c: Likewise.
17691 * term/i386/pc/serial.c: Likewise.
17692 * term/usb_keyboard.c: Likewise.
17693
17694 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
17695 `<grub/machine/machine.h>'
17696 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
17697 * util/misc.c: Remove `<grub/machine/machine.h>' and
17698 `<grub/machine/time.h>'.
17699
17700 * Makefile.in (enable_grub_emu): Remove variable.
17701 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
17702
17703 * conf/any-emu.rmk: New file.
17704 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
17705 (grub_emu_init.c): Move from here ...
17706 * conf/any-emu.rmk: ... to here.
17707
17708 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
17709 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
17710 * conf/any-emu.rmk: ... to here.
17711
17712 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17713
17714 * include/grub/parser.h (grub_parser_register): Document need
17715 of `name' parameter.
17716 * normal/main.c (grub_normal_read_line): Simplify prompt string.
17717 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
17718 "sh" to "grub".
17719
17720 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17721
17722 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
17723 `$(XGETTEXT)'.
17724 * include/grub/i18n.h (N_): New macro.
17725 * util/mkisofs/mkisofs.h: Likewise.
17726 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
17727 around N_().
17728 (usage): Use gettext() to translate help strings when printing them.
17729
17730 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17731
17732 Based on patch from Bean
17733 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17734
17735 * video/efi_fb.c: New file.
17736 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
17737 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17738 variables.
17739 * conf/x86_64-efi.rmk: Likewise.
17740
17741 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
17742
17743 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
17744 * util/i386/pc/grub-setup.c: Likewise.
17745
17746 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17747
17748 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
17749 <hurd/fs.h>
17750 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
17751 file_get_storage_info to implement grub_guess_root_device.
17752
17753 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17754
17755 * Makefile.in (target): Use make's builtin $(shell) function
17756 instead of calling directly $(SHELL) to create the locale directories,
17757 inside the $(foreach) function.
17758
17759 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17760
17761 * util/grub-mkrescue.in: Print an error and usage if output option
17762 has not been given.
17763
17764 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17765
17766 Patch from Loïc Minier <loic.minier@ubuntu.com>.
17767 * util/grub.d/30_os-prober.in: Cope with Linux entries where
17768 root and /boot are on different devices.
17769
17770 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17771
17772 Fix build for srcdir != objdir.
17773
17774 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
17775 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
17776 $(srcdir).
17777 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
17778 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
17779 reference for input.
17780
17781 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17782
17783 * util/grub-mkrescue.in: Use source directory direcly (without copiing
17784 or hardlinking it). Remove -J option, Joliet is not compatible with
17785 multiple source directories.
17786
17787 2009-11-21 Carles Pina i Estany <carles@pina.cat>
17788 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17789
17790 * util/grub-mkrescue.in: Recognize `--override-directory' option.
17791 (process_input_dir): New function. Process an arbitrary input
17792 directory.
17793 Misc adjustments to support both "override mode" and system-wide mode.
17794
17795 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17796
17797 * configure.ac (UNIFONT_BDF): Rename to ...
17798 (FONT_SOURCE): ... this. Update all users.
17799
17800 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17801
17802 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
17803 to the list of unifont files to look for.
17804
17805 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17806
17807 Patch from Joe Auricchio <jauricchio@gmail.com>
17808 * commands/minicmd.c (grub_mini_cmd_clear): New function.
17809 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
17810 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
17811
17812 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17813
17814 * Makefile.in (install-local): Add a missing backslash.
17815
17816 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17817
17818 * include/grub/x86_64/io.h: New file.
17819
17820 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17821
17822 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
17823 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
17824 Include `"progname.h"'.
17825 (main): Initialize gettext.
17826 * util/i386/pc/grub-setup.c: Gettexttize.
17827 * util/i386/pc/grub-mkimage.c: Likewise.
17828
17829 * Makefile.in (po/*.po): Redefine as ...
17830 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
17831
17832 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
17833
17834 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17835
17836 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
17837 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
17838 (program_name): Remove.
17839 (main): Initialize gettext support.
17840 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
17841 Include `<libintl.h>'.
17842 (_): New macro.
17843
17844 * util/mkisofs/eltorito.c: Gettexttize.
17845 * util/mkisofs/joliet.c: Likewise.
17846 * util/mkisofs/mkisofs.c: Likewise.
17847 * util/mkisofs/multi.c: Likewise.
17848 * util/mkisofs/rock.c: Likewise.
17849 * util/mkisofs/tree.c: Likewise.
17850 * util/mkisofs/write.c: Likewise.
17851
17852 * po/POTFILES: Update with new files.
17853
17854 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17855
17856 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
17857 * util/mkisofs/iso9660.h: Likewise.
17858 * util/mkisofs/joliet.c: Likewise.
17859 * util/mkisofs/mkisofs.c: Likewise.
17860 * util/mkisofs/mkisofs.h: Likewise.
17861 * util/mkisofs/rock.c: Likewise.
17862 * util/mkisofs/tree.c: Likewise.
17863 * util/mkisofs/write.c: Likewise.
17864
17865 * util/mkisofs/eltorito.c (rcsid): Remove.
17866 * util/mkisofs/hash.c: Likewise.
17867 * util/mkisofs/joliet.c: Likewise.
17868 * util/mkisofs/name.c: Likewise.
17869 * util/mkisofs/rock.c: Likewise.
17870 * util/mkisofs/tree.c: Likewise.
17871 * util/mkisofs/write.c: Likewise.
17872
17873 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17874
17875 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
17876 instead of static allocation.
17877 * util/mkisofs/match.h: Likewise.
17878
17879 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17880
17881 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
17882 and `util/grub.d/10_linux.in'.
17883 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
17884 translatable Shell files.
17885
17886 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17887
17888 * Makefile.in ($(srcdir)/aclocal.m4): New target.
17889
17890 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17891
17892 * INSTALL: Document Automake is needed for bootstrap.
17893 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
17894 * util/grub.d/10_kfreebsd.in (bindir): New variable.
17895 Add gettext initialization.
17896 (kfreebsd_entry): Make menuentry output translatable.
17897
17898 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17899
17900 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
17901 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
17902 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
17903 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
17904 (LINGUAS): Auto-generate using `po/LINGUAS'.
17905 * po/LINGUAS: New file.
17906
17907 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17908
17909 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
17910 other things).
17911 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
17912 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
17913 bindtextdomain() calls for gettext initialization.
17914
17915 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17916
17917 * gnulib/progname.c: New file (imported from Gnulib).
17918 * gnulib/progname.h: Likewise.
17919 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17920 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
17921 (usage): Replace `progname' with `program_name'.
17922 (main): Use set_program_name() for program name initialization.
17923
17924 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17925
17926 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
17927 from here ...
17928 * Makefile.in (CPPFLAGS): ... to here.
17929
17930 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17931
17932 * aclocal.m4: Move from here ...
17933 * acinclude.m4: ... to here.
17934 * autogen.sh: Add call to `aclocal'.
17935 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
17936
17937 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17938
17939 * Makefile.in (CLEANFILES): Add `po/*.mo'.
17940 (LINGUAS): New variable.
17941 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
17942 (install-local): Install MO files.
17943 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
17944 * include/grub/i18n.h: New file.
17945 * po/POTFILES: New file.
17946 * po/ca.po: New file.
17947 * util/grub.d/10_linux.in (bindir): New variable.
17948 Add gettext initialization.
17949 (linux_entry): Make menuentry output translatable.
17950 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
17951 (usage): Make --help output translatable.
17952 (main): Initialize gettext.
17953
17954 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17955
17956 * import_gcry.py: New file (written by Vladimir with minor
17957 adjustments).
17958 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
17959 ciphers.
17960 * INSTALL: Document that Python is required for bootstrap.
17961
17962 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17963
17964 Import ciphers from libgcrypt 1.4.4.
17965
17966 * lib/libgcrypt/cipher/ChangeLog
17967 * lib/libgcrypt/cipher/ac.c
17968 * lib/libgcrypt/cipher/arcfour.c
17969 * lib/libgcrypt/cipher/bithelp.h
17970 * lib/libgcrypt/cipher/blowfish.c
17971 * lib/libgcrypt/cipher/camellia-glue.c
17972 * lib/libgcrypt/cipher/camellia.c
17973 * lib/libgcrypt/cipher/camellia.h
17974 * lib/libgcrypt/cipher/cast5.c
17975 * lib/libgcrypt/cipher/cipher.c
17976 * lib/libgcrypt/cipher/crc.c
17977 * lib/libgcrypt/cipher/des.c
17978 * lib/libgcrypt/cipher/dsa.c
17979 * lib/libgcrypt/cipher/ecc.c
17980 * lib/libgcrypt/cipher/elgamal.c
17981 * lib/libgcrypt/cipher/hash-common.c
17982 * lib/libgcrypt/cipher/hash-common.h
17983 * lib/libgcrypt/cipher/hmac-tests.c
17984 * lib/libgcrypt/cipher/md.c
17985 * lib/libgcrypt/cipher/md4.c
17986 * lib/libgcrypt/cipher/md5.c
17987 * lib/libgcrypt/cipher/primegen.c
17988 * lib/libgcrypt/cipher/pubkey.c
17989 * lib/libgcrypt/cipher/rfc2268.c
17990 * lib/libgcrypt/cipher/rijndael-tables.h
17991 * lib/libgcrypt/cipher/rijndael.c
17992 * lib/libgcrypt/cipher/rmd.h
17993 * lib/libgcrypt/cipher/rmd160.c
17994 * lib/libgcrypt/cipher/rsa.c
17995 * lib/libgcrypt/cipher/seed.c
17996 * lib/libgcrypt/cipher/serpent.c
17997 * lib/libgcrypt/cipher/sha1.c
17998 * lib/libgcrypt/cipher/sha256.c
17999 * lib/libgcrypt/cipher/sha512.c
18000 * lib/libgcrypt/cipher/tiger.c
18001 * lib/libgcrypt/cipher/twofish.c
18002 * lib/libgcrypt/cipher/whirlpool.c
18003
18004 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18005
18006 Fix build for systems without error().
18007
18008 * gnulib/error.c: New file (imported from Gnulib).
18009 * gnulib/error.h: Likewise.
18010 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
18011 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
18012 (this variable is now used by error()).
18013
18014 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
18015
18016 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
18017 instead of relying that char is signed.
18018
18019 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18020
18021 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
18022 blocksize different from specified.
18023 (grub_pxefs_read): Likewise.
18024
18025 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
18026
18027 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
18028
18029 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
18030 (grub_ata_readwrite): Likewise. Update 2 format strings.
18031 (grub_atapi_read): Likewise.
18032
18033 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
18034 * conf/i386.rmk (pkglib_MODULES): ... to here ...
18035 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
18036 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
18037 (ata_mod_LDFLAGS): Move from here ...
18038 * conf/i386.rmk: ... to here ...
18039 * conf/x86_64-efi.rmk: ... and here.
18040 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
18041 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
18042
18043 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18044
18045 Relicense multiboot.h, with RMS' blessing.
18046
18047 * include/multiboot.h: Change to X11 license.
18048
18049 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
18050
18051 Support --version in grub-mkisofs.
18052
18053 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
18054 (OPTION_VERSION): New macro.
18055 (ld_options): Recognize --version.
18056 (usage): Move `program_name' from here ...
18057 (program_name): ... to here. Add `static' qualifier.
18058 (main): Recognize `OPTION_VERSION'.
18059
18060 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
18061
18062 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
18063 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
18064
18065 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
18066
18067 Fix help2man generation for mkisofs.
18068
18069 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
18070 (usage): Send output to stdout (rather than stderr).
18071
18072 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
18073
18074 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
18075 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
18076 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
18077 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
18078 (bin_SCRIPTS): Add `grub-mkfloppy'.
18079 (grub_mkfloppy_SOURCES): New variable.
18080
18081 * util/grub-mkrescue.in: New file.
18082 * util/i386/pc/grub-mkfloppy.in: New file.
18083
18084 * util/i386/coreboot/grub-mkrescue.in: Remove.
18085 * util/i386/pc/grub-mkrescue.in: Remove.
18086
18087 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18088
18089 * include/grub/multiboot.h (struct grub_multiboot_header): Move
18090 from here ...
18091 * include/multiboot.h (struct multiboot_header): ... to here. Update
18092 all users.
18093 * include/grub/multiboot.h (struct grub_multiboot_info): Move
18094 from here ...
18095 * include/multiboot.h (struct multiboot_info): ... to here. Update
18096 all users.
18097 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
18098 from here ...
18099 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
18100 Update all users.
18101 * include/grub/multiboot.h (struct grub_mod_list): Move
18102 from here ...
18103 * include/multiboot.h (struct multiboot_mod_list): ... to here.
18104 Update all users.
18105
18106 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18107
18108 * include/multiboot2.h (multiboot_word): Rename from this ...
18109 (multiboot2_word): ... to this. Update all users.
18110 (multiboot_header): Rename from this ...
18111 (multiboot2_header): ... to this. Update all users.
18112 (multiboot_tag_header): Rename from this ...
18113 (multiboot2_tag_header): ... to this. Update all users.
18114 (multiboot_tag_start): Rename from this ...
18115 (multiboot2_tag_start): ... to this. Update all users.
18116 (multiboot_tag_name): Rename from this ...
18117 (multiboot2_tag_name): ... to this. Update all users.
18118 (multiboot_tag_module): Rename from this ...
18119 (multiboot2_tag_module): ... to this. Update all users.
18120 (multiboot_tag_memory): Rename from this ...
18121 (multiboot2_tag_memory): ... to this. Update all users.
18122 (multiboot_tag_unused): Rename from this ...
18123 (multiboot2_tag_unused): ... to this. Update all users.
18124 (multiboot_tag_end): Rename from this ...
18125 (multiboot2_tag_end): ... to this. Update all users.
18126
18127 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18128
18129 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
18130 this platform we should support Multiboot1 first.
18131
18132 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
18133 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
18134 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
18135
18136 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
18137
18138 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
18139 of write calls (converting them to fwrite() if they aren't already).
18140 (get_torito_desc): Likewise.
18141 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
18142
18143 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
18144
18145 * util/i386/pc/grub-install.in: Move from here ...
18146 * util/grub-install.in: ... to here. Update all users.
18147
18148 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
18149
18150 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
18151
18152 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
18153
18154 Support for El Torito without floppy emulation.
18155
18156 * util/mkisofs/eltorito.c: Include `<errno.h>'.
18157 (init_boot_catalog): Improve error handling.
18158 (get_torito_desc): Don't use floppy emulation unless requested by
18159 user. Patch boot information table when requested via
18160 `-boot-info-table'.
18161 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
18162 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
18163 (use_boot_info_table): New variables.
18164 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
18165 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
18166 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
18167 `--eltorito-emul-floppy'.
18168 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
18169 and `OPTION_ELTORITO_EMUL_FLOPPY'.
18170 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
18171 (use_boot_info_table, get_731): New prototypes.
18172 * util/mkisofs/write.c (get_731): New function.
18173
18174 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
18175
18176 Fix the generation of the man page.
18177
18178 * util/pc/i386/grub-install.in: Source
18179 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
18180
18181 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
18182
18183 Large file support for grub-mkisofs.
18184
18185 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
18186 * util/mkisofs/mkisofs.c (next_extent, last_extent)
18187 (session_start): Upgrade type to `uint64_t'. Update all users.
18188 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
18189 (struct directory_entry): Upgrade type of `starting_block' and
18190 `size' to `uint64_t'. Update all users.
18191 (struct deferred): Remove unused structure.
18192 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
18193 Update all users.
18194 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
18195 file is larger than `UINT32_MAX'.
18196 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
18197 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
18198 return value.
18199 (struct deferred_write): Upgrade type of `extent' and `size' to
18200 `uint64_t'. Update all users.
18201 (last_extent_written): Upgrade type to `uint64_t'. Update all
18202 users.
18203 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
18204 Update all users. Upgrade type of `remain' to `int64_t' and
18205 `use' to `size_t'. Use error() to handle fread() errors.
18206 (write_files): Rely on write_one_file() rather than calling
18207 xfwrite() directly.
18208
18209 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
18210
18211 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
18212
18213 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18214
18215 * util/mkisofs/fnmatch.c: Remove.
18216 * util/mkisofs/getopt1.c: Likewise.
18217 * util/mkisofs/getopt.c: Likewise.
18218 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
18219 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
18220 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
18221 `gnulib/getopt1.c' and `gnulib/getopt.c'.
18222 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
18223
18224 * configure.ac: Detect `mingw32msvc' host_os.
18225 Check for lstat(), getuid() and getgid().
18226
18227 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
18228 instances of `u_char' with `uint8_t'.
18229
18230 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
18231 [!HAVE_GETUID] (getuid): New function (stub).
18232 [!HAVE_GETGID] (getgid): Likewise.
18233 [!HAVE_LSTAT] (lstat): Likewise.
18234 [!S_IROTH] (S_IROTH): New macro (dummy).
18235 [!S_IRGRP] (S_IRGRP): Likewise.
18236
18237 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18238
18239 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
18240 conditional expression).
18241
18242 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18243
18244 Import from Gnulib.
18245
18246 * gnulib/fnmatch.c: New file.
18247 * gnulib/fnmatch.h: Likewise.
18248 * gnulib/fnmatch_loop.c: Likewise.
18249 * gnulib/getopt.c: Likewise.
18250 * gnulib/getopt.h: Likewise.
18251 * gnulib/getopt1.c: Likewise.
18252 * gnulib/getopt_int.h: Likewise.
18253 * gnulib/gettext.h: Likewise.
18254
18255 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18256
18257 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
18258 * normal/handler.c (read_handler_list): Likewise.
18259
18260 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18261
18262 Misc cleanup.
18263
18264 * kern/command.c (grub_register_command_prio): Use
18265 grub_zalloc() instead of explicitly zeroing data.
18266 * kern/list.c: Include `<grub/mm.h>'.
18267 (grub_named_list_find): Replace `0' with `NULL'.
18268 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
18269 (fs_module_list): Change type to `grub_named_list_t'. Update all
18270 users.
18271 * normal/dyncmd.c (read_command_list): Add space between function
18272 call and parenthesis.
18273 * normal/handler.c (read_handler_list): Likewise.
18274
18275 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18276
18277 * normal/auth.c (punishment_delay): Moved from here ...
18278 (grub_auth_strcmp): ... to here (inside function).
18279
18280 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18281
18282 * include/grub/list.h (struct grub_named_list): Remove `const'
18283 qualifier from `name'.
18284 (struct grub_prio_list): Likewise.
18285
18286 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18287
18288 * normal/auth.c: Include `<grub/time.h>'.
18289 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
18290
18291 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18292
18293 * normal/auth.c (punishment_delay): New variable.
18294 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
18295 (grub_auth_check_authentication): Punish failed login attempts with
18296 an incremental (2^N) delay.
18297
18298 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18299
18300 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
18301 path with $(srcdir).
18302
18303 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
18304
18305 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
18306
18307 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18308
18309 * util/i386/coreboot/grub-mkrescue.in: New file.
18310 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
18311 variables.
18312
18313 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
18314 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
18315 * configure.ac: Add header and function checks to satisfy grub-mkisofs
18316 requirements.
18317 * util/mkisofs/defaults.h: New file.
18318 * util/mkisofs/eltorito.c: Likewise.
18319 * util/mkisofs/exclude.h: Likewise.
18320 * util/mkisofs/fnmatch.c: Likewise.
18321 * util/mkisofs/getopt.c: Likewise.
18322 * util/mkisofs/getopt1.c: Likewise.
18323 * util/mkisofs/hash.c: Likewise.
18324 * util/mkisofs/include/fctldefs.h: Likewise.
18325 * util/mkisofs/include/mconfig.h: Likewise.
18326 * util/mkisofs/include/prototyp.h: Likewise.
18327 * util/mkisofs/include/statdefs.h: Likewise.
18328 * util/mkisofs/iso9660.h: Likewise.
18329 * util/mkisofs/joliet.c: Likewise.
18330 * util/mkisofs/match.c: Likewise.
18331 * util/mkisofs/match.h: Likewise.
18332 * util/mkisofs/mkisofs.c: Likewise.
18333 * util/mkisofs/mkisofs.h: Likewise.
18334 * util/mkisofs/multi.c: Likewise.
18335 * util/mkisofs/name.c: Likewise.
18336 * util/mkisofs/rock.c: Likewise.
18337 * util/mkisofs/tree.c: Likewise.
18338 * util/mkisofs/write.c: Likewise.
18339
18340 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
18341
18342 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
18343 being insecure.
18344
18345 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18346
18347 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
18348 `grub-mkimage' (and use $0 when possible).
18349
18350 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18351
18352 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
18353 error message for excessively large memory map.
18354
18355 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18356
18357 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
18358 executable bit.
18359
18360 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18361
18362 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
18363 message for coreboot users.
18364
18365 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
18366
18367 Fix build with GNU gold.
18368
18369 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
18370 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
18371 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
18372 link addresses.
18373 * aclocal.m4: Likewise.
18374
18375 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
18376
18377 * configure.ac (AC_PREREQ): Bump to 2.59d.
18378 * INSTALL: Make it more clear when Autoconf and Ruby are
18379 needed and when to run `./autogen.sh'.
18380
18381 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18382
18383 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
18384 OSes.
18385
18386 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18387
18388 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
18389
18390 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18391
18392 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
18393 giving it to GNU Mach.
18394
18395 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18396
18397 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
18398 GNU partition number to get internal GRUB partition number.
18399
18400 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18401
18402 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
18403 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
18404
18405 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
18406
18407 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
18408 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
18409 case.
18410
18411 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
18412
18413 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
18414
18415 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
18416
18417 Fix build problem.
18418
18419 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
18420 `-isystem=$(srcdir)/include'.
18421
18422 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
18423
18424 * util/i386/pc/grub-install.in: Remove hint that device.map should be
18425 checked (grub-install doesn't currently rely on it).
18426
18427 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
18428
18429 Revert SVN r2660.
18430
18431 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
18432 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18433 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
18434 * conf/i386-ieee1275.rmk: Likewise.
18435 * conf/i386-pc.rmk: Likewise.
18436 * conf/powerpc-ieee1275.rmk: Likewise.
18437 * conf/sparc64-ieee1275.rmk: Likewise.
18438 * conf/x86_64-efi.rmk: Likewise.
18439
18440 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18441
18442 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
18443
18444 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18445
18446 * include/grub/misc.h: Stop checking for APPLE_CC.
18447
18448 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18449
18450 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
18451 doesn't cause an infinite call loop.
18452
18453 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
18454
18455 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
18456 strings.
18457
18458 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18459
18460 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
18461 variable.
18462 * Makefile.in: Likewise.
18463
18464 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18465
18466 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
18467
18468 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18469
18470 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
18471
18472 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18473
18474 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
18475
18476 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18477
18478 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
18479 from here ...
18480 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
18481
18482 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18483
18484 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
18485 in $(MAKEINFO) invocation. This makes it clear in output that
18486 errors are being ignored.
18487
18488 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18489
18490 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
18491 from here ...
18492 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18493 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
18494 * conf/i386-ieee1275.rmk: Likewise.
18495 * conf/i386-pc.rmk: Likewise.
18496 * conf/powerpc-ieee1275.rmk: Likewise.
18497 * conf/sparc64-ieee1275.rmk: Likewise.
18498 * conf/x86_64-efi.rmk: Likewise.
18499
18500 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18501
18502 * util/grub-editenv.c (main): If only a command is given, use
18503 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
18504 (usage): FILENAME is now optional and has a default.
18505
18506 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18507
18508 Improve grub-mkconfig performance when there are several menu
18509 entries on a single filesystem.
18510
18511 * util/grub.d/10_linux.in (linux_entry): Cache the output of
18512 prepare_grub_to_access_device.
18513 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
18514 * util/grub.d/30_os-prober.in: Likewise.
18515
18516 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18517
18518 * util/grub.d/10_freebsd.in: Remove.
18519 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
18520 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
18521
18522 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18523
18524 * docs/grub.cfg: Fix example usage of *BSD loaders.
18525
18526 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18527
18528 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
18529 grub_util_error() call.
18530
18531 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18532
18533 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
18534 `reserved_first_sector' member.
18535 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
18536 `reserved_first_sector' to 1.
18537 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
18538 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
18539 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
18540 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
18541 filesystems which begin at first sector.
18542 (options): New option --skip-fs-probe.
18543 (main): Handle --skip-fs-probe and pass it to setup().
18544
18545 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18546
18547 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
18548 (memset): Fix function prototype.
18549
18550 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18551 2009-10-25 Vasily Averin <vvs@parallels.com>
18552
18553 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
18554 `dirent.direntlen == 0'.
18555
18556 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18557
18558 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
18559 `cpio'.
18560 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
18561
18562 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18563
18564 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
18565 `__trampoline_setup' and `__ucmpdi2'.
18566 * include/grub/powerpc/libgcc.h: Only export symbols for functions
18567 that libgcc provides.
18568
18569 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18570
18571 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
18572 * include/grub/sparc64/libgcc.h (memset): Likewise.
18573 * include/grub/misc.h (memset, memcmp): New function prototypes.
18574
18575 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18576
18577 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
18578 `cpio'.
18579 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
18580
18581 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18582
18583 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
18584 * docs/grub.cfg: Compensate for recent change in multiboot
18585 loader (since 2009-08-14 it won't pass filename to payload).
18586 * util/grub.d/10_hurd.in: Likewise.
18587
18588 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
18589
18590 * config.guess: Update to latest version from config git
18591 repository.
18592 * config.sub: Likewise.
18593
18594 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
18595
18596 Fix build on sparc64.
18597
18598 * configure.ac: Perform checks for libgcc symbols before
18599 adding `-nostdlib' to LDFLAGS.
18600
18601 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18602
18603 Let user specify OpenBSD root device.
18604
18605 * loader/i386/bsd.c (openbsd_root): New variable.
18606 (openbsd_opts): New option 'root'.
18607 (OPENBSD_ROOT_ARG): New macro.
18608 (grub_openbsd_boot): Use 'openbsd_root'.
18609 (grub_cmd_openbsd): Fill 'openbsd_root'.
18610
18611 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18612
18613 * NEWS: Misc adjustments.
18614
18615 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
18618
18619 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18620
18621 * configure.ac: Bump version to 1.97.
18622
18623 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
18624
18625 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
18626 -mno-3dnow on x86 architectures. Some toolchains enable these
18627 features by default, but they rely on registers that aren't enabled
18628 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
18629
18630 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
18631
18632 Make entry text a bit more readable.
18633
18634 * util/grub.d/10_linux.in: Add `with' before `Linux'.
18635
18636 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
18639
18640 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
18643 operations.
18644
18645 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18646
18647 * configure.ac: Add missing dollar.
18648
18649 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18650
18651 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
18652
18653 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
18654 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
18655 exports.
18656 * include/grub/sparc64/libgcc.h: Likewise. Use
18657 preprocessor conditionals.
18658
18659 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18660
18661 * conf/common.rmk (grub-dumpbios): Remove rule.
18662 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
18663 * util/grub-dumpbios.in: Remove file.
18664
18665 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18666
18667 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
18668 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
18669
18670 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
18671 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
18672 users.
18673
18674 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
18675 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
18676 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
18677 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
18678 users.
18679
18680 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
18681
18682 * term/tparm.c: Switch to GPLv3.
18683
18684 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18685
18686 * include/grub/i386/cpuid.h: Add header protection.
18687
18688 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18689
18690 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
18691
18692 * include/grub/i386/cpuid.h: New file.
18693 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
18694 (has_longmode): Rename to ...
18695 (grub_cpuid_has_longmode): ... this. Update all users. Remove
18696 `static' attribute.
18697 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
18698 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
18699 on a CPU that doesn't implement AMD64 instruction set.
18700
18701 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18702
18703 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
18704 that version.texi is rebuilt on version number changes.
18705
18706 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18707
18708 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
18709 Fixes bug #27602.
18710
18711 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18712
18713 * util/i386/pc/grub-install.in: Source
18714 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
18715 that the --grub-probe option will work.
18716 * util/sparc64/ieee1275/grub-install.in: Likewise.
18717
18718 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
18719
18720 * configure.ac: Bump version to 1.97~beta4.
18721
18722 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
18723
18724 Resync grub-mkdevicemap in x86_64-efi.
18725
18726 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
18727 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
18728 `util/devicemap.c'.
18729
18730 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
18731
18732 * util/grub-editenv.c (create_envblk_file): Write new block with a
18733 .new suffix and then rename it into place, to ensure atomic
18734 creation.
18735
18736 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
18737
18738 Do not automatically install headers.
18739
18740 * Makefile.in (include_DATA): Remove. Update all users.
18741
18742 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
18743
18744 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
18745 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
18746
18747 * util/osdetect.lua: Remove.
18748 * script/lua/lauxlib.c: Likewise.
18749 * script/lua/ldebug.c: Likewise.
18750 * script/lua/grub_main.c: Likewise.
18751 * script/lua/lauxlib.h: Likewise.
18752 * script/lua/ldebug.h: Likewise.
18753 * script/lua/ltablib.c: Likewise.
18754 * script/lua/liolib.c: Likewise.
18755 * script/lua/lstrlib.c: Likewise.
18756 * script/lua/lualib.h: Likewise.
18757 * script/lua/ldo.c: Likewise.
18758 * script/lua/ldump.c: Likewise.
18759 * script/lua/ldo.h: Likewise.
18760 * script/lua/loslib.c: Likewise.
18761 * script/lua/lundump.c: Likewise.
18762 * script/lua/grub_lib.c: Likewise.
18763 * script/lua/ldblib.c: Likewise.
18764 * script/lua/lundump.h: Likewise.
18765 * script/lua/lmem.c: Likewise.
18766 * script/lua/grub_lib.h: Likewise.
18767 * script/lua/lmathlib.c: Likewise.
18768 * script/lua/lstate.c: Likewise.
18769 * script/lua/ltm.c: Likewise.
18770 * script/lua/lvm.c: Likewise.
18771 * script/lua/lmem.h: Likewise.
18772 * script/lua/lstate.h: Likewise.
18773 * script/lua/ltm.h: Likewise.
18774 * script/lua/ltable.c: Likewise.
18775 * script/lua/lvm.h: Likewise.
18776 * script/lua/llex.c: Likewise.
18777 * script/lua/lgc.c: Likewise.
18778 * script/lua/grub_lua.h: Likewise.
18779 * script/lua/loadlib.c: Likewise.
18780 * script/lua/lfunc.c: Likewise.
18781 * script/lua/lopcodes.c: Likewise.
18782 * script/lua/lparser.c: Likewise.
18783 * script/lua/ltable.h: Likewise.
18784 * script/lua/llex.h: Likewise.
18785 * script/lua/lgc.h: Likewise.
18786 * script/lua/lfunc.h: Likewise.
18787 * script/lua/lbaselib.c: Likewise.
18788 * script/lua/lopcodes.h: Likewise.
18789 * script/lua/lparser.h: Likewise.
18790 * script/lua/lzio.c: Likewise.
18791 * script/lua/linit.c: Likewise.
18792 * script/lua/lobject.c: Likewise.
18793 * script/lua/llimits.h: Likewise.
18794 * script/lua/lstring.c: Likewise.
18795 * script/lua/lzio.h: Likewise.
18796 * script/lua/lapi.c: Likewise.
18797 * script/lua/lcode.c: Likewise.
18798 * script/lua/lua.h: Likewise.
18799 * script/lua/lobject.h: Likewise.
18800 * script/lua/lstring.h: Likewise.
18801 * script/lua/lapi.h: Likewise.
18802 * script/lua/lcode.h: Likewise.
18803 * script/lua/luaconf.h: Likewise.
18804
18805 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
18806
18807 * docs/grub.texi (Command-line and menu entry commands): Document
18808 date and echo commands.
18809
18810 2009-09-24 Pavel Roskin <proski@gnu.org>
18811
18812 * include/grub/kernel.h (struct grub_module_header): Remove
18813 `grub_module_header_types'. Make `type' unsigned. Make `size'
18814 32-bit on all platforms.
18815 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
18816 8-bit field. Use grub_host_to_target32() for `size'.
18817 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
18818 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
18819 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
18820
18821 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18822
18823 Fix "lost keypress" bug in at_keyboard.
18824
18825 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
18826 Checks for readyness of input buffer (without flushing it).
18827 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
18828 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
18829
18830 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18831
18832 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
18833 size check within GRUB_MACHINE_PCBIOS section.
18834
18835 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18836
18837 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
18838 return value.
18839 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
18840 KEYBOARD_ISREADY check.
18841 (grub_at_keyboard_checkkey): Rename to ...
18842 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
18843 Remove gratuitous cast.
18844
18845 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
18846
18847 * configure.ac: Call AC_PROG_MKDIR_P.
18848 * Makefile.in (docs/stamp-vti): Create docs directory. Create
18849 version.texi in $(builddir) rather than $(srcdir).
18850 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
18851 to makeinfo's @include search path.
18852
18853 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18854
18855 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
18856
18857 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18858
18859 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
18860 for `*.dpkg-new'.
18861
18862 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
18863
18864 Build info documentation. Some code borrowed from Automake.
18865
18866 * configure.ac: Check for makeinfo.
18867 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
18868 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
18869 docs/version.texi.
18870 (MOSTLYCLEANFILES): Add vti.tmp.
18871 (docs/version.texi, docs/stamp-vti): Update automatically.
18872 (docs/grub.info): Build info documentation. Use --force and ignore
18873 errors for now.
18874 (all-local): Add $(INFOS).
18875 (install-local): Install info files.
18876 (uninstall): Uninstall info files.
18877 * docs/version.texi: Remove from revision control. This file is
18878 automatically generated on build now.
18879 * gendistlist.sh: Add `*.info'.
18880
18881 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18882
18883 * kern/term.c: Fix indentation.
18884
18885 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18886
18887 * util/hostdisk.c: Fix a comment.
18888
18889 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
18890
18891 Fix regression introduced in r2539.
18892
18893 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
18894 to 0xA1.
18895
18896 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
18897
18898 * util/grub.d/30_os-prober.in: Don't throw away stderr from
18899 os-prober. Under normal operation, it does not print anything to
18900 stderr; if it does, we need to debug it, and throwing away stderr
18901 makes that excessively difficult.
18902
18903 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
18904
18905 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
18906
18907 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18908
18909 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
18910 AC_LANG_PROGRAM from autoconf.
18911 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
18912 prototypes (fixes warning).
18913
18914 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
18915 `--disable-werror' was used.
18916
18917 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18918
18919 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
18920 uninitialized `lastaddr'.
18921
18922 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18923
18924 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
18925
18926 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18927
18928 * commands/test.c (get_fileinfo): Return immediately if
18929 grub_fs_probe fails.
18930
18931 2009-09-14 José Martínez <xosemp@gmail.com>
18932
18933 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
18934
18935 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18936
18937 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
18938 output.
18939
18940 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
18941
18942 * configure.ac: Remove --enable-grub-pe2elf. Only build
18943 grub-pe2elf when needed by the build system itself.
18944 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
18945
18946 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18947
18948 * configure.ac: Bump version to 1.97~beta3.
18949 * docs/version.texi: Likewise.
18950
18951 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18952
18953 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
18954 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
18955 from here ...
18956 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
18957 (grub_linux_setup_video): ... to here (with some adjustments).
18958
18959 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18960
18961 Fix memory corruption issue (spotted by Colin Watson).
18962
18963 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
18964 causing returned size to be stored in an incorrect memory location.
18965 Fix use of uninitialized value when storing the returned size.
18966
18967 2009-09-12 Yves Blusseau <blusseau@zetam.org>
18968
18969 Change clean rules to properly remove files
18970
18971 * genmk.rb: add new clean rules
18972 * Makefile.in (clean): add the new targets
18973 (mostlyclean): likewise
18974
18975 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18976
18977 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
18978 to grub_uint64_t.
18979 * fs/ntfs.c (init_file): Understand 64-bit sizes for
18980 non-resident files.
18981
18982 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18983
18984 * configure.ac: Don't look for help2man when cross-compiling. Fixes
18985 part of bug #27349.
18986
18987 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18988
18989 * util/grub-mkconfig.in: Make the created config mode 400 and
18990 print a warning if it fails.
18991
18992 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
18993
18994 * util/grub.d/40_custom.in: Ask user to type custom entries below
18995 comment, rather than below 'exec tail' line.
18996
18997 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18998
18999 * util/grub.d/40_custom.in: Make sure that the explanatory text is
19000 visible in grub.cfg.
19001
19002 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
19003
19004 * util/grub.d/40_custom.in: Make it a little clearer how to use this
19005 file.
19006
19007 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
19008
19009 * docs/grub.cfg: Add an example menu entry for memtest86+.
19010
19011 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
19012
19013 * config.guess: Update to latest version from config git.
19014 * config.sub: Likewise.
19015
19016 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
19017
19018 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
19019 unknown-command case. Fixes bug #27320.
19020
19021 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
19022
19023 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
19024 `help' if the command exists.
19025
19026 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
19027
19028 * INSTALL: Require GCC 4.1.3 or later.
19029
19030 2009-09-06 Yves Blusseau <blusseau@zetam.org>
19031
19032 * Makefile.in (RMKFILES): add i386-qemu.rmk
19033 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
19034 $(srcdir)/stamp-h.in
19035
19036 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
19037
19038 * util/grub-probe.c (probe): Comment out buggy codepath, which
19039 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
19040 should be re-enabled after 1.97.
19041
19042 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
19043
19044 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
19045 find searches for.
19046
19047 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19048
19049 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
19050 unnecessary calls to grub_error.
19051
19052 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
19053
19054 * NEWS: Mention `keystatus' and Unicode fonts.
19055
19056 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
19057
19058 * configure.ac: Bump version to 1.97~beta2.
19059 * docs/version.texi: Likewise.
19060
19061 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
19062
19063 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
19064 containing unwind information in some cases where it previously did
19065 not. Use -fno-dwarf2-cfi-asm if available to restore the old
19066 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
19067 discussion.
19068
19069 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
19070
19071 Embedding loadenv module into grub-emu
19072
19073 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
19074 commands/loadenv.c
19075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
19076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
19077 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
19078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
19079 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
19080 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
19081
19082 2009-09-03 Magnus Granberg <zorry@ume.nu>
19083
19084 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
19085 include -fPIE in the default specs.
19086 * configure.ac: Check if pie_possible is yes and add -fno-PIE
19087 to TARGET_CFLAGS.
19088
19089 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
19090
19091 * INSTALL: Note that GNU Bison 2.3 or later is required.
19092
19093 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
19094
19095 * kern/i386/pc/startup.S: Fix typo.
19096
19097 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19098
19099 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
19100 according to GCS.
19101
19102 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19103
19104 * docs/grub.texi (Naming convention): Describe one-based partition
19105 numbering.
19106 (Device syntax): Likewise.
19107 (File name syntax): Likewise.
19108 (Block list syntax): Likewise.
19109 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
19110 menu.lst.
19111 (File name syntax): Likewise.
19112 (Command-line and menu entry commands): Document acpi, blocklist,
19113 crc, export, insmod, keystatus, ls, set, and unset commands.
19114
19115 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19116
19117 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
19118 to avoid implying that only one of --shift, --ctrl, or --alt may be
19119 used.
19120
19121 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19122
19123 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
19124 rather than comparing against S_IFREG, which will almost never work.
19125
19126 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
19127
19128 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
19129 (write_blocklists): Likewise.
19130
19131 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
19132
19133 * script/lua/grub_lua.h (fputs): Supply a format string as the first
19134 argument to grub_printf.
19135
19136 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
19137
19138 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
19139 non GNU test.
19140
19141 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19142
19143 * kern/file.c (grub_file_read): Spelling fix
19144
19145 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19146
19147 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
19148 loading of headers in some cases.
19149
19150 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
19151
19152 * configure.ac: Bump version to 1.97~beta1.
19153 * docs/version.texi: Likewise.
19154
19155 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19156
19157 * include/grub/i386/xnu.h: Add license header.
19158 include grub/err.h explicitly.
19159
19160 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
19161
19162 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
19163 to `ufs' in the vfs.root.mountfrom kernel parameter.
19164
19165 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
19166
19167 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
19168
19169 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
19170 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
19171
19172 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
19173 `ARRAY_SIZE' macro.
19174
19175 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19176
19177 * kern/file.c (grub_file_read): Check offset.
19178 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
19179 * fs/jfs.c (grub_jfs_read_file): Likewise.
19180 * fs/ntfs.c (grub_ntfs_read): Likewise.
19181 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
19182 * fs/minix.c (grub_minix_read_file): Correct offset check.
19183 * fs/ufs.c (grub_ufs_read_file): Likewise.
19184
19185 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19186
19187 * term/i386/pc/console.c (bios_data_area): Cast
19188 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
19189
19190 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19191
19192 1-bit optimised blitters.
19193
19194 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
19195 prototype.
19196 (grub_video_fbblit_replace_24bit_1bit): Likewise.
19197 (grub_video_fbblit_replace_16bit_1bit): Likewise.
19198 (grub_video_fbblit_replace_8bit_1bit): Likewise.
19199 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
19200 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
19201 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
19202 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
19203 function.
19204 (grub_video_fbblit_replace_24bit_1bit): Likewise.
19205 (grub_video_fbblit_replace_16bit_1bit): Likewise.
19206 (grub_video_fbblit_replace_8bit_1bit): Likewise.
19207 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
19208 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
19209 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
19210 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
19211 when possible.
19212 * video/video.c (grub_video_get_blit_format): Return
19213 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
19214
19215 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19216
19217 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
19218 the first argument to grub_printf.
19219
19220 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19221 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
19222
19223 Add `getkeystatus' terminal method. Add a new `keystatus' command
19224 to query it.
19225
19226 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
19227 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
19228 modifier key bitmasks.
19229 (struct grub_term_input): Add `getkeystatus' member.
19230 (grub_getkeystatus): Add prototype.
19231 * kern/term.c (grub_getkeystatus): New function.
19232
19233 * include/grub/i386/pc/memory.h
19234 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
19235 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
19236 Data Area layout.
19237 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
19238 (grub_console_term_input): Set `getkeystatus' member.
19239 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
19240 constants.
19241 (grub_usb_keyboard_getreport): Likewise.
19242 (grub_usb_keyboard_checkkey): Likewise.
19243 (grub_usb_keyboard_getkeystatus): New function.
19244 (grub_usb_keyboard_term): Set `getkeystatus' member.
19245
19246 * commands/keystatus.c: New file.
19247 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
19248 (keystatus_mod_SOURCES): New variable.
19249 (keystatus_mod_CFLAGS): Likewise.
19250 (keystatus_mod_LDFLAGS): Likewise.
19251 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
19252 commands/keystatus.c.
19253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19255 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19258 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19259
19260 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19261
19262 Split befs.mod and afs.mod into *_be.mod and *.mod
19263
19264 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
19265 (grub_fstest_SOURCES): Likewise.
19266 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
19267 (afs_be_mod_SOURCES): New variable.
19268 (afs_be_mod_CFLAGS): Likewise.
19269 (afs_be_mod_LDFLAGS): Likewise.
19270 (befs_be_mod_SOURCES): Likewise.
19271 (befs_be_mod_CFLAGS): Likewise.
19272 (befs_be_mod_LDFLAGS): Likewise.
19273 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
19274 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19275 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19276 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19277 (grub_emu_SOURCES): Likewise.
19278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19279 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19281 * fs/afs_be.c: New file.
19282 * fs/befs_be.c: New file.
19283 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
19284 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
19285 (U16): Replaced with ...
19286 (grub_afs_to_cpu16): ...this. All users updated.
19287 (U32): Replaced with ...
19288 (grub_afs_to_cpu32): ...this. All users updated.
19289 (U64): Replaced with ...
19290 (grub_afs_to_cpu64): ...this. All users updated.
19291 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
19292 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
19293 (grub_afs_validate_sblock): Check only one endianness.
19294 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
19295 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
19296 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
19297 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
19298 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
19299 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
19300 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
19301 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
19302
19303 2009-08-26 Bean <bean123ch@gmail.com>
19304
19305 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
19306 64-bit number.
19307 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
19308 (grub_xfs_inode_block): Change return type to grub_uint64_t.
19309 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
19310
19311 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 NetBSD memory map support.
19314
19315 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
19316 (grub_netbsd_btinfo_mmap_header): New structure.
19317 (grub_netbsd_btinfo_mmap_entry): Likewise.
19318 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
19319
19320 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19321
19322 Enable bsd.mod on coreboot.
19323
19324 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
19325 (bsd_mod_SOURCES): New variable.
19326 (bsd_mod_CFLAGS): Likewise.
19327 (bsd_mod_LDFLAGS): Likewise.
19328 (bsd_mod_ASFLAGS): Likewise.
19329 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
19330 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
19331
19332 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19333
19334 Cleanup NetBSD root support.
19335
19336 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
19337 grub_bsd_get_device.
19338 Fix typo.
19339
19340 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
19341
19342 * util/grub.d/00_header.in: Move check for the video backend of
19343 gfxterm from here ...
19344 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
19345 a suitable video backend.
19346
19347 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19348
19349 Fix breakage in grub-setup.
19350
19351 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
19352 "msdos_partition_map".
19353
19354 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 Fix breakage in normal/auth.c.
19357
19358 * normal/auth.c (grub_iswordseparator): New function.
19359
19360 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19361
19362 Authentication support.
19363
19364 * commands/password.c: New file.
19365 * conf/common.rmk (pkglib_MODULES): Add password.mod.
19366 (password_mod_SOURCES): New variable.
19367 (password_mod_CFLAGS): Likewise.
19368 (password_mod_LDFLAGS): Likewise.
19369 (normal_mod_SOURCES): Add normal/auth.c.
19370 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
19371 normal/auth.c.
19372 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19374 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19378 * include/grub/auth.h: New file.
19379 * include/grub/err.h (grub_err_t): New enum value
19380 GRUB_ERR_ACCESS_DENIED.
19381 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
19382 'users'.
19383 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
19384 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
19385 users updated.
19386 * normal/auth.c: New file.
19387 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
19388 (grub_cmdline_run): Don't allow to go to command line without
19389 authentication.
19390 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
19391 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
19392 menuentry without superuser rights.
19393 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
19394 user isn't a superuser.
19395
19396 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19397
19398 Save space by inlining misc.c functions.
19399
19400 * kern/misc.c (grub_iswordseparator): Made static.
19401 * kern/misc.c (grub_strcat): Moved from here ...
19402 * include/grub/misc.h (grub_strcat): ... here. Inlined.
19403 * kern/misc.c (grub_strncat): Moved from here ...
19404 * include/grub/misc.h (grub_strncat): ... here. Inlined.
19405 * kern/misc.c (grub_strcasecmp): Moved from here ...
19406 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
19407 * kern/misc.c (grub_strncasecmp): Moved from here ...
19408 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
19409 * kern/misc.c (grub_isalpha): Moved from here ...
19410 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
19411 * kern/misc.c (grub_isdigit): Moved from here ...
19412 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
19413 * kern/misc.c (grub_isgraph): Moved from here ...
19414 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
19415 * kern/misc.c (grub_tolower): Moved from here ...
19416 * include/grub/misc.h (grub_tolower): ... here. Inlined.
19417
19418 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19419
19420 * script/sh/function.c (grub_script_function_find): Cut error message
19421 not to flood terminal.
19422 * script/sh/lexer.c (grub_script_yylex): Remove command line length
19423 limit.
19424 * script/sh/script.c (grub_script_arg_add): Duplicate string.
19425
19426 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
19427
19428 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
19429 `report' grub_uint8_t *.
19430 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
19431 Use a 50-millisecond timeout rather than just repeating
19432 grub_usb_keyboard_getreport 50 times.
19433 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
19434
19435 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19436
19437 Rename *_partition_map to part_*
19438
19439 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
19440 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
19441 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
19442 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
19443 All users updated.
19444 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
19445 All users updated.
19446 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
19447 * util/grub-probe.c (probe_partmap): Don't transform partition name
19448 to get module name.
19449
19450 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19451
19452 Fix OpenBSD and NetBSD support.
19453
19454 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
19455 memory address conflict.
19456 (OPENBSD_MMAP_ACPI): New definition.
19457 (OPENBSD_MMAP_NVS): Likewise.
19458 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
19459 and OPENBSD_MMAP_NVS.
19460 Add memory map terminator
19461 Explicit cast when calling grub_unix_real_boot.
19462 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
19463
19464 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19465
19466 Let user specify NetBSD root device.
19467
19468 * loader/i386/bsd.c (netbsd_root): New variable.
19469 (netbsd_opts): New option 'root'.
19470 (NETBSD_ROOT_ARG): New macro.
19471 (grub_netbsd_boot): Use 'netbsd_root'.
19472 (grub_bsd_unload): Free 'netbsd_root'.
19473 (grub_cmd_netbsd): Fill 'netbsd_root'.
19474
19475 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19476
19477 Support for 64-bit NetBSD.
19478
19479 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
19480 point when booting non-FreeBSD.
19481
19482 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19483
19484 Support --no-smp and --no-acpi for NetBSD.
19485
19486 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
19487 (NETBSD_AB_NOACPI): Likewise.
19488 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
19489 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
19490
19491 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
19494 errors.
19495 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
19496 errors. Call grub_error when needed.
19497
19498 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19499
19500 * commands/search.c (search_fs): Try searching without autoload first.
19501 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19502 filesystem module explicitly for faster booting.
19503
19504 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19505
19506 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
19507
19508 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19509
19510 * util/grub.d/30_os-prober.in: Disable os-prober if
19511 `GRUB_DISABLE_OS_PROBER' was set to true.
19512
19513 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
19514
19515 * partmap/pc.c: Rename to ...
19516 * partmap/msdos.c: ... this. Update all users.
19517 (grub_pc_partition_map): Rename to ...
19518 (grub_msdos_partition_map): ... this. Update all users.
19519
19520 * parttool/pcpart.c: Rename to ...
19521 * parttool/msdospart.c: ... this. Update all users.
19522
19523 * include/grub/pc_partition.h: Rename to ...
19524 * include/grub/msdos_partition.h: ... this. Update all users.
19525 (grub_pc_partition_bsd_entry): Rename to ...
19526 (grub_msdos_partition_bsd_entry): ... this. Update all users.
19527 (grub_pc_partition_disk_label): Rename to ...
19528 (grub_msdos_partition_disk_label): ... this. Update all users.
19529 (grub_pc_partition_entry): Rename to ...
19530 (grub_msdos_partition_entry): ... this. Update all users.
19531 (grub_pc_partition_mbr): Rename to ...
19532 (grub_msdos_partition_mbr): ... this. Update all users.
19533 (grub_pc_partition): Rename to ...
19534 (grub_msdos_partition): ... this. Update all users.
19535 (grub_pc_partition_is_empty): Rename to ...
19536 (grub_msdos_partition_is_empty): ... this. Update all users.
19537 (grub_pc_partition_is_extended): Rename to ...
19538 (grub_msdos_partition_is_extended): ... this. Update all users.
19539 (grub_pc_partition_is_bsd): Rename to ...
19540 (grub_msdos_partition_is_bsd): ... this. Update all users.
19541
19542 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
19543 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
19544 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
19545 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
19546 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
19547 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
19548 (gpt_mod_LDFLAGS): Rename to ...
19549 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
19550 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
19551 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
19552 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
19553 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
19554 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
19555 (part_gpt_mod_LDFLAGS): ... this.
19556 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
19557 `pcpart.mod' to `msdospart.mod'.
19558 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
19559 to ...
19560 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
19561 (msdospart_mod_LDFLAGS): ... this.
19562
19563 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19564
19565 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
19566 (openbsd_opts): Likewise.
19567 (netbsd_opts): Likewise.
19568 (freebsd_flags): Added 0 terminator.
19569 (openbsd_flags): Likewise.
19570 (netbsd_flags): Likewise.
19571 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
19572 (grub_cmd_freebsd): Transformed into extended command.
19573 (grub_cmd_openbsd): Likewise.
19574 (grub_cmd_netbsd): Likewise.
19575 (cmd_freebsd): Changed type to grub_extcmd_t.
19576 (cmd_openbsd): Likewise.
19577 (cmd_netbsd): Likewise.
19578 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
19579 grub_cmd_openbsd as extended commands.
19580 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
19581 cmd_netbsd and cmd_openbsd
19582
19583 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19584
19585 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
19586
19587 2009-08-21 Pavel Roskin <proski@gnu.org>
19588
19589 * Makefile.in (install-local): When checking if a file is in the
19590 build directory, use "test -e" to detect symlinks.
19591
19592 * Makefile.in (install-local): Remove all files in
19593 $(DESTDIR)$(pkglibdir) before installing new files there.
19594
19595 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19596
19597 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
19598 grub-mkelfimage.
19599
19600 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19601
19602 * util/grub-mkconfig.in: Don't use gfxterm by default if not
19603 explicitly specified by the user.
19604
19605 2009-08-18 Pavel Roskin <proski@gnu.org>
19606
19607 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
19608 grub_uint8_t pointer for data.
19609 * include/grub/fbutil.h (struct grub_video_fbblit_info):
19610 Likewise.
19611 * video/fb/fbutil.c: Remove unnecessary casts.
19612
19613 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19614
19615 VBE cleanup.
19616
19617 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
19618 (grub_vbe_set_video_mode): Save active mode info
19619 only after setting the mode.
19620 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
19621 second argument.
19622
19623 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19624
19625 Rename variables for clarity.
19626
19627 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
19628 (active_vbe_mode_info): ... this. All users updated.
19629 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
19630 All users updated.
19631 (initial_mode): Rename to ...
19632 (initial_vbe_mode): ... this. All users updated.
19633 (mode_in_use): Rename to ..
19634 (vbe_mode_in_use): ... this. All users updated.
19635 (mode_list): Rename to ..
19636 (vbe_mode_list): ... this. All users updated.
19637 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
19638 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
19639 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
19640 'mode_list_size' to 'vbe_mode_list_size'.
19641 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
19642 'best_mode_info' to 'best_vbe_mode_info' and
19643 'best_mode' to 'best_vbe_mode'
19644
19645 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19646
19647 Remove duplicate grub_video_fb_get_video_ptr.
19648
19649 * include/grub/fbutil.h (get_data_ptr): Rename to ...
19650 (grub_video_fb_get_video_ptr): ... this.
19651 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
19652 * video/fb/fbutil.c: Add comment about addressing.
19653 (get_data_ptr): Rename to ...
19654 (grub_video_fb_get_video_ptr): ... this. All users updated.
19655 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
19656
19657 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19658
19659 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
19660 grub_dprintf() that was just added.
19661
19662 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19663
19664 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
19665 (DEFAULT_VIDEO_MODE): Remove macros.
19666 (grub_linux_boot): Remove assumption that Linux has FB support,
19667 and use "text" as default video mode.
19668
19669 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
19672 grub_dprintf.
19673 * fs/fat.c (grub_fat_read_data): Likewise.
19674
19675 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19676
19677 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
19678 payload.
19679 (grub_module): Likewise.
19680
19681 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19682
19683 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
19684 mbi->cmdline but free playground.
19685
19686 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19687
19688 Handle group offset on UFS1.
19689
19690 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
19691 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
19692
19693 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19694
19695 Split ufs.mod into ufs1.mod and ufs2.mod.
19696
19697 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
19698 (grub_fstest_SOURCES): Likewise.
19699 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
19700 (ufs_mod_SOURCES): Remove.
19701 (ufs_mod_CFLAGS): Likewise.
19702 (ufs_mod_LDFLAGS): Likewise.
19703 (ufs1_mod_SOURCES): New variable.
19704 (ufs1_mod_CFLAGS): Likewise.
19705 (ufs1_mod_LDFLAGS): Likewise.
19706 (ufs2_mod_SOURCES): New variable.
19707 (ufs2_mod_CFLAGS): Likewise.
19708 (ufs2_mod_LDFLAGS): Likewise.
19709 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
19710 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19711 Likewise.
19712 (grub_emu_SOURCES): Likewise.
19713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19714 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19715 (grub_setup_SOURCES): Likewise.
19716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19717 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
19718 (grub_setup_SOURCES): Likewise.
19719 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19720 Likewise.
19721 * fs/ufs2.c: New file.
19722 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
19723
19724 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19725
19726 Framebuffer split.
19727
19728 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
19729 subsystem at the end.
19730 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
19731 (video_fb_mod_SOURCES): New variable.
19732 (video_fb_mod_CFLAGS): Likewise.
19733 (video_fb_mod_LDFLAGS): Likewise.
19734 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
19735 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
19736 * video/i386/pc/vbeblit.c: Moved from here ...
19737 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
19738 * video/i386/pc/vbefill.c: Moved from here ...
19739 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
19740 * video/i386/pc/vbeutil.c: Moved from here ...
19741 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
19742 * include/grub/i386/pc/vbeblit.h: Moved from here ...
19743 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
19744 * include/grub/i386/pc/vbefill.h: Moved from here ...
19745 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
19746 * include/grub/i386/pc/vbeutil.h: Moved from here ...
19747 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
19748 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
19749 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
19750 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
19751 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
19752 (grub_video_adapter): Added 'get_info_and_fini'.
19753 (grub_video_get_info_and_fini): New prototype.
19754 (grub_video_set_mode): make modestring const char *.
19755 * loader/i386/linux.c (grub_linux_setup_video): Use
19756 grub_video_get_info_and_fini.
19757 (grub_linux_boot): Move modesetting just before booting.
19758 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
19759 grub_video_get_info_and_fini.
19760 * video/i386/pc/vbe.c: Moved framebuffer part ...
19761 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
19762 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
19763 grub_video_fbstd_colors and grub_video_fb_set_palette.
19764 (grub_video_vbe_init): Clear 'framebuffer' variable and use
19765 grub_video_fb_init.
19766 (grub_video_vbe_fini): Use grub_video_fb_fini.
19767 (grub_video_vbe_setup): Use framebuffer.render_target instead of
19768 render_target and use grub_video_fb_set_active_render_target and
19769 grub_video_fb_set_palette.
19770 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
19771 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
19772 (grub_video_vbe_adapter): Use framebuffer.
19773 * video/video.c (grub_video_get_info_and_fini): New function.
19774 (grub_video_set_mode): Make modestring const char *.
19775 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
19776 values are already initialised.
19777
19778 2009-08-14 Pavel Roskin <proski@gnu.org>
19779
19780 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
19781 ABS and APPLE_CC.
19782 * boot/i386/pc/diskboot.S: Likewise.
19783 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
19784 sectors allow compilation on MacOSX.
19785 * conf/i386-pc.rmk: Enable unconditional compilation of
19786 lnxboot.img.
19787
19788 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
19789
19790 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
19791 * util/grub.d/00_header.in: Enter interruptible sleep if
19792 GRUB_HIDDEN_TIMEOUT is set.
19793
19794 2009-08-13 Yves Blusseau <blusseau@zetam.org>
19795
19796 * include/grub/symbol.h: Add the LOCAL macro.
19797 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
19798 starting with "L_".
19799
19800 2009-08-13 Pavel Roskin <proski@gnu.org>
19801
19802 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
19803 any modern compilers we support.
19804
19805 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
19806 Use local labels starting with "L_" so that Apple assembler
19807 knows they are local.
19808
19809 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
19810
19811 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
19812 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
19813 (bsd_kernel_types): ... this enum.
19814
19815 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
19816 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
19817 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
19818
19819 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
19820 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
19821 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
19822 messages.
19823
19824 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19825
19826 * util/grub-dumpdevtree: Moved from here ...
19827 * util/i386/efi/grub-dumpdevtree: ... to here.
19828 (hexify): New function. Converts a string to its hex version.
19829 Generate hex versions of "efi" and "device-properties" by calling
19830 hexify() on the ASCII strings rather than by hardcoding numbers.
19831
19832 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19833
19834 * fs/jfs.c: Update copyright year.
19835
19836 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19837
19838 * util/grub.d/00_header.in: Fix a comment.
19839 * util/grub.d/10_linux.in: Likewise.
19840 * util/grub.d/10_windows.in: Likewise.
19841 * util/grub.d/10_hurd.in: Likewise.
19842
19843 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19844
19845 * util/grub-mkconfig.in: Allow the user to specify the used font
19846 with GRUB_FONT.
19847
19848 2009-08-08 Pavel Roskin <proski@gnu.org>
19849
19850 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
19851 available, xfs.mod needs it now.
19852
19853 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
19854 the "g" modifier in sed when the intention is to strip something
19855 once. This fixes comparison of kernels with multiple dashes.
19856
19857 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
19858 on it. Add missing space before closing bracket. Fix
19859 misleading formatting.
19860
19861 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19862
19863 * docs/grub.texi: Major overhaul. Remove all sections that are
19864 specific to GRUB Legacy, or mostly composed of Legacy-specific
19865 information.
19866
19867 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19868
19869 * docs/version.texi: New file. Provides version information for
19870 grub.texi.
19871
19872 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19873
19874 * docs/grub.texi: Update CVS information to SVN.
19875 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
19876
19877 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19878
19879 * util/grub-mkconfig.in: Remove a wrong `fi'.
19880
19881 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19882
19883 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
19884 (grub_jfs_uuid): New function.
19885 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
19886
19887 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19888
19889 * util/grub-mkconfig_lib.in (font_path): Move the functionality
19890 of it to ...
19891 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
19892 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
19893
19894 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19895
19896 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
19897 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
19898 Update all users.
19899
19900 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
19901 not just "vmlinu[zx]".
19902 Moved from here ...
19903 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
19904 all users.
19905
19906 * util/grub.d/10_linux.in (find_latest): Moved from here ...
19907 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
19908 all users.
19909
19910 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19911
19912 * util/grub.d/10_freebsd.in: Use an absolute device path for
19913 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
19914
19915 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
19916
19917 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
19918 handling of multiple abstraction modules.
19919
19920 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
19921
19922 Fix a bug resulting in black screen when loading Linux using a
19923 packed video mode.
19924
19925 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
19926 function.
19927
19928 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
19929 (grub_vbe_bios_getset_dac_palette_width): New function.
19930 (grub_vbe_bios_get_dac_palette_width)
19931 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
19932 grub_vbe_bios_getset_dac_palette_width()).
19933
19934 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
19935 check for return status.
19936 (grub_vbe_get_video_mode_info): When getting information for a packed
19937 mode (<= 8 bpp), obtain DAC palette width using
19938 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
19939 {red,green,blue}_mark_size.
19940
19941 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
19942
19943 * commands/search.c (options): Fix help output to match actual code.
19944
19945 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
19946
19947 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
19948 of homegrown code.
19949
19950 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19951
19952 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
19953 on XFS or ReiserFS.
19954
19955 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19956
19957 Support Apple partition map with sector size different from 512 bytes.
19958
19959 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
19960 (apple_partition_map_iterate): Respect 'aheader.blocksize'
19961 and 'apart.partmap_size'.
19962
19963 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19964 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
19965
19966 Fix cpuid command.
19967
19968 * commands/i386/cpuid.c (options): New variable.
19969 (grub_cmd_cpuid): Return real error.
19970 (GRUB_MOD_INIT(cpuid)): Declare options.
19971
19972 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
19973
19974 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
19975 valid.
19976
19977 2009-07-31 Bean <bean123ch@gmail.com>
19978
19979 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
19980 log2_inode.
19981 (grub_fshelp_node): Move inode field to the end.
19982 (grub_xfs_data): Remove inode field.
19983 (grub_xfs_inode_block): Calculate inode size using sblock.
19984 (grub_xfs_inode_offset): Likewise.
19985 (grub_xfs_read_inode): Calculate inode size using sblock.
19986 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
19987 (grub_xfs_iterate_dir): Calculate inode size using sblock.
19988 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
19989 to match inode size.
19990 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
19991 not accessible when data is null.
19992 (grub_xfs_open): Likewise.
19993
19994 2009-07-31 Bean <bean123ch@gmail.com>
19995
19996 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
19997 Don't change pv->disk if it's already set.
19998
19999 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
20000 (grub_raid_register): ... here.
20001 (grub_raid_rescan): Removed.
20002
20003 * include/grub/raid.h (grub_raid_rescan): Removed.
20004
20005 * util/grub-fstest.c: Remove include file <grub/raid.h>.
20006 (fstest): Replace grub_raid_rescan with module fini function followed
20007 by init function.
20008
20009 * util/grub-probe.c: Add include file <grub/raid.h>.
20010 (probe_raid_level): New function.
20011 (probe): Detect abstraction by walking the disk device, support two
20012 level of abstraction (LVM on RAID) when detecting partition map.
20013
20014 2009-07-31 Pavel Roskin <proski@gnu.org>
20015
20016 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
20017 to grub_zalloc(), it was erroneous.
20018 Reported by Bean <bean123ch@gmail.com>
20019
20020 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
20023 embedding zone, not only the first one.
20024
20025 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
20026
20027 * term/gfxterm.c (clear_char): New function.
20028 (grub_virtual_screen_setup): Use clear_char.
20029 (scroll_up): Likewise.
20030 (grub_virtual_screen_cls): Likewise.
20031
20032 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
20033
20034 * util/deviceiter.c (get_acceleraid_disk_name): New static
20035 function.
20036 (grub_util_iterate_devices): Handle Accelraid devices.
20037 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
20038
20039 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
20040
20041 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
20042 separator for the suggested gfxpayload string (';' collides with the
20043 parser and needs escaping).
20044
20045 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
20048 Clear direction flag before jumping to OS.
20049 (grub_multiboot2_real_boot): Likewise.
20050
20051 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
20052
20053 * util/i386/pc/grub-install: Fix parsing of --disk-module
20054 option.
20055
20056 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
20057
20058 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
20059 when embedding.
20060
20061 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
20062
20063 * util/grub-mkconfig.in (package_version): New variable.
20064 Use it do display the version.
20065
20066 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
20067
20068 * kern/file.c (grub_file_open): Revert to previous check with
20069 grub_errno.
20070
20071 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
20072
20073 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
20074 from help line. It's out of sync with code.
20075
20076 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
20079 entries on failed boot.
20080
20081 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
20082
20083 * kern/file.c (grub_file_open): Fix an error check.
20084
20085 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
20086
20087 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
20088 partition map couldn't be identified.
20089
20090 2009-07-23 Pavel Roskin <proski@gnu.org>
20091
20092 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
20093 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
20094 case of little endian words becomes just an optimization.
20095 Respect const modifier.
20096 (md5_final): Use code that doesn't depend on endianness.
20097
20098 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
20099 to avoid loss of upper bits if align is unsigned and shorter
20100 than addr.
20101
20102 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 UUID support for UFS
20105
20106 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
20107 (grub_ufs_uuid): New function.
20108 (grub_ufs_fs): add .uuid
20109
20110 2009-07-21 Pavel Roskin <proski@gnu.org>
20111
20112 * kern/dl.c (grub_dl_check_header): Make static.
20113
20114 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
20115
20116 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
20117 add drivemap for Vista. It breaks Windows 7.
20118
20119 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
20122 128 bytes
20123
20124 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20125
20126 Add BFS support
20127
20128 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
20129 (grub_fstest_SOURCES): Likewise.
20130 (pkglib_MODULES): Add befs.mod.
20131 (befs_mod_SOURCES): New variable.
20132 (befs_mod_CFLAGS): Likewise.
20133 (befs_mod_LDFLAGS): Likewise.
20134 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20135 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20136 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20137 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20138 (grub_setup_SOURCES): Likewise.
20139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20140 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20141 (grub_setup_SOURCES): Likewise.
20142 * fs/befs.c: New file.
20143 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
20144 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
20145 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
20146 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
20147 (B_KEY_INDEX_ALIGN): New declaration.
20148 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
20149 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
20150 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
20151 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
20152 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
20153 (grub_afs_mount) [MODE_BFS]: Likewise.
20154 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
20155 (grub_afs_fs): Use GRUB_AFS_FSNAME
20156 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
20157 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
20158 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
20159 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
20160
20161 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
20162
20163 * util/getroot.c (find_root_device): Add support for MacOSX.
20164 * util/hostdisk.c: Likewise.
20165
20166 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20167
20168 * font/font.c (find_glyph): Check whether a font is present to avoid
20169 segmentation fault.
20170
20171 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
20172
20173 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
20174
20175 2009-07-20 Pavel Roskin <proski@gnu.org>
20176
20177 * configure.ac: Trim excessively wordy excuses.
20178
20179 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20180
20181 Add symlink, mtime and label support to AtheFS.
20182
20183 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
20184 (grub_afs_iterate_dir): Handle symlinks.
20185 (grub_afs_open): Use grub_afs_read_symlink.
20186 (grub_afs_dir): Likewise.
20187 Pass mtime.
20188 (grub_afs_label): New function.
20189 (grub_afs_fs): Add grub_afs_label.
20190 (grub_afs_read_symlink): New function.
20191
20192 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20193
20194 Fix AtheFS support.
20195
20196 * fs/afs.c: Fix comments style.
20197 (grub_afs_blockrun): Declare as packed.
20198 (grub_afs_datastream): Likewise.
20199 (grub_afs_bnode): Likewise.
20200 (grub_afs_btree): Likewise.
20201 (grub_afs_sblock): Likewise.
20202 Declare `name' as char.
20203 (grub_afs_inode): Declare as packed.
20204 Change void *vnode to grub_uint32_t unused.
20205 (grub_afs_iterate_dir): Check that key_size is positive.
20206 (grub_afs_mount): Don't read superblock twice.
20207 (grub_afs_dir): Don't free node in case of error,
20208 grub_fshelp_find_file already handles this.
20209 (grub_afs_open): Likewise.
20210
20211 2009-07-19 Pavel Roskin <proski@gnu.org>
20212
20213 * Makefile.in: Remove LIBLZO and enable_lzo.
20214 * conf/i386-pc.rmk: Remove lzo support.
20215 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
20216 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
20217 support.
20218 * kern/i386/pc/lzo1x.S: Remove.
20219 * kern/i386/pc/startup.S: Remove lzo support.
20220 * util/i386/pc/grub-mkimage.c: Likewise.
20221
20222 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
20223
20224 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
20225 * fs/xfs.c (grub_xfs_dir): Likewise.
20226 * fs/afs.c (grub_afs_dir): Likewise.
20227 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
20228 (grub_iso9660_open): Likewise.
20229 * fs/jfs.c (grub_jfs_open): Likewise.
20230 * fs/ext2.c (grub_ext2_dir): Likewise.
20231 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
20232 * script/sh/lexer.c (grub_script_yylex): Likewise.
20233
20234 2009-07-16 Pavel Roskin <proski@gnu.org>
20235
20236 * configure.ac: Never add "-c" to CFLAGS.
20237
20238 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
20239
20240 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
20241 grub_cv_cc_efiemu should be used.
20242
20243 * configure.ac: Typo fixes.
20244
20245 * kern/mm.c (grub_zalloc): New function.
20246 (grub_debug_zalloc): Likewise.
20247 * include/grub/mm.h: Declare grub_zalloc() and
20248 grub_debug_zalloc().
20249 * util/misc.c (grub_zalloc): New function.
20250 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
20251 instead of grub_malloc(), remove unneeded initializations.
20252 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
20253 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
20254 * commands/parttool.c (grub_cmd_parttool): Likewise.
20255 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20256 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
20257 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
20258 * disk/usbms.c (grub_usbms_finddevs): Likewise.
20259 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
20260 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
20261 (grub_cmd_efiemu_pnvram): Likewise.
20262 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
20263 * fs/iso9660.c (grub_iso9660_mount): Likewise.
20264 (grub_iso9660_iterate_dir): Likewise.
20265 * fs/jfs.c (grub_jfs_opendir): Likewise.
20266 * fs/ntfs.c (list_file): Likewise.
20267 (grub_ntfs_mount): Likewise.
20268 * kern/disk.c (grub_disk_open): Likewise.
20269 * kern/dl.c (grub_dl_load_core): Likewise.
20270 * kern/elf.c (grub_elf_file): Likewise.
20271 * kern/env.c (grub_env_context_open): Likewise.
20272 (grub_env_set): Likewise.
20273 (grub_env_set_data_slot): Likewise.
20274 * kern/file.c (grub_file_open): Likewise.
20275 * kern/fs.c (grub_fs_blocklist_open): Likewise.
20276 * loader/i386/multiboot.c (grub_module): Likewise.
20277 * loader/xnu.c (grub_xnu_create_key): Likewise.
20278 (grub_xnu_create_value): Likewise.
20279 * normal/main.c (grub_normal_add_menu_entry): Likewise.
20280 (read_config_file): Likewise.
20281 * normal/menu_entry.c (make_screen): Likewise.
20282 * partmap/sun.c (sun_partition_map_iterate): Likewise.
20283 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
20284 * script/sh/script.c (grub_script_parse): Likewise.
20285 * video/bitmap.c (grub_video_bitmap_create): Likewise.
20286 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
20287 * video/readers/png.c (grub_png_output_byte): Likewise.
20288 (grub_video_reader_png): Likewise.
20289
20290 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20291
20292 Enable all targets that can be built by default
20293
20294 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
20295 grub-mkfont and grub-fstest if they can be built
20296
20297 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 Fix hang and segmentation fault in grub-emu-usb
20300
20301 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
20302 * util/usb.c (grub_libusb_devices): likewise
20303 (grub_libusb_init): rename to ...
20304 (GRUB_MOD_INIT (libusb)):...this
20305 (grub_libusb_fini): rename to ..
20306 (GRUB_MOD_FINI (libusb)):...this
20307 * disk/usbms.c (grub_usbms_transfer): fix retry logic
20308 * include/grub/disk.h (grub_raid_init): removed, it's useless
20309 (grub_raid_fini): likewise
20310 (grub_lvm_init): likewise
20311 (grub_lvm_fini): likewise
20312 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
20313 by grub_init_all
20314
20315 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20316
20317 Fix libusb
20318
20319 * Makefile.in (LIBUSB): new macro
20320 * genmk.rb (Utility/print_tail): new method
20321 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
20322 (top level): call util.print_tail at the end.
20323
20324 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 Make FreeBSD accept zpool.cache
20327
20328 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
20329 type is /boot/zfs/zpool.cache
20330
20331 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20332
20333 Fix 64-bit efiemu
20334
20335 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
20336 correct wrong typedef
20337 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
20338
20339 2009-07-15 Pavel Roskin <proski@gnu.org>
20340
20341 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
20342 * kern/disk.c (struct grub_disk_cache): Likewise.
20343
20344 * commands/probe.c (options): Typo fix.
20345
20346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
20347 Increase to 0x5a to accommodate FAT32. Adjust other offsets
20348 accordingly.
20349 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
20350
20351 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
20352 the end of "Error" to make the message more readable.
20353
20354 * boot/i386/pc/boot.S (kernel_segment): Remove.
20355 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
20356 for destination.
20357
20358 * boot/i386/pc/boot.S (boot_version): Remove.
20359 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
20360 Remove.
20361
20362 * include/grub/i386/pc/boot.h: Sort all offsets.
20363 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
20364 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
20365 * boot/i386/pc/boot.S: Assert location of every offset listed in
20366 include/grub/i386/pc/boot.h.
20367
20368 2009-07-13 Pavel Roskin <proski@gnu.org>
20369
20370 * include/grub/i386/coreboot/machine.h: Rename
20371 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
20372 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
20373 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
20374
20375 * kern/dl.c: Force native word size to suppress warnings when
20376 compiling grub-emu.
20377
20378 * kern/device.c (grub_device_iterate): Change struct part_ent to
20379 hold the name, not a pointer to it. Use one grub_malloc() per
20380 partition, not two. Free partition_name if grub_malloc() fails.
20381 Set ents to NULL only before grub_partition_iterate() is called.
20382
20383 2009-07-11 Bean <bean123ch@gmail.com>
20384
20385 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
20386 childname.
20387
20388 2009-07-10 Bean <bean123ch@gmail.com>
20389 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
20390
20391 * kern/ieee1275/openfw.c (grub_children_iterate)
20392 (grub_devalias_iterate): Fix size evaluation for property or path
20393 strings, which was broken since r2132.
20394
20395 2009-07-07 Pavel Roskin <proski@gnu.org>
20396
20397 * commands/search.c (search_file): Merge into ...
20398 (search_fs): ... this. Accept search type as argument.
20399 (grub_cmd_search): Pass search type to search_fs().
20400
20401 * include/grub/util/console.h: New file.
20402 * util/console.c: Use it instead of grub/machine/console.h.
20403 * util/grub-emu.c: Likewise.
20404
20405 * lib/arg.c (find_long_option): Remove.
20406 (find_long): Add `len' argument, make `s' const char *.
20407 (grub_arg_parse): Parse long options in place, not in a
20408 temporary buffer.
20409
20410 2009-07-06 Pavel Roskin <proski@gnu.org>
20411
20412 * commands/search.c (search_fs): Fix potential NULL pointer
20413 dereference.
20414
20415 * commands/search.c (search_fs): Replace QUID macro with quid_fn
20416 function pointer.
20417
20418 2009-07-06 Daniel Mierswa <impulze@impulze.org>
20419
20420 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
20421 comparison.
20422
20423 2009-07-05 Pavel Roskin <proski@gnu.org>
20424
20425 * include/grub/i386/linux.h (struct linux_kernel_params):
20426 Restore padding3, it's still needed.
20427
20428 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
20429 FreeBSD.
20430 * util/osdetect.lua: Likewise.
20431
20432 2009-07-05 Bean <bean123ch@gmail.com>
20433
20434 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
20435
20436 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
20437 (grub_lua_getenv): Likewise.
20438 (grub_lua_setenv): Likewise.
20439 (save_errno): New function.
20440 (push_result): Likewise.
20441 (grub_lua_enum_device): Likewise.
20442 (grub_lua_enum_file): Likewise.
20443 (grub_lua_file_open): Likewise.
20444 (grub_lua_file_close): Likewise.
20445 (grub_lua_file_seek): Likewise.
20446 (grub_lua_file_read): Likewise.
20447 (grub_lua_file_getline): Likewise.
20448 (grub_lua_file_getsize): Likewise.
20449 (grub_lua_file_getpos): Likewise.
20450 (grub_lua_file_eof): Likewise.
20451 (grub_lua_file_exist): Likewise.
20452 (grub_lua_add_menu): Likewise.
20453
20454 * script/lua/grub_lua.h (isupper): New inline function.
20455 (islower): Likewise.
20456 (ispunct): Likewise.
20457 (isxdigit): Likewise.
20458 (strcspn): Change to normal function.
20459 (strpbkr): New function declaration.
20460 (memchr): Likewise.
20461
20462 * script/lua/grub_main.c (scan_str): New function.
20463 (strcspn): Likewise.
20464 (strpbrk): Likewise.
20465 (memchr): Likewise.
20466
20467 * script/lua/linit.c (lualibs): Enable the string library.
20468
20469 * util/osdetect.lua: New file.
20470
20471 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
20472
20473 * include/grub/i386/linux.h (struct linux_kernel_params): Add
20474 `capabilities' member.
20475
20476 2009-07-02 Pavel Roskin <proski@gnu.org>
20477
20478 * genparttoollist.sh: Add missing newline at the end.
20479
20480 2009-07-01 Pavel Roskin <proski@gnu.org>
20481
20482 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
20483
20484 * util/hostdisk.c (open_device): Remove `const' from
20485 `sysctl_size', as sysctlbyname() can change it (in this case it
20486 doesn't actually happen).
20487
20488 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
20489 using signed long int constants.
20490
20491 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
20492 constant to avoid a warning on FreeBSD.
20493
20494 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
20495 where it's needed.
20496
20497 * Makefile.in: Install include/grub/machine symlink.
20498
20499 * Makefile.in: When installing symlinks, use "cp -fR", which
20500 works on FreeBSD and MacOSX.
20501 From Yves Blusseau <cl7m42e02@sneakemail.com>
20502
20503 * kern/dl.c (grub_dl_resolve_symbol): Make static.
20504 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
20505
20506 * util/misc.c: Move grub_reboot() and grub_halt() ...
20507 * util/grub-emu.c: ... here. Make main_env static.
20508 * include/grub/util/misc.h: Remove main_env.
20509
20510 * kern/mm.c: Use correct format to print size_t.
20511
20512 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
20513 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
20514 * kern/powerpc/dl.c: Likewise.
20515 * kern/sparc64/dl.c: Likewise.
20516 * kern/x86_64/dl.c: Likewise.
20517
20518 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20519
20520 Fix grub-emu build on sparc64-ieee1275.
20521
20522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
20523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
20524
20525 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20526
20527 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
20528 (grub_reboot, grub_halt): New functions.
20529
20530 * util/i386/pc/misc.c: Delete. Update all users.
20531 * util/sparc64/ieee1275/misc.c: Likewise.
20532 * util/powerpc/ieee1275/misc.c: Likewise.
20533
20534 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20535
20536 * conf/i386.rmk (setjmp_mod_SOURCES)
20537 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
20538 * conf/common.rmk (setjmp_mod_SOURCES)
20539 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
20540 to use $(target_cpu).
20541 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
20542 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
20543 * conf/powerpc-ieee1275.rmk: Likewise.
20544 * conf/sparc64-ieee1275.rmk: Likewise.
20545
20546 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
20547 $(target_cpu) for kern/$(target_cpu)/dl.c.
20548 * conf/i386-efi.rmk: Likewise.
20549 * conf/i386-ieee1275.rmk: Likewise.
20550 * conf/x86_64-efi.rmk: Likewise.
20551 * conf/i386-coreboot.rmk: Likewise.
20552 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
20553 $(target_cpu) for kern/$(target_cpu)/dl.c and for
20554 kern/$(target_cpu)/cache.S.
20555 * conf/sparc64-ieee1275.rmk: Likewise.
20556
20557 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20558
20559 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
20560 type to `grub_uint8_t', and adjust `padding9' accordingly.
20561
20562 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20563
20564 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
20565
20566 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
20567 assembly in final jump, using register constraints.
20568
20569 (grub_linux_boot): For text mode, initialize `have_vga' using
20570 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
20571
20572 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
20573 right before the final jump.
20574
20575 Set `video_mode' to 0x3.
20576
20577 Document initialization of `video_page', `video_mode' and
20578 `video_ega_bx'.
20579
20580 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20581
20582 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
20583 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
20584 and set GRUB_LINUX_FLAG_QUIET appropriately.
20585
20586 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20587
20588 Fix build on Debian / sparc.
20589
20590 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
20591
20592 2009-06-28 Pavel Roskin <proski@gnu.org>
20593
20594 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
20595 fix a warning.
20596
20597 * util/grub.d/10_linux.in: Match SUSE style initrd names.
20598
20599 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20600
20601 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
20602 `err'.
20603
20604 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20605
20606 Revert r2338.
20607
20608 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
20609 file can't be opened. grub_file_open() is already supposed to set
20610 grub_errno / grub_errmsg appropriately.
20611 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20612
20613 2009-06-27 Pavel Roskin <proski@gnu.org>
20614 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20615
20616 * include/grub/dl.h: Include grub/elf.h.
20617 (struct grub_dl): Add symtab field.
20618 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
20619 GRUB_MODULES_MACHINE_READONLY.
20620 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
20621 of the header for read-only modules.
20622 (grub_dl_unload): Free mod->symtab for read-only modules.
20623 * kern/i386/dl.c: Use mod->symtab.
20624 * kern/powerpc/dl.c: Likewise.
20625 * kern/sparc64/dl.c: Likewise.
20626 * kern/x86_64/dl.c: Likewise.
20627
20628 * conf/i386-qemu.rmk: New file.
20629 * kern/i386/qemu/startup.S: Likewise.
20630 * kern/i386/qemu/mmap.c: Likewise.
20631 * boot/i386/qemu/boot.S: Likewise.
20632 * include/grub/i386/qemu/time.h: Likewise.
20633 * include/grub/i386/qemu/serial.h: Likewise.
20634 * include/grub/i386/qemu/kernel.h: Likewise.
20635 * include/grub/i386/qemu/console.h: Likewise.
20636 * include/grub/i386/qemu/boot.h: Likewise.
20637 * include/grub/i386/qemu/init.h: Likewise.
20638 * include/grub/i386/qemu/machine.h: Likewise.
20639 * include/grub/i386/qemu/loader.h: Likewise.
20640 * include/grub/i386/qemu/memory.h: Likewise.
20641
20642 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
20643 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
20644 [qemu] (pkglib_IMAGES): Add `boot.img'.
20645 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
20646 [qemu] (boot_img_FORMAT): New variables.
20647 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
20648 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
20649 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
20650 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
20651 [qemu] (kernel_img_FORMAT): New variables.
20652
20653 * configure.ac: Recognise `i386-qemu'.
20654
20655 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
20656 (for no compression).
20657 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
20658 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
20659 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
20660 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
20661 ifdefs).
20662
20663 2009-06-27 Pavel Roskin <proski@gnu.org>
20664
20665 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
20666 read.
20667 * efiemu/prepare32.c: Likewise.
20668 * efiemu/prepare64.c: Likewise.
20669
20670 2009-06-26 Pavel Roskin <proski@gnu.org>
20671
20672 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
20673 * include/grub/elf.h: Define symbols without "32" or "64" based
20674 on GRUB_TARGET_WORDSIZE.
20675 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
20676 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
20677 ELF definitions.
20678 * efiemu/loadcore64.c: Likewise.
20679 * loader/i386/bsd32.c: Likewise.
20680 * loader/i386/bsd64.c: Likewise.
20681 * kern/dl.c: Remove own ELF definitions.
20682 * util/i386/efi/grub-mkimage.c: Likewise.
20683
20684 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
20685
20686 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
20687 segment 0x0 unconditionally, because the reference generated by
20688 GAS is an absolute address.
20689
20690 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20691
20692 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
20693 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
20694
20695 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20696
20697 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
20698 indexes. Check for -f explicitly.
20699 (search_file): Improve error message.
20700 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
20701
20702 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20703
20704 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
20705 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
20706
20707 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20708
20709 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
20710 * conf/i386-ieee1275.rmk: Likewise.
20711 * conf/i386-coreboot.rmk: Likewise.
20712
20713 * kern/i386/pc/startup.S (grub_stop): Remove function.
20714 * kern/i386/ieee1275/startup.S: Likewise.
20715 * kern/i386/coreboot/startup.S: Likewise.
20716 * kern/i386/misc.S (grub_stop): New function.
20717
20718 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20719
20720 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
20721 * kern/i386/realmode.S (real_to_prot): ... to here.
20722
20723 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20724
20725 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
20726 with `kernel.img'.
20727 (kernel_elf_SOURCES): Rename to ...
20728 (kernel_img_SOURCES): ... this.
20729 (kernel_elf_HEADERS): Rename to ...
20730 (kernel_img_HEADERS): ... this. Update all users.
20731 (kernel_elf_ASFLAGS): Rename to ...
20732 (kernel_img_ASFLAGS): ... this.
20733 (kernel_elf_CFLAGS): Rename to ...
20734 (kernel_img_CFLAGS): ... this.
20735 (kernel_elf_LDFLAGS): Rename to ...
20736 (kernel_img_LDFLAGS): ... this.
20737 * conf/i386-coreboot.rmk: Likewise.
20738 * conf/powerpc-ieee1275.rmk: Likewise.
20739
20740 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
20741 with "kernel.img".
20742
20743 2009-06-21 Pavel Roskin <proski@gnu.org>
20744
20745 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
20746 to match nested functions.
20747 * loader/sparc64/ieee1275/linux.c: Likewise.
20748
20749 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
20750
20751 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20752
20753 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
20754 all i386 platforms.
20755
20756 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20757
20758 Fix asm file handling on ELF, and remove workarounds.
20759
20760 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
20761 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
20762 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
20763 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
20764
20765 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
20766
20767 Load BSD ELF modules
20768
20769 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
20770 and loader/i386/bsd64.c
20771 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
20772 (FREEBSD_MODTYPE_ELF_MODULE): New definition
20773 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
20774 (grub_freebsd_load_elfmodule32): New declaration
20775 (grub_freebsd_load_elfmoduleobj64): Likewise
20776 (grub_freebsd_load_elf_meta32): Likewise
20777 (grub_freebsd_load_elf_meta64): Likewise
20778 (grub_freebsd_add_meta): Likewise
20779 (grub_freebsd_add_meta_module): Likewise
20780 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
20781 (grub_freebsd_add_meta_module): Likewise and move module-specific
20782 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
20783 (grub_cmd_freebsd): Add elf-kernel specific parts
20784 based on grub_freebsd_add_meta_module
20785 (grub_cmd_freebsd_module): Add type parsing moved from
20786 grub_freebsd_add_meta_module
20787 (grub_cmd_freebsd_module_elf): New function
20788 (cmd_freebsd_module_elf): New variable
20789 (GRUB_MOD_INIT): Register freebsd_module_elf
20790 * loader/i386/bsd32.c: New file
20791 * loader/i386/bsd64.c: Likewise
20792 * loader/i386/bsdXX.c: Likewise
20793 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
20794 (grub_elf64_load): Likewise
20795 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
20796 All users updated
20797 (grub_elf64_load_hook_t): Likewise
20798
20799 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
20800
20801 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
20802 variable.
20803 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
20804 don't write a menu entry for recovery mode.
20805
20806 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20807
20808 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
20809 after it's no longer needed.
20810
20811 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20812
20813 * include/grub/i386/loader.h (grub_linux_prot_size)
20814 (grub_linux_tmp_addr, grub_linux_real_addr)
20815 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
20816 GRUB_MACHINE_PCBIOS.
20817 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
20818 common grub_util_info() call to ...
20819 (generate_image): ... here.
20820 Fix use of uninitialized memory, comparison of signed with
20821 unsigned integers and memory leak.
20822 Remove bogus module address message.
20823
20824 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20825
20826 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
20827 grub_raid_register
20828 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
20829
20830 2009-06-19 Pavel Roskin <proski@gnu.org>
20831
20832 * configure.ac: Remove stray AC_MSG_CHECKING.
20833
20834 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 * disk/scsi.c (grub_scsi_open): use continue instead of big if
20837
20838 2009-06-18 Pavel Roskin <proski@gnu.org>
20839
20840 * conf/common.rmk: Add fs_file.mod.
20841 * disk/fs_file.c: New file.
20842 * include/grub/disk.h (enum grub_disk_dev_id): Add
20843 GRUB_DISK_DEVICE_FILE_ID.
20844
20845 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 Fix build with Apple's toolchain. Part 2
20848
20849 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
20850 a fake start
20851
20852 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20853
20854 Fix build with Apple's toolchain. Part 1
20855
20856 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
20857 for long calls
20858 * configure.ac: remove a leftover AC_MSG_RESULT
20859 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
20860 Apple's toolchain
20861
20862 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 Fix warnings
20865
20866 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
20867 (decomp_block): initialize ch
20868 use grub_memcpy instead of memcpy
20869
20870 2009-06-17 Pavel Roskin <proski@gnu.org>
20871
20872 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
20873 version, use declarations needed to use vga_text as the startup
20874 console.
20875
20876 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
20877 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
20878 the kernel.
20879 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
20880 and grub_at_keyboard_fini(), it's done on module load and
20881 unload.
20882
20883 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
20884
20885 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
20886 file can't be found.
20887 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20888
20889 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20890
20891 Fix newline handling
20892
20893 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
20894 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
20895 (grub_script_yylex): don't segfault on unterminated script
20896 newline terminates command and variable
20897
20898 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20899
20900 avoid double grub_adjust_range call. Bug reported by David Simner
20901
20902 * kern/disk.c (grub_disk_write): change to raw disk access before
20903 calling disk_read
20904
20905 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
20906
20907 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
20908 spaces, for the benefit of help2man.
20909 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20910
20911 2009-06-16 Pavel Roskin <proski@gnu.org>
20912
20913 * kern/i386/halt.c: Include grub/machine/init.h.
20914 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
20915
20916 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
20917
20918 * util/grub.d/30_os-prober.in: Use ${root} in the generated
20919 drivemap menuentry.
20920
20921 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
20922
20923 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
20924 `echo' command.
20925
20926 2009-06-16 Pavel Roskin <proski@gnu.org>
20927
20928 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
20929 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
20930 save %dx, we only need %dl and we never change it.
20931 * boot/i386/pc/cdboot.S: Don't set the root drive.
20932 * boot/i386/pc/pxeboot.S: Likewise.
20933 * include/grub/i386/pc/boot.h: Remove
20934 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
20935 GRUB_BOOT_MACHINE_DRIVE_CHECK.
20936 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
20937 * kern/i386/pc/init.c (make_install_device): Remove references
20938 to grub_root_drive.
20939 * kern/i386/pc/startup.S: Likewise.
20940 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
20941
20942 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 xnu_uuid command
20945
20946 * commands/xnu_uuid.c: new file
20947 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
20948 (xnu_uuid_mod_SOURCES): new variable
20949 (xnu_uuid_mod_CFLAGS): likewise
20950 (xnu_uuid_mod_LDFLAGS): likewise
20951 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20952 * conf/i386-ieee1275.rmk: likewise
20953 * conf/i386-pc.rmk: likewise
20954 * conf/powerpc-ieee1275.rmk: likewise
20955 * conf/sparc64-ieee1275.rmk: likewise
20956 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
20957
20958 2009-06-16 Pavel Roskin <proski@gnu.org>
20959
20960 * configure.ac: Avoid '==' in test command, it's not portable.
20961
20962 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20963
20964 Probe command
20965
20966 * commands/probe.c: new file
20967 * conf/common.rmk (pkglib_MODULES): add probe.mod
20968 (probe_mod_SOURCES): new variable
20969 (probe_mod_CFLAGS): likewise
20970 (probe_mod_LDFLAGS): likewise
20971 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20972 * conf/i386-ieee1275.rmk: likewise
20973 * conf/i386-pc.rmk: likewise
20974 * conf/powerpc-ieee1275.rmk: likewise
20975 * conf/sparc64-ieee1275.rmk: likewise
20976
20977 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 Fix handling of string like \"hello\" and "a
20980 b"
20981
20982 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
20983 (grub_script_yylex): fix parsing of quoting, escaping and newline
20984
20985 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
20988 handling
20989
20990 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
20991
20992 * util/grub-mkconfig.in: Fix parsing of --output option.
20993
20994 2009-06-12 Pavel Roskin <proski@gnu.org>
20995
20996 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
20997 genmk.rb don't need to be generated or installed.
20998
20999 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21000
21001 * commands/i386/pc/drivemap_int13h.S: add more comments
21002
21003 2009-06-11 Pavel Roskin <proski@gnu.org>
21004
21005 * Makefile.in (uninstall): Uninstall manuals.
21006
21007 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
21008 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
21009 and update-grub_lib in two places.
21010 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
21011
21012 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
21013 a compiler warning.
21014
21015 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
21016 `entry_lo' to fix variable shadowing.
21017
21018 2009-06-11 Christian Franke <franke@computer.org>
21019
21020 * kern/misc.c (__enable_execute_stack): Add missing return type
21021 to prevent gcc warning.
21022
21023 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
21024
21025 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
21026
21027 2009-06-11 Pavel Roskin <proski@gnu.org>
21028
21029 * Makefile.in: Don't rely on any scripts being executable.
21030 Always use $(SHELL) to run shell scripts.
21031
21032 * configure.ac: Always define ___main if using -nostdlib. This
21033 fixes tests on Cygwin.
21034
21035 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
21036
21037 UDF fix
21038
21039 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
21040 is in bytes and not in blocks
21041
21042 2009-06-11 Pavel Roskin <proski@gnu.org>
21043
21044 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
21045 warning.
21046
21047 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
21048
21049 * util/grub.d/30_os-prober.in: Fix a comment. Source
21050 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
21051 to set the root device. Place drivemap command in the generated
21052 chain entry.
21053
21054 2009-06-11 Pavel Roskin <proski@gnu.org>
21055
21056 * configure.ac: Remove host_m32. Issues with 64-bit utilities
21057 have long been resolved.
21058
21059 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
21060
21061 * util/grub.d/10_linux.in: Capitalise "Linux".
21062
21063 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
21064
21065 2009-06-11 Pavel Roskin <proski@gnu.org>
21066
21067 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
21068 fix a gcc warning and ensure that the function won't ever exit.
21069
21070 * kern/i386/ieee1275/init.c: Add missing prototype for
21071 grub_stop_floppy().
21072
21073 * loader/ieee1275/multiboot2.c [__i386__]: Include
21074 grub/cpu/multiboot.h.
21075
21076 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
21077 casts to short - they are not portable and cause warnings. Fix
21078 use of uninitialized values in input_buf. Use ARRAY_SIZE.
21079
21080 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 Drivemap fixes
21083
21084 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
21085 new function
21086 (grub_get_root_biosnumber_saved): new variable
21087 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
21088 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
21089 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
21090 %dx after the call if necessary
21091 * conf/common.rmk (pkglib_MODULES): remove boot.mod
21092 (boot_mod_SOURCES): remove
21093 (boot_mod_CFLAGS): remove
21094 (boot_mod_LDFLAGS): remove
21095 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
21096 (boot_mod_SOURCES): new variable
21097 (boot_mod_CFLAGS): likewise
21098 (boot_mod_LDFLAGS): likewise
21099 * conf/i386-efi.rmk: likewise
21100 * conf/i386-ieee1275.rmk: likewise
21101 * conf/i386-pc.rmk: likewise
21102 * conf/powerpc-ieee1275.rmk: likewise
21103 * conf/sparc64-ieee1275.rmk: likewise
21104 * conf/x86_64-efi.rmk: likewise
21105 * include/grub/i386/pc/biosnum.h: new file
21106 * lib/i386/pc/biosnum.c: likewise
21107 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
21108 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
21109 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
21110
21111 2009-06-10 Pavel Roskin <proski@gnu.org>
21112
21113 * io/gzio.c (test_header): Don't reuse one buffer for all data.
21114 Use separate variables. Read only the file size at the end, but
21115 not the checksum that we don't use.
21116
21117 * kern/file.c (grub_file_read): Use void pointer for the buffer.
21118 Adjust all callers.
21119
21120 * kern/ieee1275/openfw.c: Remove libc includes.
21121 * kern/ieee1275/cmain.c: Likewise.
21122 * include/grub/ieee1275/ieee1275.h: Likewise.
21123
21124 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
21125 compiler warnings.
21126
21127 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
21128
21129 * Makefile.in: Remove all trailing whitespace.
21130 * conf/i386-pc.rmk: Likewise.
21131 * conf/powerpc-ieee1275.rmk: Likewise.
21132 * conf/sparc64-ieee1275.rmk: Likewise.
21133 * docs/grub.texi: Likewise.
21134 * docs/texinfo.tex: Likewise.
21135 * disk/fs_uuid.c: Likewise.
21136 * disk/lvm.c: Likewise.
21137 * disk/scsi.c: Likewise.
21138 * disk/ata.c: Likewise.
21139 * disk/ieee1275/ofdisk.c: Likewise.
21140 * disk/i386/pc/biosdisk.c: Likewise.
21141 * disk/host.c: Likewise.
21142 * disk/raid.c: Likewise.
21143 * disk/efi/efidisk.c: Likewise.
21144 * disk/usbms.c: Likewise.
21145 * disk/memdisk.c: Likewise.
21146 * disk/loopback.c: Likewise.
21147 * kern/powerpc/dl.c: Likewise.
21148 * kern/device.c: Likewise.
21149 * kern/dl.c: Likewise.
21150 * kern/sparc64/dl.c: Likewise.
21151 * kern/ieee1275/ieee1275.c: Likewise.
21152 * kern/term.c: Likewise.
21153 * kern/fs.c: Likewise.
21154 * kern/i386/dl.c: Likewise.
21155 * kern/i386/pc/startup.S: Likewise.
21156 * kern/i386/pc/init.c: Likewise.
21157 * kern/i386/pc/mmap.c: Likewise.
21158 * kern/i386/pc/lzo1x.S: Likewise.
21159 * kern/i386/ieee1275/init.c: Likewise.
21160 * kern/i386/realmode.S: Likewise.
21161 * kern/i386/tsc.c: Likewise.
21162 * kern/partition.c: Likewise.
21163 * kern/corecmd.c: Likewise.
21164 * kern/file.c: Likewise.
21165 * kern/efi/efi.c: Likewise.
21166 * kern/efi/init.c: Likewise.
21167 * kern/efi/mm.c: Likewise.
21168 * kern/main.c: Likewise.
21169 * kern/err.c: Likewise.
21170 * kern/env.c: Likewise.
21171 * kern/disk.c: Likewise.
21172 * kern/generic/millisleep.c: Likewise.
21173 * kern/generic/rtc_get_time_ms.c: Likewise.
21174 * kern/misc.c: Likewise.
21175 * kern/parser.c: Likewise.
21176 * genmk.rb: Likewise.
21177 * configure.ac: Likewise.
21178 * boot/i386/pc/diskboot.S: Likewise.
21179 * boot/i386/pc/pxeboot.S: Likewise.
21180 * boot/i386/pc/boot.S: Likewise.
21181 * boot/i386/pc/lnxboot.S: Likewise.
21182 * boot/i386/pc/cdboot.S: Likewise.
21183 * parttool/pcpart.c: Likewise.
21184 * video/readers/tga.c: Likewise.
21185 * video/video.c: Likewise.
21186 * video/bitmap.c: Likewise.
21187 * lib/envblk.c: Likewise.
21188 * lib/i386/setjmp.S: Likewise.
21189 * fs/xfs.c: Likewise.
21190 * fs/afs.c: Likewise.
21191 * fs/fat.c: Likewise.
21192 * fs/ntfs.c: Likewise.
21193 * fs/udf.c: Likewise.
21194 * fs/affs.c: Likewise.
21195 * fs/iso9660.c: Likewise.
21196 * fs/hfs.c: Likewise.
21197 * fs/fshelp.c: Likewise.
21198 * fs/ext2.c: Likewise.
21199 * fs/jfs.c: Likewise.
21200 * fs/reiserfs.c: Likewise.
21201 * fs/hfsplus.c: Likewise.
21202 * fs/minix.c: Likewise.
21203 * fs/cpio.c: Likewise.
21204 * fs/sfs.c: Likewise.
21205 * fs/ufs.c: Likewise.
21206 * efiemu/prepare.c: Likewise.
21207 * efiemu/loadcore_common.c: Likewise.
21208 * efiemu/runtime/efiemu.sh: Likewise.
21209 * efiemu/runtime/efiemu.S: Likewise.
21210 * efiemu/runtime/efiemu.c: Likewise.
21211 * efiemu/pnvram.c: Likewise.
21212 * efiemu/main.c: Likewise.
21213 * efiemu/i386/pc/cfgtables.c: Likewise.
21214 * efiemu/i386/loadcore64.c: Likewise.
21215 * efiemu/i386/loadcore32.c: Likewise.
21216 * efiemu/loadcore.c: Likewise.
21217 * efiemu/symbols.c: Likewise.
21218 * efiemu/mm.c: Likewise.
21219 * include/grub/autoefi.h: Likewise.
21220 * include/grub/datetime.h: Likewise.
21221 * include/grub/term.h: Likewise.
21222 * include/grub/hfs.h: Likewise.
21223 * include/grub/lvm.h: Likewise.
21224 * include/grub/i386/tsc.h: Likewise.
21225 * include/grub/i386/linux.h: Likewise.
21226 * include/grub/i386/xnu.h: Likewise.
21227 * include/grub/i386/efiemu.h: Likewise.
21228 * include/grub/i386/pc/biosdisk.h: Likewise.
21229 * include/grub/i386/pc/memory.h: Likewise.
21230 * include/grub/i386/pc/vbe.h: Likewise.
21231 * include/grub/parttool.h: Likewise.
21232 * include/grub/video.h: Likewise.
21233 * include/grub/memory.h: Likewise.
21234 * include/grub/fs.h: Likewise.
21235 * include/grub/partition.h: Likewise.
21236 * include/grub/xnu.h: Likewise.
21237 * include/grub/efi/api.h: Likewise.
21238 * include/grub/efi/pe32.h: Likewise.
21239 * include/grub/efi/memory.h: Likewise.
21240 * include/grub/multiboot.h: Likewise.
21241 * include/grub/usbdesc.h: Likewise.
21242 * include/grub/multiboot2.h: Likewise.
21243 * include/grub/acpi.h: Likewise.
21244 * include/grub/efiemu/efiemu.h: Likewise.
21245 * include/grub/disk.h: Likewise.
21246 * include/grub/ieee1275/ieee1275.h: Likewise.
21247 * include/grub/net.h: Likewise.
21248 * include/grub/machoload.h: Likewise.
21249 * include/grub/macho.h: Likewise.
21250 * include/multiboot.h: Likewise.
21251 * genmoddep.awk: Likewise.
21252 * normal/main.c: Likewise.
21253 * normal/menu_entry.c: Likewise.
21254 * normal/menu_viewer.c: Likewise.
21255 * normal/completion.c: Likewise.
21256 * normal/cmdline.c: Likewise.
21257 * normal/misc.c: Likewise.
21258 * normal/datetime.c: Likewise.
21259 * bus/usb/usbtrans.c: Likewise.
21260 * bus/usb/ohci.c: Likewise.
21261 * bus/usb/uhci.c: Likewise.
21262 * bus/usb/usb.c: Likewise.
21263 * mmap/efi/mmap.c: Likewise.
21264 * mmap/i386/pc/mmap_helper.S: Likewise.
21265 * mmap/i386/pc/mmap.c: Likewise.
21266 * mmap/i386/mmap.c: Likewise.
21267 * mmap/i386/uppermem.c: Likewise.
21268 * mmap/mmap.c: Likewise.
21269 * commands/acpi.c: Likewise.
21270 * commands/echo.c: Likewise.
21271 * commands/blocklist.c: Likewise.
21272 * commands/loadenv.c: Likewise.
21273 * commands/usbtest.c: Likewise.
21274 * commands/boot.c: Likewise.
21275 * commands/parttool.c: Likewise.
21276 * commands/search.c: Likewise.
21277 * commands/cat.c: Likewise.
21278 * commands/i386/pc/play.c: Likewise.
21279 * commands/i386/pc/drivemap.c: Likewise.
21280 * commands/i386/pc/vbeinfo.c: Likewise.
21281 * commands/i386/pc/acpi.c: Likewise.
21282 * commands/i386/pc/vbetest.c: Likewise.
21283 * commands/ls.c: Likewise.
21284 * commands/cmp.c: Likewise.
21285 * commands/test.c: Likewise.
21286 * commands/efi/acpi.c: Likewise.
21287 * commands/gptsync.c: Likewise.
21288 * commands/help.c: Likewise.
21289 * partmap/amiga.c: Likewise.
21290 * partmap/apple.c: Likewise.
21291 * partmap/acorn.c: Likewise.
21292 * partmap/pc.c: Likewise.
21293 * partmap/sun.c: Likewise.
21294 * partmap/gpt.c: Likewise.
21295 * script/sh/lexer.c: Likewise.
21296 * script/sh/function.c: Likewise.
21297 * font/font.c: Likewise.
21298 * font/font_cmd.c: Likewise.
21299 * loader/powerpc/ieee1275/linux.c: Likewise.
21300 * loader/efi/chainloader.c: Likewise.
21301 * loader/multiboot_loader.c: Likewise.
21302 * loader/macho.c: Likewise.
21303 * loader/i386/multiboot.c: Likewise.
21304 * loader/i386/linux.c: Likewise.
21305 * loader/i386/pc/linux.c: Likewise.
21306 * loader/i386/pc/multiboot2.c: Likewise.
21307 * loader/i386/pc/chainloader.c: Likewise.
21308 * loader/i386/pc/xnu.c: Likewise.
21309 * loader/i386/bsd_trampoline.S: Likewise.
21310 * loader/i386/efi/linux.c: Likewise.
21311 * loader/i386/multiboot_elfxx.c: Likewise.
21312 * loader/i386/bsd_helper.S: Likewise.
21313 * loader/i386/bsd.c: Likewise.
21314 * loader/i386/linux_trampoline.S: Likewise.
21315 * loader/i386/xnu_helper.S: Likewise.
21316 * loader/i386/xnu.c: Likewise.
21317 * loader/i386/bsd_pagetable.c: Likewise.
21318 * loader/i386/multiboot_helper.S: Likewise.
21319 * loader/xnu.c: Likewise.
21320 * loader/xnu_resume.c: Likewise.
21321 * io/gzio.c: Likewise.
21322 * term/efi/console.c: Likewise.
21323 * term/terminfo.c: Likewise.
21324 * term/ieee1275/ofconsole.c: Likewise.
21325 * term/i386/pc/serial.c: Likewise.
21326 * term/i386/pc/vesafb.c: Likewise.
21327 * term/i386/pc/vga.c: Likewise.
21328 * term/usb_keyboard.c: Likewise.
21329 * term/gfxterm.c: Likewise.
21330 * aclocal.m4: Likewise.
21331 * util/lvm.c: Likewise.
21332 * util/grub.d/30_os-prober.in: Likewise.
21333 * util/grub.d/10_hurd.in: Likewise.
21334 * util/console.c: Likewise.
21335 * util/grub-macho2img.c: Likewise.
21336 * util/grub-probe.c: Likewise.
21337 * util/hostfs.c: Likewise.
21338 * util/i386/pc/grub-mkimage.c: Likewise.
21339 * util/i386/pc/grub-setup.c: Likewise.
21340 * util/i386/efi/grub-mkimage.c: Likewise.
21341 * util/grub-mkconfig.in: Likewise.
21342 * util/raid.c: Likewise.
21343 * util/resolve.c: Likewise.
21344 * util/grub-mkdevicemap.c: Likewise.
21345 * util/grub-emu.c: Likewise.
21346 * util/getroot.c: Likewise.
21347 * util/hostdisk.c: Likewise.
21348 * util/usb.c: Likewise.
21349 * util/grub-editenv.c: Likewise.
21350 * util/misc.c: Likewise.
21351
21352 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
21353
21354 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
21355 `genparttoollist.sh'.
21356 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
21357 Add `*.sh' to the list find searches for and change `mdate.sh'
21358 to `mdate-sh'.
21359
21360 2009-06-10 Pavel Roskin <proski@gnu.org>
21361
21362 * include/grub/multiboot2.h: Provide compatibility defines for
21363 multiboot2.h.
21364 * include/multiboot2.h: Include stdint.h only if needed, using
21365 angle brackets.
21366 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
21367 grub/multiboot2.h.
21368 * loader/ieee1275/multiboot2.c: Likewise.
21369 * loader/multiboot2.c: Likewise.
21370 * loader/multiboot_loader.c: Likewise.
21371
21372 * configure.ac: Use -nostdlib when probing for the target. It
21373 should not be required to have libc for the target.
21374
21375 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
21376 they fail without libc headers for the target.
21377 * include/grub/powerpc/libgcc.h: Use weak attribute for all
21378 exports.
21379 * include/grub/sparc64/libgcc.h: Likewise. Don't use
21380 preprocessor conditionals.
21381
21382 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
21383 build system doesn't need to be aware of the tar.c internals.
21384
21385 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
21386
21387 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
21388
21389 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
21390
21391 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
21392 disk limit to 26 for IDE, Virtio, Xen and SCSI.
21393
21394 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
21395
21396 * util/i386/pc/grub-install.in: Change the error message if UUIDs
21397 aren't available if ata.mod gets used.
21398
21399 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
21400
21401 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
21402 initialising controller.
21403 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21404
21405 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21406
21407 * util/i386/pc/grub-install.in: Add a parameter --disk-module
21408 to choose between ata and biosdisk module on i386-pc.
21409
21410 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
21411
21412 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
21413 Subclass and Programming Interface fields in terms of the 3 byte
21414 Class Code register.
21415 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21416
21417 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
21418 interface is OHCI. Add grub_dprintf for symmetry with
21419 bus/usb/uhci.c.
21420 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
21421 interface is UHCI. Add interf variable for programming
21422 interface. Print interface with class/subclass.
21423
21424 * bus/usb/ohci.c: Set interf with correct field.
21425
21426 * bus/usb/uhci.c: Remove unneeded doubled lines.
21427 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
21428 Remove whitespace inside comment.
21429
21430 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
21431
21432 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
21433 as fallback an equivalent option without depth.
21434
21435 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21436
21437 Not fail if unable to retrieve C/H/S on LBA disks
21438
21439 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
21440 if unable to retrieve C/H/S on LBA disks
21441
21442 2009-06-08 Pavel Roskin <proski@gnu.org>
21443
21444 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
21445 about aliasing.
21446
21447 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21448
21449 * Makefile.in (uninstall): Remove all $lib_DATA files.
21450
21451 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 Bugfix: install on partitionless device
21454
21455 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
21456 is a whole disk
21457
21458 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21459
21460 * Makefile.in (uninstall): Remove all $include_DATA files.
21461
21462 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21463
21464 * commands/true.c: New file. Implement the true and false commands.
21465 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
21466 (true_mod_SOURCES): New variable.
21467 (true_mod_CFLAGS): Likewise.
21468 (true_mod_LDFLAGS): Likewise.
21469
21470 2009-06-05 Colin D Bennett <colin@gibibit.com>
21471
21472 Optimized font character lookup using binary search instead of linear
21473 search. Fonts now are required to have the character index ordered by
21474 code point.
21475
21476 * font/font.c (load_font_index): Verify that fonts have ordered
21477 character indices.
21478 (find_glyph): Use binary search instead of linear search to find a
21479 character in a font.
21480
21481 2009-06-05 Michael Scherer <misc@mandriva.org>
21482
21483 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
21484 uses case sensitive btree.
21485 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
21486 only for case insensitive filesystems.
21487
21488 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
21491 * conf/common.rmk (search_mod_CFLAGS): likewise
21492
21493 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21494
21495 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
21496 compensate a compiler bug
21497
21498 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21499
21500 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
21501 instead of '\b'
21502
21503 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21504
21505 Definitions for creating asm symbols with Apple's CC
21506
21507 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
21508 [APPLE_CC] (VARIABLE): likewise
21509
21510 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 Disable lnxboot.img when compiled
21513 with Apple's CC
21514
21515 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
21516 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
21517 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
21518 [! APPLE_CC] (CODE_LENG): skip
21519 [! APPLE_CC] (setup_sects): likewise
21520 [! APPLE_CC]: skip filling
21521
21522 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21523
21524 Address in trampolines based on 32-bit registers when compiled
21525 with Apple's CC
21526
21527 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
21528 for addresses
21529 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
21530
21531 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21532
21533 Avoid aliases when compiling with Apple's CC for PCBIOS machine
21534
21535 * kern/misc.c [APPLE_CC] (memcpy): new function
21536 [APPLE_CC] (memmove): likewise
21537 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
21538 (memcpy): define alias conditionally on !APPLE_CC
21539 (memset): likewise
21540 (abort): likewise
21541 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
21542 APPLE_CC are defined
21543 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
21544 (grub_assert_fail): make prototype conditional
21545
21546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21547
21548 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
21549
21550 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
21551 grub-macho2img
21552 (CLEANFILES): add grub-macho2img
21553 (grub_macho2img_SOURCES): new variable
21554 * kern/i386/pc/startup.S (bss_start): new variable
21555 (bss_end): likewise
21556 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
21557 * util/grub-macho2img.c: new file
21558
21559 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 Use objconv when compiling with Apple's CC
21562
21563 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
21564 (efiemu64.o): likewise
21565 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
21566 when compiling with Apple's CC
21567 (efiemu64_s.o): likewise
21568 * configure.ac: check for objconv when compiling with Apple's CC
21569 * genmk.rb: use objconv for modules when compiled with Apple's CC
21570
21571 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21572
21573 Define segment as well as section when compiling with
21574 Apple's CC
21575
21576 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
21577 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
21578 (efiemu_convert_pointer): likewise
21579 (efiemu_set_virtual_address_map): likewise
21580 (efiemu_convert_pointer): likewise
21581 (efiemu_getcrc32): likewise
21582 (init_crc32_table): likewise
21583 (reflect): likewise
21584 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
21585 (GRUB_MOD_DEP): likewise
21586
21587 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21588
21589 Allow a compilation without -mcmodel=large
21590
21591 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
21592 when compiled without -mcmodel=large
21593 (filter_memory_map): remove memory post 4 GiB when compiled
21594 without -mcmodel=large
21595 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
21596 TARGET_CFLAGS when -mcmodel=large isn't supported
21597
21598 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21599
21600 Remove nested functions in efiemu core
21601
21602 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
21603
21604 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21605
21606 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
21607
21608 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
21609 temporary storage
21610 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
21611 using Apple's CC
21612 (grub_cpu_is_tsc_supported): likewise
21613 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
21614
21615 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21616
21617 Absolute addressing through constant with Apple's cc
21618
21619 * kern/i386/pc/startup.S: Define necessary constants
21620 and address through it when using ABS with Apple's CC
21621 * boot/i386/pc/diskboot.S: likewise
21622 * boot/i386/pc/boot.S: likewise
21623 * boot/i386/pc/lnxboot.S: likewise
21624 * boot/i386/pc/cdboot.S: likewise
21625 * mmap/i386/pc/mmap_helper.S: likewise
21626 * commands/i386/pc/drivemap_int13h.S: likewise
21627
21628 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21629
21630 Check if compiler is apple cc
21631
21632 * Makefile.in (ASFLAGS): new variable
21633 (TARGET_ASFLAGS): likewise
21634 (TARGET_MODULE_FORMAT): likewise
21635 (TARGET_APPLE_CC): likewise
21636 (OBJCONV): likewise
21637 (TARGET_IMG_CFLAGS): likewise
21638 (TARGET_CPPFLAGS): add includedir
21639 * configure.ac: call grub_apple_cc and grub_apple_target_cc
21640 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
21641 Check for linker script only if compiler isn't Apple's CC
21642 (TARGET_MODULE_FORMAT): set
21643 (TARGET_APPLE_CC): likewise
21644 (TARGET_ASFLAGS): likewise
21645 (ASFLAGS): likewise
21646 Check for objcopy only if compiler isn't Apple's CC
21647 Check for BSS symbol only if compiler isn't Apple's CC
21648 * genmk.rb: adapt nm options if we use Apple's utils
21649 * aclocal.m4 (grub_apple_cc): new test
21650 (grub_apple_target_cc): likewise
21651
21652 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21653
21654 Simplify sed expressions and improve awk
21655
21656 * Makefile.in (install-local): simplify sed expression
21657 * gencmdlist.sh: likewise
21658 * genmoddep.awk: avoid adding module as a dependency of itself
21659
21660 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21661
21662 Add missing start symbols
21663
21664 * boot/i386/pc/boot.S: add start
21665 * boot/i386/pc/pxeboot.S: likewise
21666
21667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 Fix wrong assumptions with grub-mkimage on EFI
21670
21671 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
21672 (relocate_addresses): consider both r_addend and value at offset
21673 (make_mods_section): zerofill modinfo and header
21674 (convert_elf): write prefix here
21675
21676 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21677
21678 Use .asciz instead of .string
21679
21680 * i386/pc/diskboot.S: use .asciz instead of .string
21681 * i386/pc/boot.S: likewise
21682 * include/grub/dl.h (GRUB_MOD_DEP): likewise
21683 (GRUB_MOD_NAME): likewise
21684
21685 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21686
21687 gfxpayload support
21688
21689 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
21690 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
21691 (grub_video_setup): remove
21692 (grub_video_set_mode): new prototype
21693 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
21694 (vid_mode): remove
21695 (linux_vesafb_res): compile only on PCBIOS
21696 (grub_linux_boot): support gfxpayload
21697 * loader/i386/pc/xnu.c (video_hook): new function
21698 (grub_xnu_set_video): support gfxpayload
21699 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
21700 (DEFAULT_VIDEO_HEIGHT): likewise
21701 (DEFAULT_VIDEO_FLAGS): likewise
21702 (DEFAULT_VIDEO_MODE): new definition
21703 (video_hook): new function
21704 (grub_gfxterm_init): use grub_video_set_mode
21705 * util/grub.d/30_os-prober.in: remove explicit modesetting before
21706 loading xnu
21707 * video/video.c (grub_video_setup): removed
21708 (grub_video_set_mode): new function based on grub_gfxterm_init and
21709 grub_video_setup
21710
21711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21712
21713 Avoid calling biosdisk in drivemap
21714
21715 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
21716 (revparse_biosdisk): likewise
21717 (list_mappings): derive name from id directly
21718 (grub_cmd_drivemap): use tryparse_diskstring
21719
21720 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21721
21722 Script fixes
21723
21724 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
21725 (grub_lexer_param): add tokenonhold
21726 (grub_script_create_cmdline): remove cmdline. All callers updated
21727 (grub_script_function_create): make functionname
21728 grub_script_arg. All callers updated
21729 (grub_script_execute_argument_to_string): new prototype
21730 * kern/parser.c (state_transitions): reorder
21731 (grub_parser_cmdline_state): fix a bug and make more compact
21732 * script/sh/execute.c (grub_script_execute_argument_to_string):
21733 make global
21734 (grub_script_execute_cmdline): use new format
21735 * script/sh/function.c (grub_script_function_create): make functionname
21736 grub_script_arg. All callers updated
21737 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
21738 (grub_script_yylex): remove
21739 (grub_script_yylex2): renamed to ...
21740 (grub_script_yylex): ...renamed
21741 parse the expressions like a${b}c
21742 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
21743 (GRUB_PARSER_TOKEN_VAR): remove
21744 (GRUB_PARSER_TOKEN_NAME): likewise
21745 ("if"): declare as typeless
21746 ("while"): likewise
21747 ("function"): likewise
21748 ("else"): likewise
21749 ("then"): likewise
21750 ("fi"): likewise
21751 (text): remove
21752 (argument): likewise
21753 (script): accept empty scripts and make exit on error
21754 (arguments): use GRUB_PARSER_TOKEN_ARG
21755 (function): likewise
21756 (command): move error handling to script
21757 (menuentry): move grub_script_lexer_ref before
21758 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
21759 argument. All callers updated
21760
21761 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21762
21763 Prevent GRUB from probing floppies during boot.
21764
21765 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
21766 * commands/search.c (options): Add --no-floppy.
21767 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
21768 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
21769 --no-floppy when searching for UUIDs.
21770
21771 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21772
21773 Simplify the code duplication in commands/search.c.
21774
21775 * commands/search.c (search_label, search_fs_uuid): Merge into ...
21776 (search_fs): ... this. Update all users.
21777
21778 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
21779
21780 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
21781
21782 2009-05-28 Pavel Roskin <proski@gnu.org>
21783
21784 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
21785 Remove the original symlink explicitly.
21786
21787 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
21788 just one slash. That's how grub_fshelp_find_file() does it.
21789
21790 2009-05-26 Pavel Roskin <proski@gnu.org>
21791
21792 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
21793 to `str'.
21794
21795 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
21796 possibly unused.
21797
21798 2009-05-25 Christian Franke <franke@computer.org>
21799
21800 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
21801 register.
21802 (grub_atapi_identify): Add wait after drive select.
21803 (grub_ata_identify): Do more strict status register check before
21804 calling grub_atapi_identify (). Suppress error message if status
21805 register is 0x00 after command failure. Add status register
21806 check after PIO read to avoid bogus identify due to stuck DRQ.
21807 Thanks to Pavel Roskin for testing.
21808 (grub_device_initialize): Remove unsafe status register check.
21809 Thanks to 'phcoder' for problem report and patch.
21810 Prevent sign extension in debug message.
21811
21812 2009-05-23 Colin D Bennett <colin@gibibit.com>
21813
21814 Cleaned up `include/grub/normal.h'. Grouped prototypes by
21815 definition file, and functions defined in `normal/menu.c' have had
21816 their prototypes moved to `include/grub/menu.h' for consistency.
21817
21818 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
21819 from normal.h.
21820 (grub_menu_get_entry): Likewise.
21821 (grub_menu_get_timeout): Likewise.
21822 (grub_menu_set_timeout): Likewise.
21823 (grub_menu_execute_entry): Likewise.
21824 (grub_menu_execute_with_fallback): Likewise.
21825 (grub_menu_entry_run): Likewise.
21826
21827 * include/grub/normal.h: Re-ordered and grouped function
21828 prototypes by file that the function is defined in.
21829 (grub_menu_execute_callback): Removed; moved to menu.h.
21830 (grub_menu_get_entry): Likewise.
21831 (grub_menu_get_timeout): Likewise.
21832 (grub_menu_set_timeout): Likewise.
21833 (grub_menu_execute_entry): Likewise.
21834 (grub_menu_execute_with_fallback): Likewise.
21835 (grub_menu_entry_run): Likewise.
21836 (grub_menu_addentry): Renamed from this ...
21837 (grub_normal_add_menu_entry): ... to this.
21838
21839 * normal/main.c (grub_menu_addentry): Renamed from this ...
21840 (grub_normal_add_menu_entry): ... to this.
21841
21842 * script/sh/execute.c (grub_script_execute_menuentry): Update
21843 reference to renamed grub_menu_addentry function.
21844
21845 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
21846
21847 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
21848
21849 2009-05-22 Pavel Roskin <proski@gnu.org>
21850
21851 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
21852 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
21853 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
21854 compiling for the i386 targets, but not for the utilities.
21855
21856 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
21857 to grub_uint8_t.
21858 (grub_root_drive): Likewise.
21859 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
21860 remove alignment.
21861 (grub_root_drive): Change size to byte.
21862 (grub_start_addr): Remove.
21863 (grub_end_addr): Likewise.
21864 (grub_apm_bios_info): Likewise.
21865
21866 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
21867
21868 * normal/i386: Remove.
21869 * normal/powerpc: Likewise.
21870 * normal/sparc64: Likewise.
21871 * normal/x86_64: Likewise.
21872
21873 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
21874
21875 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
21876 * loader/i386/linux_trampoline.S: Fix indentation
21877 * loader/i386/xnu_helper.S: Likewise
21878
21879 2009-05-18 Colin D Bennett <colin@gibibit.com>
21880
21881 Display error messages when parsing a Lua statement fails.
21882 Previously, executing a syntactically invalid statement like
21883 ")foo" or "bar;" would silently fail.
21884
21885 * script/lua/grub_main.c (handle_lua_error): New function.
21886 (grub_lua_parse_line): Improved reporting of Lua parser and
21887 execution errors.
21888
21889 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 Remove -Werror which causes build to fail on some systems
21892
21893 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
21894 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
21895 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
21896
21897 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21898
21899 trampoline for linux on 64-bit platform
21900
21901 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
21902 loader/i386/efi/linux_trampoline.S
21903 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
21904 declaration
21905 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
21906 here
21907 * loader/i386/linux_trampoline.S: moved here
21908 * loader/i386/efi/linux.c (allocate_pages): reserve space for
21909 trampoline
21910 (jumpvector): removed
21911 (grub_linux_trampoline_start): new declaration
21912 (grub_linux_trampoline_end): likewise
21913 (grub_linux_boot): use trampoline when on 64-bit platform
21914 * loader/i386/linux.c: likewise
21915
21916 2009-05-16 Pavel Roskin <proski@gnu.org>
21917
21918 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
21919 const to avoid a warning.
21920 (grub_lua_setenv): Likewise.
21921 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
21922 lmsg to fix a warning.
21923
21924 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21925
21926 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
21927 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21928 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
21929 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21930 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21931 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21932 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21933 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21934
21935 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21936
21937 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
21938
21939 2009-05-16 Bean <bean123ch@gmail.com>
21940
21941 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
21942 (lua_mod_SOURCES): New variable.
21943 (lua_mod_CFLAGS): Likewise.
21944 (lua_mod_LDFLAGS): Likewise.
21945
21946 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
21947 (setjmp_mod_SOURCES): New variable.
21948 (setjmp_mod_CFLAGS): Likewise.
21949 (setjmp_LDFLAGS): Likewise.
21950
21951 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
21952 (setjmp_mod_SOURCES): New variable.
21953 (setjmp_mod_CFLAGS): Likewise.
21954 (setjmp_LDFLAGS): Likewise.
21955
21956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21957 (setjmp_mod_SOURCES): New variable.
21958 (setjmp_mod_CFLAGS): Likewise.
21959 (setjmp_LDFLAGS): Likewise.
21960
21961 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21962 (setjmp_mod_SOURCES): New variable.
21963 (setjmp_mod_CFLAGS): Likewise.
21964 (setjmp_LDFLAGS): Likewise.
21965
21966 * normal/i386/setjmp.S: Moved from here ...
21967 * lib/i386/setjmp.S: ... Moved here
21968 * normal/x86_64/setjmp.S: Moved from here ...
21969 * lib/x86_64/setjmp.S: ... Moved here
21970 * normal/powerpc/setjmp.S: Moved from here ...
21971 * lib/powerpc/setjmp.S: ... Moved here
21972 * normal/sparc64/setjmp.S: Moved from here ...
21973 * lib/sparc64/setjmp.S: ... Moved here
21974
21975 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
21976 returns_twice in mingw.
21977
21978 * script/lua/grub_lib.c: New file.
21979 * script/lua/grub_lib.h: Likewise.
21980 * script/lua/grub_lua.h: Likewise.
21981 * script/lua/grub_main.c: Likewise.
21982 * script/lua/lapi.c: Likewise.
21983 * script/lua/lapi.h: Likewise.
21984 * script/lua/lauxlib.c: Likewise.
21985 * script/lua/lauxlib.h: Likewise.
21986 * script/lua/lbaselib.c: Likewise.
21987 * script/lua/lcode.c: Likewise.
21988 * script/lua/lcode.h: Likewise.
21989 * script/lua/ldblib.c: Likewise.
21990 * script/lua/ldebug.c: Likewise.
21991 * script/lua/ldebug.h: Likewise.
21992 * script/lua/ldo.c: Likewise.
21993 * script/lua/ldo.h: Likewise.
21994 * script/lua/ldump.c: Likewise.
21995 * script/lua/lfunc.c: Likewise.
21996 * script/lua/lfunc.h: Likewise.
21997 * script/lua/lgc.c: Likewise.
21998 * script/lua/lgc.h: Likewise.
21999 * script/lua/linit.c: Likewise.
22000 * script/lua/liolib.c: Likewise.
22001 * script/lua/llex.c: Likewise.
22002 * script/lua/llex.h: Likewise.
22003 * script/lua/llimits.h: Likewise.
22004 * script/lua/lmathlib.c: Likewise.
22005 * script/lua/lmem.c: Likewise.
22006 * script/lua/lmem.h: Likewise.
22007 * script/lua/loadlib.c: Likewise.
22008 * script/lua/lobject.c: Likewise.
22009 * script/lua/lobject.h: Likewise.
22010 * script/lua/lopcodes.c: Likewise.
22011 * script/lua/lopcodes.h: Likewise.
22012 * script/lua/loslib.c: Likewise.
22013 * script/lua/lparser.c: Likewise.
22014 * script/lua/lparser.h: Likewise.
22015 * script/lua/lstate.c: Likewise.
22016 * script/lua/lstate.h: Likewise.
22017 * script/lua/lstring.c: Likewise.
22018 * script/lua/lstring.h: Likewise.
22019 * script/lua/lstrlib.c: Likewise.
22020 * script/lua/ltable.c: Likewise.
22021 * script/lua/ltable.h: Likewise.
22022 * script/lua/ltablib.c: Likewise.
22023 * script/lua/ltm.c: Likewise.
22024 * script/lua/ltm.h: Likewise.
22025 * script/lua/lua.h: Likewise.
22026 * script/lua/luaconf.h: Likewise.
22027 * script/lua/lualib.h: Likewise.
22028 * script/lua/lundump.c: Likewise.
22029 * script/lua/lundump.h: Likewise.
22030 * script/lua/lvm.c: Likewise.
22031 * script/lua/lvm.h: Likewise.
22032 * script/lua/lzio.c: Likewise.
22033 * script/lua/lzio.h: Likewise.
22034
22035 2009-05-16 Bean <bean123ch@gmail.com>
22036
22037 * include/grub/kernel.h (grub_module_header_types): Add type
22038 OBJ_TYPE_CONFIG.
22039
22040 * kern/main.c (grub_load_config): New function.
22041 (grub_main): Call grub_load_config to read boot config.
22042
22043 * grub-mkimage (generate_image): New parameter config_path.
22044 (options): New option --config.
22045 (main): Parse --config option, and pass it to generate_image.
22046
22047 2009-05-14 Christian Franke <franke@computer.org>
22048
22049 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
22050 This fixes build on Cygwin.
22051
22052 2009-05-14 Pavel Roskin <proski@gnu.org>
22053
22054 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
22055 jump. This saves two bytes, so the typical case of 2 swapped
22056 drives would fit 32 bytes.
22057
22058 2009-05-13 Pavel Roskin <proski@gnu.org>
22059
22060 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
22061 grub_uint32_t to avoid a warning.
22062
22063 * loader/i386/linux.c (allocate_pages): When assigning
22064 real_mode_mem, cast through grub_size_t to fix a warning. The
22065 code already makes sure that the value would fit a pointer.
22066 (grub_linux_setup_video): Cast render_target->data to
22067 grub_size_t to fix a warning.
22068
22069 2009-05-13 Javier Martín <lordhabbit@gmail.com>
22070
22071 * commands/i386/pc/drivemap.c: New file - implement drivemap
22072 command.
22073 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
22074 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
22075
22076 2009-05-13 Pavel Roskin <proski@gnu.org>
22077
22078 * util/i386/pc/grub-setup.c (setup): Remove unused variable
22079 embedding_area_exists.
22080
22081 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
22082
22083 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
22084 it easier to understand / work with.
22085 Improve warning messages for cases where there's no embedding area,
22086 or when it is too small (or core.img too large).
22087
22088 2009-05-13 Pavel Roskin <proski@gnu.org>
22089
22090 * loader/i386/pc/multiboot2.c: Add necessary includes for
22091 grub_multiboot2_real_boot().
22092
22093 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
22094 PX record is always little-endian. We only need the lower 2
22095 bytes of the mode.
22096
22097 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
22098 facilitate code reuse.
22099 (grub_cpio_mount): Use "struct head", not a char buffer. This
22100 fixes a warning reported by gcc 4.4.
22101
22102 * kernel/disk.c (grub_disk_read): Use void pointer for the
22103 buffer.
22104 (grub_disk_write): Use const void pointer for the buffer.
22105 Adjust all callers. Remove unnecessary casts.
22106
22107 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
22108
22109 * util/i386/pc/grub-install.in: Update copyright year.
22110
22111 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22112
22113 gptsync
22114
22115 * commands/gptsync.c: new file
22116 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
22117 (gptsync_mod_SOURCES): new variable
22118 (gptsync_mod_CFLAGS): likewise
22119 (gptsync_mod_LDFLAGS): likewise
22120 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
22121 new definition
22122 (GRUB_PC_PARTITION_TYPE_HFS): likewise
22123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
22124 * conf/i386-ieee1275.rmk: likewise
22125 * conf/i386-pc.rmk: likewise
22126 * conf/powerpc-ieee1275.rmk: likewise
22127
22128 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22129
22130 Fixed grub-emu
22131
22132 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
22133 (grub_dl_ref): likewise
22134
22135 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
22136
22137 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
22138 split in two functions (one for msdos and one for gpt).
22139
22140 2009-05-08 Pavel Roskin <proski@gnu.org>
22141
22142 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
22143 not modified.
22144
22145 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
22146 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
22147 Initialize them with -1. Add sanity check for bad1. Eliminate
22148 nerr variable.
22149
22150 2009-05-08 David S. Miller <davem@davemloft.net>
22151
22152 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
22153
22154 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
22155
22156 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
22157 existence.
22158
22159 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
22160
22161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
22162 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
22163
22164 2009-05-05 David S. Miller <davem@davemloft.net>
22165
22166 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
22167
22168 2009-05-05 Pavel Roskin <proski@gnu.org>
22169
22170 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
22171 of grub_dl_ref() and grub_dl_unref().
22172 * commands/parttool.c: Remove preprocessor conditionals around
22173 grub_dl_ref() and grub_dl_unref().
22174 * fs/affs.c: Likewise.
22175 * fs/afs.c: Likewise.
22176 * fs/cpio.c: Likewise.
22177 * fs/ext2.c: Likewise.
22178 * fs/fat.c: Likewise.
22179 * fs/hfs.c: Likewise.
22180 * fs/hfsplus.c: Likewise.
22181 * fs/iso9660.c: Likewise.
22182 * fs/jfs.c: Likewise.
22183 * fs/minix.c: Likewise.
22184 * fs/ntfs.c: Likewise.
22185 * fs/reiserfs.c: Likewise.
22186 * fs/sfs.c: Likewise.
22187 * fs/udf.c: Likewise.
22188 * fs/ufs.c: Likewise.
22189 * fs/xfs.c: Likewise.
22190 * include/grub/dl.h: Likewise.
22191 * loader/xnu.c: Likewise.
22192
22193 2009-05-04 Pavel Roskin <proski@gnu.org>
22194
22195 * commands/acpi.c: Remove unused variable my_mod.
22196 * partmap/amiga.c: Likewise.
22197 * partmap/apple.c: Likewise.
22198 * partmap/gpt.c: Likewise.
22199 * partmap/pc.c: Likewise.
22200 * partmap/sun.c: Likewise.
22201 * term/gfxterm.c: Likewise.
22202 * term/i386/pc/vesafb.c: Likewise.
22203 * term/i386/pc/vga.c: Likewise.
22204
22205 2009-05-04 David S. Miller <davem@davemloft.net>
22206
22207 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
22208 pointer args to grub_ieee1275_get_property().
22209
22210 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
22211
22212 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
22213 devices, and do not traverse down under controller nodes.
22214
22215 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
22216 (grub_ofdisk_open): Use it to un-escape "," characters.
22217 * kern/disk.c (find_part_sep): New.
22218 (grub_disk_open): Use it to find the first non-escaped ','
22219 character in the disk name.
22220 * util/ieee1275/devicemap.c (escape_of_path): New.
22221 (grub_util_emit_devicemap_entry): Use it.
22222 * util/sparc64/ieee1275/grub-install.in: Update script to
22223 strip partition specifiers properly by not triggering on
22224 '\' escaped ',' characters.
22225
22226 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22227
22228 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
22229 to 0x300.
22230 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
22231 resolutions.
22232 (linux_vesafb_modes): Add a lot of additional modes to the list (based
22233 on documentation from Wikipedia).
22234
22235 2009-05-04 Pavel Roskin <proski@gnu.org>
22236
22237 * disk/ata.c: Spelling fixes.
22238 * disk/raid.c: Likewise.
22239 * disk/usbms.c: Likewise.
22240 * disk/dmraid_nvidia.c: Likewise.
22241 * kern/ieee1275/openfw.c: Likewise.
22242 * kern/ieee1275/init.c: Likewise.
22243 * kern/ieee1275/cmain.c: Likewise.
22244 * boot/i386/pc/cdboot.S: Likewise.
22245 * video/readers/png.c: Likewise.
22246 * video/i386/pc/vbe.c: Likewise.
22247 * fs/udf.c: Likewise.
22248 * fs/hfs.c: Likewise.
22249 * fs/reiserfs.c: Likewise.
22250 * efiemu/runtime/efiemu.c: Likewise.
22251 * efiemu/main.c: Likewise.
22252 * efiemu/mm.c: Likewise.
22253 * include/grub/elf.h: Likewise.
22254 * include/grub/xnu.h: Likewise.
22255 * include/grub/usbdesc.h: Likewise.
22256 * include/grub/usb.h: Likewise.
22257 * include/grub/script_sh.h: Likewise.
22258 * include/grub/lib/LzmaEnc.h: Likewise.
22259 * include/grub/efiemu/efiemu.h: Likewise.
22260 * include/grub/command.h: Likewise.
22261 * normal/menu.c: Likewise.
22262 * normal/main.c: Likewise.
22263 * normal/datetime.c: Likewise.
22264 * bus/usb/uhci.c: Likewise.
22265 * mmap/i386/uppermem.c: Likewise.
22266 * mmap/mmap.c: Likewise.
22267 * commands/acpi.c: Likewise.
22268 * commands/test.c: Likewise.
22269 * partmap/apple.c: Likewise.
22270 * font/font.c: Likewise.
22271 * loader/sparc64/ieee1275/linux.c: Likewise.
22272 * loader/macho.c: Likewise.
22273 * loader/i386/bsd_trampoline.S: Likewise.
22274 * loader/i386/bsd.c: Likewise.
22275 * loader/xnu.c: Likewise.
22276 * term/i386/pc/vesafb.c: Likewise.
22277 * term/usb_keyboard.c: Likewise.
22278 * util/resolve.c: Likewise.
22279 * util/getroot.c: Likewise.
22280
22281 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
22282
22283 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
22284
22285 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22286
22287 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
22288 build error.
22289
22290 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22291
22292 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
22293 parameter only available on BIOS.
22294
22295 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22296
22297 Removed wrong semicolon in declaration
22298
22299 * grub/misc.h (grub_dprintf): remove semicolon
22300
22301 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22302
22303 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
22304 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
22305 is done by grub_cmd_linux() now).
22306 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
22307 restore video to text mode.
22308 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
22309 indicates lack of "vga=" parameter. "vga=0" is mapped to
22310 `GRUB_LINUX_VID_MODE_NORMAL'.
22311
22312 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
22313
22314 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
22315 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
22316 and `normal/script.c'. Add `kern/rescue_reader.c',
22317 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
22318 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
22319 `grub_script.tab.c'.
22320
22321 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22322 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22325 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22326
22327 * Makefile.in: Remove duplicated 2008 in Copyright line.
22328
22329 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22330
22331 * util/misc.c (grub_util_warn): New function. Emits a warning
22332 unconditionally.
22333 * include/grub/util/misc.h (grub_util_warn): New declaration.
22334
22335 * util/i386/pc/grub-install.in: Understand --force and pass it down
22336 to grub-setup.
22337
22338 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
22339 down to setup().
22340 (setup): Improve error messages and add warnings when requested to
22341 install in odd layouts. Refuse to install using blocklists unless
22342 --force was set.
22343
22344 2009-05-04 martin f. krafft <madduck@madduck.net>
22345
22346 * disk/raid.c (grub_raid_scan_device): Improve debug message.
22347
22348 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 Updated copyright year
22351
22352 * fs/hfsplus.c: updated copyright year
22353
22354 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22355
22356 HFS+ UUID
22357
22358 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
22359 in the space previously used by unused3
22360 (grub_hfsplus_uuid): new function
22361 (grub_hfsplus_fs): added uuid field
22362
22363 2009-05-03 Pavel Roskin <proski@gnu.org>
22364
22365 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
22366 suppress warnings. It's no longer needed.
22367 * disk/host.c: Likewise.
22368 * disk/ata_pthru.c: Likewise.
22369 * disk/loopback.c: Likewise.
22370 * hook/datehook.c: Likewise.
22371 * parttool/pcpart.c: Likewise.
22372 * fs/i386/pc/pxe.c: Likewise.
22373 * fs/ntfscomp.c: Likewise.
22374 * efiemu/main.c: Likewise.
22375 * mmap/mmap.c: Likewise.
22376 * commands/crc.c: Likewise.
22377 * commands/hexdump.c: Likewise.
22378 * commands/hdparm.c: Likewise.
22379 * commands/acpi.c: Likewise.
22380 * commands/echo.c: Likewise.
22381 * commands/minicmd.c: Likewise.
22382 * commands/blocklist.c: Likewise.
22383 * commands/memrw.c: Likewise.
22384 * commands/loadenv.c: Likewise.
22385 * commands/usbtest.c: Likewise.
22386 * commands/lsmmap.c: Likewise.
22387 * commands/boot.c: Likewise.
22388 * commands/parttool.c: Likewise.
22389 * commands/configfile.c: Likewise.
22390 * commands/search.c: Likewise.
22391 * commands/ieee1275/suspend.c: Likewise.
22392 * commands/cat.c: Likewise.
22393 * commands/i386/pc/pxecmd.c: Likewise.
22394 * commands/i386/pc/play.c: Likewise.
22395 * commands/i386/pc/halt.c: Likewise.
22396 * commands/i386/pc/vbeinfo.c: Likewise.
22397 * commands/i386/pc/vbetest.c: Likewise.
22398 * commands/lspci.c: Likewise.
22399 * commands/date.c: Likewise.
22400 * commands/handler.c: Likewise.
22401 * commands/ls.c: Likewise.
22402 * commands/test.c: Likewise.
22403 * commands/cmp.c: Likewise.
22404 * commands/efi/loadbios.c: Likewise.
22405 * commands/efi/fixvideo.c: Likewise.
22406 * commands/halt.c: Likewise.
22407 * commands/help.c: Likewise.
22408 * commands/reboot.c: Likewise.
22409 * hello/hello.c: Likewise.
22410 * script/sh/main.c: Likewise.
22411 * loader/xnu.c: Likewise.
22412 * term/terminfo.c: Likewise.
22413 * term/i386/pc/serial.c: Likewise.
22414 * term/usb_keyboard.c: Likewise.
22415
22416 2009-05-03 David S. Miller <davem@davemloft.net>
22417
22418 * normal/menu.c: Include grub/parser.h
22419
22420 2009-05-03 Pavel Roskin <proski@gnu.org>
22421
22422 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
22423 not char*.
22424 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
22425 Suggested by Javier Martín <lordhabbit@gmail.com>
22426
22427 * util/i386/pc/grub-mkrescue.in: Allow for the case when
22428 efiemu??.o doesn't exist.
22429 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
22430 copying.
22431
22432 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 FreeBSD 64-bit support
22435
22436 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
22437 and loader/i386/bsd_trampoline.S
22438 (bsd_mod_ASFLAGS): new variable
22439 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
22440 (FREEBSD_MODTYPE_KERNEL64): likewise
22441 (grub_bsd64_trampoline_start): likewise
22442 (grub_bsd64_trampoline_end): likewise
22443 (grub_bsd64_trampoline_selfjump): likewise
22444 (grub_bsd64_trampoline_gdt): likewise
22445 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
22446 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
22447 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
22448 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
22449 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22450 of "attrib" member
22451 * loader/i386/bsd_pagetable.c: new file
22452 * loader/i386/bsd_trampoline.S: likewise
22453 * loader/i386/bsd.c (ALIGN_QWORD): new macro
22454 (ALIGN_VAR): likewise
22455 (entry_hi): new variable
22456 (kern_end_mdofs): likewise
22457 (is_64bit): likewise
22458 (grub_freebsd_add_meta): use ALIGN_VAR
22459 (grub_e820_mmap): new declaration
22460 (grub_freebsd_add_mmap): new function
22461 (grub_freebsd_add_meta_module): support 64 bit kernels
22462 (grub_freebsd_list_modules): use ALIGN_VAR
22463 (gdt_descriptor): new declaration
22464 (grub_freebsd_boot): support 64 bit kernels
22465 (grub_bsd_elf64_hook): new function
22466 (grub_bsd_load_elf): support elf64
22467
22468 2009-05-03 Bean <bean123ch@gmail.com>
22469
22470 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
22471 after we get the result of if statement.
22472
22473 2009-05-03 Bean <bean123ch@gmail.com>
22474
22475 * Makefile.in (enable_efiemu): New variable.
22476
22477 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
22478 set.
22479 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
22480 path.
22481 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
22482 path, add -mno-red-zone option.
22483 (efiemu64_s.o): Likewise.
22484 (efiemu64.o): Use macro $^ for source file.
22485
22486 * configure.ac (--enable-efiemu): New option.
22487
22488 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 xnu support
22491
22492 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
22493 (pkglib_MODULES): add xnu.mod
22494 (xnu_mod_SOURCES): new variable
22495 (xnu_mod_CFLAGS): likewise
22496 (xnu_mod_LDFLAGS): likewise
22497 (xnu_mod_ASFLAGS): likewise
22498 * conf/i386-pc.rmk: likewise
22499 * conf/x86_64-efi.rmk: likewise
22500 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
22501 new declaration
22502 * include/grub/i386/macho.h: new file
22503 * include/grub/i386/xnu.h: likewise
22504 * include/grub/macho.h: likewise
22505 * include/grub/machoload.h: likewise
22506 * include/grub/x86_64/macho.h: likewise
22507 * include/grub/x86_64/xnu.h: likewise
22508 * include/grub/xnu.h: likewise
22509 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
22510 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
22511 * loader/i386/efi/xnu.c: new file
22512 * loader/i386/pc/xnu.c: likewise
22513 * loader/i386/xnu.c: likewise
22514 * loader/i386/xnu_helper.S: likewise
22515 * loader/macho.c: likewise
22516 * loader/xnu.c: likewise
22517 * loader/xnu_resume.c: likewise
22518 * util/grub-dumpdevtree: likewise
22519 * include/grub/i386/pit.h: include grub/err.h
22520 (grub_pit_wait): export
22521 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
22522
22523 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 Efiemu
22526
22527 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
22528 _linux_efi, linux_efi.
22529 new files in grub-emu
22530 new targets efiemu32.o and efiemu64.o
22531 * loader/linux_normal_efiemu.c: likewise
22532 * loader/i386/efi/linux.c: added preliminary efiemu support
22533 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
22534 files to copy
22535 * include/grub/autoefi.h: new file
22536 * include/grub/i386/efiemu.h: likewise
22537 * include/grub/i386/pc/efiemu.h: likewise
22538 * include/grub/efi/api.h: add LL suffix when necessary
22539 new definitions relating to tables
22540 * include/grub/efiemu/efiemu.h: new file
22541 * include/grub/efiemu/runtime.h: likewise
22542 * efiemu/prepare.c: likewise
22543 * efiemu/loadcore_common.c: likewise
22544 * efiemu/loadcore64.c: likewise
22545 * efiemu/runtime/efiemu.sh: likewise
22546 * efiemu/runtime/efiemu.S: likewise
22547 * efiemu/runtime/efiemu.c: likewise
22548 * efiemu/runtime/config.h: likewise
22549 * efiemu/prepare32.c: likewise
22550 * efiemu/main.c: likewise
22551 * efiemu/modules/pnvram.c: likewise
22552 * efiemu/modules/i386: likewise
22553 * efiemu/modules/i386/pc: likewise
22554 * efiemu/modules/acpi.c: likewise
22555 * efiemu/i386/pc/cfgtables.c: likewise
22556 * efiemu/i386/loadcore64.c: likewise
22557 * efiemu/i386/loadcore32.c: likewise
22558 * efiemu/prepare64.c: likewise
22559 * efiemu/loadcore.c: likewise
22560 * efiemu/symbols.c: likewise
22561 * efiemu/mm.c: likewise
22562 * efiemu/loadcore32.c: likewise
22563
22564 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 ACPI spoofing
22567
22568 * commands/acpi.c: new file
22569 * commands/i386/pc/acpi.c: likewise
22570 * commands/efi/acpi.c: likewise
22571 * include/grub/acpi.h: likewise
22572 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
22573 (acpi_mod_SOURCES): new variable
22574 (acpi_mod_CFLAGS): likewise
22575 (acpi_mod_LDFLAGS): likewise
22576 * conf/i386-efi.rmk: likewise
22577 * conf/x86_64-efi.rmk: likewise
22578
22579 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22580
22581 Missing part from mmap patch
22582
22583 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
22584 (grub_mmap_unregister)
22585 (grub_mmap_free_and_unregister): use grub_mmap_register
22586
22587 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22588
22589 Mmap services
22590
22591 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
22592 * loader/i386/linux.c (find_mmap_size): likewise
22593 (allocate_pages): likewise
22594 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
22595 (grub_fill_multiboot_mmap): likewise
22596 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
22597 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
22598 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
22599 (OPENBSD_MMAP_RESERVED): likewise
22600 * include/grub/i386/pc/memory.h: include grub/memory.h
22601 (grub_lower_mem): removed
22602 (grub_upper_mem): likewise
22603 (GRUB_MACHINE_MEMORY_ACPI): new definition
22604 (GRUB_MACHINE_MEMORY_NVS): likewise
22605 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
22606 (GRUB_MACHINE_MEMORY_HOLE): likewise
22607 (grub_machine_mmap_register): likewise
22608 (grub_machine_mmap_unregister): likewise
22609 (grub_machine_get_upper): likewise
22610 (grub_machine_get_lower): likewise
22611 (grub_machine_get_post64): likewise
22612 * include/grub/i386/efi/memory.h: new file
22613 * include/grub/x86_64/efi/memory.h: likewise
22614 * include/grub/efi/memory.h: likewise
22615 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
22616 (mmap_mod_SOURCES): new variable
22617 (mmap_mod_LDFLAGS): likewise
22618 (mmap_mod_ASFLAGS): likewise
22619 * conf/i386-coreboot.rmk: likewise
22620 * conf/i386-ieee1275.rmk: likewise
22621 * conf/i386-efi.rmk: likewise
22622 * conf/x86_64-efi.rmk: likewise
22623 * include/grub/types.h (UINT_TO_PTR): new macro
22624 (PTR_TO_UINT32): likewise
22625 (PTR_TO_UINT64): likewise
22626 * include/grub/memory.h: new file
22627 * mmap/i386/pc/mmap.c: likewise
22628 * mmap/i386/pc/mmap_helper.S: likewise
22629 * mmap/i386/uppermem.c: likewise
22630 * mmap/mmap.c: likewise
22631 * mmap/efi/mmap.c: likewise
22632 * kern/i386/coreboot/init.c (grub_machine_init): don't use
22633 grub_upper_mem
22634 * kern/i386/pc/init.c (grub_lower_mem): removed variable
22635 (grub_upper_mem): likewise
22636 (grub_machine_init): don't use grub_upper_mem,
22637 make grub_lower_mem local
22638 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
22639 grub_mmap_iterate and grub_mmap_get_upper
22640 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
22641
22642 2009-05-02 Bean <bean123ch@gmail.com>
22643
22644 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
22645 script/sh/parser.y.
22646 (pkglib_MODULES): Add normal.mod and sh.mod.
22647 (normal_SOURCES): New variable.
22648 (normal_mod_CFLAGS): Likewise.
22649 (normal_mod_LDFLAGS): Likewise.
22650 (sh_mod_SOURCES): Likewise.
22651 (sh_mod_CFLAGS): Likewise.
22652 (sh_mod_LDFLAGS): Likewise.
22653
22654 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
22655 script/sh/lexer.c_DEPENDENCIES.
22656 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
22657 kern/rescue_reader.c and kern/rescue_parser.c.
22658 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
22659 (grub_emu_SOURCES): Change source files.
22660 (pkglib_MODULES): Remove normal.mod.
22661 (normal_SOURCES): Removed.
22662 (normal_mod_CFLAGS): Likewise.
22663 (normal_mod_LDFLAGS): Likewise.
22664 * conf/i386-coreboot.rmk: Likewise.
22665 * conf/i386-efi.rmk: Likewise.
22666 * conf/i386-ieee1276.rmk: Likewise.
22667 * conf/powerpc-ieee1275.rmk: Likewise.
22668 * conf/sparc64-ieee1275.rmk: Likewise.
22669 * conf/x86_64-efi.rmk: Likewise.
22670
22671 * include/grub/command.h (grub_command_execute): New inline function.
22672
22673 * include/grub/menu.h (grub_menu_entry): Removed commands field.
22674
22675 * include/grub/normal.h: Remove <grub/setjmp.h>.
22676 (grub_fs_module_list): Moved to normal/autofs.c.
22677 (grub_exit_env): Removed.
22678 (grub_command_execute): Likewise.
22679 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
22680 parameter script.
22681 (read_command_list): New function declaration.
22682 (read_fs_list): Likewise.
22683
22684 * include/parser.h: Include <grub/reader.h>.
22685 (grub_parser_split_cmdline): Change type of getline parameter.
22686 (grub_parser): New structure.
22687 (grub_parser_class): New variable.
22688 (grub_parser_execute): New function declaration.
22689 (grub_register_rescue_parser): Likewise.
22690 (grub_parser_register): New inline function.
22691 (grub_parser_unregister): Likewise.
22692 (grub_parser_get_current): Likewise.
22693 (grub_parser_set_current): Likewise.
22694
22695 * include/grub/reader.h: New file.
22696 * kern/reader.c: Likewise.
22697 * kern/rescue_parser.c: Likewise.
22698 * kern/rescue_reader.c: Likewise.
22699 * normal/autofs.c: Likewise.
22700 * normal/dyncmd.c: Likewise.
22701
22702 * include/grub/rescue.h: Removed.
22703 * normal/command.h: Likewise.
22704
22705 * include/grub/script.h: Moved to ...
22706 * include/grub/script_sh.h: ... Moved here.
22707 * normal/execute.c: Moved to ...
22708 * script/sh/execute.c: ... Moved here.
22709 * normal/function.c: Moved to ...
22710 * script/sh/function.c: ... Moved here.
22711 * normal/lexer.c: Moved to ...
22712 * script/sh/lexer.c: ... Moved here.
22713 * normal/parser.y: Moved to ...
22714 * script/sh/parser.y: ... Moved here.
22715 * normal/script.c: Moved to ...
22716 * script/sh/script.c: ... Moved here.
22717
22718 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
22719 <grub/reader.h>.
22720 (grub_exit_env): Removed.
22721 (fs_module_list): Moved to normal/autofs.c.
22722 (grub_file_getline): Don't handle comment here.
22723 (free_menu): Skip removed field entry->commands.
22724 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
22725 script parameter.
22726 (read_config_file): Removed nested parameter, change getline function.
22727 (grub_enter_normal_mode): Removed.
22728 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
22729 (read_command_list): Likewise.
22730 (autoload_fs_module): Moved to normal/autofs.c.
22731 (read_fs_list): Likewise.
22732 (reader_nested): New variable.
22733 (grub_normal_execute): Run parser.sh to switch to sh parser.
22734 (grub_cmd_rescue): Removed.
22735 (cmd_normal): Removed.
22736 (grub_cmd_normal): Unregister itself at the beginning. Don't register
22737 rescue command.
22738 (grub_cmdline_run): New function.
22739 (grub_normal_reader_init): Likewise.
22740 (grub_normal_read_line): Likewise.
22741 (grub_env_write_pager): Likewise.
22742 (cmdline): New variable.
22743 (grub_normal_reader): Likewise.
22744 (GRUB_MOD_INIT): Register normal reader and set as current, register
22745 pager hook, register normal command with grub_register_command_prio,
22746 so that it won't show up in command.lst.
22747 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
22748 grub_fs_autoload_hook.
22749
22750 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
22751 (grub_menu_execute_entry): Replace grub_script_execute with
22752 grub_parser_execute, change parameter to grub_command_execute.
22753
22754 * normal/menu_text.c: Remove <grub/script.h>.
22755
22756 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
22757 and <grub/parser.h>.
22758 (run): Change editor_getline to use new parser interface. Change
22759 parameter to grub_command_execute.
22760
22761 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
22762 <grub/reader.h> and <grub/parser.h>.
22763 (grub_load_normal_mode): Execute normal command.
22764 (grub_main): Call grub_register_core_commands,
22765 grub_register_rescue_parser and grub_register_rescue_reader, use
22766 grub_reader_loop to enter input loop.
22767
22768 * kern/parser.c (grub_parser_split_cmdline): Change type of
22769 getline parameter.
22770 (grub_parser_class): New variable.
22771 (grub_parser_execute): New function.
22772
22773 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
22774 * loader/multiboot2.c: Likewise.
22775 * loader/sparc64/ieee1275/linux.c: Likewise.
22776
22777 * util/grub-emu.c (read_command_list): New dummy function.
22778
22779 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22780
22781 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
22782 count to 16 for CCISS and IDA.
22783
22784 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22785
22786 * normal/menu_text.c (grub_wait_after_message): Print a newline
22787 after waiting for user input.
22788
22789 * loader/i386/linux.c: Include `<grub/normal.h>'.
22790 (grub_cmd_linux): Improve the error message about `ask' mode, by
22791 waiting for user input so it's not missed (we can do this, since
22792 user requested interaction).
22793
22794 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22795
22796 Added missing lst to grub-mkrescue
22797
22798 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
22799 and ${input_dir}/parttool.lst
22800
22801 2009-04-30 David S. Miller <davem@davemloft.net>
22802
22803 * util/hostdisk.c (device_is_wholedisk): New function.
22804 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
22805 zero only if device_is_wholedisk() returns true.
22806
22807 * util/hostdisk.c (convert_system_partition_to_system_disk):
22808 Handle virtual disk devices named /dev/vdiskX as found on sparc
22809 and powerpc.
22810
22811 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
22812 lettered partition specifier is found, convert to numbered.
22813
22814 2009-04-29 David S. Miller <davem@davemloft.net>
22815
22816 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
22817 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22818
22819 * normal/command.c: Add missing newline at end of file.
22820
22821 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
22822 warnings.
22823 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
22824 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
22825 grub_ofdisk_read): Likewise, and deal similarly with the fact that
22826 ihandles have a 32-bit type but need to be stored in a "void *".
22827
22828 2009-04-28 Pavel Roskin <proski@gnu.org>
22829
22830 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
22831 not disk. Adjust all dependencies.
22832 (grub_fs_uuid_close): Use grub_device_close(), not
22833 grub_disk_close().
22834
22835 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
22836 parent's partition, don't copy it by reference, as it gets freed
22837 on close.
22838
22839 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22840
22841 Preboot hooks support
22842
22843 * commands/boot.c (struct grub_preboot_t): new declaration
22844 (preboots_head): new variable
22845 (preboots_tail): likewise
22846 (grub_loader_register_preboot_hook): new function
22847 (grub_loader_unregister_preboot_hook): likewise
22848 (grub_loader_set): launch preboot hooks
22849 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
22850 (grub_loader_register_preboot_hook): new declaration
22851 (grub_loader_unregister_preboot_hook): likewise
22852
22853 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22854
22855 Warning fix
22856
22857 * disk/scsi.c (grub_scsi_open): added missing cast when
22858 calling grub_dprintf
22859
22860 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
22861
22862 Bug and warning fixes
22863
22864 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
22865 declaration
22866 * commands/test.c (test_parse): fixed bug with file tests and corrected
22867 declaration of find_file
22868
22869 2009-04-26 Pavel Roskin <proski@gnu.org>
22870
22871 * Makefile.in: Don't install empty manual pages if help2man is
22872 missing. Use help2man option for output, not shell redirection.
22873
22874 2009-04-26 David S. Miller <davem@davemloft.net>
22875
22876 * util/grub-mkdevicemap.c (make_device_map): Add missing
22877 NESTED_FUNC_ATTR to process_device().
22878
22879 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22880
22881 Test command
22882
22883 * commands/test.c: rewritten to use bash-like test
22884
22885 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22886
22887 Parttool autoloading and improvements
22888
22889 * Makefile.in (pkglib_DATA): add parttool.lst
22890 (parttool.lst): new target
22891 * genmk.rb: generate parttool-*
22892 (CLEANFILES): add #{parttool}
22893 (PARTTOOLFILES): new variable
22894 * genparttoollist.sh: new file
22895 * parttool/pcpart.c (grub_pcpart_boot): more feedback
22896 (grub_pcpart_type): likewise
22897 * commands/parttool.c (helpmsg): new variable
22898 (grub_cmd_parttool): output help if not enough arguments are supplied
22899 autoload modules
22900 (GRUB_MOD_INIT(parttool)): use helpmsg
22901
22902 2009-04-24 David S. Miller <davem@davemloft.net>
22903
22904 Avoiding opening same device multiple times in device iterator.
22905
22906 * kern/device.c: (grub_device_iterate): Define struct part_ent,
22907 and use it to build a list of partitions in iterate_disk() and
22908 iterate_partition().
22909
22910 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
22911 on disk->data.
22912
22913 * disk/ieee1275/nand.c (grub_nand_iterate): Return
22914 grub_devalias_iterate() result instead of unconditional 0.
22915 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
22916 Also, capture hook return value, either directly or via
22917 grub_children_iterate(), and propagate to caller.
22918 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
22919 grub_children_iterate): Return value is now 'int' instead of
22920 'grub_err_t'.
22921 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
22922 like a proper iterator, stopping when hooks return non-zero.
22923 (grub_devalias_iterate): Likewise.
22924
22925 2009-04-23 David S. Miller <davem@davemloft.net>
22926
22927 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
22928
22929 2009-04-22 David S. Miller <davem@davemloft.net>
22930
22931 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
22932 is larger than address_cells, use that value for address_cells too.
22933
22934 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
22935 IEEE1275_MAX_PATH_LEN): Define.
22936 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
22937 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
22938 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
22939 'devtype'. Explicitly NULL terminate devalias expansion.
22940
22941 * util/sparc64/ieee1275/misc.c: New file.
22942 * util/sparc64/ieee1275/grub-setup.c: New file.
22943 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
22944 * util/sparc64/ieee1275/grub-mkimage.c: New file.
22945 * util/sparc64/ieee1275/grub-install.in: New file.
22946 * util/ieee1275/ofpath.c: New file.
22947 * util/ieee1275/devicemap.c: New file.
22948 * util/devicemap.c: New file.
22949 * util/deviceiter.c: New file.
22950 * kern/sparc64/ieee1275/init.c: New file.
22951 * include/grub/util/ofpath.h: New file.
22952 * include/grub/util/deviceiter.h: New file.
22953 * util/grub-mkdevicemap.c: Include deviceiter.h.
22954 Implement using grub_util_emit_devicemap_entry and
22955 grub_util_iterate_devices.
22956 * conf/i386-corebook.rmk: Build util/deviceiter.c and
22957 util/devicemap.c into grub-mkdevicemap
22958 * conf/i386-efi.rmk: Likewise.
22959 * conf/i386-ieee1275.rmk: Likewise.
22960 * conf/i386-pc.rmk: Likewise.
22961 * conf/powerpc-ieee1275.rmk: Likewise.
22962 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
22963 images and installation utilities. Build kernel as image
22964 instead of as elf binary. Use common rules as much as possible.
22965
22966 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22967
22968 Correct GPT definition
22969
22970 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22971 of "attrib" member
22972
22973 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
22974
22975 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
22976
22977 2009-04-19 David S. Miller <davem@davemloft.net>
22978
22979 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
22980 (grub_rescue_cmd_linux): Rename to...
22981 (grub_cmd_linux): and fix prototype.
22982 (grub_rescue_cmd_initrd): Rename to...
22983 (grub_cmd_initrd): and fix prototype.
22984 (cmd_linux, cmd_initrd): New.
22985 (GRUB_MOD_INIT(linux)): Use grub_register_command().
22986 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
22987
22988 2009-04-17 Pavel Roskin <proski@gnu.org>
22989
22990 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
22991 format.
22992 (grub_ohci_transfer): Likewise.
22993
22994 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
22995
22996 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
22997 return without a value. Fix inconsistent indentation.
22998
22999 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
23000 match struct grub_fs.
23001
23002 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
23003 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
23004 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23005 * commands/lspci.c (grub_lspci_iter): Likewise.
23006
23007 2009-04-16 Bean <bean123ch@gmail.com>
23008
23009 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
23010 value.
23011
23012 2009-04-15 Pavel Roskin <proski@gnu.org>
23013
23014 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
23015 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
23016 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
23017 definitions.
23018
23019 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
23020
23021 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
23022 that no multiple data or metadata areas are supported and `Unknown
23023 metadata header'.
23024
23025 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23026
23027 Move loader out of the kernel
23028
23029 * kern/loader.c: moved to ...
23030 * commands/boot.c: ... moved here
23031 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
23032 * commands/boot.c (grub_cmd_boot): moved here. All users updated
23033 * include/grub/kernel.h (grub_machine_fini): export
23034 * include/grub/loader.h (grub_loader_is_loaded): update declaration
23035 (grub_loader_set): likewise
23036 (grub_loader_unset): likewise
23037 (grub_loader_boot): likewise
23038 * conf/common.rmk: new module boot.mod
23039 (pkglib_MODULES): add boot.mod
23040 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
23041 (grub_emu_SOURCES): likewise
23042 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
23043 (grub_emu_SOURCES): likewise
23044 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
23045 (grub_emu_SOURCES): likewise
23046 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
23047 (grub_emu_SOURCES): likewise
23048 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
23049 (grub_emu_SOURCES): likewise
23050 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
23051 (grub_emu_SOURCES): likewise
23052 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
23053 (grub_emu_SOURCES): likewise
23054
23055 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23056
23057 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
23058
23059 * kern/misc.c (grub_itoa): Removed function
23060 (grub_ltoa): likewise
23061 (grub_vsprintf): use grub_lltoa
23062
23063 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23064
23065 Restore grub-emu
23066
23067 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
23068 * conf/i386-coreboot.rmk: likewise
23069 * conf/i386-ieee1275.rmk: likewise
23070 * conf/powerpc-ieee1275.rmk: likewise
23071
23072 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
23073
23074 * INSTALL: Add that `./autogen.sh' needs to be run before
23075 `./configure.'.
23076
23077 2009-04-14 Bean <bean123ch@gmail.com>
23078
23079 * Makefile.in (pkglib_DATA): Add handler.lst.
23080 (handler.lst): New rule.
23081
23082 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
23083 * conf/i386-coreboot.rmk: Likewise.
23084 * conf/i386-ieee1275.rmk: Likewise.
23085 * conf/i386-efi.rmk: Likewise.
23086 * conf/x86_64-efi.rmk: Likewise.
23087 * conf/powerpc-ieee1275.rmk: Likewise.
23088 * conf/sparc64-ieee1275.rmk: Likewise.
23089
23090 * genhandlerlist.sh: New file.
23091
23092 * genmk.rb: Add rules to generate handler.lst.
23093
23094 * include/grub/normal.h (grub_file_getline): New function definition.
23095 (read_handler_list): Likewise.
23096 (free_handler_list): Likewise.
23097
23098 * include/grub/term.h (grub_term_register_input): Add name parameter
23099 for auto generation of handler.lst.
23100 (grub_term_register_output): Likewise.
23101
23102 * normal/handler.c: New file.
23103
23104 * normal/main.c (get_line): Renamed to grub_file_getline.
23105 (read_config_file): Use the newly renamed grub_file_getline.
23106 (read_command_list): Likewise.
23107 (read_fs_list): Likewise.
23108 (grub_normal_execute): Call read_handler_list to parse handler.lst.
23109 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
23110
23111 * term/efi/console.c (grub_console_init): Add name parameter for auto
23112 generation of handler.lst.
23113 * term/gfxterm.c: Likewise.
23114 * term/i386/pc/at_keyboard.c: Likewise.
23115 * term/i386/pc/console.c: Likewise.
23116 * term/i386/pc/serial.c: Likewise.
23117 * term/i386/pc/vesafb.c: Likewise.
23118 * term/i386/pc/vga.c: Likewise.
23119 * term/i386/pc/vga_text.c: Likewise.
23120 * term/ieee1275/ofconsole.c: Likewise.
23121 * term/usb_keyboard.c: Likewise.
23122
23123 2009-04-14 Bean <bean123ch@gmail.com>
23124
23125 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
23126 properly with null character.
23127
23128 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
23129
23130 * configure: Remove.
23131 * config.h.in: Likewise.
23132 * stamp-h.in: Likewise.
23133 * DISTLIST: Likewise.
23134 * conf/common.mk: Likewise.
23135 * conf/i386-coreboot.mk: Likewise.
23136 * conf/i386-efi.mk: Likewise.
23137 * conf/i386-ieee1275.mk: Likewise.
23138 * conf/i386.mk: Likewise.
23139 * conf/i386-pc.mk: Likewise.
23140 * conf/powerpc-ieee1275.mk: Likewise.
23141 * conf/sparc64-ieee1275.mk: Likewise.
23142 * conf/x86_64-efi.mk: Likewise.
23143
23144 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
23145 develop on GRUB.
23146
23147 2009-04-14 John Stanley <jpsinthemix@verizon.net>
23148 David S. Miller <davem@davemloft.net>
23149
23150 * util/hostdisk.c (make_device_name): Fix buffer length
23151 calculations.
23152
23153 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
23154
23155 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
23156 <sys/param.h> and <sys/sysctl.h>.
23157 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
23158 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
23159 opening the device and reset them afterwards.
23160
23161 2009-04-13 Pavel Roskin <proski@gnu.org>
23162
23163 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
23164 Reported by John Stanley <jpsinthemix@verizon.net>
23165
23166 2009-04-13 Robert Millan <rmh@aybabtu.com>
23167
23168 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
23169 that name for menuentries when appropriate.
23170
23171 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23172
23173 * util/grub.d/10_freebsd.in: Add a missing `fi'.
23174
23175 2009-04-13 Robert Millan <rmh@aybabtu.com>
23176
23177 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
23178 to Linux, simply abort telling the user it's no longer supported.
23179
23180 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23181
23182 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
23183 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
23184 `freebsd_loadenv' only when devices.hints exist.
23185
23186 2009-04-13 Pavel Roskin <proski@gnu.org>
23187
23188 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
23189
23190 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23191
23192 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
23193 partition number.
23194 (grub_drive): Likewise.
23195
23196 2009-04-13 David S. Miller <davem@davemloft.net>
23197
23198 * kern/sparc64/ieee1275/ieee1275.c: New file.
23199 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
23200 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
23201 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
23202 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
23203 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
23204 grub_ieee1275_alloc_physmem): Declare new exported functions.
23205
23206 * include/grub/sparc64/ieee1275/loader.h: New file.
23207 * include/grub/sparc64/ieee1275/memory.h: Likewise.
23208 * include/grub/sparc64/kernel.h: Likewise.
23209 * loader/sparc64/ieee1275/linux.c: Likewise.
23210
23211 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
23212 (grub_fstest_SOURCES): Likewise.
23213
23214 * util/hostdisk.c (make_device_name): Do not make any assumptions
23215 about the length of drive names.
23216
23217 * kern/dl.c (grub_dl_load_file): Close file immediately when
23218 we are done using it.
23219
23220 2009-04-12 David S. Miller <davem@davemloft.net>
23221
23222 * kern/misc.c (grub_ltoa): Fix cast when handling negative
23223 values. Noticed by Pavel Roskin.
23224
23225 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
23226 target compiler.
23227
23228 * genmk.rb: Add more flexible image type specification, also
23229 pass --strip-unneeded to objcopy.
23230 * conf/i386-pc.rmk: Use *_FORMAT.
23231 * conf/i386-pc.mk: Rebuilt.
23232
23233 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
23234 (OFDISK_HASH_SZ): Define.
23235 (ofdisk_hash): New hash table.
23236 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
23237 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
23238 instead of device phandle which is not unique.
23239
23240 * kern/sparc64/ieee1275/init.c: Delete, replace with...
23241 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
23242 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
23243 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
23244 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
23245 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
23246 GRUB_KERNEL_MACHINE_DATA_END): Define.
23247 (grub_kernel_image_size, grub_total_module_size): Declare.
23248
23249 2009-04-12 Pavel Roskin <proski@gnu.org>
23250
23251 * configure.ac: Change the logic when we check for target tools.
23252 Do it when the target is specified and it's different from the
23253 specified value of the host.
23254
23255 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
23256
23257 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
23258 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
23259 GNU/kFreeBSD. Check if a device is a character device. Use
23260 DIOCGMEDIASIZE to get the size.
23261 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
23262 support for GNU/kFreeBSD.
23263 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
23264 is a character device instead of a block device. Add support for
23265 FreeBSD device names.
23266
23267 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
23268 is a character device instead of a block device.
23269
23270 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
23271 is a character device instead of a block device.
23272
23273 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
23274
23275 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
23276 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
23277 FreeBSD. Check if a device is a character device. Use
23278 DIOCGMEDIASIZE to get the size.
23279 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
23280 support for FreeBSD.
23281 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
23282 is a character device instead of a block device. Add support for
23283 FreeBSD device names.
23284
23285 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
23286 a character device instead of a block device.
23287 (grub_util_check_char_device): New function.
23288
23289 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
23290 a character device instead of a block device.
23291
23292 * include/grub/util/getroot.h (grub_util_check_char_device): New
23293 prototype.
23294
23295 2009-04-11 David S. Miller <davem@davemloft.net>
23296
23297 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
23298 static libgcc.
23299 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
23300 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
23301 function, if present.
23302 (__bswapdi2): Likewise.
23303
23304 * include/grub/sparc64/ieee1275/boot.h: New file.
23305 * boot/sparc64/ieee1275/boot.S: Likewise.
23306 * boot/sparc64/ieee1275/diskboot.S: Likewise.
23307
23308 * kern/misc.c (grub_ltoa): New function.
23309 (grub_vsprintf): Use it to format 'long' integers.
23310
23311 2009-04-10 David S. Miller <davem@davemloft.net>
23312
23313 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
23314 slots are of type grub_ieee1275_cell_t.
23315 (grub_nand_read): Likewise.
23316 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
23317 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
23318 macros are used to compare values in arg/ret block of the call.
23319 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
23320 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
23321 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
23322 grub_ieee1275_instance_to_path, grub_ieee1275_write,
23323 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
23324 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
23325 grub_ieee1275_close, grub_ieee1275_set_property,
23326 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
23327 grub_ieee1275_cell_t.
23328 * kern/ieee1275/openfw.c (grub_map): Likewise.
23329 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
23330 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
23331
23332 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
23333 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
23334 (grub_devalias_iterate): Likewise.
23335
23336 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23337
23338 UFS improvements
23339
23340 * fs/ufs.c (INODE_NBLOCKS): new definition
23341 (struct grub_ufs_dirent): added fields for non-BSD dirents
23342 (grub_ufs_get_file_block): fixed double indirect handling
23343 (grub_ufs_lookup_symlink): use more robust way to determine whether
23344 symlink is inline
23345 (grub_ufs_find_file): support for non-BSD dirents
23346 (grub_ufs_dir): support for non-BSD dirents
23347
23348 2009-04-10 Bean <bean123ch@gnail.com>
23349
23350 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
23351 attribute, otherwise the size would be wrong for i386 platform.
23352
23353 * include/grub/pci.h (grub_pci_read_word): New inline function.
23354 (grub_pci_read_byte): Likewise.
23355 (grub_pci_write): Likewise.
23356 (grub_pci_write_word): Likewise.
23357 (grub_pci_write_byte): Likewise.
23358
23359 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
23360
23361 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
23362 (find_framebuf): Scan pci to locate the frame buffer address.
23363
23364 * commands/efi/fixvideo.c: New file.
23365
23366 * commands/efi/loadbios.c: Likewise.
23367
23368 * commands/memrw.c: Likewise.
23369
23370 * util/grub-dumpbios.in: Likewise.
23371
23372 * conf/common.rmk (grub-dumpbios): New utility.
23373 (pkglib_MODULES): New module memrw.mod.
23374 (memrw_mod_SOURCE): New macro.
23375 (memrw_mod_CFLAGS): Likewise.
23376 (memrw_mod_LDFLAGS): Likewise.
23377
23378 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
23379 fixvideo.mod.
23380 (loadbios_mod_SOURCE): New macro.
23381 (loadbios_mod_CFLAGS): Likewise.
23382 (loadbios_mod_LDFLAGS): Likewise.
23383 (fixvideo_mod_SOURCE): Likewise.
23384 (fixvideo_mod_CFLAGS): Likewise.
23385 (fixvideo_mod_LDFLAGS): Likewise.
23386
23387 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
23388 fixvideo.mod.
23389 (loadbios_mod_SOURCE): New macro.
23390 (loadbios_mod_CFLAGS): Likewise.
23391 (loadbios_mod_LDFLAGS): Likewise.
23392 (fixvideo_mod_SOURCE): Likewise.
23393 (fixvideo_mod_CFLAGS): Likewise.
23394 (fixvideo_mod_LDFLAGS): Likewise.
23395
23396 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
23397
23398 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
23399
23400 2009-04-07 David S. Miller <davem@davemloft.net>
23401
23402 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
23403 support for R_SPARC_OLO10 relocations. Fix compile warning for
23404 R_SPARC_WDISP30 case.
23405 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
23406
23407 2009-04-06 Pavel Roskin <proski@gnu.org>
23408
23409 * include/grub/misc.h (ARRAY_SIZE): New macro.
23410 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
23411 New macro.
23412 * loader/i386/linux.c (allocate_pages): Use free_pages().
23413 (grub_linux_unload): Don't use free_pages().
23414 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
23415 wrong index. Treat all other modes as text modes.
23416 (grub_cmd_linux): Initialize vid_mode unconditionally to
23417 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
23418
23419 * commands/help.c (print_command_help): Use cmd->prio, not
23420 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
23421
23422 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23423
23424 Parttool
23425
23426 * parttool/pcpart.c: new file
23427 * commands/parttool.c: likewise
23428 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
23429 (parttool_mod_SOURCES): new variable
23430 (parttool_mod_CFLAGS): likewise
23431 (parttool_mod_LDFLAGS): likewise
23432 (pcpart_mod_SOURCES): likewise
23433 (pcpart_mod_CFLAGS): likewise
23434 (pcpart_mod_LDFLAGS): likewise
23435 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
23436 and parttool/pcpart.c
23437 * conf/i386-efi.rmk: likewise
23438 * conf/i386-ieee1275.rmk: likewise
23439 * conf/i386-pc.rmk: likewise
23440 * conf/powerpc-ieee1275.rmk: likewise
23441 * conf/sparc64-ieee1275.rmk: likewise
23442 * conf/x86_64-ieee1275.rmk: likewise
23443
23444 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 Support for mtime and further expandability of dir command
23447
23448 * include/grub/lib/datetime.h: moved to ...
23449 * include/grub/datetime.h: ... moved here and added
23450 declaration of grub_unixtime2datetime. All users updated
23451 * include/grub/fs.h: new syntax for dir and mtime functions in
23452 struct grub_fs
23453 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
23454 and GRUB_FSHELP_FLAGS_MASK
23455 * commands/ls.c (grub_ls_list_files): Write mtime in long format
23456 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
23457 (grub_ext2_mtime): new function
23458 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
23459 (grub_hfsplus_mtime): new function
23460 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
23461 (GRUB_UFS_ATTR_FILE): likewise
23462 (GRUB_UFS_ATTR_LNK): likewise
23463 (struct grub_ufs_sblock): new fields mtime
23464 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
23465 all users updated
23466 (grub_ufs_dir): mtime support
23467 (grub_ufs_mtime): new function
23468 * fs/affs.c (grub_affs_dir): use new dir syntax
23469 * fs/afs.c (grub_afs_dir): likewise
23470 * fs/cpio.c (grub_cpio_dir): likewise
23471 * fs/fat.c (grub_fat_find_dir): likewise
23472 * fs/hfs.c (grub_hfs_dir): likewise
23473 * fs/iso9660.c (grub_iso9660_dir): likewise
23474 * fs/jfs.c (grub_jfs_dir): likewise
23475 * fs/minix.c (grub_minix_dir): likewise
23476 * fs/ntfs.c (grub_ntfs_dir): likewise
23477 * fs/reiserfs.c (grub_reiserfs_dir): likewise
23478 * fs/sfs.c (grub_sfs_dir): likewise
23479 * fs/xfs.c (grub_xfs_dir): likewise
23480 * util/hostfs.c (grub_hostfs_dir): likewise
23481 * lib/datetime.c: moved to ...
23482 * normal/datetime.c: ... moved here
23483 (grub_unixtime2datetime): new function
23484 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
23485 * normal/completion.c (iterate_dir): use new dir syntax
23486 * normal/misc.c (grub_normal_print_device_info): tell the
23487 last modification time of a volume
23488 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
23489 * conf/common.rmk: added lib/datetime.c to ls.mod
23490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
23491 (normal_mod_SOURCES): likewise
23492 (datetime_mod_SOURCES): Removed lib/datetime.c
23493 * conf/i386-efi.rmk: likewise
23494 * conf/i386-ieee1275.rmk: likewise
23495 * conf/i386-pc.rmk: likewise
23496 * conf/powerpc-ieee1275.rmk: likewise
23497 * conf/sparc64-ieee1275.rmk: likewise
23498 * conf/x86_64-efi.rmk: likewise
23499
23500 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 Trim trailing spaces in FAT label and support mtools-like labels
23503
23504 * fs/fat.c (grub_fat_iterate_dir): New function based
23505 on grub_fat_find_dir
23506 (grub_fat_find_dir): use grub_fat_iterate_dir
23507 (grub_fat_label): likewise
23508
23509 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23510
23511 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
23512 and command.h
23513 remove extraneous kernel_elf_HEADERS
23514
23515 2009-04-04 Bean <bean123ch@gnail.com>
23516
23517 * include/grub/util/misc.h: Add dummy function fsync for mingw.
23518
23519 * util/misc.c: Likewise.
23520
23521 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
23522
23523 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
23524 instead of grub_printf.
23525
23526 2009-04-03 Robert Millan <rmh@aybabtu.com>
23527
23528 * loader/i386/linux.c (grub_linux_setup_video): Fill
23529 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
23530 values from `mode info' structure instead of hardcoded
23531 values.
23532
23533 2009-04-01 Pavel Roskin <proski@gnu.org>
23534
23535 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
23536 unused now.
23537 * genmk.rb: Likewise.
23538 * configure.ac: Likewise.
23539
23540 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
23541
23542 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
23543 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
23544
23545 2009-04-01 David S. Miller <davem@davemloft.net>
23546
23547 * normal/sparc64/setjmp.S: Fix setjmp implementation.
23548 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
23549 (grub_setjmp): Mark with 'returns_twice' attribute.
23550 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
23551 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
23552 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
23553
23554 2009-04-01 Robert Millan <rmh@aybabtu.com>
23555
23556 Reapply fix from 2008-07-28 which was accidentally reverted; also
23557 perform the same fix to a similar check in same function.
23558
23559 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
23560 with the same number are found, just use issue a warning with
23561 grub_dprintf(), as this error has been reported to be non-fatal.
23562
23563 2009-03-31 Pavel Roskin <proski@gnu.org>
23564
23565 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
23566 for cross-compilation.
23567
23568 2009-03-30 Robert Millan <rmh@aybabtu.com>
23569
23570 Fix i386-ieee1275 build.
23571
23572 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
23573 Remove declaration.
23574
23575 2009-03-30 Pavel Roskin <proski@gnu.org>
23576
23577 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
23578 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
23579 zero-terminated, rely only on the strlen value. Fix comparison
23580 of strings differing in length.
23581
23582 2009-03-30 Robert Millan <rmh@aybabtu.com>
23583
23584 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
23585 checking for abi version. Improve error messages on BIOS to notify
23586 user about `linux16' command.
23587
23588 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
23589
23590 Leak fixes
23591
23592 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
23593 in case of collision
23594 * disk/scsi.c (grub_scsi_open): free scsi in case of error
23595
23596 2009-03-29 Robert Millan <rmh@aybabtu.com>
23597
23598 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
23599 set `vid_mode' accordingly.
23600 (grub_linux_boot): Process `vid_mode' and set video mode.
23601
23602 2009-03-29 Robert Millan <rmh@aybabtu.com>
23603
23604 * util/grub.d/10_linux.in (linux_entry): New function.
23605 Factorize generation of Linux boot entries.
23606
23607 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
23608
23609 Make the format of Environment Block plain text. The boot loader
23610 part is not tested well yet.
23611
23612 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
23613 (buffer): Removed.
23614 (envblk): Likewise.
23615 (usage): Remove "info" and "clear". Add "unset". Update the
23616 description of "set", as this does not delete variables any
23617 longer.
23618 (create_envblk_file): Complete rewrite.
23619 (open_envblk_file): Likewise.
23620 (cmd_info): Removed.
23621 (cmd_list): Likewise.
23622 (cmd_set): Likewise.
23623 (cmd_clear): Likewise.
23624 (list_variables): New function.
23625 (write_envblk): Likewise.
23626 (set_variables): Likewise.
23627 (unset_variables): Likewise.
23628 (main): Complete rewrite.
23629
23630 * commands/loadenv.c (buffer): Removed.
23631 (envblk): Likewise.
23632 (open_envblk_file): New function.
23633 (read_envblk_file): Complete rewrite.
23634 (grub_cmd_load_env): Likewise.
23635 (grub_cmd_list_env): Likewise.
23636 (struct blocklist): New struct.
23637 (free_blocklists): New function.
23638 (check_blocklists): Likewise.
23639 (write_blocklists): Likewise.
23640 (grub_cmd_save_env): Complete rewrite.
23641
23642 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
23643 a plain text signature.
23644 (GRUB_ENVBLK_MAXLEN): Removed.
23645 (struct grub_envblk): Complete rewrite.
23646 (grub_envblk_find): Removed.
23647 (grub_envblk_insert): Likewise.
23648 (grub_envblk_open): New prototype.
23649 (grub_envblk_set): Likewise.
23650 (grub_envblk_delete): Put const to VALUE.
23651 (grub_envblk_iterate): Put const to NAME and VALUE.
23652 (grub_envblk_close): New prototype.
23653 (grub_envblk_buffer): New inline function.
23654 (grub_envblk_size): Likewise.
23655
23656 * lib/envblk.c: Include grub/mm.h.
23657 (grub_env_find): Removed.
23658 (grub_envblk_open): New function.
23659 (grub_envblk_close): Likewise.
23660 (escaped_value_len): Likewise.
23661 (find_next_line): Likewise.
23662 (grub_envblk_insert): Removed.
23663 (grub_envblk_set): New function.
23664 (grub_envblk_delete): Complete rewrite.
23665 (grub_envblk_iterate): Likewise.
23666
23667 2009-03-28 Robert Millan <rmh@aybabtu.com>
23668
23669 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
23670 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
23671 variables. Use 16-bit loader.
23672 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
23673 loader.
23674 * kern/i386/loader.S (grub_linux_boot): Rename to ...
23675 (grub_linux16_boot): ... this. Update all users.
23676 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
23677 (grub_linux_boot): ... this. Update all users.
23678
23679 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
23680 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
23681 commands to `linux16' and `initrd16'.
23682 (GRUB_MOD_FINI(linux)): Rename to ...
23683 (GRUB_MOD_FINI(linux16)): ... this.
23684
23685 2009-03-24 Pavel Roskin <proski@gnu.org>
23686
23687 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
23688 not just for compilation.
23689
23690 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
23691
23692 Move multiboot helper out of kernel
23693
23694 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
23695 `loader/i386/multiboot_helper.S'.
23696 * conf/i386-coreboot.rmk: Likewise
23697 * conf/i386-ieee1275.rmk: Likewise
23698
23699 * kern/i386/loader.S: Move multiboot helpers from here...
23700 * loader/i386/multiboot_helper.S: ...moved here
23701 * include/grub/i386/loader.h: Move declarations of multiboot
23702 helpers from here...
23703 * include/grub/i386/multiboot.h: ...moved here
23704 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
23705
23706 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23707
23708 * kern/env.c (grub_env_context_open): Added an argument to specify
23709 whether a new context inherits exported variables from current
23710 one. This is useful when making a sandbox to interpret a config
23711 file.
23712 All callers updated.
23713
23714 * include/grub/env.h (grub_env_context_open): Updated the prototype.
23715
23716 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23717
23718 * kern/env.c (grub_env_context_close): Fix memory leaks.
23719
23720 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23721
23722 * normal/main.c (grub_normal_execute): Added an argument
23723 BATCH to specify if an interactive interface should be provided
23724 after reading a config file.
23725 All callers updated.
23726 (read_command_list): Prevent being executed twice.
23727 (read_fs_list): Likewise.
23728
23729 * include/grub/normal.h (grub_normal_execute): Updated the
23730 prototype.
23731
23732 2009-03-22 Pavel Roskin <proski@gno.org>
23733
23734 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
23735 _start.
23736 * kern/i386/pc/startup.S: Likewise.
23737 * kern/i386/efi/startup.S: Likewise.
23738 * kern/i386/ieee1275/startup.S: Likewise.
23739 * kern/i386/coreboot/startup.S: Likewise.
23740 * kern/x86_64/efi/startup.S: Likewise.
23741
23742 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
23743 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
23744 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
23745
23746 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
23747
23748 Bugfixes in multiboot for bugs uncovered by solaris kernel.
23749
23750 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
23751 limit detection.
23752 Use vaddr of correct segment for entry_point.
23753
23754 2009-03-21 Bean <bean123ch@gmail.com>
23755
23756 * commands/blocklist.c: Add include file <grub/command.h>, remove
23757 <grub/normal.h> and <grub/arg.h>.
23758 (grub_cmd_blocklist): Use the new command interface.
23759 (GRUB_MOD_INIT): Likewise.
23760 (GRUB_MOD_FINI): Likewise.
23761 * commands/boot.c: Likewise.
23762 * commands/cat.c: Likewise.
23763 * commands/cmp.c: Likewise.
23764 * commands/configfile.c: Likewise.
23765 * commands/crc.c: Likewise.
23766 * commands/echo.c: Likewise.
23767 * commands/halt.c: Likewise.
23768 * commands/handler.c: Likewise.
23769 * commands/hdparm.c: Likewise.
23770 * commands/help.c: Likewise.
23771 * commands/hexdump.c: Likewise.
23772 * commands/loadenv.c: Likewise.
23773 * commands/ls.c: Likewise.
23774 * commands/lsmmap.c: Likewise.
23775 * commands/lspci.c: Likewise.
23776 * commands/loadenv.c: Likewise.
23777 * commands/read.c: Likewise.
23778 * commands/reboot.c: Likewise.
23779 * commands/search.c: Likewise.
23780 * commands/sleep.c: Likewise.
23781 * commands/test.c: Likewise.
23782 * commands/usbtest.c: Likewise.
23783 * commands/videotest.c: Likewise.
23784 * commands/i386/cpuid.c: Likewise.
23785 * commands/i386/pc/halt.c: Likewise.
23786 * commands/i386/pc/play.c: Likewise.
23787 * commands/i386/pc/pxecmd.c: Likewise.
23788 * commands/i386/pc/vbeinfo.c: Likewise.
23789 * commands/i386/pc/vbetest.c: Likewise.
23790 * commands/ieee1275/suspend.c: Likewise.
23791 * disk/loopback.c: Likewise.
23792 * font/font_cmd.c: Likewise.
23793 * hello/hello.c: Likewise.
23794 * loader/efi/appleloader.c: Likewise.
23795 * loader/efi/chainloader.c: Likewise.
23796 * loader/i386/bsd.c: Likewise.
23797 * loader/i386/efi/linux.c: Likewise.
23798 * loader/i386/ieee1275/linux.c: Likewise.
23799 * loader/i386/linux.c: Likewise.
23800 * loader/i386/pc/chainloader.c: Likewise.
23801 * loader/i386/pc/linux.c: Likewise.
23802 * loader/powerpc/ieee1275/linux.c: Likewise.
23803 * loader/multiboot_loader.c: Likewise.
23804 * term/gfxterm.c: Likewise.
23805 * term/i386/pc/serial.c: Likewise.
23806 * term/terminfo.c: Likewise.
23807
23808 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
23809 * term/i386/pc/vga.c: Likewise.
23810 * video/readers/jpeg.c: Likewise.
23811 * video/readers/png.c: Likewise.
23812 * video/readers/tga.c: Likewise.
23813
23814 * util/grub-fstest (cmd_loopback): Removed.
23815 (cmd_blocklist): Likewise.
23816 (cmd_ls): Likewise.
23817 (grub_register_command): Likewise.
23818 (grub_unregister_command): Likewise.
23819 (execute_command): Use grub_command_find to locate command and execute
23820 it.
23821
23822 * include/grub/efi/chainloader.h: Removed.
23823 * loader/efi/chainloader_normal.c: Likewise.
23824 * loader/i386/bsd_normal.c: Likewise.
23825 * loader/i386/pc/chainloader_normal.c: Likewise.
23826 * loader/i386/pc/multiboot_normal.c: Likewise.
23827 * loader/linux_normal.c: Likewise.
23828 * loader/multiboot_loader_normal.c: Likewise.
23829 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23830
23831 * gencmdlist.sh: Scan new registration command grub_register_extcmd
23832 and grub_register_command_p1.
23833
23834 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
23835 kern/command.c, lib/arg.c and commands/extcmd.c.
23836 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
23837 (minicmd_mod_SOURCES): New variable.
23838 (minicmd_mod_CFLAGS): Likewise.
23839 (minicmd_mod_LDFLAGS): Likewise.
23840 (extcmd_mod_SOURCES): Likewise.
23841 (extcmd_mod_CFLAGS): Likewise.
23842 (extcmd_mod_LDFLAGS): Likewise.
23843 (boot_mod_SOURCES): Removed.
23844 (boot_mod_CFLAGS): Likewise.
23845 (boot_mod_LDFLAGS): Likewise.
23846
23847 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
23848 kern/corecmd.c.
23849 (kernel_img_HEADERS): Add command.h.
23850 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
23851 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
23852 and lib/arg.c.
23853 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
23854 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
23855 remove the corresponding normal mode command.
23856 (normal_mod_SOURCES): Remove normal/arg.c.
23857 * conf/i386-coreboot.rmk: Likewise.
23858 * conf/i386-efi.rmk: Likewise.
23859 * conf/i386-ieee1275.rmk: Likewise.
23860 * conf/powerpc-ieee1275.rmk: Likewise.
23861 * conf/x86_64-efi.rmk: Likewise.
23862
23863 * include/grub/arg.h: Move from here ...
23864 * include/grub/lib/arg.h: ... to here.
23865
23866 * normal/arg.c: Move from here ...
23867 * lib/arg.c: ... to here.
23868
23869 * commands/extcmd.c: New file.
23870 * commands/minicmd.c: Likewise.
23871 * include/grub/command.h: Likewise.
23872 * include/grub/extcmd.h: Likewise.
23873 * kern/command.c: Likewise.
23874 * kern/corecmd.c: Likewise.
23875
23876 * kern/list.c (grub_list_iterate): Return int instead of void.
23877 (grub_list_insert): New function.
23878 (grub_prio_list_insert): Likewise.
23879
23880 * kern/rescue.c (grub_rescue_command): Removed.
23881 (grub_rescue_command_list): Likewise.
23882 (grub_rescue_register_command): Likewise.
23883 (grub_rescue_unregister_command): Likewise.
23884 (grub_rescue_cmd_boot): Move to minicmd.c
23885 (grub_rescue_cmd_help): Likewise.
23886 (grub_rescue_cmd_info): Likewise.
23887 (grub_rescue_cmd_boot): Likewise.
23888 (grub_rescue_cmd_testload): Likewise.
23889 (grub_rescue_cmd_dump): Likewise.
23890 (grub_rescue_cmd_rmmod): Likewise.
23891 (grub_rescue_cmd_lsmod): Likewise.
23892 (grub_rescue_cmd_exit): Likewise.
23893 (grub_rescue_print_devices): Moved to corecmd.c.
23894 (grub_rescue_print_files): Likewise.
23895 (grub_rescue_cmd_ls): Likewise.
23896 (grub_rescue_cmd_insmod): Likewise.
23897 (grub_rescue_cmd_set): Likewise.
23898 (grub_rescue_cmd_unset): Likewise.
23899 (attempt_normal_mode): Use grub_command_find to get normal module.
23900 (grub_enter_rescue_mode): Use grub_register_core_commands to register
23901 commands, remove grub_rescue_register_command calls.
23902
23903 * normal/command.c (grub_register_command): Removed.
23904 (grub_unregister_command): Likewise.
23905 (grub_command_find): Likewise.
23906 (grub_iterate_commands): Likewise.
23907 (rescue_command): Likewise.
23908 (export_command): Moved to corecmd.c.
23909 (set_command): Removed.
23910 (unset_command): Likewise.
23911 (insmod_command): Likewise.
23912 (rmmod_command): Likewise.
23913 (lsmod_command): Likewise.
23914 (grub_command_init): Likewise.
23915
23916 * normal/completion.c (iterate_command): Use cmd->prio to check for
23917 active command.
23918 (complete_arguments): Use grub_extcmd_t structure to find options.
23919 (grub_normal_do_completion): Change function grub_iterate_commands to
23920 grub_command_iterate.
23921
23922 * normal/execute.c (grub_script_execute_cmd): No need to parse
23923 argument here.
23924
23925 * normal/main.c (grub_dyncmd_dispatcher): New function.
23926 (read_command_list): Register unload commands as dyncmd.
23927 (grub_cmd_normal): Use new command interface, register rescue,
23928 unregister normal at entry, register normal, unregister rescue at exit.
23929
23930 * include/grub/list.h (grub_list_test_t): New type.
23931 (grub_list_iterate): Return int instead of void.
23932 (grub_list_insert): New function.
23933 (GRUB_AS_NAMED_LIST_P): New macro.
23934 (GRUB_AS_PRIO_LIST): Likewise.
23935 (GRUB_AS_PRIO_LIST_P): Likewise.
23936 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
23937 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
23938 (grub_prio_list): New structure.
23939 (grub_prio_list_insert): New function.
23940 (grub_prio_list_remove): New inline function.
23941
23942 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
23943 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
23944 (GRUB_COMMAND_FLAG_MENU): Likewise.
23945 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23946 (GRUB_COMMAND_FLAG_TITLE): Likewise.
23947 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23948 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
23949 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
23950 (grub_command): Likewise.
23951 (grub_register_command): Likewise.
23952 (grub_command_find): Likewise.
23953 (grub_iterate_commands): Likewise.
23954 (grub_command_init): Likewise.
23955 (grub_arg_parse): Likewise.
23956 (grub_arg_show_help): Likewise.
23957
23958 * include/grub/rescue.h (grub_rescue_register_command): Removed.
23959 (grub_rescue_unregister_command): Likewise.
23960
23961 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
23962 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
23963 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
23964
23965 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
23966 grub_rescue_cmd_initrd.
23967 * include/grub/i386/loader.h: Likewise.
23968 * include/grub/x86_64/loader.h: Likewise.
23969
23970 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
23971
23972 2009-03-21 Bean <bean123ch@gmail.com>
23973
23974 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
23975 instead of stat in mingw environment.
23976
23977 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
23978
23979 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
23980
23981 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
23982 AC_CONFIG_LINKS.
23983
23984 2009-03-21 Bean <bean123ch@gmail.com>
23985
23986 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
23987 out of range error.
23988
23989 2009-03-18 Michel Dänzer <michel@daenzer.net>
23990
23991 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
23992 checking inode flags for EXT4_EXTENTS_FLAG.
23993
23994 2009-03-18 Robert Millan <rmh@aybabtu.com>
23995
23996 * loader/i386/linux.c: Include `<grub/video.h>' and
23997 `<grub/i386/pc/vbe.h>'..
23998 (grub_linux_setup_video): New function. Loosely based on the EFI one.
23999 (grub_linux32_boot): Attempt to configure video settings with
24000 grub_linux_setup_video().
24001 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
24002 to avoid grub_console_fini() which would step out of graphical mode
24003 unconditionally.
24004
24005 2009-03-14 Robert Millan <rmh@aybabtu.com>
24006
24007 Fix build on powerpc.
24008 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
24009
24010 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
24011
24012 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
24013 background image command.
24014
24015 2009-03-12 Colin D Bennett <colin@gibibit.com>
24016
24017 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
24018 (grub_gfxterm_putchar): Extract pairs of identical calls to
24019 draw_cursor out of conditional blocks.
24020
24021 2009-03-11 Pavel Roskin <proski@gnu.org>
24022
24023 * fs/hfs.c (grub_hfs_strncasecmp): New function.
24024 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
24025
24026 2009-03-11 Robert Millan <rmh@aybabtu.com>
24027
24028 * loader/i386/multiboot_elfxx.c
24029 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
24030
24031 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
24032
24033 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
24034 `kern/handler.c'.
24035
24036 2009-03-11 Robert Millan <rmh@aybabtu.com>
24037
24038 * loader/i386/multiboot.c (code_size): New variable.
24039 (grub_multiboot): Define offsets by adding to `code_size' rather
24040 than subtracting from `grub_multiboot_payload_size'. Provide
24041 4-byte alignment to MBI and others by increasing
24042 `boot_loader_name_length' appropriately.
24043
24044 * loader/i386/multiboot_elfxx.c
24045 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
24046
24047 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
24048
24049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
24050 `fs/ext2.c'.
24051
24052 2009-03-08 Robert Millan <rmh@aybabtu.com>
24053
24054 Make loader/i386/linux.c usable on i386-pc again.
24055
24056 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
24057 memory to heap.
24058 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
24059 `#error' stanza.
24060
24061 2009-03-07 Bean <bean123ch@gmail.com>
24062
24063 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
24064 allocation.
24065
24066 2009-03-06 Robert Millan <rmh@aybabtu.com>
24067
24068 Fix display issue on terminals with screen size other than 80x25
24069 (e.g. gfxterm with resolution higher than 640x480).
24070
24071 * normal/main.c (grub_normal_init_page): Display title text in a
24072 position relative to the center of the terminal instead of relying
24073 on a hardcoded offset.
24074
24075 2009-03-04 Robert Millan <rmh@aybabtu.com>
24076
24077 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
24078 installed.
24079
24080 * Makefile.in (host_kernel): New variable.
24081 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
24082 scripts instead of just the windows one.
24083 * configure.ac: Initialize and AC_SUBST `host_kernel'.
24084
24085 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24086
24087 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
24088 `kern/handler.c'.
24089 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24090 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24095
24096 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24097
24098 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
24099 or if there's no space for the disk label and print the partition number on a
24100 invalid magic.
24101
24102 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24103
24104 * util/misc.c: Include <time.h>.
24105 (grub_millisleep): New function.
24106
24107 2009-03-04 Bean <bean123ch@gmail.com>
24108
24109 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
24110 another option -mno-red-zone.
24111
24112 * commands/handler.c: Change module description.
24113
24114 * kern/handler.c: Add missing space at the end of description line.
24115
24116 * kern/list.c: Likewise.
24117
24118 2009-03-03 Robert Millan <rmh@aybabtu.com>
24119
24120 Move more components to the relocation area, and fix mbi pointer
24121 handling to use the destination rather than the origin (thanks to
24122 Vladimir Serbinenko for spotting).
24123
24124 * loader/i386/multiboot.c (mbi_dest): New variable.
24125 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
24126 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
24127 relocation area.
24128
24129 2009-03-01 Bean <bean123ch@gmail.com>
24130
24131 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
24132 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
24133 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
24134 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
24135
24136 * loader/i386/efi/linux.c (acpi_guid): New variable.
24137 (acpi_guid): Likewise.
24138 (EBDA_SEG_ADDR): New constant.
24139 (LOW_MEM_ADDR): Likewise.
24140 (FAKE_EBDA_SEG): Likewise.
24141 (fake_bios_data): New function.
24142 (grub_linux_boot): Call fake_bios_data.
24143
24144 2009-03-01 Bean <bean123ch@gmail.com>
24145
24146 * commands/terminal.c: Removed.
24147
24148 * commands/handler.c: New file.
24149
24150 * include/grub/list.h: Likewise.
24151
24152 * include/grub/handler.h: Likewise.
24153
24154 * kern/list.c: Likewise.
24155
24156 * kern/handler.c: Likewise.
24157
24158 * kern/term.h: Include header file <grub/handler.h>.
24159 (grub_term_input): Move next field to the beginning.
24160 (grub_term_output): Likewise.
24161 (grub_term_input_class): New variable.
24162 (grub_term_output_class): Likewise.
24163 (grub_term_register_input): Changed to inline function.
24164 (grub_term_register_output): Likewise.
24165 (grub_term_unregister_input): Likewise.
24166 (grub_term_unregister_output): Likewise.
24167 (grub_term_set_current_input): Likewise.
24168 (grub_term_set_current_output): Likewise.
24169 (grub_term_get_current_input): Likewise.
24170 (grub_term_get_current_output): Likewise.
24171 (grub_term_iterate_input): Removed.
24172 (grub_term_iterate_output): Likewise.
24173
24174 * kern/term.c (grub_term_list_input): Removed.
24175 (grub_term_list_output): Likewise.
24176 (grub_term_input_class): New variable.
24177 (grub_term_output_class): Likewise.
24178 (grub_cur_term_input): Change variable as macro.
24179 (grub_cur_term_output): Likewise.
24180 (grub_term_register_input): Removed.
24181 (grub_term_register_output): Likewise.
24182 (grub_term_unregister_input): Likewise.
24183 (grub_term_unregister_output): Likewise.
24184 (grub_term_set_current_input): Likewise.
24185 (grub_term_set_current_output): Likewise.
24186 (grub_term_iterate_input): Likewise.
24187 (grub_term_iterate_output): Likewise.
24188 (grub_term_get_current_input): Likewise.
24189 (grub_term_get_current_output): Likewise.
24190
24191 * util/grub-editenv.c: Include header file <grub/handler.h>.
24192 (grub_term_get_current_input): Removed.
24193 (grub_term_get_current_output): Likewise.
24194 (grub_term_input_class): New variable.
24195 (grub_term_output_class): Likewise.
24196
24197 * util/grub-fstest.c (grub_term_get_current_input): Removed.
24198 (grub_term_get_current_output): Likewise.
24199 (grub_term_input_class): New variable.
24200 (grub_term_output_class): Likewise.
24201
24202 * util/grub-probe.c (grub_term_get_current_input): Removed.
24203 (grub_term_get_current_output): Likewise.
24204 (grub_term_input_class): New variable.
24205 (grub_term_output_class): Likewise.
24206
24207 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
24208 (grub_term_get_current_output): Likewise.
24209 (grub_term_input_class): New variable.
24210 (grub_term_output_class): Likewise.
24211
24212 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
24213 (terminal_mod_SOURCES): Likewise.
24214 (terminal_mod_CFLAGS): Likewise.
24215 (terminal_mod_LDFLAGS): Likewise.
24216
24217 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
24218 handler.c.
24219 (kernel_img_SOURCES): Add list.c and handler.c.
24220 (kernel_img_HEADERS): Add list.h and handler.h.
24221
24222 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
24223 handler.c.
24224 (kernel_mod_SOURCES): Add list.c and handler.c.
24225 (kernel_mod_HEADERS): Add list.h and handler.h.
24226
24227 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
24228 handler.c.
24229 (kernel_elf_SOURCES): Add list.c and handler.c.
24230 (kernel_elf_HEADERS): Add list.h and handler.h.
24231
24232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
24233 handler.c.
24234 (kernel_elf_SOURCES): Add list.c and handler.c.
24235 (kernel_elf_HEADERS): Add list.h and handler.h.
24236
24237 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
24238 handler.c.
24239 (kernel_mod_SOURCES): Add list.c and handler.c.
24240 (kernel_mod_HEADERS): Add list.h and handler.h.
24241
24242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
24243 handler.c.
24244 (kernel_elf_SOURCES): Add list.c and handler.c.
24245 (kernel_elf_HEADERS): Add list.h and handler.h.
24246
24247 2009-02-27 Robert Millan <rmh@aybabtu.com>
24248
24249 Factorize elf32 / elf64 code in Multiboot loader. This will
24250 prevent it from getting out of sync again.
24251
24252 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
24253 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
24254 grub_multiboot_load_elf64): Move from here ...
24255 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
24256 grub_multiboot_load_elf): ... to here (new file).
24257
24258 2009-02-27 Robert Millan <rmh@aybabtu.com>
24259
24260 * util/grub.d/10_linux.in: Rename "single-user mode" to
24261 "recovery mode".
24262
24263 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
24264
24265 Don't leak in SCSI code.
24266 * disk/scsi.c (grub_scsi_close): free `scsi'.
24267
24268 2009-02-27 Robert Millan <rmh@aybabtu.com>
24269
24270 * loader/i386/pc/multiboot.c: Move from here ...
24271 * loader/i386/multiboot.c: ... to here. Update all users.
24272
24273 2009-02-27 Robert Millan <rmh@aybabtu.com>
24274
24275 Patch from Alexandre Bique <bique.alexandre@gmail.com>
24276 * util/i386/pc/grub-setup.c (setup): Fix directory path.
24277
24278 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
24279
24280 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
24281 b-tree.
24282
24283 2009-02-27 Robert Millan <rmh@aybabtu.com>
24284
24285 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
24286 `0x' qualifier as 0 when base is specified as parameter).
24287
24288 2009-02-24 Bean <bean123ch@gmail.com>
24289
24290 * configure.ac: Check for -mcmodel=large in x86_64 target.
24291
24292 * include/grub/efi/api.h (efi_call_10): New macro.
24293 (efi_wrap_10): New function.
24294
24295 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
24296 (GRUB_PE32_REL_BASED_HIGH): Likewise.
24297 (GRUB_PE32_REL_BASED_LOW): Likewise.
24298 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
24299 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
24300 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
24301 (GRUB_PE32_REL_BASED_SECTION): Likewise.
24302 (GRUB_PE32_REL_BASED_REL): Likewise.
24303 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
24304 (GRUB_PE32_REL_BASED_DIR64): Likewise.
24305 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
24306
24307 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
24308 issue.
24309
24310 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
24311 (efi_wrap_10): New function.
24312
24313 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
24314
24315 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
24316 MB/MBP model (NV chipset).
24317 (devdata_devs): Add devpath_5 to the list.
24318
24319 * load/i386/efi/linux.c (video_base): Remove variable.
24320 (RGB_MASK): New macro.
24321 (RGB_MAGIC): Likewise.
24322 (LINE_MIN): Likewise.
24323 (LINE_MAX): Likewise.
24324 (FBTEST_STEP): Likewise.
24325 (FBTEST_COUNT): Likewise.
24326 (fb_list): New variable.
24327 (grub_find_video_card): Remove function.
24328 (find_framebuf): New function.
24329 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
24330 line length.
24331
24332 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
24333 problem for x86_64.
24334
24335 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
24336
24337 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
24338
24339 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
24340 coding tool name.
24341
24342 2009-02-22 Robert Millan <rmh@aybabtu.com>
24343
24344 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
24345 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
24346 in our relocation, instead of using it directly from heap. Also
24347 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
24348
24349 2009-02-21 Robert Millan <rmh@aybabtu.com>
24350
24351 Implement USB keyboard support (based on patch by Marco Gerards)
24352
24353 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
24354 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
24355 (usb_keyboard_mod_LDFLAGS): New variables.
24356
24357 * term/usb_keyboard.c: New file.
24358
24359 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24360
24361 Corrected wrong declaration
24362
24363 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
24364
24365 2009-02-14 Christian Franke <franke@computer.org>
24366
24367 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
24368 (grub_lspci_iter): Print class code and programming interface byte.
24369
24370 2009-02-14 Christian Franke <franke@computer.org>
24371
24372 * gendistlist.sh: Ignore `.svn' directories.
24373
24374 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
24375
24376 * fs/fat.c: Add 2009 to Copyright line.
24377
24378 2009-02-14 Christian Franke <franke@computer.org>
24379
24380 * commands/hdparm.c: New file. Provides `hdparm' command
24381 which sends ATA commands via grub_disk_ata_pass_through ().
24382
24383 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
24384
24385 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
24386 and <grub/cpu/io.h> to include/grub/ata.h.
24387 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
24388 (GRUB_CDROM_SECTOR_SIZE): Remove.
24389 (GRUB_ATA_*): Move to include/grub/ata.h.
24390 (GRUB_ATAPI_*): Likewise.
24391 (enum grub_ata_commands): Likewise.
24392 (enum grub_ata_timeout_milliseconds): Likewise.
24393 (struct grub_ata_device): Likewise.
24394 (grub_ata_regset): Likewise.
24395 (grub_ata_regget): Likewise.
24396 (grub_ata_regset2): Likewise.
24397 (grub_ata_regget2): Likewise.
24398 (grub_ata_check_ready): Likewise.
24399 (grub_ata_wait_not_busy): Remove static, exported in
24400 include/grub/ata.h.
24401 (grub_ata_wait_drq): Likewise.
24402 (grub_ata_pio_read): Likewise.
24403
24404 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
24405 function for hdparm.mod.
24406
24407 * include/grub/ata.h: New file, contains declarations from
24408 disk/ata.c.
24409 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
24410
24411 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
24412 (grub_disk_ata_pass_through): New exported variable.
24413
24414 * kern/disk.c (grub_disk_ata_pass_through): New variable.
24415
24416 2009-02-13 Colin D Bennett <colin@gibibit.com>
24417
24418 Support multiple fallback entries, and provide an API to support
24419 executing default+fallback menu entries. Renamed the `terminal' menu
24420 viewer to `text'.
24421
24422 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
24423 variable declaration.
24424 (grub_menu_execute_callback): New structure declaration.
24425 (grub_menu_execute_callback_t): New typedef.
24426 (grub_menu_execute_with_fallback): New function declaration.
24427 (grub_menu_get_entry): Likewise.
24428 (grub_menu_get_timeout): Likewise.
24429 (grub_menu_set_timeout): Likewise.
24430
24431 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
24432
24433 * normal/menu.c (grub_wait_after_message): Moved to
24434 `normal/menu_text.c'.
24435 (draw_border): Likewise.
24436 (print_message): Likewise.
24437 (print_entry): Likewise.
24438 (print_entries): Likewise.
24439 (grub_menu_init_page): Likewise.
24440 (get_entry_number): Likewise.
24441 (print_timeout): Likewise.
24442 (run_menu): Likewise.
24443 (grub_menu_execute_entry): Likewise.
24444 (show_text_menu): Likewise.
24445 (get_and_remove_first_entry_number): New function.
24446 (grub_menu_execute_with_fallback): Likewise.
24447 (get_entry): Renamed to ...
24448 (grub_menu_get_entry): .. this and made it global.
24449 (get_timeout): Renamed to ...
24450 (grub_menu_get_timeout): ... this and made it global.
24451 (set_timeout): Renamed to ...
24452 (grub_menu_set_timeout): ... this and made it global.
24453 (grub_normal_terminal_menu_viewer): Renamed to ...
24454 (grub_normal_text_menu_viewer): ... this.
24455
24456 * normal/menu_text.c: New file. Extracted text-menu-specific code
24457 from normal/menu.c.
24458
24459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
24460 (normal_mod_SOURCES): Likewise.
24461
24462 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24463 (normal_mod_SOURCES): Likewise.
24464
24465 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24466 (normal_mod_SOURCES): Likewise.
24467
24468 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
24469 (normal_mod_SOURCES): Likewise.
24470
24471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24472 (normal_mod_SOURCES): Likewise.
24473
24474 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24475 (normal_mod_SOURCES): Likewise.
24476
24477 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24478 (normal_mod_SOURCES): Likewise.
24479
24480 2009-02-11 Robert Millan <rmh@aybabtu.com>
24481
24482 * util/grub.d/00_header.in: Update old reference to `font' command.
24483
24484 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
24485
24486 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
24487
24488 Based on patch from Javier Martín.
24489
24490 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24491
24492 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
24493 to avoid false positives with FAT.
24494 (grub_fstest_SOURCES): Likewise.
24495 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24496 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24498 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24499 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24500 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24501
24502 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24503
24504 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
24505 bpb.version_specific.fat12_or_fat16.fstype and
24506 bpb.version_specific.fat32.fstype.
24507
24508 2009-02-08 Robert Millan <rmh@aybabtu.com>
24509
24510 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
24511
24512 2009-02-08 Robert Millan <rmh@aybabtu.com>
24513
24514 * Makefile.in (host_os, host_cpu): New variables.
24515 (target_os): Remove. Update all users.
24516
24517 2009-02-08 Marco Gerards <marco@gnu.org>
24518
24519 * Makefile.in (enable_grub_emu_usb): New variable.
24520 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
24521 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
24522 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
24523 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
24524 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
24525 `usbtest.mod' and `usbms.mod'.
24526 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
24527 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
24528 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
24529 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
24530 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
24531 variables.
24532
24533 * disk/usbms.c: New file.
24534
24535 * include/grub/usb.h: Likewise.
24536
24537 * include/grub/usbtrans.h: Likewise.
24538
24539 * include/grub/usbdesc.h: Likewise.
24540
24541 * bus/usb/usbtrans.c: Likewise.
24542
24543 * bus/usb/ohci.c: Likewise.
24544
24545 * bus/usb/uhci.c: Likewise.
24546
24547 * bus/usb/usbhub.c: Likewise.
24548
24549 * bus/usb/usb.c: Likewise.
24550
24551 * commands/usbtest.c: Likewise.
24552
24553 * util/usb.c: Likewise.
24554
24555 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
24556
24557 * configure.ac: Test for libusb presence.
24558
24559 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
24560
24561 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
24562
24563 * kern/mm.c: Add more comments.
24564
24565 2009-02-08 Robert Millan <rmh@aybabtu.com>
24566
24567 Patch from Javier Martín.
24568 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
24569 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
24570
24571 2009-02-08 Robert Millan <rmh@aybabtu.com>
24572
24573 * fs/cpio.c: Split tar functionality to ...
24574 * fs/tar.c: ... here (new file). Update all users.
24575
24576 2009-02-07 Robert Millan <rmh@aybabtu.com>
24577
24578 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
24579 backward-incompatible features.
24580
24581 Based on patch from Javier Martín, with some adjustments.
24582
24583 2009-02-07 Michael Scherer <misc@mandriva.org>
24584
24585 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
24586
24587 2009-02-07 Robert Millan <rmh@aybabtu.com>
24588
24589 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
24590 position of `disk/lvm.c' to ensure grub_init_all() always picks it
24591 after the RAID stuff.
24592
24593 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
24594
24595 Fixes problem when running vbetest command as reported by
24596 Vladimir Serbinenko <phcoder@gmail.com>.
24597
24598 * (grub_vbe_set_video_mode): Fixed problem with text modes.
24599
24600 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
24601
24602 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
24603 /dev/md/NpN style mdraid devices.
24604
24605 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24606
24607 * util/unifont2pff.rb: Remove.
24608
24609 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24610
24611 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
24612 `#'.
24613
24614 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24615
24616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
24617 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24618 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24621 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24623
24624 2009-02-02 Christian Franke <franke@computer.org>
24625
24626 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
24627
24628 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
24629
24630 * INSTALL: Note that we now require at least autoconf 2.59 and
24631 that LZO is optional.
24632
24633 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24634
24635 Base on patch on bug #24154 created by Tomas Tintera
24636 <trosos@seznam.cz>.
24637
24638 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
24639
24640 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24641
24642 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
24643 <bero@arklinux.org>.
24644
24645 * normal/parser.y (script_init): Add missing semicolon.
24646
24647 2009-01-31 Colin D Bennett <colin@gibibit.com>
24648
24649 * normal/main.c: Add include to grub/menu_viewer.h.
24650 (free_menu_entry_classes): Added.
24651 (grub_normal_menu_addentry): Added class property handling.
24652 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
24653 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
24654
24655 * normal/menu_viewer.c: New file.
24656
24657 * normal/menu.c (run_menu_entry): Renamed to ...
24658 (grub_menu_execute_entry): ... this and made it as global.
24659 (grub_menu_run): Renamed to ...
24660 (show_text_menu): ... this and made it local.
24661 (show_text_menu): Adapt to new function names.
24662 (grub_normal_terminal_menu_viewer): New global variable.
24663
24664 * include/grub/menu.h: New file.
24665
24666 * include/grub/menu_viewer.h: New file.
24667
24668 * include/grub/normal.h: Added include to grub/menu.h.
24669 (grub_menu_entry): Moved to include/grub/menu.h.
24670 (grub_menu_entry_t): Likewise.
24671 (grub_menu): Likewise.
24672 (grub_menu_t): Likewise.
24673 (grub_normal_terminal_menu_viewer): Added.
24674 (grub_menu_execute_entry): Likewise.
24675 (grub_menu_run): Removed.
24676
24677 * DISTLIST: Added include/grub/menu.h.
24678 Added include/grub/menu_viewer.h.
24679 Added normal/menu_viewer.c.
24680
24681 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
24682
24683 * normal/execute.c (grub_script_execute_menuentry): Changed to use
24684 arglist for menutitle arguments.
24685
24686 * normal/main.c (grub_normal_menu_addentry): Likewise.
24687
24688 * normal/parser.y (menuentry): Likewise.
24689
24690 * normal/script.c (grub_script_create_cmdmenu): Likewise.
24691
24692 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
24693 (grub_script_create_cmdmenu): Likewise.
24694
24695 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
24696
24697 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
24698 changes.
24699
24700 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
24701
24702 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
24703
24704 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
24705
24706 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24707
24708 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24709
24710 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24711
24712 2009-01-30 Christian Franke <franke@computer.org>
24713
24714 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
24715 in option help text.
24716
24717 2009-01-27 Pavel Roskin <proski@gnu.org>
24718
24719 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
24720
24721 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24722
24723 * commands/lsmmap.c: Add include to grub/machine/memory.h.
24724
24725 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
24726
24727 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
24728 unregister function.
24729
24730 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24731
24732 * disk/scsi.c (grub_scsi_read): Fix sign problem.
24733
24734 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
24735
24736 * util/grub-mkfont.c (usage): Fix typo.
24737
24738 * util/elf/grub-mkimage.c (load_modules): Fix warning.
24739
24740 2009-01-26 Daniel Mierswa <impulze@impulze.org>
24741
24742 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
24743
24744 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
24745
24746 * kern/misc.c (grub_strcasecmp): New function.
24747 (grub_strcasecmp): Use grub_size_t instead of int for length.
24748 Fix return value.
24749 * include/grub/misc.h: Update function prototypes.
24750
24751 2009-01-26 Robert Millan <rmh@aybabtu.com>
24752
24753 * configure.ac: Fix cross-compilation check.
24754
24755 2009-01-22 Christian Franke <franke@computer.org>
24756
24757 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
24758 (precision) digit string. Allow `.format2' without `format1' (width).
24759 Limit input chars for `%s' output to `format2' if specified. This is
24760 compatible with standard printf ().
24761
24762 2009-01-22 Christian Franke <franke@computer.org>
24763
24764 * disk/ata.c (grub_ata_wait_status): Replace by ...
24765 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
24766 other status bits may be invalid while BSY is asserted.
24767 (grub_ata_check_ready): New function.
24768 (grub_ata_cmd): Removed.
24769 (grub_ata_wait_drq): New function.
24770 (grub_ata_strncpy): Remove inline.
24771 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
24772 and error check now done by grub_ata_wait_drq ().
24773 (grub_ata_pio_write): Likewise.
24774 (grub_atapi_identify): Set DEV before check for !BSY. Use
24775 grub_ata_wait_drq () to wait for data.
24776 (grub_ata_device_initialize): Add status register check to
24777 detect missing SATA slave devices. Add debug messages.
24778 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
24779 (grub_atapi_packet): Set DEV before check for !BSY. Replace
24780 transfer loop by grub_ata_pio_write ().
24781 (grub_ata_identify): Set DEV before check for !BSY. Use
24782 grub_ata_wait_drq () to wait for data.
24783 (grub_ata_setaddress): Set DEV before check for !BSY.
24784 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
24785 read/write in one loop. Fix invalid command on write. Fix incomplete
24786 command on (size % batch) == 0. Add missing error check after write of
24787 last block. Add debug messages.
24788 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
24789
24790 2009-01-19 Christian Franke <franke@computer.org>
24791
24792 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
24793 (GRUB_ATAPI_IREASON_*): Likewise.
24794 (grub_ata_pio_write): Fix timeout error return.
24795 (grub_atapi_identify): Add grub_ata_wait () after cmd.
24796 (grub_atapi_wait_drq): New function.
24797 (grub_atapi_packet): New parameter `size'.
24798 Use grub_atapi_wait_drq () and direct write instead of
24799 grub_ata_pio_write ().
24800 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
24801 reads the number of bytes requested by the device for each DRQ
24802 assertion.
24803 (grub_atapi_write): Remove old implementation, return not
24804 implemented instead.
24805
24806 2009-01-19 Christian Franke <franke@computer.org>
24807
24808 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
24809 of 512 to calculate data size.
24810 (grub_scsi_read12): Likewise.
24811 (grub_scsi_write10): Likewise.
24812 (grub_scsi_write12): Likewise.
24813 (grub_scsi_read): Adjust size according to blocksize.
24814 Add checks for invalid blocksize and unaligned transfer.
24815
24816 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
24817
24818 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
24819
24820 * term/gfxterm.c (write_char): Fix background rendering for wide
24821 width glyphs.
24822
24823 2009-01-19 Robert Millan <rmh@aybabtu.com>
24824
24825 * config.guess: Update to latest version from config git.
24826 * config.sub: Likewise.
24827
24828 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
24829
24830 * Makefile.in: Change font compilation to use new grub-mkfont instead
24831 of java version.
24832
24833 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
24834 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24835 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24836 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24837 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24838 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24839 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24840 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24841 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24842
24843 2009-01-16 Christian Franke <franke@computer.org>
24844
24845 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
24846 (enum grub_ata_timeout_milliseconds): New enum.
24847 (grub_ata_wait_status): Add parameter milliseconds.
24848 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
24849 recovery from timed-out commands.
24850 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
24851 return grub_errno instead of REG_ERROR.
24852 (grub_ata_pio_write): Add parameter milliseconds.
24853 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
24854 Pass milliseconds to grub_ata_wait_status () and
24855 grub_ata_pio_read ().
24856 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
24857 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
24858 grub_ata_wait_status (). Fix IDENTIFY timeout check.
24859 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
24860 It is not suitable for device detection, because DEV bit is ignored,
24861 the command may run too long, and not all devices set the signature
24862 properly.
24863 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
24864 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
24865 Fix device selection, DEV bit must be set first to address the registers
24866 of the correct device.
24867 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
24868 grub_ata_pio_read/write ().
24869 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
24870 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
24871
24872 2009-01-13 Carles Pina i Estany <carles@pina.cat>
24873
24874 * util/grub-editenv.c (main): Use fseeko(), not fseek().
24875
24876 2009-01-13 Bean <bean123ch@gmail.com>
24877
24878 * util/grub-mkfont.c (write_font): forget to remove some debug code.
24879
24880 2009-01-13 Bean <bean123ch@gmail.com>
24881
24882 * Makefile.in: (enable_grub_mkfont): New variable.
24883 (freetype_cflags): Likewise.
24884 (freetype_libs): Likewise.
24885
24886 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
24887 (grub_mkfont_SOURCES): New variable.
24888 (grub_mkfont_CFLAGS): Likewise.
24889 (grub_mkfont_LDFLAGS): Likewise.
24890
24891 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
24892 library if `--enable-grub-mkfont' is requested.
24893 (enable_grub_mkfont): New variable.
24894 (freetype_cflags): Likewise.
24895 (freetype_libs): Likewise.
24896
24897 * util/grub-mkfont.c: New file.
24898
24899 2009-01-12 Christian Franke <franke@computer.org>
24900
24901 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
24902 mode check. Fix setting of compat_use[].
24903
24904 2009-01-10 Robert Millan <rmh@aybabtu.com>
24905
24906 Update a few copyright years which we forgot to do in 2008 (only for
24907 files whose changes made in 2008 were copyright-significant)
24908
24909 * Makefile.in: Add 2008 to Copyright line.
24910 * disk/ieee1275/ofdisk.c: Likewise.
24911 * disk/efi/efidisk.c: Likewise.
24912 * kern/dl.c: Likewise.
24913 * kern/sparc64/ieee1275/init.c: Likewise.
24914 * kern/mm.c: Likewise.
24915 * kern/efi/mm.c: Likewise.
24916 * boot/i386/pc/boot.S: Likewise.
24917 * genfslist.sh: Likewise.
24918 * fs/iso9660.c: Likewise.
24919 * fs/hfs.c: Likewise.
24920 * fs/jfs.c: Likewise.
24921 * fs/minix.c: Likewise.
24922 * fs/ufs.c: Likewise.
24923 * gensymlist.sh.in: Likewise.
24924 * genkernsyms.sh.in: Likewise.
24925 * include/grub/misc.h: Likewise.
24926 * include/grub/types.h: Likewise.
24927 * include/grub/symbol.h: Likewise.
24928 * include/grub/elf.h: Likewise.
24929 * include/grub/kernel.h: Likewise.
24930 * include/grub/disk.h: Likewise.
24931 * include/grub/dl.h: Likewise.
24932 * include/grub/i386/linux.h: Likewise.
24933 * include/grub/i386/pc/biosdisk.h: Likewise.
24934 * include/grub/efi/api.h: Likewise.
24935 * include/grub/efi/pe32.h: Likewise.
24936 * include/grub/util/misc.h: Likewise.
24937 * normal/execute.c: Likewise.
24938 * normal/arg.c: Likewise.
24939 * normal/completion.c: Likewise.
24940 * normal/lexer.c: Likewise.
24941 * normal/parser.y: Likewise.
24942 * normal/misc.c: Likewise.
24943 * commands/i386/pc/vbeinfo.c: Likewise.
24944 * commands/hexdump.c: Likewise.
24945 * commands/terminal.c: Likewise.
24946 * commands/ls.c: Likewise.
24947 * commands/help.c: Likewise.
24948 * partmap/pc.c: Likewise.
24949 * loader/efi/chainloader.c: Likewise.
24950 * loader/multiboot_loader.c: Likewise.
24951 * loader/i386/pc/multiboot2.c: Likewise.
24952 * term/efi/console.c: Likewise.
24953 * term/i386/pc/serial.c: Likewise.
24954 * util/lvm.c: Likewise.
24955 * util/console.c: Likewise.
24956 * util/i386/efi/grub-mkimage.c: Likewise.
24957 * util/raid.c: Likewise.
24958
24959 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
24960
24961 * commands/videotest.c: Removed include to grub/machine/memory.h.
24962
24963 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
24964 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
24965 (video_mod_SOURCES): Removed.
24966 (video_mod_CFLAGS): Likewise.
24967 (video_mod_LDFLAGS): Likewise.
24968 (gfxterm_mod_SOURCES): Likewise.
24969 (gfxterm_mod_CFLAGS): Likewise.
24970 (gfxterm_mod_LDFLAGS): Likewise.
24971 (videotest_mod_SOURCES): Likewise.
24972 (videotest_mod_CFLAGS): Likewise.
24973 (videotest_mod_LDFLAGS): Likewise.
24974 (bitmap_mod_SOURCES): Likewise.
24975 (bitmap_mod_CFLAGS): Likewise.
24976 (bitmap_mod_LDFLAGS): Likewise.
24977 (tga_mod_SOURCES): Likewise.
24978 (tga_mod_CFLAGS): Likewise.
24979 (tga_mod_LDFLAGS): Likewise.
24980 (jpeg_mod_SOURCES): Likewise.
24981 (jpeg_mod_CFLAGS): Likewise.
24982 (jpeg_mod_LDFLAGS): Likewise.
24983 (png_mod_SOURCES): Likewise.
24984 (png_mod_CFLAGS): Likewise.
24985 (png_mod_LDFLAGS): Likewise.
24986
24987 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
24988 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
24989 (video_mod_SOURCES): Added.
24990 (video_mod_CFLAGS): Likewise.
24991 (video_mod_LDFLAGS): Likewise.
24992 (videotest_mod_SOURCES): Likewise.
24993 (videotest_mod_CFLAGS): Likewise.
24994 (videotest_mod_LDFLAGS): Likewise.
24995 (bitmap_mod_SOURCES): Likewise.
24996 (bitmap_mod_CFLAGS): Likewise.
24997 (bitmap_mod_LDFLAGS): Likewise.
24998 (tga_mod_SOURCES): Likewise.
24999 (tga_mod_CFLAGS): Likewise.
25000 (tga_mod_LDFLAGS): Likewise.
25001 (jpeg_mod_SOURCES): Likewise.
25002 (jpeg_mod_CFLAGS): Likewise.
25003 (jpeg_mod_LDFLAGS): Likewise.
25004 (png_mod_SOURCES): Likewise.
25005 (png_mod_CFLAGS): Likewise.
25006 (png_mod_LDFLAGS): Likewise.
25007 (gfxterm_mod_SOURCES): Likewise.
25008 (gfxterm_mod_CFLAGS): Likewise.
25009 (gfxterm_mod_LDFLAGS): Likewise.
25010
25011 * term/gfxterm.c: Removed include to grub/machine/memory.h,
25012 grub/machine/console.h.
25013
25014 2009-01-04 Jerone Young <jerone@gmail.com>
25015
25016 Make on screen instructions clearer
25017
25018 Based on patch created by Jidanni <jidanni@jidanni.org>
25019
25020 * normal/menu.c: print clearer instructions on the screen
25021
25022 2009-01-02 Colin D Bennett <colin@gibibit.com>
25023
25024 New font engine.
25025
25026 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
25027 build system and fixed gfxterm.c to work with different sized fonts.
25028
25029 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
25030
25031 * configure: Re-generated.
25032
25033 * DISTLIST: Removed font/manager.c.
25034 Added font/font.c.
25035 Added font/font_cmd.c.
25036
25037 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
25038 compilation.
25039
25040 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
25041
25042 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
25043
25044 * kern/term.c: Changed users of grub_utf8_to_ucs4.
25045
25046 * normal/menu.c: Likewise.
25047
25048 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
25049 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
25050
25051 * include/grub/font.h: Replaced with new file.
25052
25053 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
25054 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
25055 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
25056 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
25057 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
25058 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
25059 fg_red, fg_green, fg_blue, fg_alpha.
25060 (grub_video_adapter): Removed blit_glyph.
25061 (grub_video_blit_glyph): Removed.
25062
25063 * font/manager.c: Removed file.
25064
25065 * font/font.c: New file.
25066
25067 * font/font_cmd.c: Likewise.
25068
25069 * video/video.c (grub_video_blit_glyph): Removed.
25070
25071 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
25072 (grub_video_vbe_map_rgba): Likewise.
25073 (grub_video_vbe_unmap_color_int): Likewise.
25074 (grub_video_vbe_blit_glyph): Removed.
25075 (grub_video_vbe_adapter): Removed blit_glyph.
25076
25077 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
25078 (get_pixel): Likewise.
25079 (set_pixel): Likewise.
25080
25081 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
25082
25083 * term/gfxterm.c: Adapted to new font engine.
25084
25085 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
25086
25087 * term/i386/pc/vga.c: Likewise.
25088
25089 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
25090
25091 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
25092
25093 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25094
25095 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25096
25097 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
25098
25099 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
25100
25101 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
25102
25103 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
25104
25105 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
25106
25107 * util/grub.d/00_header.in: Changed to use new loadfont command.
25108
25109 * util/grub-mkconfig_lib.in: Changed font extension.
25110
25111 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
25112
25113 * util/getroot.c (grub_util_get_grub_dev): Add support for
25114 /dev/md/dNNpNN style partitionable mdraid devices.
25115
25116 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
25117
25118 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
25119 at a time limit of the PXE TFTP API correctly.
25120 (grub_pxefs_close): Likewise.
25121
25122 2008-11-29 Robert Millan <rmh@aybabtu.com>
25123
25124 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
25125 grub_ata_device_initialize() calls.
25126
25127 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
25128
25129 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
25130 iteration failed.
25131 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
25132
25133 2008-11-28 Robert Millan <rmh@aybabtu.com>
25134
25135 Fix build on powerpc-ieee1275. Based on patch created by
25136 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
25137 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
25138 `kern/ieee1275/mmap.c'.
25139 * include/grub/powerpc/ieee1275/memory.h: New file.
25140
25141 Provide grub-install on coreboot.
25142 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
25143 (grub_install_SOURCES): New variable.
25144 * util/i386/pc/grub-install.in: Add a few condition checks to make it
25145 usable on coreboot.
25146
25147 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
25148
25149 * util/grub-fstest.c (grub_term_get_current_input): Change return type
25150 to `grub_term_input_t'.
25151 (grub_term_get_current_output): Change return type to
25152 `grub_term_output_t'.
25153
25154 2008-11-22 Robert Millan <rmh@aybabtu.com>
25155
25156 Fix breakage on coreboot due to declaration mismatch.
25157 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
25158 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
25159 grub_vga_text_cls().
25160
25161 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
25162 comments. Avoid copying one more byte than necessary (just in case).
25163
25164 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
25165 to 0x200000 (avoids trouble with some OFW implementations, and matches
25166 with the one in Yaboot).
25167 Reported by Manoel Abranches
25168
25169 2008-11-20 Robert Millan <rmh@aybabtu.com>
25170
25171 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
25172 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
25173
25174 * util/grub-mkconfig_lib.in (grub_warn): New function.
25175 (convert_system_path_to_grub_path): Use grub_warn() when issuing
25176 warnings, to obtain consistent formatting.
25177 * util/grub.d/00_header.in: Likewise.
25178 * util/update-grub_lib.in: Likewise.
25179
25180 * loader/i386/linux.c (allocate_pages): Fix a warning.
25181 Move comment text to `#error' stanza.
25182
25183 Harmonize ieee1275's grub_available_iterate() with the generic
25184 grub_machine_mmap_iterate() interface (fixes a recently-introduced
25185 build problem on i386-ieee1275):
25186 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
25187 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
25188 parameter `type'. Update all users of this function.
25189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
25190 `kern/ieee1275/mmap.c'.
25191 * kern/ieee1275/init.c
25192 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
25193 with ...
25194 (grub_machine_mmap_iterate): ... this.
25195 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
25196 return type to `grub_err_t'. Update all implementations of this
25197 function prototype.
25198 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
25199 Likewise.
25200
25201 Add `lsmmap' command (lists firmware-provided memory map):
25202 * commands/lsmmap.c: New file.
25203 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
25204 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
25205 variables.
25206 * conf/powerpc-ieee1275.rmk: Likewise.
25207 * conf/i386-coreboot.rmk: Likewise.
25208 * conf/i386-ieee1275.rmk: Likewise.
25209
25210 2008-11-19 Robert Millan <rmh@aybabtu.com>
25211
25212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
25213 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
25214 constraints to initrd allocation (based on code from
25215 loader/i386/pc/linux.c). Without them, initrd was allocated too high
25216 for Linux to find it.
25217
25218 2008-11-14 Robert Millan <rmh@aybabtu.com>
25219
25220 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
25221 order to cope with duplicate slashes.
25222
25223 2008-11-14 Robert Millan <rmh@aybabtu.com>
25224
25225 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
25226 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
25227 don't want to mess with lower memory, because it is used in the Linux
25228 loader.
25229
25230 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
25231 an appropriate place in lower memory, between 0x10000 and 0x90000,
25232 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
25233 is in our heap (probably as a result of it being corrupted during
25234 decompression). Add #error instance with comment to explain why this
25235 loader isn't currently usable on PC/BIOS.
25236
25237 2008-11-14 Robert Millan <rmh@aybabtu.com>
25238
25239 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
25240 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
25241
25242 2008-11-12 Robert Millan <rmh@aybabtu.com>
25243
25244 Make loader/i386/linux.c buildable on i386-pc (although disabled).
25245
25246 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
25247 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
25248 from here ...
25249 * include/grub/i386/pc/memory.h: ... to here.
25250
25251 2008-11-12 Robert Millan <rmh@aybabtu.com>
25252
25253 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
25254 split).
25255
25256 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
25257 (grub_console_cur_color, grub_console_real_putchar)
25258 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
25259 (grub_console_setcolorstate, grub_console_setcolor)
25260 (grub_console_getcolor): Move from here ...
25261 * include/grub/i386/vga_common.h: ... to here (new file).
25262
25263 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
25264 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
25265 `<grub/i386/io.h>'.
25266 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
25267 `<grub/i386/vga_common.h>'.
25268
25269 2008-11-12 Robert Millan <rmh@aybabtu.com>
25270
25271 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
25272 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
25273 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
25274 variables.
25275 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
25276 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
25277
25278 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
25279 grub_console_init() with call to grub_vga_text_init().
25280 (grub_machine_fini): Replace call to
25281 grub_console_fini() with call to grub_vga_text_fini() and
25282 grub_at_keyboard_fini().
25283
25284 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
25285 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
25286 (grub_console_setcolorstate, grub_console_setcolor)
25287 (grub_console_getcolor): New function prototypes.
25288
25289 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
25290 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
25291 (grub_vga_text_setcursor): Static-ize.
25292 (grub_vga_text_term): New structure.
25293 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
25294
25295 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
25296 (grub_console_cur_color, grub_console_standard_color)
25297 (grub_console_normal_color, grub_console_highlight_color)
25298 (map_char, grub_console_putchar, grub_console_getcharwidth)
25299 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
25300 (grub_console_getcolor): Move from here ...
25301 * term/i386/vga_common.c: ... to here (same function names).
25302
25303 2008-11-12 Robert Millan <rmh@aybabtu.com>
25304
25305 Use newly-added Multiboot support in coreboot.
25306
25307 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
25308 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
25309
25310 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
25311 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
25312 (codestart): Store the MBI in `startup_multiboot_info' when we're
25313 being loaded using Multiboot.
25314
25315 * kern/i386/coreboot/init.c (grub_machine_init): Move
25316 grub_at_keyboard_init() call to beginning of function (useful for
25317 debugging). Call grub_machine_mmap_init() before attempting to use
25318 grub_machine_mmap_iterate().
25319 (grub_lower_mem, grub_upper_mem): Move from here ...
25320 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
25321 here (new file).
25322
25323 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
25324 function prototype.
25325
25326 2008-11-12 Robert Millan <rmh@aybabtu.com>
25327
25328 Fix a regression introduced by the at_keyboard.mod split. Because
25329 some terminals are default on some platforms and non-default on
25330 others, the first terminal being registered determines which is
25331 going to be default.
25332
25333 * kern/term.c (grub_term_register_input): If this is the first
25334 terminal being registered, set it as the current one.
25335 (grub_term_register_output): Likewise.
25336
25337 * term/efi/console.c (grub_console_init): Do not call
25338 grub_term_set_current_output() or grub_term_set_current_input().
25339 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
25340 * term/i386/pc/console.c (grub_console_init): Likewise.
25341 (grub_console_fini): Do not call grub_term_set_current_input()
25342 (but leave grub_term_set_current_output() to restore text mode).
25343
25344 2008-11-10 Robert Millan <rmh@aybabtu.com>
25345
25346 * util/grub.d/00_header.in: Add backward compatibility check for
25347 versions of terminal.mod that don't understand `terminal_input' or
25348 `terminal_output'.
25349
25350 2008-11-09 Robert Millan <rmh@aybabtu.com>
25351
25352 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
25353 `terminal_input' / `terminal_output', not `terminal'.
25354
25355 2008-11-08 Robert Millan <rmh@aybabtu.com>
25356
25357 * Makefile.in (include_DATA): Fix srcdir=. assumption.
25358 (DISTCLEANFILES): Add `build_env.mk'.
25359
25360 2008-11-08 Robert Millan <rmh@aybabtu.com>
25361
25362 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
25363 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25364 members. Update all users.
25365 * util/console.c (grub_ncurses_term): Split in ...
25366 (grub_ncurses_term_input): ... this, and ...
25367 (grub_ncurses_term_output): ... this. Update all users.
25368 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
25369
25370 2008-11-08 Robert Millan <rmh@aybabtu.com>
25371
25372 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
25373 (PKGDATA): Add $(pkgdata_SRCDIR).
25374 (pkglib_BUILDDIR): New variable.
25375 (pkgdata_SRCDIR): New variable.
25376 (build_env.mk): New target.
25377 (include_DATA): New variable.
25378 (install-local): Install $(include_DATA) files in $(includedir).
25379
25380 2008-11-07 Pavel Roskin <proski@gnu.org>
25381
25382 * gendistlist.sh: Use C locale for sorting to ensure consistent
25383 output on all systems.
25384
25385 * util/grub.d/00_header.in: Remove incorrect space before
25386 "serial".
25387
25388 2008-11-07 Robert Millan <rmh@aybabtu.com>
25389
25390 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
25391 per specification.
25392 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
25393 * loader/multiboot_loader.c (find_multi_boot2_header): New function
25394 (based on find_multi_boot1_header).
25395 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
25396 using find_multi_boot2_header(), and abort if neither Multiboot or
25397 Multiboot headers were found.
25398
25399 2008-11-07 Robert Millan <rmh@aybabtu.com>
25400
25401 Modularize at_keyboard.mod:
25402
25403 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
25404 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25405 (at_keyboard_mod_LDFLAGS): New variables.
25406
25407 Actual terminal split:
25408
25409 * include/grub/term.h (struct grub_term): Split in ...
25410 (struct grub_term_input): ... this, and ...
25411 (struct grub_term_output): ... this. Update all users.
25412 (grub_term_set_current): Split in ...
25413 (grub_term_set_current_input): ... this, and ...
25414 (grub_term_set_current_output): ... this.
25415 (grub_term_get_current): Split in ...
25416 (grub_term_get_current_input): ... this, and ...
25417 (grub_term_get_current_output): ... this.
25418 (grub_term_register): Split in ...
25419 (grub_term_register_input): ... this, and ...
25420 (grub_term_register_output): ... this.
25421 (grub_term_unregister): Split in ...
25422 (grub_term_unregister_input): ... this, and ...
25423 (grub_term_unregister_output): ... this.
25424 (grub_term_iterate): Split in ...
25425 (grub_term_iterate_input): ... this, and ...
25426 (grub_term_iterate_output): ... this.
25427
25428 * kern/term.c (grub_term_list): Split in ...
25429 (grub_term_list_input): ... this, and ...
25430 (grub_term_list_output): ... this. Update all users.
25431 (grub_cur_term): Split in ...
25432 (grub_cur_term_input): ... this, and ...
25433 (grub_cur_term_output): ... this. Update all users.
25434 (grub_term_set_current): Split in ...
25435 (grub_term_set_current_input): ... this, and ...
25436 (grub_term_set_current_output): ... this.
25437 (grub_term_get_current): Split in ...
25438 (grub_term_get_current_input): ... this, and ...
25439 (grub_term_get_current_output): ... this.
25440 (grub_term_register): Split in ...
25441 (grub_term_register_input): ... this, and ...
25442 (grub_term_register_output): ... this.
25443 (grub_term_unregister): Split in ...
25444 (grub_term_unregister_input): ... this, and ...
25445 (grub_term_unregister_output): ... this.
25446 (grub_term_iterate): Split in ...
25447 (grub_term_iterate_input): ... this, and ...
25448 (grub_term_iterate_output): ... this.
25449
25450 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
25451 a check for input and one for output (and only attempt to get keys
25452 from user when input works).
25453
25454 * util/grub-probe.c (grub_term_get_current): Split in ...
25455 (grub_term_get_current_input): ... this, and ...
25456 (grub_term_get_current_output): ... this.
25457 * util/grub-fstest.c: Likewise.
25458 * util/i386/pc/grub-setup.c: Likewise.
25459 * util/grub-editenv.c: Likewise.
25460
25461 Portability adjustments:
25462
25463 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
25464 `term/i386/pc/at_keyboard.c'.
25465 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
25466 grub_keyboard_controller_init() (now handled by terminal .init).
25467 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
25468 grub_at_keyboard_init().
25469 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
25470 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
25471 at_keyboard.mod via input terminal interface).
25472 * include/grub/i386/coreboot/console.h: Convert into a stub for
25473 `<grub/i386/pc/console.h>'.
25474
25475 Migrate full terminals to new API:
25476
25477 * term/efi/console.c (grub_console_term): Split into ...
25478 (grub_console_term_input): ... this, and ...
25479 (grub_console_term_output): ... this. Update all users.
25480 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
25481 (grub_ofconsole_init): Split into ...
25482 (grub_ofconsole_init_input): ... this, and ...
25483 (grub_ofconsole_init_output): ... this.
25484 (grub_ofconsole_term): Split into ...
25485 (grub_ofconsole_term_input): ... this, and ...
25486 (grub_ofconsole_term_output): ... this. Update all users.
25487 * term/i386/pc/serial.c (grub_serial_term): Split into ...
25488 (grub_serial_term_input): ... this, and ...
25489 (grub_serial_term_output): ... this. Update all users.
25490 * term/i386/pc/console.c (grub_console_term): Split into ...
25491 (grub_console_term_input): ... this, and ...
25492 (grub_console_term_output): ... this. Update all users.
25493 (grub_console_term_input): Only enable it on PC/BIOS platform.
25494 (grub_console_init): Remove grub_keyboard_controller_init() call.
25495
25496 Migrate input terminals to new API:
25497
25498 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
25499 `i386' and `i386/pc' to enable build on x86_64 (this driver is
25500 i386-specific anyway).
25501 (grub_console_checkkey): Rename to ...
25502 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
25503 users.
25504 (grub_keyboard_controller_orig): New variable.
25505 (grub_console_getkey): Rename to ...
25506 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
25507 users.
25508 (grub_keyboard_controller_init): Static-ize. Save original
25509 controller value so that it can be restored ...
25510 (grub_keyboard_controller_fini): ... here (new function).
25511 (grub_at_keyboard_term): New structure.
25512 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
25513 functions.
25514
25515 Migrate output terminals to new API:
25516
25517 * term/i386/pc/vga.c (grub_vga_term): Change type to
25518 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25519 members. Update all users.
25520 * term/gfxterm.c (grub_video_term): Change type to
25521 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25522 members. Update all users.
25523 * include/grub/i386/pc/console.h (grub_console_checkkey)
25524 (grub_console_getkey): Do not export (no longer needed by gfxterm,
25525 etc).
25526
25527 Migrate `terminal' command and userland tools to new API:
25528
25529 * commands/terminal.c (grub_cmd_terminal): Split into ...
25530 (grub_cmd_terminal_input): ... this, and ...
25531 (grub_cmd_terminal_output): ... this.
25532 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
25533 `terminal_input' and `terminal_output'.
25534 * util/grub.d/00_header.in: Adjust `terminal' calls to new
25535 `terminal_input' / `terminal_output' API.
25536 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
25537 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
25538 provided ${GRUB_TERMINAL}, convert it).
25539
25540 2008-11-04 Robert Millan <rmh@aybabtu.com>
25541
25542 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
25543 for FreeBSD.
25544 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
25545
25546 2008-11-03 Bean <bean123ch@gmail.com>
25547
25548 * kern/elf.c (grub_elf32_load): Revert to previous code.
25549 (grub_elf64_load): Likewise.
25550
25551 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
25552
25553 2008-11-01 Robert Millan <rmh@aybabtu.com>
25554
25555 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
25556 (TARGET_CPPFLAGS): Likewise.
25557 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
25558
25559 2008-11-01 Carles Pina i Estany <carles@pina.cat>
25560
25561 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
25562
25563 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25564
25565 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
25566 addition of objects until the code is not going to be able to fail.
25567
25568 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25569
25570 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
25571 (add a missing NULL check, and correct them by moving the pointer
25572 operations after the actual check).
25573
25574 2008-10-29 Robert Millan <rmh@aybabtu.com>
25575
25576 * util/i386/pc/grub-install.in: Handle empty string as output from
25577 make_system_path_relative_to_its_root().
25578
25579 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
25580
25581 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
25582 circular metadata worst case scenario. If the metadata is circular
25583 then copy the wrap in place.
25584 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
25585 project lib/format_text/layout.h
25586 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
25587
25588 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25589
25590 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
25591
25592 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25593
25594 * util/update-grub_lib.in: Mention filename in warning message.
25595
25596 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25597
25598 * NEWS: Update for rename of update-grub to grub-mkconfig.
25599
25600 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25601
25602 * util/update-grub_lib.in: Copy to ...
25603 * util/grub-mkconfig_lib.in: ... this. Update all users.
25604 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
25605 * util/update-grub.in: Rename to ...
25606 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
25607 option. Add `--output' option to allow users to specify the generated
25608 configuration file. Default to stdout.
25609 (update_grub_dir): Rename to ...
25610 (grub_mkconfig_dir): ... this.
25611 (grub_cfg): Default to an empty string.
25612 * conf/common.rmk (update-grub): Rename to ...
25613 (grub-mkconfig): ... this.
25614 (update-grub_lib): Copy to ...
25615 (grub-mkconfig_lib): ... this.
25616 (update-grub_SCRIPTS): Copy to ...
25617 (grub-mkconfig_SCRIPTS): ... this. Update all users.
25618 (update-grub_DATA): Rename to ...
25619 (grub-mkconfig_DATA): ... this.
25620
25621 2008-09-28 Robert Millan <rmh@aybabtu.com>
25622
25623 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
25624 to `modified'. Add the real `created' field.
25625 (grub_iso9660_uuid): Use `modified' rather than `created' for
25626 constructing the UUID.
25627
25628 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
25629
25630 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
25631 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
25632
25633 2008-09-28 Bean <bean123ch@gmail.com>
25634
25635 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
25636 Thanks to Christian Franke for finding this bug.
25637
25638 2008-09-25 Robert Millan <rmh@aybabtu.com>
25639
25640 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
25641 instances of grub_util_get_disk_name() (see previous commit).
25642
25643 2008-09-25 Robert Millan <rmh@aybabtu.com>
25644
25645 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
25646 `util/i386/get_disk_name.c'.
25647 * conf/i386-efi.rmk: Likewise.
25648 * conf/x86_64-efi.rmk: Likewise.
25649 * conf/i386-coreboot.rmk: Likewise.
25650 * conf/i386-ieee1275.rmk: Likewise.
25651 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
25652 `util/ieee1275/get_disk_name.c'.
25653 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
25654 * util/ieee1275/get_disk_name.c: Remove file.
25655 * util/i386/get_disk_name.c: Remove file.
25656 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
25657 "hd%d" for device.map entries, rather than using
25658 grub_util_get_disk_name().
25659
25660 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25661
25662 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
25663 warning.
25664 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
25665
25666 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25667
25668 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
25669 Changed to 0x5100.
25670 (GRUB_TERM_PPAGE): Changed to 0x4900.
25671
25672 2008-09-24 Robert Millan <rmh@aybabtu.com>
25673
25674 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
25675 macros (they were i386-pc specific).
25676 * include/grub/sparc64/ieee1275/console.h: Likewise.
25677 * include/grub/efi/console.h: Likewise.
25678
25679 2008-09-22 Bean <bean123ch@gmail.com>
25680
25681 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
25682 resident and in attribute list.
25683
25684 * include/grub/ntfs.h (BMP_LEN): Removed.
25685
25686 2008-09-22 Bean <bean123ch@gmail.com>
25687
25688 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
25689 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
25690
25691 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
25692 error occurs, as grub_disk_open will call grub_disk_close, which will
25693 call p->close (scsi).
25694
25695 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25696
25697 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
25698 (AC_PREREQ): Bumped to 2.59.
25699 (AC_TRY_COMPILE): Replace obsolete macro with ...
25700 (AC_COMPILE_IFELSE): ... this.
25701 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
25702 (AC_LINK_IFELSE): ... this.
25703
25704 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25705
25706 * autogen.sh: Add a call to `gendistlist.sh'.
25707
25708 2008-09-19 Christian Franke <franke@computer.org>
25709
25710 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
25711 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
25712 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
25713 Export __enable_execute_stack() to modules.
25714 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
25715 New function.
25716
25717 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25718
25719 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
25720 Sort the list.
25721
25722 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25723
25724 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
25725 #include <grub/util/hostdisk.h>.
25726
25727 2008-09-08 Robert Millan <rmh@aybabtu.com>
25728
25729 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
25730 segments when their filesz is zero (grub_file_read() interprets
25731 zero-size as "read until EOF", which results in memory corruption).
25732 Use `lowest_segment' rather than 0 for calculating the current
25733 segment load address.
25734
25735 2008-09-08 Robert Millan <rmh@aybabtu.com>
25736
25737 * util/hostdisk.c (open_device): Replace a grub_util_info() call
25738 with grub_dprintf("hostdisk", ...), as it was so verbose that it
25739 clobbered useful information.
25740
25741 2008-09-08 Robert Millan <rmh@aybabtu.com>
25742
25743 * include/grub/util/biosdisk.h: Move to ...
25744 * include/grub/util/hostdisk.h: ... here. Update all users.
25745 * util/biosdisk.c: Move to ...
25746 * util/hostdisk.c: ... here. Update all users.
25747
25748 2008-09-07 Robert Millan <rmh@aybabtu.com>
25749
25750 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
25751 variables.
25752 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
25753 and length can be stored directly in the `mbi->mmap_addr' and
25754 `mbi->mmap_length' struct fields.
25755
25756 2008-09-07 Robert Millan <rmh@aybabtu.com>
25757
25758 * conf/i386.rmk: New file. Provides declaration for building
25759 `cpuid.mod'.
25760 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
25761 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
25762 variables.
25763 Include `conf/i386.mk'.
25764 * conf/i386-efi.rmk: Likewise.
25765 * conf/x86_64-efi.rmk: Likewise.
25766 * conf/i386-coreboot.rmk: Likewise.
25767 * conf/i386-ieee1275.rmk: Likewise.
25768
25769 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
25770
25771 Based on patch created by Colin D Bennett <colin@gibibit.com>.
25772 Adds optimization support for BGR based modes.
25773
25774 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
25775 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25776 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25777 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25778 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25779 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25780 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25781 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25782 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25783 (grub_video_i386_vbeblit_index_index): Likewise.
25784 (grub_video_i386_vbeblit_replace_directN): Added.
25785 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25786 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25787 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25788 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25789 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25790 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25791 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25792 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25793 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25794 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25795 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25796 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25797 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25798
25799 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
25800 (grub_video_i386_vbefill_R8G8B8): Likewise.
25801 (grub_video_i386_vbefill_index): Likewise.
25802 (grub_video_i386_vbefill_direct32): Added.
25803 (grub_video_i386_vbefill_direct24): Likewise.
25804 (grub_video_i386_vbefill_direct16): Likewise.
25805 (grub_video_i386_vbefill_direct8): Likewise.
25806
25807 * include/grub/video.h (grub_video_blit_format): Removed
25808 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
25809 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
25810 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
25811 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
25812 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
25813
25814 * video/video.c (grub_video_get_blit_format): Updated to use new
25815 blit formats. Added handling for 16 bit color modes.
25816
25817 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
25818 fillers.
25819 (common_blitter): Updated to use new blitters.
25820
25821 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
25822 Removed.
25823 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25824 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25825 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25826 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25827 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25828 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25829 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25830 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25831 (grub_video_i386_vbeblit_index_index): Likewise.
25832 (grub_video_i386_vbeblit_replace_directN): Added.
25833 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25834 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25835 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25836 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25837 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25838 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25839 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25840 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25841 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25842 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25843 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25844 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25845 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25846
25847 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
25848 (grub_video_i386_vbefill_R8G8B8): Likewise.
25849 (grub_video_i386_vbefill_index): Likewise.
25850 (grub_video_i386_vbefill_direct32): Added.
25851 (grub_video_i386_vbefill_direct24): Likewise.
25852 (grub_video_i386_vbefill_direct16): Likewise.
25853 (grub_video_i386_vbefill_direct8): Likewise.
25854
25855 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
25856 types.
25857
25858 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
25859 types.
25860
25861 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
25862 blitter types.
25863
25864 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
25865 types.
25866
25867 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25868
25869 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
25870 RAID level 1.
25871
25872 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25873
25874 * fs/iso9660.c (grub_iso9660_date): New structure.
25875 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
25876 (grub_iso9660_uuid): New function.
25877
25878 2008-09-05 Bean <bean123ch@gmail.com>
25879
25880 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
25881
25882 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
25883 insensitive bit for names in Win32 and Win32 & DOS namespace.
25884
25885 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
25886
25887 * include/grub/types.h (LONG_MAX): Likewise.
25888
25889 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25890
25891 * util/getroot.c: Include <config.h>.
25892 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
25893 add support for /dev/md/N devices and handle LVM double dash escaping.
25894
25895 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25896
25897 * config.guess: Update to latest version from config git.
25898 * config.sub: Likewise.
25899
25900 2008-09-03 Robert Millan <rmh@aybabtu.com>
25901
25902 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
25903 `disk->total_sectors'.
25904
25905 2008-09-01 Colin D Bennett <colin@gibibit.com>
25906
25907 * include/grub/normal.h: Fixed incorrect comment for
25908 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
25909
25910 2008-09-01 Colin D Bennett <colin@gibibit.com>
25911
25912 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
25913 values with defines.
25914
25915 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
25916 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
25917 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
25918 (GRUB_VBE_MODEATTR_COLOR): Likewise.
25919 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
25920 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
25921 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
25922 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
25923 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
25924 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
25925 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
25926 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
25927 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
25928 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
25929 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
25930 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
25931 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
25932 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
25933 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
25934
25935 2008-08-31 Robert Millan <rmh@aybabtu.com>
25936
25937 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
25938 declaration.
25939 (grub_multiboot): Fix a few warnings.
25940
25941 2008-08-31 Robert Millan <rmh@aybabtu.com>
25942
25943 * loader/i386/pc/multiboot.c: Update comment not to say that
25944 boot_device support is unimplemented.
25945
25946 2008-08-31 Robert Millan <rmh@aybabtu.com>
25947
25948 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
25949 or memory map support are unimplemented.
25950
25951 2008-08-31 Colin D Bennett <colin@gibibit.com>
25952
25953 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
25954
25955 2008-08-31 Colin D Bennett <colin@gibibit.com>
25956
25957 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
25958 total video memory in 'vbeinfo' output; show color format details for
25959 each video mode.
25960
25961 2008-08-30 Pavel Roskin <proski@gnu.org>
25962
25963 * util/genmoddep.c: Remove for real this time.
25964 * DISTLIST: Remove util/genmoddep.c.
25965
25966 2008-08-30 Robert Millan <rmh@aybabtu.com>
25967
25968 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
25969 as required by Multiboot spec (it was already 4-byte aligned, but
25970 only by chance).
25971
25972 2008-08-29 Pavel Roskin <proski@gnu.org>
25973
25974 * kern/powerpc/ieee1275/crt0.S: Rename to ...
25975 * kern/powerpc/ieee1275/startup.S: ... this.
25976 * conf/powerpc-ieee1275.rmk: Adjust for the above.
25977 * DISTLIST: Likewise.
25978
25979 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
25980 grub/cpu/kernel.h. Add start label for consistency with other
25981 platforms. Add grub_prefix immediately after start. Add jump
25982 to the code after grub_prefix.
25983 * include/grub/powerpc/kernel.h: Provide valid values for
25984 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
25985
25986 2008-08-29 Bean <bean123ch@gmail.com>
25987
25988 * configure.ac: Change host_os to cygwin for mingw.
25989 (asprintf): New check for function.
25990
25991 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
25992 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
25993
25994 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
25995 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
25996 sync, sleep and grub_util_get_disk_size for mingw.
25997
25998 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
25999 to get size in mingw.
26000 (open_device): Use flag O_BINARY if it's defined.
26001 (find_root_device): Add dummy code for mingw.
26002
26003 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
26004 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
26005 (get_scsi_disk_name): Return 0 for mingw.
26006
26007 * util/hostfs.c: #include <grub/util/misc.h>.
26008 (grub_hostfs_open): Use "rb" flag to open file, use
26009 grub_util_get_disk_size to get disk size for mingw.
26010
26011 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
26012 (asprintf): New function if HAVE_ASPRINTF is not set.
26013 (sync): New function for mingw.
26014 (sleep): Likewise.
26015 (grub_util_get_disk_size): Likewise.
26016
26017 2008-08-28 Pavel Roskin <proski@gnu.org>
26018
26019 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26020 kern/time.c.
26021
26022 2008-08-28 Robert Millan <rmh@aybabtu.com>
26023
26024 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
26025
26026 2008-08-28 Robert Millan <rmh@aybabtu.com>
26027
26028 Change find_grub_drive() syntax so it doesn't prevent it from
26029 detecting NULL names as errors.
26030
26031 * util/biosdisk.c (find_grub_drive): Move free slot search code
26032 from here ...
26033 (find_free_slot): ... to here.
26034 (read_device_map): Use find_free_slot() to search for free slots.
26035
26036 2008-08-27 Marco Gerards <marco@gnu.org>
26037
26038 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
26039 (scsi_mod_SOURCES): New variable.
26040 (scsi_mod_CFLAGS): Likewise
26041 (scsi_mod_LDFLAGS): Likewise.
26042
26043 * disk/scsi.c: New file.
26044
26045 * include/grub/scsi.h: Likewise.
26046
26047 * include/grub/scsicmd.h: Likewise.
26048
26049 * disk/ata.c: Include <grub/scsi.h>.
26050 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
26051 instead.
26052 (grub_ata_iterate): Skip ATAPI devices.
26053 (grub_ata_open): Only handle ATAPI devices.
26054 (struct grub_atapi_read): Removed.
26055 (grub_atapi_readsector): Likewise.
26056 (grub_ata_read): No longer handle ATAPI devices.
26057 (grub_ata_write): Likewise.
26058 (grub_atapi_iterate): New function.
26059 (grub_atapi_read): Likewise.
26060 (grub_atapi_write): Likewise.
26061 (grub_atapi_open): Likewise.
26062 (grub_atapi_close): Likewise.
26063 (grub_atapi_dev): New variable.
26064 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
26065 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
26066
26067 * include/grub/disk.h (enum grub_disk_dev_id): Add
26068 `GRUB_DISK_DEVICE_SCSI_ID'.
26069
26070 2008-08-26 Robert Millan <rmh@aybabtu.com>
26071
26072 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
26073 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
26074 descriptive.
26075
26076 2008-08-23 Bean <bean123ch@gmail.com>
26077
26078 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
26079 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
26080 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
26081 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
26082 dm_nv.mod.
26083 (raid5rec_mod_SOURCES): New macro.
26084 (raid5rec_mod_CFLAGS): Likewise.
26085 (raid5rec_mod_LDFLAGS): Likewise.
26086 (raid6rec_mod_SOURCES): Likewise.
26087 (raid6rec_mod_CFLAGS): Likewise.
26088 (raid6rec_mod_LDFLAGS): Likewise.
26089 (mdraid_mod_SOURCES): Likewise.
26090 (mdraid_mod_CFLAGS): Likewise.
26091 (mdraid_mod_LDFLAGS): Likewise.
26092 (dm_nv_mod_SOURCES): Likewise.
26093 (dm_nv_mod_CFLAGS): Likewise.
26094 (dm_nv_mod_LDFLAGS): Likewise.
26095
26096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
26097 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
26098 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
26099
26100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
26101 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
26102
26103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26104
26105 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26106
26107 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26108
26109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26110
26111 * disk/raid5_recover.c: New file.
26112
26113 * disk/raid6_recover.c: Likewise.
26114
26115 * disk/mdraid_linux.c: Likewise.
26116
26117 * disk/dmraid_nvidia.c: Likewise.
26118
26119 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
26120 ULONG_MAX.
26121
26122 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
26123 calculate the size of raid device.
26124 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
26125 different layout of raid5.
26126 (grub_raid_scan_device): Remove code specific to mdraid.
26127 (grub_raid_list): New variable.
26128 (free_array): New function.
26129 (grub_raid_register): Likewise.
26130 (grub_raid_unregister): Likewise.
26131 (grub_raid_rescan): Likewise.
26132 (GRUB_MOD_INIT): Don't iterate device here.
26133 (GRUB_MOD_FINI): Use free_array to release resource.
26134
26135 * include/grub/raid.h: Remove macro and structure specific to mdraid.
26136 (grub_raid5_recover_func_t): New function variable type.
26137 (grub_raid6_recover_func_t): Likewise.
26138 (grub_raid5_recover_func): New variable.
26139 (grub_raid6_recover_func): Likewise.
26140 (grub_raid_register): New function.
26141 (grub_raid_unregister): Likewise.
26142 (grub_raid_rescan): Likewise.
26143 (grub_raid_block_xor): Likewise.
26144
26145 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
26146 (CMD_CRC): New macro.
26147 (part): Removed.
26148 (read_file): Handle device as well as file.
26149 (cmd_crc): New function.
26150 (fstest): Handle multiple disks.
26151 (options): Remove part, raw and long, add root and diskcount.
26152 (usage): Add crc, remove -p, -r, -l, add -r and -c.
26153 (main): Find the first non option entry and ignore subsequent options,
26154 add handling for the new options, support multiple disks.
26155
26156 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
26157
26158 2008-08-23 Bean <bean123ch@gmail.com>
26159
26160 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
26161
26162 * genfslist.sh: Ignore kernel.mod.
26163
26164 * genpartmaplist.sh: Likewise.
26165
26166 2008-08-23 Robert Millan <rmh@aybabtu.com>
26167
26168 * util/getroot.c (find_root_device): Skip anything that starts with
26169 a dot, not just directories. This avoids things like /dev/.tmp.md0.
26170
26171 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
26172
26173 * util/update-grub.in (GRUB_GFXMODE): Export variable.
26174 * util/grub.d/00_header.in: Allow the administrator to change default
26175 gfxmode via ${GRUB_GFXMODE}.
26176
26177 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
26178
26179 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
26180
26181 2008-08-21 Robert Millan <rmh@aybabtu.com>
26182
26183 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
26184 loader.
26185 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
26186 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
26187
26188 2008-08-20 Carles Pina i Estany <carles@pina.cat>
26189
26190 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
26191 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
26192
26193 2008-08-19 Robert Millan <rmh@aybabtu.com>
26194
26195 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
26196 (struct grub_virtual_screen): Remove `cursor_color'.
26197 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
26198 initialization.
26199 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
26200
26201 2008-08-18 Robert Millan <rmh@aybabtu.com>
26202
26203 Unify (identical) linux_normal.c files.
26204 * loader/i386/efi/linux_normal.c: Move from here ...
26205 * loader/linux_normal.c: ... to here. Update all users.
26206 * loader/i386/pc/linux_normal.c: Delete. Update all users.
26207 * loader/i386/ieee1275/linux_normal.c: Likewise.
26208
26209 2008-08-18 Robert Millan <rmh@aybabtu.com>
26210
26211 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
26212 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
26213 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
26214 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
26215 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
26216 New macros.
26217 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
26218 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
26219 (GRUB_LINUX_CL_END_OFFSET): ... to here.
26220 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
26221 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
26222 (GRUB_EFI_CL_END_OFFSET): Rename to ...
26223 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
26224 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
26225 Initialize `params->video_cursor_x' and `params->video_cursor_y'
26226 portably using grub_getxy().
26227 Replace `-EFI' with `-bzImage' in boot message.
26228
26229 2008-08-17 Robert Millan <rmh@aybabtu.com>
26230
26231 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
26232
26233 2008-08-17 Robert Millan <rmh@aybabtu.com>
26234
26235 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
26236
26237 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
26238 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
26239 (grub_machine_mmap_iterate): New function declaration.
26240 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
26241 structure.
26242 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
26243 macros.
26244
26245 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
26246 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
26247 Move e820 parsing from here ...
26248 * kern/i386/pc/mmap.c: New file.
26249 (grub_machine_mmap_iterate): ... to here.
26250
26251 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
26252 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
26253 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
26254 (grub_available_iterate): Redeclare to return `void', and redeclare
26255 its hook to use grub_uint64_t as addr and size parameters, and rename
26256 to ...
26257 (grub_machine_mmap_iterate): ... this. Update all users.
26258
26259 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
26260 to make it more readable. Rename to ...
26261 (grub_machine_mmap_iterate): ... this.
26262
26263 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
26264 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
26265 (grub_multiboot): Allocate an extra region after the payload, and fill
26266 it with a Multiboot memory map. Adjust a.out loader to calculate size
26267 with the extra space.
26268 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
26269 with the extra space.
26270
26271 2008-08-17 Carles Pina i Estany <carles@pina.cat>
26272
26273 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
26274
26275 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
26276
26277 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
26278 mdate-sh to the list `find' searches for.
26279 * DISTLIST: Regenerated.
26280
26281 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
26282
26283 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
26284 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
26285 genmoddep.awk, gensymlist.sh.in.
26286 (DISTDIRS): Add bus, docs, hook, lib.
26287 * DISTLIST: Regenerated.
26288 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
26289
26290 2008-08-16 Robert Millan <rmh@aybabtu.com>
26291
26292 * disk/raid.c (grub_raid_init): Handle/report errors set by
26293 grub_device_iterate().
26294 * disk/lvm.c (grub_lvm_init): Likewise.
26295
26296 2008-08-15 Bean <bean123ch@gmail.com>
26297
26298 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26299 and datehook.mod.
26300 (datetime_mod_SOURCES): New macro.
26301 (datetime_mod_CFLAGS): Likewise.
26302 (datetime_mod_LDFLAGS): Likewise.
26303 (date_mod_SOURCES): Likewise.
26304 (date_mod_CFLAGS): Likewise.
26305 (date_mod_LDFLAGS): Likewise.
26306 (datehook_mod_SOURCES): Likewise.
26307 (datehook_mod_CFLAGS): Likewise.
26308 (datehook_mod_LDFLAGS): Likewise.
26309
26310 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26311 and datehook.mod.
26312 (datetime_mod_SOURCES): New macro.
26313 (datetime_mod_CFLAGS): Likewise.
26314 (datetime_mod_LDFLAGS): Likewise.
26315 (date_mod_SOURCES): Likewise.
26316 (date_mod_CFLAGS): Likewise.
26317 (date_mod_LDFLAGS): Likewise.
26318 (datehook_mod_SOURCES): Likewise.
26319 (datehook_mod_CFLAGS): Likewise.
26320 (datehook_mod_LDFLAGS): Likewise.
26321
26322 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26323 and datehook.mod.
26324 (datetime_mod_SOURCES): New macro.
26325 (datetime_mod_CFLAGS): Likewise.
26326 (datetime_mod_LDFLAGS): Likewise.
26327 (date_mod_SOURCES): Likewise.
26328 (date_mod_CFLAGS): Likewise.
26329 (date_mod_LDFLAGS): Likewise.
26330 (datehook_mod_SOURCES): Likewise.
26331 (datehook_mod_CFLAGS): Likewise.
26332 (datehook_mod_LDFLAGS): Likewise.
26333
26334 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26335 and datehook.mod.
26336 (datetime_mod_SOURCES): New macro.
26337 (datetime_mod_CFLAGS): Likewise.
26338 (datetime_mod_LDFLAGS): Likewise.
26339 (date_mod_SOURCES): Likewise.
26340 (date_mod_CFLAGS): Likewise.
26341 (date_mod_LDFLAGS): Likewise.
26342 (datehook_mod_SOURCES): Likewise.
26343 (datehook_mod_CFLAGS): Likewise.
26344 (datehook_mod_LDFLAGS): Likewise.
26345
26346 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26347 and datehook.mod.
26348 (datetime_mod_SOURCES): New macro.
26349 (datetime_mod_CFLAGS): Likewise.
26350 (datetime_mod_LDFLAGS): Likewise.
26351 (date_mod_SOURCES): Likewise.
26352 (date_mod_CFLAGS): Likewise.
26353 (date_mod_LDFLAGS): Likewise.
26354 (datehook_mod_SOURCES): Likewise.
26355 (datehook_mod_CFLAGS): Likewise.
26356 (datehook_mod_LDFLAGS): Likewise.
26357
26358 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
26359
26360 * commands/date.c: New file.
26361
26362 * hook/datehook.c: Likewise.
26363
26364 * include/grub/lib/datetime.h: Likewise.
26365
26366 * include/grub/i386/cmos.h: Likewise.
26367
26368 * lib/datetime.c: Likewise.
26369
26370 * lib/i386/datetime.c: Likewise.
26371
26372 * lib/efi/datetime.c: Likewise.
26373
26374 2008-08-14 Robert Millan <rmh@aybabtu.com>
26375
26376 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
26377 (grub_mkelfimage_SOURCES): New variable.
26378 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
26379
26380 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
26381 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
26382 * conf/powerpc-ieee1275.rmk: Likewise.
26383 * conf/i386-ieee1275.rmk: Likewise.
26384
26385 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
26386 * kern/i386/coreboot/init.c: Likewise.
26387
26388 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
26389 with `<grub/cpu/kernel.h>'.
26390 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
26391 to ...
26392 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
26393 * kern/i386/coreboot/startup.S: Likewise.
26394
26395 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
26396 (GRUB_MOD_GAP): Remove.
26397 * include/grub/powerpc/kernel.h: New file.
26398 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
26399 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
26400 * include/grub/i386/kernel.h: New file.
26401 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
26402 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
26403 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
26404
26405 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
26406 `grub-mkelfimage'.
26407 Use --directory when invoking grub_mkimage.
26408
26409 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
26410 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
26411 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
26412 and GRUB_KERNEL_CPU_PREFIX.
26413
26414 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
26415
26416 * include/grub/err.h (grub_err_printf): New function prototype.
26417 * util/misc.c (grub_err_printf): New function.
26418 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
26419 grub_printf.
26420 * kern/err.c (grub_print_error): Use grub_err_printf.
26421
26422 2008-08-13 Robert Millan <rmh@aybabtu.com>
26423
26424 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
26425
26426 2008-08-13 Robert Millan <rmh@aybabtu.com>
26427
26428 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
26429 boot entry.
26430
26431 2008-08-12 Robert Millan <rmh@aybabtu.com>
26432
26433 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
26434 of the relocation code from here ...
26435 (grub_multiboot): ... to here.
26436 (forward_relocator, backward_relocator): Move from here ...
26437 * kern/i386/loader.S (grub_multiboot_forward_relocator)
26438 (grub_multiboot_backward_relocator): ... to here.
26439 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
26440 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
26441 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
26442 (grub_multiboot_forward_relocator_end)
26443 (grub_multiboot_backward_relocator)
26444 (grub_multiboot_backward_relocator_end): New variables.
26445
26446 2008-08-12 Bean <bean123ch@gmail.com>
26447
26448 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
26449
26450 2008-08-11 Robert Millan <rmh@aybabtu.com>
26451
26452 * kern/i386/linuxbios/startup.S: Move from here ...
26453 * kern/i386/coreboot/startup.S: ... to here.
26454
26455 * kern/i386/linuxbios/init.c: Move from here ...
26456 * kern/i386/coreboot/init.c: ... to here.
26457
26458 * kern/i386/linuxbios/table.c: Move from here ...
26459 * kern/i386/coreboot/mmap.c: ... to here.
26460
26461 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
26462
26463 2008-08-11 Robert Millan <rmh@aybabtu.com>
26464
26465 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
26466 errors. Leave it to the upper layer to handle them.
26467
26468 2008-08-09 Christian Franke <franke@computer.org>
26469
26470 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
26471 * conf/common.rmk: Install `grub-pe2elf' only if requested.
26472 Install `grub.d/10_windows' only on Cygwin.
26473 * configure.ac: Add subst of `target_os'.
26474 Check `target_os' also before setting TARGET_OBJ2ELF.
26475 Add `--enable-grub-pe2elf'.
26476
26477 2008-08-08 Robert Millan <rmh@aybabtu.com>
26478
26479 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26480 (grub_last_time): Change type to grub_uint64_t.
26481 (grub_disk_open): Migrate code from to using grub_get_time_ms().
26482 (grub_disk_close): Likewise.
26483
26484 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26485 (run_menu): Migrate code from to using grub_get_time_ms().
26486
26487 * util/misc.c (grub_get_time_ms): New function.
26488
26489 2008-08-08 Marco Gerards <marco@gnu.org>
26490
26491 * disk/ata.c (grub_ata_regget): Change return type to
26492 `grub_uint8_t'.
26493 (grub_ata_regget2): Likewise.
26494 (grub_ata_wait_status): New function.
26495 (grub_ata_wait_busy): Removed function, updated all users to use
26496 `grub_ata_wait_status'.
26497 (grub_ata_wait_drq): Likewise.
26498 (grub_ata_cmd): New function.
26499 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
26500 error handling.
26501 (grub_ata_pio_write): Add error handling.
26502 (grub_atapi_identify): Likewise.
26503 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
26504 handling.
26505 (grub_ata_identify): Use `grub_ata_cmd' and improve error
26506 handling. Actually use the detected registers. Reorder the
26507 detection logic such that it is easier to read.
26508 (grub_ata_pciinit): Do not assign the same ID to each controller.
26509 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
26510 handling.
26511 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
26512
26513 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
26514
26515 2008-08-08 Marco Gerards <marco@gnu.org>
26516
26517 * NEWS: Update.
26518
26519 2008-08-07 Bean <bean123ch@gmail.com>
26520
26521 * include/grub/x86_64/pci.h: New file.
26522
26523 2008-08-07 Christian Franke <franke@computer.org>
26524
26525 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
26526 (TIMER2_GATE): Likewise.
26527 (grub_pit_wait): Add enable/disable of the timer2 gate
26528 bit of port 0x61. This fixes a possible infinite loop.
26529
26530 2008-08-07 Bean <bean123ch@gmail.com>
26531
26532 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
26533 kern/i386/tsc.c and kern/i386/pit.c.
26534
26535 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
26536 x86_64 platform.
26537
26538 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
26539 <grub/i386/tsc.h>.
26540
26541 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
26542
26543 2008-08-07 Bean <bean123ch@gmail.com>
26544
26545 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
26546
26547 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
26548
26549 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
26550 multiple inclusion. Add #include <grub/types.h>.
26551
26552 2008-08-06 Christian Franke <franke@computer.org>
26553
26554 * conf/common.rmk: Build and install `10_windows'.
26555 * util/grub.d/10_windows.in: New script.
26556
26557 2008-08-06 Pavel Roskin <proski@gnu.org>
26558
26559 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
26560
26561 2008-08-06 Robert Millan <rmh@aybabtu.com>
26562
26563 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
26564 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
26565
26566 2008-08-06 Bean <bean123ch@gmail.com>
26567
26568 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
26569 (grub_pxefs_fs_int): Remove dummy definition.
26570 (grub_pxefs_open): Use data->block_size to store the current block
26571 size setting.
26572 (grub_pxefs_read): Use block size stored in data->block_size. As the
26573 value of grub_pxe_blksize can be changed after the file is opened.
26574
26575 2008-08-06 Bean <bean123ch@gmail.com>
26576
26577 * fs/i386/pc/pxe.c (curr_file): new variable.
26578 (grub_pxefs_open): Simply the handling of pxe file system. Don't
26579 require the dummy internal file system anymore.
26580 (grub_pxefs_read): Removed.
26581 (grub_pxefs_close): Likewise.
26582 (grub_pxefs_fs_int): Likewise.
26583 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
26584 connection when we switch file.
26585 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
26586
26587 2008-08-06 Robert Millan <rmh@aybabtu.com>
26588
26589 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
26590 `halt.mod'.
26591 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
26592 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
26593
26594 * kern/i386/halt.c: New file.
26595 * kern/i386/reboot.c: Likewise.
26596 * include/grub/i386/reboot.h: Likewise.
26597 * include/grub/i386/halt.h: Likewise.
26598
26599 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
26600 Include `<grub/cpu/halt.h>'.
26601 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
26602 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
26603
26604 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
26605 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
26606 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
26607 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
26608 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
26609 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
26610 from here ...
26611 * include/grub/i386/at_keyboard.h: ... to here.
26612
26613 2008-08-05 Robert Millan <rmh@aybabtu.com>
26614
26615 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
26616 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
26617 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
26618 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26619 `kern/generic/millisleep.c'.
26620
26621 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
26622 instead of grub_get_rtc().
26623 (grub_tsc_init): Initialize `tsc_boot_time'.
26624
26625 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
26626 (grub_machine_init): Use grub_tsc_init() rather than
26627 installing an RTC-based handler via grub_install_get_time_ms().
26628
26629 * kern/i386/pit.c: New file.
26630 * include/grub/i386/pit.h: Likewise.
26631
26632 2008-08-05 Bean <bean123ch@gmail.com>
26633
26634 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
26635
26636 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
26637 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
26638 (pxe_mod_SOURCES): New macro.
26639 (pxe_mod_CFLAGS): Likewise.
26640 (pxe_mod_LDFLAGS): Likewise.
26641 (pxecmd_mod_SOURCES): Likewise.
26642 (pxecmd_mod_CFLAGS): Likewise.
26643 (pxecmd_mod_LDFLAGS): Likewise.
26644
26645 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
26646 (grub_pxe_call): Likewise.
26647
26648 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
26649
26650 * commands/i386/pc/pxecmd.c: New file.
26651
26652 * fs/i386/pc/pxe.c: Likewise.
26653
26654 * include/grub/i386/pc/pxe.h: Likewise.
26655
26656 2008-08-05 Bean <bean123ch@gmail.com>
26657
26658 * util/console.c (grub_console_cur_color): New variable.
26659 (grub_console_standard_color): Likewise.
26660 (grub_console_normal_color): Likewise.
26661 (grub_console_highlight_color): Likewise.
26662 (color_map): Likewise.
26663 (use_color): Likewise.
26664 (NUM_COLORS): New macro.
26665 (grub_ncurses_setcolorstate): Handle color properly.
26666 (grub_ncurses_setcolor): Don't change color here, just remember the
26667 settings, color will be set in grub_ncurses_setcolorstate.
26668 (grub_ncurses_getcolor): New function.
26669 (grub_ncurses_init): Initialize color pairs.
26670 (grub_ncurses_term): New member grub_ncurses_getcolor.
26671
26672 2008-08-05 Colin D Bennett <colin@gibibit.com>
26673
26674 High resolution timer support. Implemented for x86 CPUs using TSC.
26675 Extracted generic grub_millisleep() so it's linked in only as needed.
26676 This requires a Pentium compatible CPU; if the RDTSC instruction is
26677 not supported, then it falls back on the generic grub_get_time_ms()
26678 implementation that uses the machine's RTC.
26679
26680 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
26681 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26682 `kern/generic/millisleep.c'.
26683
26684 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
26685 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
26686
26687 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
26688 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
26689
26690 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26691
26692 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26693 `kern/generic/millisleep.c'.
26694
26695 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26696
26697 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
26698
26699 * kern/generic/rtc_get_time_ms.c: New file.
26700
26701 * kern/generic/millisleep.c: New file.
26702
26703 * kern/misc.c: Don't include
26704 <kern/time.h> anymore.
26705 (grub_millisleep_generic): Removed.
26706
26707 * commands/sleep.c (grub_interruptible_millisleep): Uses
26708 grub_get_time_ms() instead of grub_get_rtc().
26709
26710 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
26711 function.
26712 (grub_cpu_is_cpuid_supported): New inline function.
26713 (grub_cpu_is_tsc_supported): New inline function.
26714 (grub_tsc_init): New function prototype.
26715 (grub_tsc_get_time_ms): New function prototype.
26716
26717 * kern/i386/tsc.c (grub_get_time_ms): New file.
26718
26719 * include/grub/time.h: Include <grub/types.h.
26720 (grub_millisleep_generic): Removed.
26721 (grub_get_time_ms): New prototype.
26722 (grub_install_get_time_ms): New prototype.
26723 (grub_rtc_get_time_ms): New prototype.
26724
26725 * kern/time.c (grub_get_time_ms): New function.
26726 (grub_install_get_time_ms): New function.
26727
26728 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
26729 <grub/time.h> anymore.
26730 (grub_millisleep): Removed.
26731 (grub_machine_init): Call grub_tsc_init.
26732
26733 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
26734 get_time_ms() implementation.
26735
26736 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
26737 (ieee1275_get_time_ms): New function.
26738 (grub_machine_init): Install get_time_ms() implementation.
26739
26740 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
26741 (grub_machine_init): Call grub_tsc_init().
26742 (grub_millisleep): Removed.
26743
26744 * kern/ieee1275/init.c (grub_millisleep): Removed.
26745 (grub_machine_init): Install ieee1275_get_time_ms()
26746 implementation.
26747 (ieee1275_get_time_ms): New function.
26748 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
26749 real work.
26750
26751 2008-08-05 Marco Gerards <marco@gnu.org>
26752
26753 * disk/ata.c: Include <grub/pci.h>.
26754 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
26755 (grub_ata_initialize): Rewritten.
26756 (grub_ata_device_initialize): New function.
26757
26758 2008-08-04 Pavel Roskin <proski@gnu.org>
26759
26760 * kern/main.c: Include grub/mm.h.
26761
26762 2008-08-04 Robert Millan <rmh@aybabtu.com>
26763
26764 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
26765 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
26766 corruption problem).
26767
26768 2008-08-04 Robert Millan <rmh@aybabtu.com>
26769
26770 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
26771 warnings introduced in my last commit.
26772
26773 2008-08-03 Robert Millan <rmh@aybabtu.com>
26774
26775 Make PCI available on all i386 architectures.
26776
26777 * include/grub/i386/pc/pci.h: Move from here ...
26778 * include/grub/i386/pci.h: ... to here.
26779
26780 * include/grub/i386/pc/pci.h: Remove.
26781 * include/grub/i386/efi/pci.h: Remove.
26782 * include/grub/x86_64/efi/pci.h: Remove.
26783
26784 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
26785 `<grub/cpu/pci.h>'.
26786
26787 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
26788 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
26789 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
26790
26791 * conf/i386-ieee1275.rmk: Likewise.
26792
26793 2008-08-03 Robert Millan <rmh@aybabtu.com>
26794
26795 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
26796 (grub_console_setcursor): Make it possible to set cursor off.
26797
26798 2008-08-03 Robert Millan <rmh@aybabtu.com>
26799
26800 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
26801 of modules instead of assuming which platform provides what.
26802 * util/update-grub.in: Likewise.
26803
26804 2008-08-03 Robert Millan <rmh@aybabtu.com>
26805
26806 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
26807 instead of `grub_install_dos_part' to determine whether a drive needs
26808 to be prepended to prefix (`grub_install_dos_part' is not reliable,
26809 because it can be overridden when loading GRUB via Multiboot).
26810
26811 2008-08-02 Robert Millan <rmh@aybabtu.com>
26812
26813 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
26814
26815 2008-08-02 Robert Millan <rmh@aybabtu.com>
26816
26817 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
26818 of informational grub_dprintf() calls.
26819
26820 2008-08-02 Robert Millan <rmh@aybabtu.com>
26821
26822 * disk/memdisk.c (memdisk_size): Don't initialize.
26823 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
26824
26825 * include/grub/i386/pc/kernel.h
26826 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
26827 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
26828 (grub_memdisk_image_size, grub_arch_memdisk_addr)
26829 (grub_arch_memdisk_size): Remove.
26830
26831 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
26832 field (was only used to transfer a constant). Add `type' field to
26833 support multiple module types.
26834 (grub_module_iterate): New function.
26835
26836 * kern/device.c (grub_device_open): Do not hide error messages
26837 when grub_disk_open() fails. Use grub_print_error() instead.
26838
26839 * kern/i386/pc/init.c (grub_arch_modules_addr)
26840 (grub_arch_memdisk_size): Remove functions.
26841 (grub_arch_modules_addr): Return the module address in high memory
26842 (now that it isn't copied anymore).
26843
26844 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
26845 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
26846 decompression routine (grub_total_module_size already includes that
26847 now). Don't copy modules back to low memory.
26848
26849 * kern/main.c: Include `<grub/mm.h>'.
26850 (grub_load_modules): Split out (and use) ...
26851 (grub_module_iterate): ... this function, which iterates through
26852 module objects and runs a hook.
26853 Comment out grub_mm_init_region() call, as it would cause non-ELF
26854 modules to be overwritten.
26855
26856 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
26857 the memdisk image in its own region, make it part of the module list.
26858 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
26859 (main): Parse --memdisk|-m option, and pass user-provided path as
26860 parameter to generate_image().
26861 (add_segments): Pass `memdisk_path' down to load_modules().
26862 (load_modules): Embed memdisk image in module section when requested.
26863 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
26864 `header.type' instead of `header.offset'.
26865
26866 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
26867 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
26868 (memdisk_mod_LDFLAGS): New variables.
26869 * conf/i386-coreboot.rmk: Likewise.
26870 * conf/i386-ieee1275.rmk: Likewise.
26871
26872 2008-08-02 Robert Millan <rmh@aybabtu.com>
26873
26874 * loader/i386/pc/multiboot.c (playground, forward_relocator)
26875 (backward_relocator): New variables. Used to allocate and relocate
26876 the payload, respectively.
26877 (grub_multiboot_load_elf32): Load into heap instead of requested
26878 address, install the appropriate relocator code in each bound of
26879 the payload, and set the entry point such that
26880 grub_multiboot_real_boot() will jump to one of them.
26881
26882 * kern/i386/loader.S (grub_multiboot_payload_size)
26883 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26884 (grub_multiboot_payload_entry_offset): New variables.
26885 (grub_multiboot_real_boot): Set cpu context to what the relocator
26886 expects, and jump to the relocator instead of the payload.
26887
26888 * include/grub/i386/loader.h (grub_multiboot_payload_size)
26889 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26890 (grub_multiboot_payload_entry_offset): Export.
26891
26892 2008-08-01 Bean <bean123ch@gmail.com>
26893
26894 * normal/menu_entry.c (editor_getline): Don't return the original
26895 string as result, as it will be released by lexer once it has done
26896 using it.
26897
26898 2008-08-01 Robert Millan <rmh@aybabtu.com>
26899
26900 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
26901 within menuentries, not before them.
26902 util/grub.d/10_hurd.in: Likewise.
26903
26904 2008-08-01 Bean <bean123ch@gmail.com>
26905
26906 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
26907 (bufio_mod_SOURCES): New macro.
26908 (bufio_mod_CFLAGS): Likewise.
26909 (bufio_mod_LDFLAGS): Likewise.
26910
26911 * include/grub/bufio.h: New file.
26912
26913 * io/bufio.c: Likewise.
26914
26915 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
26916 (grub_video_reader_png): Use grub_buffile_open to open file.
26917
26918 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
26919 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
26920
26921 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
26922 (grub_video_reader_tga): Use grub_buffile_open to open file.
26923
26924 * font/manager.c: Include <grub/bufio.h>.
26925 (add_font): Use grub_buffile_open to open file.
26926
26927 2008-07-31 Robert Millan <rmh@aybabtu.com>
26928
26929 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
26930 ELF segments, use a macro for arbitrarily accessing any of them instead
26931 of preparing a pointer that allows access to one at a time.
26932 (grub_multiboot_load_elf64): Likewise.
26933
26934 2008-07-31 Bean <bean123ch@gmail.com>
26935
26936 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
26937 GRUB_KERNEL_MACHINE_DATA_END.
26938
26939 2008-07-30 Robert Millan <rmh@aybabtu.com>
26940
26941 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
26942 Increase from 0x50 to 0x60.
26943 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
26944 use UUIDs to identify the root drive for them. If that's not
26945 possible, abort.
26946 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
26947 check, for cross-disk installs.
26948
26949 2008-07-30 Robert Millan <rmh@aybabtu.com>
26950
26951 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
26952 is non-empty, use it to set the `prefix' environment variable instead
26953 of the usual approach.
26954 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
26955 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
26956 environment variable instead of dummy make_install_device().
26957
26958 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
26959 (start): Insert a data section, with `grub_prefix' variable.
26960 * kern/i386/linuxbios/startup.S: Likewise.
26961
26962 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
26963 New variable reference.
26964 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
26965 New macro. Defines offset of `grub_prefix' within startup.S (relative
26966 to `start').
26967 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
26968 section within startup.S (relative to `start').
26969 * include/grub/i386/coreboot/kernel.h: Likewise.
26970
26971 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
26972 Overwrite grub_prefix with its contents, at the beginning of the
26973 first segment.
26974 (main): Understand -p|--prefix.
26975
26976 2008-07-30 Robert Millan <rmh@aybabtu.com>
26977
26978 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
26979
26980 2008-07-30 Robert Millan <rmh@aybabtu.com>
26981
26982 * term/i386/pc/vga_text.c (grub_console_cls): Use
26983 grub_console_gotoxy() to go back to beginning of the screen.
26984 Found by Patrick Georgi <patrick.georgi@coresystems.de>
26985
26986 2008-07-29 Christian Franke <franke@computer.org>
26987
26988 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26989 Add conversion of emulated mount points on Cygwin.
26990
26991 2008-07-29 Christian Franke <franke@computer.org>
26992
26993 * util/update-grub.in: Add a check for admin
26994 group on Cygwin.
26995 Remove old `grub.cfg.new' before creation.
26996 Add `-f' to `mv' to handle the different filesystem
26997 semantics of Windows.
26998
26999 2008-07-29 Bean <bean123ch@gmail.com>
27000
27001 * normal/main.c (get_line): Fix buffer overflow bug.
27002
27003 2008-07-28 Robert Millan <rmh@aybabtu.com>
27004
27005 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
27006 (struct grub_apple_header): New struct. Describes the layout of
27007 the partmap header.
27008 (apple_partition_map_iterate): Check the header magic as well as the
27009 partition magic (which was already being checked).
27010
27011 2008-07-28 Pavel Roskin <proski@gnu.org>
27012
27013 * genmk.rb: Add a warning to the beginning of the output that
27014 it's a generated file and should not be edited.
27015
27016 2008-07-28 Robert Millan <rmh@aybabtu.com>
27017
27018 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27019 with the same number are found, just use issue a warning with
27020 grub_dprintf(), as this error has been reported to be non-fatal.
27021
27022 2008-07-27 Robert Millan <rmh@aybabtu.com>
27023
27024 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
27025 information.
27026
27027 2008-07-27 Bean <bean123ch@gmail.com>
27028
27029 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
27030 (grub_fat_find_dir): Ignore case when comparing filename.
27031
27032 2008-07-27 Bean <bean123ch@gmail.com>
27033
27034 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
27035 smallino, as it's more descriptive, and i8count can be confused with
27036 the other field count.
27037 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
27038 inode type.
27039
27040 2008-07-27 Bean <bean123ch@gmail.com>
27041
27042 * commands/crc.c: New file.
27043
27044 * lib/crc.c: Likewise.
27045
27046 * include/grub/lib/crc.h: Likewise.
27047
27048 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
27049
27050 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
27051 (hexdump): Move this function to ...
27052
27053 * lib/hexdump.c: ... here.
27054
27055 * include/grub/hexdump.h: Renamed to ...
27056
27057 * include/grub/lib/hexdump.h: ... this.
27058
27059 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
27060
27061 * util/grub-editenv.c: Likewise.
27062
27063 * include/envblk.h: Renamed to ...
27064
27065 * include/lib/envblk.h: ... this.
27066
27067 * util/envblk.c: Renamed to ...
27068
27069 * lib/envblk.c: ... this.
27070
27071 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
27072 lib/hexdump.c.
27073 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
27074 (pkglib_MODULES): Add crc.mod.
27075 (hexdump_mod_SOURCES): Add lib/hexdump.c.
27076 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
27077 (crc_mod_SOURCES): New macro.
27078 (crc_mod_CFLAGS): Likewise.
27079 (crc_mod_LDFLAGS): Likewise.
27080
27081 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
27082
27083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27084
27085 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27086
27087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27088
27089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27090
27091 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
27092
27093 * commands/help.c: Include <grub/term.h>.
27094 (TERM_WIDTH): Removed. Updated all users.
27095
27096 2008-07-27 Pavel Roskin <proski@gnu.org>
27097
27098 * util/getroot.c (find_root_device): Rephrase a comment to avoid
27099 spurious warnings about a comment within a comment.
27100
27101 2008-07-25 Robert Millan <rmh@aybabtu.com>
27102
27103 * util/getroot.c (find_root_device): Skip devices that match
27104 /dev/dm-[0-9]. This lets the real device be found for any type of
27105 abstraction (LVM, EVMS, RAID..).
27106 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
27107 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
27108 device is found first, find_root_device() will now skip it.
27109
27110 2008-07-24 Pavel Roskin <proski@gnu.org>
27111
27112 * include/grub/types.h: Use __builtin_bswap32() and
27113 __builtin_bswap64() with gcc 4.3 and newer.
27114
27115 2008-07-24 Christian Franke <franke@computer.org>
27116
27117 * util/i386/pc/grub-install.in: If `--debug' is specified,
27118 pass `--verbose' to grub-setup.
27119 Abort script if make_system_path_relative_to_its_root() fails.
27120
27121 2008-07-24 Bean <bean123ch@gmail.com>
27122
27123 * configure.ac: Fixed a bug caused by the previous cygwin patch,
27124 variable `target_platform' should be `platform'.
27125
27126 2008-07-24 Bean <bean123ch@gmail.com>
27127
27128 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
27129 (grub_png_init_fixed_block): New function.
27130 (grub_png_decode_image_data): Handle fixed huffman code compression.
27131
27132 2008-07-24 Bean <bean123ch@gmail.com>
27133
27134 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
27135 (grub_pe2elf_SOURCES): New macro.
27136 (CLEANFILES): Add grub-pe2elf.
27137
27138 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
27139 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
27140 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
27141 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
27142 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
27143 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
27144 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
27145 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
27146 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
27147 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
27148 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
27149 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
27150 (GRUB_PE32_DT_FUNCTION): Likewise.
27151 (GRUB_PE32_REL_I386_DIR32): Likewise.
27152 (GRUB_PE32_REL_I386_REL32): Likewise.
27153 (grub_pe32_symbol): New structure.
27154 (grub_pe32_reloc): Likewise.
27155
27156 * util/grub-pe2elf.c: New file.
27157
27158 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
27159 start symbol in non pc platform.
27160
27161 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
27162
27163 The following patches are from Christian Franke.
27164
27165 * include/grub/dl.h: Remove .previous, gas supports this only
27166 for ELF format.
27167
27168 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
27169 Remove .type, gas supports this only for ELF format.
27170
27171 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
27172 nullbytes in symbol table. This fixes an infinite loop if table is
27173 zero filled.
27174
27175 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
27176 TARGET_IMG_LDFLAGS and EXEEXT.
27177
27178 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
27179 TARGET_IMG_LDFLAGS_AC.
27180 (grub_CHECK_STACK_ARG_PROBE): New function.
27181
27182 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
27183
27184 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
27185
27186 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
27187 to set TARGET_IMG_LD* accordingly.
27188 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
27189 Add call to grub_CHECK_STACK_ARG_PROBE.
27190 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
27191
27192 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
27193
27194 * genmk.rb: Add EXEEXT to CLEANFILES.
27195
27196 2008-07-23 Robert Millan <rmh@aybabtu.com>
27197
27198 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
27199 define the codes for arrows and lines used for the menu).
27200 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
27201 as well.
27202
27203 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
27204 fonts, because the latter are too slow.
27205
27206 2008-07-21 Bean <bean123ch@gmail.com>
27207
27208 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
27209 a20. Run keyboard test last, as it will cause macbook to halt.
27210
27211 2008-07-18 Pavel Roskin <proski@gnu.org>
27212
27213 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
27214 load foreign architecture modules correctly anyway. Keep
27215 support for loading host architecture modules, whether we
27216 compile them or not.
27217
27218 2008-07-17 Pavel Roskin <proski@gnu.org>
27219
27220 * configure.ac: Use -m32 or -m64 regardless of whether we had to
27221 change target_cpu. The compiler default can mismatch target_cpu
27222 in any case.
27223
27224 * disk/efi/efidisk.c: Fix format warnings on x86_64.
27225 * kern/efi/efi.c: Likewise.
27226
27227 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
27228 target compiler is functional.
27229 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
27230 are set up.
27231
27232 * configure.ac: Default to efi platform for x86_64-apple. Allow
27233 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
27234 adjustments from the rest, only do them if target is not
27235 explicitly given. Merge other adjustments with the final sanity
27236 check. Remove an extraneous check for supported CPU. Be
27237 specific which CPU and which platform is not supported.
27238
27239 * configure.ac: Default to pc platform for x86_64.
27240
27241 2008-07-17 Robert Millan <rmh@aybabtu.com>
27242
27243 Partial LinuxBIOS -> Coreboot rename.
27244
27245 * conf/i386-linuxbios.rmk: Renamed to ...
27246 * conf/i386-coreboot.rmk: ... this.
27247 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
27248 * configure.ac: Accept "coreboot" as input platform (but maintain
27249 compatibility with "linuxbios").
27250 * include/grub/i386/linuxbios: Renamed to ...
27251 * include/grub/i386/coreboot: ... this.
27252
27253 2008-07-17 Bean <bean123ch@gmail.com>
27254
27255 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
27256 (appleldr_mod_SOURCE): New variable.
27257 (appleldr_mod_CFLAGS): Likewise.
27258 (appleldr_mod_LDFLAGS): Likewise.
27259 (pci_mod_SOURCES): Likewise.
27260 (pci_mod_CFLAGS): Likewise.
27261 (pci_mod_LDFLAGS): Likewise.
27262 (lspci_mod_SOURCES): Likewise.
27263 (lspci_mod_CFLAGS): Likewise.
27264 (lspci_mod_LDFLAGS): Likewise.
27265
27266 * conf/x86_64-efi.rmk: New file.
27267
27268 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
27269 macro.
27270 (grub_efidisk_write): Likewise.
27271
27272 * include/efi/api.h (efi_call_0): New macro.
27273 (efi_call_1): Likewise.
27274 (efi_call_2): Likewise.
27275 (efi_call_3): Likewise.
27276 (efi_call_4): Likewise.
27277 (efi_call_5): Likewise.
27278 (efi_call_6): Likewise.
27279
27280 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
27281 grub_rescue_cmd_chainloader.
27282
27283 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
27284 (grub_pe32_optional_header): Change some fields based on i386 or
27285 x86_64 platform.
27286 (GRUB_PE32_PE32_MAGIC): Likewise.
27287
27288 * include/grub/efi/uga_draw.h: New file.
27289
27290 * include/grub/elf.h (STN_ABS): New constant.
27291 (R_X86_64_NONE): Relocation constant for x86_64.
27292 (R_X86_64_64): Likewise.
27293 (R_X86_64_PC32): Likewise.
27294 (R_X86_64_GOT32): Likewise.
27295 (R_X86_64_PLT32): Likewise.
27296 (R_X86_64_COPY): Likewise.
27297 (R_X86_64_GLOB_DAT): Likewise.
27298 (R_X86_64_JUMP_SLOT): Likewise.
27299 (R_X86_64_RELATIVE): Likewise.
27300 (R_X86_64_GOTPCREL): Likewise.
27301 (R_X86_64_32): Likewise.
27302 (R_X86_64_32S): Likewise.
27303 (R_X86_64_16): Likewise.
27304 (R_X86_64_PC16): Likewise.
27305 (R_X86_64_8): Likewise.
27306 (R_X86_64_PC8): Likewise.
27307
27308 * include/grub/i386/efi/pci.h: New file.
27309
27310 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
27311 Change it value based on platform.
27312 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
27313 (GRUB_E820_RAM): Likewise.
27314 (GRUB_E820_RESERVED): Likewise.
27315 (GRUB_E820_ACPI): Likewise.
27316 (GRUB_E820_NVS): Likewise.
27317 (GRUB_E820_EXEC_CODE): Likewise.
27318 (GRUB_E820_MAX_ENTRY): Likewise.
27319 (grub_e820_mmap): New structure.
27320 (linux_kernel_header): Change the efi field according to different
27321 kernel version, also field from linux_kernel_header.
27322
27323 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
27324
27325 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
27326 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
27327 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
27328 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
27329 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
27330 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
27331 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
27332 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
27333 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
27334 (GRUB_PCI_ADDR_IO_MASK): Likewise.
27335
27336 * include/grub/x86_64/efi/kernel.h: New file.
27337
27338 * include/grub/x86_64/efi/loader.h: Likewise.
27339
27340 * include/grub/x86_64/efi/machine.h: Likewise.
27341
27342 * include/grub/x86_64/efi/pci.h: Likewise.
27343
27344 * include/grub/x86_64/efi/time.h: Likewise.
27345
27346 * include/grub/x86_64/linux.h: Likewise.
27347
27348 * include/grub/x86_64/setjmp.h: Likewise.
27349
27350 * include/grub/x86_64/time.h: Likewise.
27351
27352 * include/grub/x86_64/types.h: Likewise.
27353
27354 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
27355 GRUB_TARGET_SIZEOF_VOID_P.
27356
27357 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
27358 (grub_efi_locate_handle): Likewise.
27359 (grub_efi_open_protocol): Likewise.
27360 (grub_efi_set_text_mode): Likewise.
27361 (grub_efi_stall): Likewise.
27362 (grub_exit): Likewise.
27363 (grub_reboot): Likewise.
27364 (grub_halt): Likewise.
27365 (grub_efi_exit_boot_services): Likewise.
27366 (grub_get_rtc): Likewise.
27367
27368 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
27369 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
27370 (grub_efi_allocate_pages): Wrap efi calls.
27371 (grub_efi_free_pages): Wrap efi calls.
27372 (grub_efi_get_memory_map): Wrap efi calls.
27373
27374 * kern/x86_64/dl.c: New file.
27375
27376 * kern/x86_64/efi/callwrap.S: Likewise.
27377
27378 * kern/x86_64/efi/startup.S: Likewise.
27379
27380 * loader/efi/appleloader.c: Likewise.
27381
27382 * loader/efi/chainloader.c (cmdline): New variable.
27383 (grub_chainloader_unload): Wrap efi calls.
27384 (grub_chainloader_boot): Likewise.
27385 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
27386 command line.
27387
27388 * loader/efi/chainloader_normal.c (chainloader_command):
27389 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
27390 command line.
27391
27392 * loader/i386/efi/linux.c (allocate_pages): Change allocation
27393 method.
27394 (grub_e820_add_region): New function.
27395 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
27396 booting.
27397 (grub_find_video_card): New function.
27398 (grub_linux_setup_video): New function.
27399 (grub_rescue_cmd_linux): Probe for video information.
27400
27401 * normal/x86_64/setjmp.S: New file.
27402
27403 * term/efi/console.c (map_char): New function.
27404 (grub_console_putchar): Map unicode char.
27405 (grub_console_checkkey): Wrap efi calls.
27406 (grub_console_getkey): Likewise.
27407 (grub_console_getwh): Likewise.
27408 (grub_console_gotoxy): Likewise.
27409 (grub_console_cls): Likewise.
27410 (grub_console_setcolorstate): Likewise.
27411 (grub_console_setcursor): Likewise.
27412
27413 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
27414
27415 2008-07-16 Pavel Roskin <proski@gnu.org>
27416
27417 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
27418 format strings.
27419
27420 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
27421 pointer, not an integer. This fixes a warning and prevents
27422 precision loss on 64-bit systems.
27423 (relocate_addresses): Remove unneeded cast.
27424
27425 2008-07-15 Pavel Roskin <proski@gnu.org>
27426
27427 * kern/i386/ieee1275/init.c: Include grub/cache.h.
27428
27429 * term/ieee1275/ofconsole.c: Disable code unused on i386.
27430
27431 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
27432 Fix comparison between signed and unsigned.
27433
27434 * include/grub/i386/ieee1275/console.h: Declare
27435 grub_console_init() and grub_console_fini().
27436
27437 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
27438 It's empty and unused.
27439
27440 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
27441 beginning to avoid warnings with some compilers.
27442
27443 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
27444 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
27445
27446 2008-07-14 Pavel Roskin <proski@gnu.org>
27447
27448 * kern/env.c (grub_register_variable_hook): Don't copy empty
27449 string, it leaks memory. Pass "" to grub_env_set(), it should
27450 handle constant strings.
27451
27452 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
27453 * commands/cmp.c (grub_cmd_cmp): Likewise.
27454 * kern/dl.c (grub_dl_flush_cache): Likewise.
27455 (grub_dl_load_core): Likewise.
27456 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
27457 (grub_elf64_load_phdrs): Likewise.
27458
27459 2008-07-13 Pavel Roskin <proski@gnu.org>
27460
27461 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
27462 between signed and unsigned.
27463 (LzmaEnc_Finish): Fix warning about an unused parameter.
27464
27465 2008-07-13 Bean <bean123ch@gmail.com>
27466
27467 * Makefile.in (enable_lzo): New rule.
27468
27469 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
27470
27471 * configure.ac (ENABLE_LZO): New option --enable-lzo.
27472
27473 * boot/i386/pc/lnxboot.S: #include <config.h>.
27474
27475 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
27476 its value according to the compression algorithm used, lzo or lzma.
27477
27478 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
27479 compression algorithm according to configure macro.
27480
27481 * kern/i386/pc/startup.S (codestart): Likewise.
27482
27483 * kern/i386/pc/lzma_decode.S: New file.
27484
27485 * include/grub/lib/LzFind.h: Likewise.
27486
27487 * include/grub/lib/LzHash.h: Likewise.
27488
27489 * include/grub/lib/LzmaDec.h: Likewise.
27490
27491 * include/grub/lib/LzmaEnc.h: Likewise.
27492
27493 * include/grub/lib/LzmaTypes.h: Likewise.
27494
27495 * lib/LzFind.c: Likewise.
27496
27497 * lib/LzmaDec.c: Likewise.
27498
27499 * lib/LzmaEnc.c: Likewise.
27500
27501 2008-07-13 Bean <bean123ch@gmail.com>
27502
27503 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
27504 (grub_ext4_extent_header): New structure.
27505 (grub_ext4_extent): Likewise.
27506 (grub_ext4_extent_idx): Likewise.
27507 (grub_ext4_find_leaf): New function.
27508 (grub_ext2_read_block): Handle extents.
27509
27510 2008-07-12 Robert Millan <rmh@aybabtu.com>
27511
27512 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
27513
27514 2008-07-11 Robert Millan <rmh@aybabtu.com>
27515
27516 * util/grub.d/40_custom.in: New file. Example on how to add custom
27517 entries to /etc/grub.d.
27518 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
27519 40_custom (implicitly, by merging all the grub.d rules).
27520
27521 2008-07-11 Pavel Roskin <proski@gnu.org>
27522
27523 * commands/read.c (grub_getline): Fix invalid memory access.
27524 Don't add newline to the variable value.
27525
27526 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
27527 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
27528 (serial_hw_get_port): Check validity of the port number.
27529 (grub_cmd_serial): Check return value of serial_hw_get_port().
27530
27531 2008-07-07 Pavel Roskin <proski@gnu.org>
27532
27533 * boot/i386/pc/diskboot.S (notification_string): Replace
27534 "Loading kernel" with just "loading". This is shorter, less
27535 confusing and saves a few bytes for possible future changes.
27536
27537 2008-07-05 Pavel Roskin <proski@gnu.org>
27538
27539 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
27540 size for ATAPI devices, they are undefined. Output sector
27541 number in decimal form.
27542
27543 * disk/ata.c: Use named constants for status bits.
27544
27545 2008-07-04 Pavel Roskin <proski@gnu.org>
27546
27547 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
27548 grub_addr_t before casting it to the void pointer to fix a
27549 warning. Non-addressable regions are discarded earlier.
27550 (grub_arch_modules_addr): Cast _end to grub_addr_t.
27551 * kern/i386/linuxbios/table.c: Include grub/misc.h.
27552 (check_signature): Don't shadow table_header.
27553 (grub_linuxbios_table_iterate): Cast numeric constants to
27554 grub_linuxbios_table_header_t.
27555 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
27556 grub_stop().
27557
27558 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
27559 prevent warnings.
27560
27561 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
27562 pointer, which can cause warnings. Support 64-bit addresses.
27563
27564 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
27565 of sizeof(long). This fixes PowerPC image generation on x86_64.
27566
27567 2008-07-04 Robert Millan <rmh@aybabtu.com>
27568
27569 This fixes a performance issue when pc & gpt partmap iterators
27570 didn't abort iteration even after our hook found what it was
27571 looking for (often causing expensive probes of non-existent drives).
27572
27573 Some callers relied on previous buggy behaviour, since they would
27574 raise an error when their own hooks caused early abortion of its
27575 iteration.
27576
27577 * kern/device.c (grub_device_open): Improve error message.
27578 * disk/lvm.c (grub_lvm_open): Likewise.
27579 * disk/raid.c (grub_raid_open): Likewise.
27580
27581 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
27582 when hook requests it, independently of grub_errno.
27583 (pc_partition_map_probe): Do not fail when find_func() caused
27584 early abortion of pc_partition_map_iterate().
27585
27586 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
27587 when hook requests it, independently of grub_errno.
27588 (gpt_partition_map_probe): Do not fail when find_func() caused
27589 early abortion of gpt_partition_map_iterate().
27590
27591 * kern/partition.c (grub_partition_iterate): Abort parent iteration
27592 when hook requests it, independently of grub_errno. Do not fail when
27593 part_map_iterate_hook() caused early abortion of p->iterate().
27594
27595 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
27596 when grub_partition_iterate() returned with non-zero.
27597
27598 2008-07-03 Pavel Roskin <proski@gnu.org>
27599
27600 * disk/ata.c (grub_ata_pio_write): Check status before writing,
27601 like we do in grub_ata_pio_read().
27602 (grub_ata_readwrite): Always write individual sectors. Fix the
27603 sector count for the remainder.
27604 (grub_ata_write): Enable writing to ATA devices. Correctly
27605 report error for ATAPI devices.
27606
27607 2008-07-02 Pavel Roskin <proski@gnu.org>
27608
27609 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
27610 warning.
27611
27612 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
27613 for every read sector, we already increment it for the whole
27614 batch. This fixes reading more than 256 sectors at once.
27615
27616 * util/grub-editenv.c (cmd_info): Cast argument to long
27617 explicitly. ptrdiff_t reduces to int on i386.
27618
27619 * util/grub-editenv.c (main): Be specific which parameter is
27620 missing.
27621
27622 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
27623 (memdisk): Make memdisk_orig_addr a pointer.
27624
27625 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
27626 for file offsets, use grub_off_t instead. Fix printf format
27627 warnings.
27628
27629 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
27630 there. Real unexpected warnings should not drown in the noise
27631 about known problems.
27632
27633 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
27634 grub_disk_addr_t for memory addresses.
27635
27636 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
27637 explicitly to fix a warning.
27638
27639 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
27640
27641 * Makefile.in (MODULE_LDFLAGS): New variable.
27642 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
27643 the linker accepts --build-id=none.
27644 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
27645 MODULE_LDFLAGS.
27646 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
27647
27648 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
27649 those in Linux XFS code. Provide a way to access 64-bit parent
27650 inode.
27651 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
27652 the end of struct grub_xfs_dir_header.
27653
27654 2008-07-02 Bean <bean123ch@gmail.com>
27655
27656 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
27657 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27658 and GRUB_IEEE1275_FLAG_NO_ANSI.
27659
27660 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
27661 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27662 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
27663
27664 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
27665 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
27666
27667 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
27668 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
27669
27670 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
27671 esc sequence on non ANSI terminal.
27672 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
27673
27674 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
27675 beginning of file.
27676
27677 2008-07-02 Bean <bean123ch@gmail.com>
27678
27679 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
27680 (grub_editenv_SOURCES): New variable.
27681 (pkglib_MODULES): Add loadenv.mod.
27682 (loadenv_mod_SOURCES): New variable.
27683 (loadenv_mod_CFLAGS): Likewise.
27684 (loadenv_mod_LDFLAGS): Likewise.
27685
27686 * include/grub/envblk.h: New file.
27687
27688 * util/envblk.c: New file.
27689
27690 * util/grub-editenv.c: New file.
27691
27692 * commands/loadenv.c: New file.
27693
27694 2008-07-01 Pavel Roskin <proski@gnu.org>
27695
27696 * include/multiboot2.h (struct multiboot_tag_module): Use char,
27697 not unsigned char. This fixes warnings and is consistent with
27698 other tags.
27699
27700 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
27701
27702 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
27703
27704 * term/tparm.c (analyze): Always set *popcount.
27705
27706 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
27707 cast to fix a warning.
27708
27709 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
27710 cast to suppress a warning.
27711
27712 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
27713 grub_fshelp_read_file() expects.
27714
27715 * fs/fat.c: Fix UUID calculation on big-endian systems. We
27716 write uuid as a 32-bit value in CPU byte order, so declare and
27717 use it as such.
27718
27719 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
27720 long if the format specifier expects it.
27721 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
27722 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27723 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
27724 long to fix a warning.
27725 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
27726 grub_dprintf() arguments to fix warnings.
27727
27728 2008-06-30 Pavel Roskin <proski@gnu.org>
27729
27730 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
27731 install_bsd_part immediately before core.img is embedded or
27732 modified on disk. This fixes core.img verification if core.img
27733 cannot be embedded.
27734
27735 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
27736 core_path to calculate the blocklist.
27737 Patch from Javier Martín <lordhabbit@gmail.com>
27738
27739 2008-06-29 Robert Millan <rmh@aybabtu.com>
27740
27741 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
27742 block to disk block.
27743 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
27744 Patch from Niels Böhm <bitbucket@arcor.de>
27745
27746 2008-06-29 Robert Millan <rmh@aybabtu.com>
27747
27748 * util/update-grub_lib.in (font_path): Search for fonts in
27749 /boot/grub first, which is more likely to be readable (we aren't
27750 deciding where fonts live, just looking for them).
27751
27752 2008-06-26 Pavel Roskin <proski@gnu.org>
27753
27754 * util/biosdisk.c (read_device_map): Don't leave dead map
27755 entries for devices failing stat() check.
27756
27757 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
27758 core_path_dev for the core.img path on the target device.
27759
27760 2008-06-26 Robert Millan <rmh@aybabtu.com>
27761
27762 * disk/fs_uuid.c: New file.
27763 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
27764 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
27765 (fs_uuid_mod_LDFLAGS): New variables.
27766 * include/grub/disk.h (grub_disk_dev_id): Add
27767 `GRUB_DISK_DEVICE_UUID_ID'.
27768 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
27769 implement iterate().
27770
27771 2008-06-26 Robert Millan <rmh@aybabtu.com>
27772
27773 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
27774 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
27775 Linux image includes no initrd.
27776
27777 2008-06-21 Javier Martín <lordhabbit@gmail.com>
27778
27779 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
27780 call to resolve the core image location that effectively appended the
27781 name twice.
27782
27783 2008-06-21 Robert Millan <rmh@aybabtu.com>
27784
27785 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
27786 call from here ...
27787
27788 * util/grub.d/10_hurd.in: ... to here ...
27789 * util/grub.d/10_linux.in: ... and here.
27790
27791 2008-06-19 Robert Millan <rmh@aybabtu.com>
27792
27793 * kern/main.c (grub_main): Export `prefix' variable immediately
27794 after it has been set by grub_machine_set_prefix().
27795
27796 2008-06-19 Robert Millan <rmh@aybabtu.com>
27797
27798 * commands/search.c (search_label, search_fs_uuid, search_file): Print
27799 search result when not saving to variable, not the other way around.
27800 When saving to variable, abort iteration as soon as a match is found.
27801
27802 2008-06-19 Robert Millan <rmh@aybabtu.com>
27803
27804 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
27805 check for partition that provides /boot/grub. Its logic is flawed,
27806 as it prevents prepare_grub_to_access_device() from being called
27807 multiple times.
27808
27809 2008-06-19 Robert Millan <rmh@aybabtu.com>
27810
27811 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
27812 "insmod" command directly when abstraction modules are needed,
27813 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
27814 since it had already been processed).
27815
27816 2008-06-19 Pavel Roskin <proski@gnu.org>
27817
27818 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
27819 changed. This is needed in case GRUB_LIBDIR changes.
27820 * conf/i386-ieee1275.rmk: Likewise.
27821 * conf/i386-linuxbios.rmk: Likewise.
27822 * conf/i386-pc.rmk: Likewise.
27823 * conf/powerpc-ieee1275.rmk: Likewise.
27824
27825 2008-06-18 Pavel Roskin <proski@gnu.org>
27826
27827 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
27828 kernel_elf_symlist.c to symlist.c for consistency with other
27829 architectures. Update all users.
27830 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27831
27832 2008-06-18 Robert Millan <rmh@aybabtu.com>
27833
27834 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
27835 it in prefix.
27836
27837 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
27838 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
27839 a RAID device, run setup() for all members independently on whether
27840 LVM abstraction is being used.
27841 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
27842 If grub-mkimage has set `*install_dos_part == -2', don't override this
27843 value.
27844 Perform *install_dos_part adjustments independently on whether
27845 we're embedding or not.
27846 Clarify error message when image is too big for embedding.
27847 Remove duplicate *install_dos_part stanza.
27848
27849 2008-06-17 Robert Millan <rmh@aybabtu.com>
27850
27851 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
27852 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
27853 variables.
27854 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
27855 values in grub_ofconsole_normal_color and
27856 grub_ofconsole_highlight_color (they're not directly related to
27857 background and foreground).
27858 (grub_ofconsole_setcolorstate): Extract background and foreground
27859 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
27860
27861 2008-06-17 Robert Millan <rmh@aybabtu.com>
27862
27863 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
27864 /boot/grub for the check in last commit, not /boot (they could be
27865 different partitions).
27866
27867 2008-06-16 Robert Millan <rmh@aybabtu.com>
27868
27869 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
27870 asked to setup access for the same partition that provides /boot,
27871 don't bother using UUIDs since our root already has the value we
27872 want.
27873
27874 2008-06-16 Robert Millan <rmh@aybabtu.com>
27875
27876 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
27877 I2O devices.
27878 Patch from Sven Mueller <sven@debian.org>.
27879
27880 2008-06-16 Robert Millan <rmh@aybabtu.com>
27881
27882 * util/update-grub.in: Check for $EUID instead of $UID.
27883 Reported by Vincent Zweije.
27884
27885 2008-06-16 Bean <bean123ch@gmail.com>
27886
27887 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
27888 (grub_ext2_read_block): Likewise.
27889 (grub_ext2_read_inode): Likewise.
27890 (grub_ext2_mount): Likewise.
27891 (grub_ext2_close): Likewise.
27892 (grub_ext3_get_journal): Removed.
27893
27894 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
27895 (grub_reiserfs_read_symlink): Likewise.
27896 (grub_reiserfs_mount): Likewise.
27897 (grub_reiserfs_open): Likewise.
27898 (grub_reiserfs_read): Likewise.
27899 (grub_reiserfs_close): Likewise.
27900 (grub_reiserfs_get_journal): Removed.
27901
27902 * fs/fshelp.c (grub_fshelp_read): Removed.
27903 (grub_fshelp_map_block): Likewise.
27904
27905 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
27906 (grub_fshelp_journal): Likewise.
27907 (grub_fshelp_read): Likewise.
27908 (grub_fshelp_map_block): Likewise.
27909
27910 2008-06-16 Pavel Roskin <proski@gnu.org>
27911
27912 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
27913 floating point anymore.
27914 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
27915
27916 2008-06-15 Pavel Roskin <proski@gnu.org>
27917
27918 * commands/ls.c (grub_ls_list_files): Use integer calculations
27919 for human readable format, avoid floating point use.
27920 * kern/misc.c (grub_ftoa): Remove.
27921 (grub_vsprintf): Remove floating point support.
27922
27923 2008-06-15 Robert Millan <rmh@aybabtu.com>
27924
27925 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
27926 devices.
27927 Reported by Max Vozeler.
27928
27929 2008-06-15 Robert Millan <rmh@aybabtu.com>
27930
27931 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
27932 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
27933 skipped later.
27934 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
27935 the beginning of the prefix.
27936
27937 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
27938 It is assumed that if we have a memdisk, grub-mkimage has set
27939 grub_prefix to include the "(memdisk)" drive in it.
27940
27941 2008-06-15 Robert Millan <rmh@aybabtu.com>
27942
27943 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
27944 Initialize keyboard controller after registering the terminal, so that
27945 grub_printf() can be called from grub_keyboard_controller_init().
27946
27947 2008-06-15 Robert Millan <rmh@aybabtu.com>
27948
27949 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
27950 extent-btree which is written as big endian on disk.
27951 Reported by Alain Greppin <al@chilibi.org>.
27952
27953 2008-06-14 Robert Millan <rmh@aybabtu.com>
27954
27955 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
27956 * util/i386/pc/grub-install.in (modules): Likewise.
27957
27958 2008-06-13 Pavel Roskin <proski@gnu.org>
27959
27960 * commands/ls.c (grub_ls_list_files): Fix format warnings.
27961
27962 2008-06-13 Bean <bean123ch@gmail.com>
27963
27964 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
27965
27966 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
27967
27968 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
27969 to indicate sparse block.
27970
27971 2008-06-12 Pavel Roskin <proski@gnu.org>
27972
27973 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
27974 number, grub_fshelp_read() does it for us.
27975
27976 * fs/fshelp.c (grub_fshelp_read): New function. Implement
27977 linear disk read with journal translation.
27978 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
27979 * include/grub/fshelp.h: Declare grub_fshelp_read().
27980
27981 2008-06-09 Pavel Roskin <proski@gnu.org>
27982
27983 * fs/minix.c (grub_minix_mount): Handle error reading
27984 superblock.
27985
27986 2008-06-08 Robert Millan <rmh@aybabtu.com>
27987
27988 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
27989 don't append the RAID prefix afterwards.
27990 Reported by Clint Adams.
27991
27992 2008-06-08 Robert Millan <rmh@aybabtu.com>
27993
27994 Based on description from Pavel:
27995 * kern/disk.c (grub_disk_check_range): Rename to ...
27996 (grub_disk_adjust_range): ... this. Add a comment explaining the
27997 tasks performed by this function.
27998
27999 2008-06-08 Robert Millan <rmh@aybabtu.com>
28000
28001 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
28002 `num_serial' (for consistency with other variables).
28003 (struct grub_ntfs_data): Add `uuid' member.
28004 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
28005 (grub_ntfs_uuid): New function.
28006 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
28007
28008 2008-06-07 Pavel Roskin <proski@gnu.org>
28009
28010 * util/biosdisk.c (open_device): Revert last change to the
28011 function, it broke installation. The sector needs to be
28012 different dependent on which device is opened.
28013
28014 2008-06-06 Robert Millan <rmh@aybabtu.com>
28015
28016 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
28017 rest of GRUB, and breakage doesn't happen if its value were modified.
28018
28019 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28020 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
28021 a constant (same value).
28022 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
28023 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
28024
28025 2008-06-06 Robert Millan <rmh@aybabtu.com>
28026
28027 * util/biosdisk.c (open_device): Do not modify sector offset when
28028 accessing a partition. kern/disk.c already handles this for us.
28029
28030 2008-06-06 Robert Millan <rmh@aybabtu.com>
28031
28032 * util/grub-emu.c (grub_machine_init): Move code in this function from
28033 here ...
28034 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
28035 segfault in case grub_printf() is called).
28036
28037 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
28038 grub_probe. Update all users not to explicitly add it again.
28039 (grub_device): New variable; contains corresponding device for grubdir.
28040 (fs_module, partmap_module, devabstraction_module): Pass
28041 `--device ${grub_device}' to grub_probe to avoid traversing /dev
28042 every time.
28043
28044 2008-06-05 Robert Millan <rmh@aybabtu.com>
28045
28046 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
28047 is found, print it (same layout as with labels).
28048
28049 2008-06-04 Robert Millan <rmh@aybabtu.com>
28050
28051 * util/biosdisk.c (get_drive): Rename to ...
28052 (find_grub_drive): ... this. Update all users.
28053
28054 (get_os_disk): Rename to ...
28055 (convert_system_partition_to_system_disk): ... this. Update all users.
28056
28057 (find_drive): Rename to ...
28058 (find_system_device): ... this. Update all users.
28059
28060 2008-06-04 Robert Millan <rmh@aybabtu.com>
28061
28062 * util/biosdisk.c (get_os_disk): Handle IDA devices.
28063 * util/grub-mkdevicemap.c (get_mmc_disk_name)
28064 (make_device_map): Likewise.
28065
28066 2008-06-01 Robert Millan <rmh@aybabtu.com>
28067
28068 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
28069 before dereferencing it.
28070
28071 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
28072 union with fat12/fat16-specific ones. Add some new fields, including
28073 `num_serial' for both versions.
28074 (struct grub_fat_data): Add `uuid' member.
28075 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
28076 names. Initialize `data->uuid' using `num_serial'.
28077 (grub_fat_uuid): New function.
28078 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
28079
28080 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
28081 (grub_reiserfs_uuid): New function.
28082 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
28083 member.
28084
28085 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
28086 (grub_xfs_uuid): New function.
28087 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
28088
28089 2008-06-01 Robert Millan <rmh@aybabtu.com>
28090
28091 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
28092 code that is backward compatible with pre-uuid search command.
28093
28094 2008-05-31 Robert Millan <rmh@aybabtu.com>
28095
28096 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
28097 floppies after everything else, to ensure floppy drive isn't accessed
28098 unnecessarily (patch from Bean).
28099
28100 2008-05-31 Robert Millan <rmh@aybabtu.com>
28101
28102 * commands/search.c (search_label, search_fs_uuid, search_file): Do
28103 not print device names when we were asked to set a variable.
28104
28105 2008-05-31 Robert Millan <rmh@aybabtu.com>
28106
28107 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
28108 using "cursor-on" and "cursor-off" commands (understood at least by
28109 the Open Firmware flavour on OLPC).
28110
28111 2008-05-31 Michael Gorven <michael@gorven.za.net>
28112
28113 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
28114 on and off sequences.
28115
28116 2008-05-31 Robert Millan <rmh@aybabtu.com>
28117
28118 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
28119 * util/update-grub.in: Likewise.
28120
28121 2008-05-30 Pavel Roskin <proski@gnu.org>
28122
28123 * util/biosdisk.c (linux_find_partition): Simplify logic and
28124 make the code more universal. Keep special processing for
28125 devfs, but use a simple rule for all other devices. If the
28126 device ends with a number, append 'p' and the partition number.
28127 Otherwise, append only the partition number.
28128
28129 2008-05-30 Robert Millan <rmh@aybabtu.com>
28130
28131 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
28132 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
28133 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
28134 the `root' parameter to Linux.
28135
28136 2008-05-30 Robert Millan <rmh@aybabtu.com>
28137
28138 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
28139 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
28140 --fs_uuid with --fs-uuid.
28141 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
28142 all filesystems support them).
28143
28144 2008-05-30 Robert Millan <rmh@aybabtu.com>
28145
28146 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
28147 grub_printf() flags, since we're printing in units of 2 bytes.
28148
28149 2008-05-30 Robert Millan <rmh@aybabtu.com>
28150
28151 * util/grub.d/00_header.in: Remove obsolete comment referencing
28152 convert_system_path_to_grub_path().
28153 * util/update-grub.in: Likewise.
28154 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
28155 (convert_system_path_to_grub_path): Add a warning message explaining
28156 that this function is deprecated. Rely on is_path_readable_by_grub()
28157 for the readability checks.
28158 (font_path): Use is_path_readable_by_grub() for the readability
28159 check rather than convert_system_path_to_grub_path().
28160
28161 2008-05-30 Robert Millan <rmh@aybabtu.com>
28162
28163 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
28164 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
28165 converting it first.
28166 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
28167 grub.cfg for access to font file, and afterwards call it again to set
28168 the root device.
28169
28170 2008-05-30 Robert Millan <rmh@aybabtu.com>
28171
28172 * commands/search.c (options): Add --fs_uuid option.
28173 (search_fs_uuid): New function.
28174 (grub_cmd_search): Fix --set argument passing.
28175 Use search_fs_uuid() when requested via --fs_uuid.
28176 (grub_search_init): Update help message.
28177 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
28178 and redeclare it as an array of 16-bit words.
28179 (grub_ext2_uuid): New function.
28180 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
28181 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
28182 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
28183 (GRUB_DEVICE_BOOT_UUID): New variables.
28184 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
28185 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
28186 whenever possible.
28187 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
28188 just assume `root' variable has the right value.
28189 * util/grub.d/10_linux.in: Likewise.
28190 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
28191 via PRINT_FS_UUID.
28192 (main): Recognise `-t fs_uuid' argument.
28193
28194 2008-05-30 Robert Millan <rmh@aybabtu.com>
28195
28196 * util/biosdisk.c (map): Redefine structure to hold information
28197 about GRUB drive name.
28198 (get_drive): Reimplement without assuming (and verifying) BIOS-like
28199 drive names.
28200 (call_hook): Remove.
28201 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
28202 member. Assume drive has partitions.
28203 (grub_util_biosdisk_open): Access device names via `.device' struct
28204 member.
28205 (open_device): Likewise.
28206 (find_drive): Likewise.
28207 (read_device_map): Adjust map[] usage to match the new struct
28208 definition. Don't check for duplicates (still possible, but not cheap
28209 anymore).
28210 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
28211 (make_device_name): Remove assumption of BIOS-like drive names.
28212
28213 2008-05-30 Pavel Roskin <proski@gnu.org>
28214
28215 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
28216 compiling execute.c doesn't need grub_script.tab.h anymore.
28217 (normal/command.c_DEPENDENCIES): Likewise.
28218 (normal/function.c_DEPENDENCIES): Likewise.
28219 * conf/i386-ieee1275.rmk: Likewise.
28220 * conf/i386-linuxbios.rmk: Likewise.
28221 * conf/i386-pc.rmk: Likewise.
28222 * conf/powerpc-ieee1275.rmk: Likewise.
28223 * conf/sparc64-ieee1275.rmk: Likewise.
28224
28225 2008-05-29 Pavel Roskin <proski@gnu.org>
28226
28227 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
28228 when scanning metadata for volume group name.
28229
28230 * include/grub/script.h: Don't include grub_script.tab.h. It's
28231 a generated file, which may only be included from the files with
28232 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
28233 use union YYSTYPE, as the later allows forward declaration.
28234 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
28235
28236 2008-05-29 Robert Millan <rmh@aybabtu.com>
28237
28238 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
28239 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
28240 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
28241 (grub_console_checkkey): Add grub_dprintf() call to report unknown
28242 scan codes.
28243
28244 2008-05-29 Robert Millan <rmh@aybabtu.com>
28245
28246 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
28247 control key combinations.
28248
28249 2008-05-29 Robert Millan <rmh@aybabtu.com>
28250
28251 * util/powerpc/ieee1275/grub-install.in: Move from here ...
28252 * util/ieee1275/grub-install.in: ... to here.
28253 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
28254 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
28255 (grub_install_SOURCES): Likewise.
28256
28257 2008-05-29 Robert Millan <rmh@aybabtu.com>
28258
28259 * fs/affs.c: Update copyright year.
28260 * fs/ext2.c: Likewise.
28261 * fs/fshelp.c: Likewise.
28262 * fs/hfsplus.c: Likewise.
28263 * fs/ntfs.c: Likewise.
28264 * fs/xfs.c: Likewise.
28265 * include/grub/fshelp.h: Likewise.
28266 * util/grub-mkdevicemap.c: Likewise.
28267
28268 2008-05-28 Robert Millan <rmh@aybabtu.com>
28269
28270 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
28271 might need to be fatfs to support some firmware implementations
28272 (e.g. OFW or EFI).
28273
28274 2008-05-28 Robert Millan <rmh@aybabtu.com>
28275
28276 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
28277 devices.
28278 * util/grub-mkdevicemap.c (get_mmc_disk_name)
28279 (make_device_map): Likewise.
28280
28281 2008-05-20 Bean <bean123ch@gmail.com>
28282
28283 * fs/fshelp.c (grub_fshelp_map_block): New function.
28284 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
28285 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
28286
28287 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
28288 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
28289 (grub_fshelp_journal): New structure.
28290 (grub_fshelp_map_block): New function prototype.
28291 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
28292 (grub_fshelp_map_block): Likewise.
28293
28294 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
28295 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
28296 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
28297 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
28298 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
28299 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
28300 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
28301 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
28302 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
28303 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
28304 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
28305 (grub_ext2_sblock): New members for journal support.
28306 (grub_ext3_journal_header): New structure.
28307 (grub_ext3_journal_revoke_header): Likewise.
28308 (grub_ext3_journal_block_tag): Likewise.
28309 (grub_ext3_journal_sblock): Likewise.
28310 (grub_fshelp_node): New members logfile and journal.
28311 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
28312 grub_fshelp_map_block to get real block number.
28313 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
28314 number.
28315 (grub_ext2_read_inode): Likewise.
28316 (grub_ext3_get_journal): New function.
28317 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
28318 (grub_ext2_close): Release memory used by journal.
28319
28320 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
28321 (REISERFS_MAGIC_DESC_BLOCK): New macro.
28322 (grub_reiserfs_transaction_header): Renamed to
28323 grub_reiserfs_description_block, replace field data with real_blocks.
28324 (grub_reiserfs_commit_block): New structure.
28325 (grub_reiserfs_data): New member journal.
28326 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
28327 number.
28328 (grub_reiserfs_read_symlink): Likewise.
28329 (grub_reiserfs_iterate_dir): Likewise.
28330 (grub_reiserfs_open): Likewise.
28331 (grub_reiserfs_read): Likewise.
28332 (grub_reiserfs_get_journal): New function.
28333 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
28334 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
28335 using grub_reiserfs_get_journal.
28336 (grub_reiserfs_close): Release memory used by journal.
28337
28338 * fs/affs.c (grub_affs_read_block): Change block type to
28339 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
28340
28341 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
28342
28343 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
28344
28345 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
28346
28347 * fs/udf.c (grub_udf_read_block): Change block type to
28348 grub_disk_addr_t. Use type cast to avoid warning.
28349
28350 * fs/xfs.c (grub_xfs_read_block): Likewise.
28351
28352 2008-05-16 Christian Franke <franke@computer.org>
28353
28354 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
28355 to ensure that break with ESC will always work.
28356 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
28357 Remove ESC from keyboard queue.
28358
28359 2008-05-16 Christian Franke <franke@computer.org>
28360
28361 * util/biosdisk.c: [__CYGWIN__] Add includes.
28362 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
28363 (get_os_disk): Move variable declarations to OS specific
28364 parts to avoid warning.
28365 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
28366 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
28367 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
28368 Cygwin.
28369 * util/getroot.c: [__CYGWIN__] Add includes.
28370 (strip_extra_slashes): Fix "/" case.
28371 [__CYGWIN__] (get_win32_path): New function.
28372 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
28373 [__CYGWIN__] (find_root_device): Disable.
28374 [__CYGWIN__] (get_bootsec_serial): New function.
28375 [__CYGWIN__] (find_cygwin_root_device): Likewise.
28376 [__linux__] (grub_guess_root_device): Add early returns to simplify
28377 structure.
28378 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
28379 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
28380 check for Linux only.
28381
28382 2008-05-15 Bean <bean123ch@gmail.com>
28383
28384 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
28385 keyboard hang problem in apple's intel mac.
28386
28387 2008-05-09 Robert Millan <rmh@aybabtu.com>
28388
28389 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
28390 devices.
28391 * util/grub-mkdevicemap.c (get_virtio_disk_name)
28392 (make_device_map): Likewise.
28393 Reported by Aurelien Jarno <aurel32@debian.org>
28394
28395 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
28396
28397 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
28398 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
28399 (make_device_map): Output entries for xvd type disks.
28400
28401 2008-05-07 Robert Millan <rmh@aybabtu.com>
28402
28403 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
28404 devices.
28405 * util/grub-mkdevicemap.c (get_cciss_disk_name)
28406 (make_device_map): Likewise.
28407 Reported by Roland Dreier <rdreier@cisco.com>
28408
28409 2008-05-07 Robert Millan <rmh@aybabtu.com>
28410
28411 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
28412 grub_strstr() call. Correct a few mistakes in failure path handling.
28413
28414 2008-05-06 Robert Millan <rmh@aybabtu.com>
28415
28416 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28417 Do not print a trailing slash (therefore, the root directory is an
28418 empty string).
28419 (convert_system_path_to_grub_path): Do not remove trailing slash
28420 from make_system_path_relative_to_its_root() output.
28421
28422 * util/i386/pc/grub-install.in: Add trailing slash to output from
28423 make_system_path_relative_to_its_root().
28424
28425 2008-05-06 Robert Millan <rmh@aybabtu.com>
28426
28427 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
28428 ensures that output lines aren't intermangled with those sent to
28429 stderr (via grub_util_info()).
28430 * util/grub-probe.c (grub_refresh): Likewise.
28431 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
28432
28433 2008-05-05 Christian Franke <franke@computer.org>
28434
28435 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
28436 Add Cygwin device names.
28437 (get_ide_disk_name) [__CYGWIN__]: Likewise.
28438 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
28439 (check_device): Return error instead of success on empty name.
28440 (make_device_map): Move label inside linux specific code to
28441 prevent compiler warning.
28442
28443 2008-04-30 Robert Millan <rmh@aybabtu.com>
28444
28445 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
28446 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
28447 first boot option.
28448 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
28449
28450 2008-04-29 Robert Millan <rmh@aybabtu.com>
28451
28452 * docs/grub.cfg: New file (example GRUB configuration).
28453
28454 2008-04-26 Robert Millan <rmh@aybabtu.com>
28455
28456 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
28457 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
28458 and `disk/ieee1275/nand.c'.
28459
28460 2008-04-25 Bean <bean123ch@gmail.com>
28461
28462 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
28463 i386-linuxbios.
28464
28465 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
28466 change the buffer size to 4096 for cdrom device.
28467
28468 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
28469 and nand.mod.
28470 (_linux_mod_SOURCES): New variable.
28471 (_linux_mod_CFLAGS): Likewise.
28472 (_linux_mod_LDFLAGS): Likewise.
28473 (linux_mod_SOURCES): Likewise.
28474 (linux_mod_CFLAGS): Likewise.
28475 (linux_mod_LDFLAGS): Likewise.
28476 (nand_mod_SOURCES): Likewise.
28477 (nand_mod_CFLAGS): Likewise.
28478 (nand_mod_LDFLAGS): Likewise.
28479
28480 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
28481 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
28482 type property. (nand device in olpc don't have this property)
28483
28484 * include/grub/disk.h (grub_disk_dev_id): New macro
28485 GRUB_DISK_DEVICE_NAND_ID.
28486
28487 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
28488 function prototype.
28489 (grub_rescue_cmd_initrd): Likewise.
28490
28491 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
28492 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
28493 ofw_cif_handler and ofw_idt, adjust padding number.
28494
28495 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
28496 GRUB_MACHINE_IEEE1275 is defined.
28497
28498 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
28499 Use NESTED_FUNC_ATTR attribute on the hook parameter.
28500
28501 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
28502 on nested function heap_init.
28503 (grub_upper_mem): New variable for i386-ieee1275.
28504 (grub_get_extended_memory): New function for i386-ieee1275.
28505 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
28506
28507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
28508 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
28509 property.
28510
28511 * loader/i386/ieee1275/linux.c: New file.
28512
28513 * loader/i386/ieee1275/linux_normal.c: New file.
28514
28515 * disk/ieee1275/nand.c: New file.
28516
28517 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
28518
28519 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
28520 value.
28521 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
28522
28523 2008-04-18 Robert Millan <rmh@aybabtu.com>
28524
28525 Restructures early code path on ieee1275 to unify grub_main() as
28526 the first C function that is executed in every platform.
28527
28528 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
28529 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
28530 cmain().
28531 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
28532 * kern/ieee1275/cmain.c (cmain): Rename to ...
28533 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
28534 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
28535 at the beginning.
28536
28537 2008-04-18 Robert Millan <rmh@aybabtu.com>
28538
28539 * util/update-grub.in: Fix syntax error when setting
28540 `GRUB_PRELOAD_MODULES'.
28541 Reported by Stephane Chazelas <stephane@artesyncp.com>
28542
28543 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
28544
28545 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
28546 section into account, newer toolchains generate unique build ids
28547 * configure.ac: remove the test for --build-id=none acceptance,
28548 we want build ids to be preserved
28549 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
28550 far from other sections don't cause the raw binary images grow
28551 size
28552
28553 2008-04-15 Robert Millan <rmh@aybabtu.com>
28554
28555 * disk/lvm.c: Update copyright year.
28556 * kern/misc.c: Likewise.
28557
28558 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28559
28560 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
28561 there is no memory left for physical volume name.
28562
28563 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28564
28565 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
28566 volume name mapping to support bigger than 9 character names properly.
28567
28568 2008-04-13 Robert Millan <rmh@aybabtu.com>
28569
28570 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
28571 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
28572
28573 2008-04-13 Christian Franke <franke@computer.org>
28574
28575 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
28576 to create a floppy emulation boot CD when non emulation mode
28577 does not work.
28578 Enable Joliet CD filesystem extension.
28579
28580 2008-04-13 Robert Millan <rmh@aybabtu.com>
28581
28582 * kern/misc.c (grub_strncat): Fix off-by-one error.
28583 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
28584
28585 * kern/env.c (grub_env_context_close): Clear current context, not
28586 previous one.
28587 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
28588
28589 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
28590
28591 2008-04-13 Robert Millan <rmh@aybabtu.com>
28592
28593 Improve robustness when handling LVM.
28594
28595 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
28596 (and leave `*p' unmodified).
28597 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
28598 through it.
28599 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
28600 iterating through it.
28601 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
28602 through it.
28603 (grub_lvm_scan_device): Check the return value (and fail gracefully
28604 when due) on each grub_lvm_getvalue() or grub_strstr() call.
28605 Don't assume `vg->pvs != NULL' when iterating through it.
28606
28607 2008-04-13 Robert Millan <rmh@aybabtu.com>
28608
28609 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
28610 * genmk.rb (partmap): New variable.
28611 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
28612 (#{partmap}): New target rule.
28613 * genpartmaplist.sh: New file.
28614 * Makefile.in (pkglib_DATA): Add partmap.lst.
28615 (partmap.lst): New target rule.
28616 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
28617 modules (including all partition maps), instead of preloading them.
28618
28619 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
28620
28621 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
28622 `linux-boot-prober' (if installed) to detect other operating
28623 systems which are installed on the computer and add them to
28624 the boot menu.
28625 * conf/common.rmk: Build and install 30_os-prober.
28626
28627 2008-04-12 Robert Millan <rmh@aybabtu.com>
28628
28629 * kern/powerpc/ieee1275/init.c: Move from here ...
28630 * kern/ieee1275/init.c: ... to here. Update all users.
28631
28632 * kern/powerpc/ieee1275/cmain.c: Move from here ...
28633 * kern/ieee1275/cmain.c: ... to here. Update all users.
28634
28635 * kern/powerpc/ieee1275/openfw.c: Move from here ...
28636 * kern/ieee1275/openfw.c: ... to here. Update all users.
28637
28638 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
28639 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
28640
28641 2008-04-10 Pavel Roskin <proski@gnu.org>
28642
28643 * configure.ac: Always use "_cv_" in cache variables for
28644 compatibility with Autoconf 2.62.
28645
28646 2008-04-07 Robert Millan <rmh@aybabtu.com>
28647
28648 Revert grub/machine/init.h addition by Pavel (since it breaks on
28649 i386-ieee1275 and others):
28650 * util/i386/pc/misc.c: Remove grub/machine/init.h.
28651 * util/powerpc/ieee1275/misc.c: Likewise.
28652
28653 2008-04-07 Robert Millan <rmh@aybabtu.com>
28654
28655 * util/grub-probe.c (probe): Improve error message.
28656
28657 2008-04-07 Robert Millan <rmh@aybabtu.com>
28658
28659 * util/biosdisk.c (read_device_map): Skip devices that don't exist
28660 (this prevents the presence of a bogus entry from ruining the whole
28661 thing).
28662
28663 2008-04-06 Pavel Roskin <proski@gnu.org>
28664
28665 * util/biosdisk.c: Include grub/util/biosdisk.h.
28666 * util/grub-fstest.c (execute_command): Make static.
28667 * util/grub-mkdevicemap.c (check_device): Likewise.
28668 * util/i386/pc/misc.c: Include grub/machine/init.h.
28669 * util/powerpc/ieee1275/misc.c: Likewise.
28670 * util/lvm.c: Include grub/util/lvm.h.
28671 * util/misc.c: Include grub/kernel.h, grub/misc.h and
28672 grub/cache.h.
28673 * util/raid.c: Include grub/util/raid.h.
28674 (grub_util_getdiskname): Make static.
28675
28676 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
28677 grub_hostfs_fini(), as they are called from grub_init_all() and
28678 grub_fini_all() respectively. This fixes an infinite loop in
28679 grub-fstest due to double registration of hostfs.
28680 Reported by Christian Franke <Christian.Franke@t-online.de>
28681
28682 2008-04-05 Pavel Roskin <proski@gnu.org>
28683
28684 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
28685 all 8 functions. Otherwise, probe function 0 only.
28686
28687 2008-04-04 Pavel Roskin <proski@gnu.org>
28688
28689 * commands/lspci.c (grub_lspci_iter): Print the bus number
28690 correctly.
28691
28692 * commands/lspci.c (grub_pci_classes): Fix typos.
28693 (grub_lspci_iter): Don't print func twice. Print vendor ID
28694 before device ID, as it's normally done.
28695
28696 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28697 Fix signedness warnings.
28698 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
28699 Likewise.
28700 * util/ieee1275/get_disk_name.c: Include config.h so that
28701 _GNU_SOURCE is defined and getline() is declared. Mark an
28702 unused argument as such. Fix a signedness warning.
28703
28704 2008-04-02 Pavel Roskin <proski@gnu.org>
28705
28706 * genkernsyms.sh.in: Use more robust assignments for CC and
28707 srcdir. Quote srcdir.
28708 * gensymlist.sh.in: Likewise. Assert at the compile time that
28709 the symbol table is not empty.
28710
28711 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
28712 * fs/cpio.c (grub_cpio_read): Likewise.
28713
28714 2008-04-01 Pavel Roskin <proski@gnu.org>
28715
28716 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
28717 * disk/host.c (grub_host_open): Likewise.
28718 * disk/loopback.c (grub_loopback_open): Likewise.
28719 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
28720 disk->id as in disk/host.c, not a multi-character constant.
28721
28722 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
28723 later is obsolete, potentially dangerous and sets a bad example.
28724 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
28725 * util/misc.c (grub_util_get_image_size): Likewise.
28726
28727 * disk/loopback.c (options): Improve help for "--partitions".
28728
28729 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
28730 options to align them with the short options, e.g. "echo -e".
28731
28732 2008-03-31 Bean <bean123ch@gmail.com>
28733
28734 * video/reader/png.c (grub_png_data): New member is_16bit and
28735 image_data.
28736 (grub_png_decode_image_header): Detect 16 bit png image.
28737 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
28738 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
28739 (grub_video_reader_png): Release memory occupied by image_data.
28740
28741 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
28742 4096 bytes.
28743 (grub_nfs_mount): Skip the test for sector per cluster.
28744
28745 * include/grub/ntfs.h (MAX_SPC): Removed.
28746
28747 2008-03-31 Bean <bean123ch@gmail.com>
28748
28749 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
28750 (grub_probe_SOURCES): Add fs/afs.c.
28751 (grub_fstest_SOURCES): Likewise.
28752 (afs_mod_SOURCES): New variable.
28753 (afs_mod_CFLAGS): Likewise.
28754 (afs_mod_LDFLAGS): Likewise.
28755
28756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
28757 (grub_emu_SOURCES): Likewise.
28758
28759 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28760
28761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762
28763 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28764
28765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28766
28767 * fs/afs.c: New file.
28768
28769 2008-03-30 Pavel Roskin <proski@gnu.org>
28770
28771 * disk/host.c: Include grub/misc.h to fix a warning.
28772 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
28773 warnings about implicit declarations.
28774
28775 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
28776 variable.
28777 * include/grub/i386/loader.h: Change declaration of
28778 grub_linux_boot() to match what grub_loader_set() expects.
28779 * util/getroot.c (grub_guess_root_device): Return const char* to
28780 fix a warning.
28781 * util/grub-probe.c (probe): Fix a warning about uninitialized
28782 abstraction_name variable.
28783 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
28784 second argument as unused to fix a warning.
28785
28786 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
28787 missing grub_error() call.
28788
28789 * util/update-grub_lib.in: Define datarootdir, since Autoconf
28790 2.60 and newer uses it to define datadir.
28791
28792 * commands/sleep.c: Fix warning about implicit declaration.
28793 * disk/memdisk.c: Likewise.
28794 * loader/aout.c: Likewise.
28795 * loader/i386/bsd_normal.c: Likewise.
28796 * util/grub-probe.c: Likewise.
28797
28798 * commands/i386/cpuid.c (has_longmode): Make static.
28799 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
28800 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
28801
28802 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
28803 GDT. This is more robust, as %ds can change.
28804 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
28805 calling real_to_prot().
28806 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
28807
28808 2008-03-28 Pavel Roskin <proski@gnu.org>
28809
28810 * kern/i386/pc/startup.S: Assert that uncompressed functions
28811 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
28812 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
28813 code, as they push parts of the code (error handlers) beyond
28814 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
28815 code as correctness and size.
28816
28817 2008-03-28 Pavel Roskin <proski@gnu.org>
28818
28819 * kern/i386/pc/startup.S
28820 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
28821 data block address to the real mode, keep offset minimal. This
28822 works around a bug in AWARD BIOS on old Athlon systems, which
28823 makes CD detection hang.
28824
28825 2008-03-26 Pavel Roskin <proski@gnu.org>
28826
28827 * normal/color.c (grub_parse_color_name_pair): Make `name' a
28828 const.
28829 * include/grub/normal.h: Add grub_parse_color_name_pair()
28830 declaration.
28831
28832 2008-03-24 Bean <bean123ch@gmail.com>
28833
28834 * disk/i386/pc/biosdisk.c (cd_start): Removed.
28835 (cd_count): Removed.
28836 (cd_drive): New variable.
28837 (grub_biosdisk_get_drive): Don't check for (cdN) device.
28838 (grub_biosdisk_call_hook): Likewise.
28839 (grub_biosdisk_iterate): Change cdrom detection method.
28840 (grub_biosdisk_open): Replace cd_start with cd_drive.
28841 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
28842 detect cdrom device.
28843
28844 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
28845 Removed.
28846 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
28847 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
28848 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
28849 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
28850 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
28851 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
28852 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
28853 (grub_biosdisk_cdrp): New structure.
28854 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
28855
28856 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
28857
28858 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
28859 device.
28860
28861 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
28862 New function.
28863
28864 2008-03-20 Robert Millan <rmh@aybabtu.com>
28865
28866 Remove 2 TiB limit in ata.mod.
28867 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
28868 (grub_ata_dumpinfo): Print sector count with 0x%llx.
28869 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
28870 grub_uint64_t instead of grub_uint32_t.
28871
28872 2008-03-05 Bean <bean123ch@gmail.com>
28873
28874 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
28875 (grub_multiboot): Set boot device.
28876
28877 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
28878
28879 2008-03-02 Bean <bean123ch@gmail.com>
28880
28881 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
28882 symlink_buffer.
28883
28884 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
28885
28886 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
28887 texinfo.tex.
28888
28889 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
28890 modified.
28891
28892 * docs/fdl.texi: New file.
28893
28894 * docs/mdate-sh: New file. Copied from gnulib.
28895 * docs/texinfo.tex: Likewise.
28896
28897 * config.guess: Updated from gnulib.
28898 * install-sh: Likewise.
28899
28900 2008-02-28 Robert Millan <rmh@aybabtu.com>
28901
28902 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
28903 (aout_mod_SOURCES): New variable.
28904 (aout_mod_CFLAGS): Likewise.
28905 (aout_mod_LDFLAGS): Likewise.
28906
28907 * conf/i386-ieee1275.rmk: Likewise.
28908
28909 2008-02-28 Robert Millan <rmh@aybabtu.com>
28910
28911 * util/update-grub.in: Reorganise terminal validity check. Accept
28912 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
28913 Based on suggestion by Franklin PIAT.
28914
28915 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
28916
28917 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
28918 function.
28919 * util/getroot.c (grub_util_check_block_device): New function that
28920 returns the given argument if it is a block device and returns NULL else.
28921 * util/grub-probe.c (argument_is_device): New variable.
28922 (probe): Promote device_name from a variable to an argument. Receive
28923 device_name from grub_util_check_block_device() if path is NULL and from
28924 grub_guess_root_device() else. Do not free() device_name anymore.
28925 (options): Introduce new parameter '-d, --device'.
28926 (main): Add description of the new parameter to the help screen.
28927 Rename path variable to argument. Set argument_is_device if the '-d'
28928 option is given. Pass argument to probe() depending on
28929 argument_is_device.
28930
28931 2008-02-24 Bean <bean123ch@gmail.com>
28932
28933 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
28934 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
28935 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
28936 (GRUB_ISO9660_VOLDESC_PART): Likewise.
28937 (GRUB_ISO9660_VOLDESC_END): Likewise.
28938 (grub_iso9660_primary_voldesc): New member escape.
28939 (grub_iso9660_data): New member joliet.
28940 (grub_iso9660_convert_string): New function.
28941 (grub_iso9660_mount): Detect joliet extension.
28942 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
28943 (grub_iso9660_iso9660_label): Likewise.
28944
28945 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
28946 (grub_setup_SOURCES): Add fs/udf.c.
28947 (grub_fstest_SOURCES): Likewise.
28948 (udf_mod_SOURCES): New variable.
28949 (udf_mod_CFLAGS): Likewise.
28950 (udf_mod_LDFLAGS): Likewise.
28951
28952 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
28953 (grub_emu_SOURCES): Likewise.
28954
28955 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28956
28957 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28958
28959 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28960
28961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28962
28963 * fs/udf.c: New file.
28964
28965 2008-02-24 Robert Millan <rmh@aybabtu.com>
28966
28967 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
28968 (normal/lexer.c_DEPENDENCIES): New variables.
28969 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28970 (normal/lexer.c_DEPENDENCIES): Likewise.
28971 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
28972 (normal/lexer.c_DEPENDENCIES): Likewise.
28973 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
28974 (normal/lexer.c_DEPENDENCIES): Likewise.
28975 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28976 (normal/lexer.c_DEPENDENCIES): Likewise.
28977 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28978 (normal/lexer.c_DEPENDENCIES): Likewise.
28979
28980 2008-02-23 Robert Millan <rmh@aybabtu.com>
28981
28982 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
28983 since they were intended to be in hex. This didn't break previously
28984 because of a bug in gpt_partition_map_iterate() (see below).
28985
28986 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
28987 when checking the validity of GPT header.
28988 Remove `partno', since it always provides the same information as `i'.
28989
28990 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
28991
28992 * include/grub/efi/time.h: Fix a wrong comment.
28993
28994 2008-02-19 Pavel Roskin <proski@gnu.org>
28995
28996 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
28997 message.
28998
28999 2008-02-19 Bean <bean123ch@gmail.com>
29000
29001 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
29002 (aout_mod_SOURCES): New variable.
29003 (aout_mod_CFLAGS): Likewise.
29004 (aout_mod_LDFLAGS): Likewise.
29005 (_bsd_mod_SOURCES): New variable.
29006 (_bsd_mod_CFLAGS): Likewise.
29007 (_bsd_mod_LDFLAGS): Likewise.
29008 (bsd_mod_SOURCES): New variable.
29009 (bsd_mod_CFLAGS): Likewise.
29010 (bsd_mod_LDFLAGS): Likewise.
29011
29012 * include/grub/aout.h: New file.
29013
29014 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
29015
29016 * include/grub/i386/bsd.h: New file.
29017
29018 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
29019 to make it public.
29020
29021 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
29022 function is called, so that it's possible to change it inside the hook.
29023 (grub_elf64_load): Likewise.
29024 (grub_elf_file): Don't close the file if elf header is not found.
29025 (grub_elf_close): Close the file if grub_elf_file fails (The new
29026 grub_elf_file won't close it).
29027 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
29028 (grub_elf64_size): Likewise.
29029
29030 * kern/i386/loader.S (grub_unix_real_boot): New function.
29031
29032 * loader/aout.c: New file.
29033
29034 * loader/i386/bsd.c: New file.
29035
29036 * loader/i386/bsd_normal.c: New file.
29037
29038 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
29039
29040 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
29041 can test other formats.
29042
29043 2008-02-19 Robert Millan <rmh@aybabtu.com>
29044
29045 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
29046 (grub_gpt_partition_type_empty): Redefine with macro from
29047 `<grub/gpt_partition.h>'.
29048 (gpt_partition_map_iterate): Adjust partition type comparison.
29049
29050 Export `entry' as partmap-specific `part.data' struct.
29051 (grub_gpt_header, grub_gpt_partentry): Move from here ...
29052
29053 * include/grub/gpt_partition.h (grub_gpt_header)
29054 (grub_gpt_partentry): ... to here (new file).
29055
29056 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
29057
29058 (grub_gpt_partition_type_bios_boot): New const variable, defined
29059 with macro from `<grub/gpt_partition.h>'.
29060
29061 (setup): Replace `first_start' with `embed_region', which keeps
29062 track of the embed region (and is partmap-agnostic).
29063
29064 Replace find_first_partition_start() with find_usable_region(),
29065 which finds a usable region for embedding using partmap-specific
29066 knowledge (supports PC/MSDOS and GPT).
29067
29068 Fix all assumptions that the embed region start at sector 1, using
29069 `embed_region.start' from now on. Similarly, use `embed_region.end'
29070 rather than `first_start' to calculate available size.
29071
29072 In grub_util_info() message, replace "into after the MBR" with an
29073 indication of the specific sector our embed region starts at.
29074
29075 2008-02-19 Robert Millan <rmh@aybabtu.com>
29076
29077 * DISTLIST: Replace `commands/ieee1275/halt.c' and
29078 `commands/ieee1275/reboot.c' with `commands/halt.c' and
29079 `commands/reboot.c'.
29080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
29081 (halt_mod_SOURCES): Likewise.
29082 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
29083 (halt_mod_SOURCES): Likewise.
29084
29085 2008-02-17 Christian Franke <franke@computer.org>
29086
29087 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
29088
29089 2008-02-17 Robert Millan <rmh@aybabtu.com>
29090
29091 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
29092 set `first_start' to 0 for non-PC/MSDOS partition maps.
29093
29094 2008-02-16 Robert Millan <rmh@aybabtu.com>
29095
29096 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
29097 do not assume partition map is PC/MSDOS before performing checks that
29098 are specific to that layout.
29099
29100 2008-02-13 Robert Millan <rmh@aybabtu.com>
29101
29102 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
29103 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
29104 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
29105
29106 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
29107
29108 * configure.ac: Only a cosmetic change on the handling of
29109 -fno-stack-protector.
29110
29111 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
29112
29113 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
29114 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
29115 reboot.c.
29116 (grub_install_SOURCES): Add halt.mod and reboot.mod.
29117 (halt_mod_SOURCES): New variable.
29118 (halt_mod_CFLAGS): Likewise.
29119 (halt_mod_LDFLAGS): Likewise.
29120 (reboot_mod_SOURCES): Likewise.
29121 (reboot_mod_CFLAGS): Likewise.
29122 (reboot_mod_LDFLAGS): Likewise.
29123
29124 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
29125 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
29126 reboot.c.
29127 (halt_mod_SOURCES): Likewise.
29128 (reboot_mod_SOURCES): Likewise.
29129
29130 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
29131 commands/i386/pc/reboot.c by commands/reboot.c.
29132 (reboot_mod_SOURCES): Likewise.
29133
29134 * commands/i386/pc/reboot.c: merge this file ...
29135
29136 * commands/ieee1275/reboot.c: ... and this file ...
29137
29138 * commands/reboot.c: ... to this file.
29139 Add some precompiler directive to include the correct header for
29140 each machine.
29141
29142 * commands/ieee1275/halt.c: move this file ...
29143
29144 * commands/halt.c: ... to here.
29145 Add some precompiler directive to include the correct header for
29146 each machine.
29147
29148 * include/grub/efi/efi.h (grub_reboot): New function declaration.
29149 (grub_halt): Likewise.
29150
29151 * kern/efi/efi.c (grub_reboot): New function.
29152 (grub_halt): Likewise.
29153
29154 2008-02-12 Robert Millan <rmh@aybabtu.com>
29155
29156 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
29157 /dev (like it is done for /dev/mapper). This doesn't provide support
29158 for EVMS, but at least it is now easy to identify the problem when it
29159 arises.
29160
29161 2008-02-11 Robert Millan <rmh@aybabtu.com>
29162
29163 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
29164 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
29165 comparing it with -1, not 0.
29166
29167 2008-02-10 Robert Millan <rmh@aybabtu.com>
29168
29169 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
29170 `disk/lvm.c'.
29171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29172 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29173
29174 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
29175 `disk/lvm.c' to the end of the list.
29176 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29177 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29178
29179 2008-02-10 Robert Millan <rmh@aybabtu.com>
29180
29181 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
29182 grub_print_error() instead. This will let user know why we're entering
29183 rescue mode.
29184 Based on suggestions from Sam Morris.
29185
29186 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
29187
29188 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
29189 on remaining N args, instead of "--" arg N times.
29190
29191 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
29192
29193 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
29194 (fill_with_default_glyph): Changed to use unknown_glyph for fill
29195 pattern for unknown glyphs.
29196
29197 2008-02-09 Robert Millan <rmh@aybabtu.com>
29198
29199 * configure.ac: Probe for `help2man'.
29200 * Makefile.in (builddir): New variable.
29201 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
29202 or otherwise add a few flags/options to it.
29203 (install-local): For every executable utility or script that is
29204 installed, invoke $(HELP2MAN) to install a manpage based on --help
29205 output.
29206
29207 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
29208 that it doesn't prevent --help from working in build tree.
29209
29210 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
29211 with `bug-grub@gnu.org'.
29212 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
29213 * util/update-grub.in (usage): New function.
29214 Implement proper argument check, with support for --help and --version
29215 (as well as existing -y).
29216
29217 2008-02-09 Christian Franke <franke@computer.org>
29218
29219 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
29220 avoid overwriting previous output.
29221 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
29222
29223 2008-02-09 Robert Millan <rmh@aybabtu.com>
29224
29225 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
29226 drawing the menu.
29227
29228 2008-02-09 Robert Millan <rmh@aybabtu.com>
29229
29230 * commands/sleep.c: New file.
29231 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
29232 (sleep_mod_SOURCES): New variable.
29233 (sleep_mod_CFLAGS): Likewise.
29234 (sleep_mod_LDFLAGS): Likewise.
29235
29236 2008-02-09 Robert Millan <rmh@aybabtu.com>
29237
29238 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
29239 situations in which we can deduce the RAID size and the superblock
29240 doesn't match it.
29241
29242 2008-02-09 Robert Millan <rmh@aybabtu.com>
29243
29244 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
29245 and return a grub_diskmemberlist_t composed of LVM physical volumes.
29246 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
29247
29248 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
29249 and return a grub_diskmemberlist_t composed of physical array members.
29250 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
29251
29252 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
29253 prototype.
29254 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
29255 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
29256 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
29257
29258 * util/grub-probe.c (probe): Move partmap probing code from here ...
29259 (probe_partmap): ... to here.
29260 (probe): Use probe_partmap() once for the disk we're probing, and
29261 additionally, when such disk contains a memberlist() struct member,
29262 once for each disk that is contained in the structure returned by
29263 memberlist().
29264
29265 2008-02-09 Robert Millan <rmh@aybabtu.com>
29266
29267 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
29268 environment variable to 'all' in order to obtain debug output from
29269 non-util/ code.
29270 * util/i386/pc/grub-setup.c (main): Likewise.
29271
29272 2008-02-08 Robert Millan <rmh@aybabtu.com>
29273
29274 * disk/raid.c (grub_raid_scan_device): Check for
29275 `array->device[sb.this_disk.number]' rather than for
29276 `array->device[sb.this_disk.number]->name', since the latter is not
29277 guaranteed to be accessible.
29278
29279 2008-02-08 Robert Millan <rmh@aybabtu.com>
29280
29281 * disk/raid.c: Update copyright.
29282 * fs/cpio.c: Likewise.
29283 * include/grub/raid.h: Likewise.
29284 * loader/i386/pc/multiboot.c: Likewise.
29285 * util/hostfs.c: Likewise.
29286
29287 2008-02-08 Robert Millan <rmh@aybabtu.com>
29288
29289 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
29290 to a grub_disk_t array.
29291 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
29292 `device[x]'.
29293 (grub_raid_scan_device): Replace `device[x].name' accesses with
29294 `device[x]->name'. Simplify initialization of `array->device[x]'.
29295
29296 2008-02-08 Robert Millan <rmh@aybabtu.com>
29297
29298 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
29299 grub_dprintf() calls.
29300 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
29301 error message.
29302
29303 2008-02-07 Christian Franke <franke@computer.org>
29304
29305 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
29306 instead of fseek and ftell to support large files.
29307 (grub_hostfs_read): Likewise.
29308
29309 2008-02-07 Robert Millan <rmh@aybabtu.com>
29310
29311 Patch from Jeroen Dekkers.
29312 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
29313 failure, since successfully reading all array members might not be
29314 required.
29315
29316 2008-02-06 Robert Millan <rmh@aybabtu.com>
29317
29318 * util/grub-probe.c (probe): Simplify partmap probing (with the
29319 assumption that the first word up to the underscore equals to
29320 the module name).
29321
29322 2008-02-06 Christian Franke <franke@computer.org>
29323
29324 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
29325 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
29326 last block of a cpio or tar stream.
29327 Check for "TRAILER!!!" instead of any empty data
29328 block to detect last block of a cpio stream.
29329 (grub_cpio_dir): Fix constness of variable np.
29330 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
29331 cpio or tar trailer is detected. This fixes a crash
29332 on open of a non existing file.
29333
29334 2008-02-05 Bean <bean123ch@gmail.com>
29335
29336 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
29337 address of entry.
29338 (grub_multiboot_load_elf64): Likewise.
29339 (grub_multiboot): Initialize mbi structure.
29340
29341 * util/grub-fstest.c: Don't include unused header file script.h.
29342
29343 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
29344 of file.
29345 (grub_fstest_SOURCES): Likewise.
29346
29347 2008-02-05 Robert Millan <rmh@aybabtu.com>
29348
29349 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
29350 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
29351 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
29352 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
29353
29354 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
29355 (translation_table): Replace hardcoded values with macros
29356 provided by `<grub/term.h>'.
29357
29358 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
29359 (keyboard_map): Correct/add a few values, with macros provided
29360 by `<grub/term.h>'.
29361 (keyboard_map_shift): Zero values that don't differ from their
29362 `keyboard_map' equivalents.
29363 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
29364 Discard the second scan code that is always sent by Caps lock.
29365 Only use `keyboard_map_shift' when it provides a non-zero value,
29366 otherwise fallback to `keyboard_map'.
29367
29368 2008-02-04 Bean <bean123ch@gmail.com>
29369
29370 * Makefile.in (enable_grub_fstest): New variable.
29371
29372 * conf/common.rmk (grub_fstest_init.lst): New rule.
29373 (grub_fstest_init.h): Likewise.
29374 (grub_fstest_init.c): Likewise.
29375 (util/grub-fstest.c_DEPENDENCIES): New variable.
29376 (grub_fstest_SOURCES): Likewise.
29377
29378 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
29379
29380 * util/grub-fstest.c: New file.
29381
29382 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29383
29384 Make grub-setup handle a separate root device.
29385
29386 * util/i386/pc/grub-setup.c (setup): Always open the root device,
29387 so that the root device can be compared with the destination
29388 device.
29389 When embedding the core image, if the root and destination devices
29390 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
29391 0xFF.
29392 When not embedding, set ROOT_DRIVE to 0xFF.
29393
29394 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29395
29396 Add support for having a grub directory in a different drive. This
29397 is still only the data handling part.
29398
29399 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
29400 (codestart): Save %dh in GRUB_ROOT_DRIVE.
29401 (grub_root_drive): New variable.
29402
29403 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
29404 instead of GRUB_BOOT_DRIVE to construct a device name. Set
29405 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
29406 as it was.
29407
29408 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
29409
29410 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
29411 macro.
29412 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
29413
29414 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
29415 is bogus, because PXE booting does not specify any drive
29416 correctly.
29417
29418 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
29419 am not sure if this is really correct.
29420
29421 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
29422 is always identical to the boot drive when booting from a CD.
29423
29424 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
29425 longer.
29426 (root_drive): New variable.
29427 (real_start): Unconditionally set %dh to ROOT_DRIVE.
29428 (setup_sectors): Push %dx right after popping it, because %dh will
29429 be modified later.
29430 (copy_buffer): Restore %dx.
29431
29432 2008-02-03 Robert Millan <rmh@aybabtu.com>
29433
29434 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
29435 use `cdboot.img' for cdrom images.
29436
29437 2008-02-03 Robert Millan <rmh@aybabtu.com>
29438
29439 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
29440 only setup gfxterm when `font' command has succeeded.
29441
29442 2008-02-03 Robert Millan <rmh@aybabtu.com>
29443
29444 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
29445 (grub_rescue_cmd_multiboot_loader)
29446 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
29447
29448 2008-02-03 Pavel Roskin <proski@gnu.org>
29449
29450 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
29451 %edx and %esi from stack only after grub_gate_a20() is called.
29452 grub_gate_a20() clobbers %edx.
29453
29454 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29455
29456 * configure.ac (AC_INIT): Bumped to 1.96.
29457
29458 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
29459 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
29460 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
29461 video/readers/png.c.
29462
29463 2008-02-03 Bean <bean123ch@gmail.com>
29464
29465 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
29466 (cdboot_img_SOURCES): New variable.
29467 (cdboot_img_ASFLAGS): New variable.
29468 (cdboot_img_LDFLAGS): New variable.
29469
29470 * boot/i386/pc/cdboot.S: New file.
29471
29472 * disk/i386/pc/biosdisk.c (cd_start): New variable.
29473 (cd_count): Likewise.
29474 (grub_biosdisk_get_drive): Add support for cd device.
29475 (grub_biosdisk_call_hook): Likewise.
29476 (grub_biosdisk_iterate): Likewise.
29477 (grub_biosdisk_open): Likewise.
29478 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
29479 (grub_biosdisk_rw): Support reading from cd device.
29480 (GRUB_MOD_INIT): Iterate cd devices.
29481
29482 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
29483 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
29484 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
29485
29486 * kern/i386/pc/init.c (make_install_device): Check for cd device.
29487
29488 2008-02-02 Robert Millan <rmh@aybabtu.com>
29489
29490 * commands/read.c: New file.
29491 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
29492 (read_mod_SOURCES): New variable.
29493 (read_mod_CFLAGS): Likewise.
29494 (read_mod_LDFLAGS): Likewise.
29495
29496 2008-02-02 Robert Millan <rmh@aybabtu.com>
29497
29498 * normal/main.c (grub_normal_execute): Check for `menu->size' when
29499 determining whether menu has to be displayed.
29500
29501 2008-02-02 Marco Gerards <marco@gnu.org>
29502
29503 * bus/pci.c: New file.
29504
29505 * include/grub/pci.h: Likewise.
29506
29507 * include/grub/i386/pc/pci.h: Likewise.
29508
29509 * commands/lspci.c: Likewise.
29510
29511 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
29512 `lspci.mod'.
29513 (pci_mod_SOURCES): New variable.
29514 (pci_mod_CFLAGS): Likewise.
29515 (pci_mod_LDFLAGS): Likewise.
29516 (lspci_mod_SOURCES): Likewise.
29517 (lspci_mod_CFLAGS): Likewise.
29518 (lspci_mod_LDFLAGS): Likewise.
29519
29520 2008-02-02 Bean <bean123ch@gmail.com>
29521
29522 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
29523 (grub_ufs_get_file_block): Fix indirect block calculation problem.
29524
29525 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
29526 (grub_xfs_btree_node): New structure.
29527 (grub_xfs_btree_root): New structure.
29528 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
29529 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
29530 (GRUB_XFS_EXTENT_BLOCK): Likewise.
29531 (GRUB_XFS_EXTENT_SIZE): Likewise.
29532 (grub_xfs_read_block): Support btree format type.
29533 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
29534 Use directory block as basic unit.
29535
29536 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
29537
29538 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
29539 __attribute__ ((__regparm__ (1))).
29540
29541 2008-02-01 Robert Millan <rmh@aybabtu.com>
29542
29543 Correct a mistake in previous commit.
29544
29545 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
29546 top.
29547 (normal/command.c_DEPENDENCIES): New variable.
29548
29549 2008-02-01 Robert Millan <rmh@aybabtu.com>
29550
29551 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
29552 top.
29553 (normal/command.c_DEPENDENCIES): New variable.
29554 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
29555 * conf/i386-ieee1275.rmk: Likewise.
29556 * conf/i386-linuxbios.rmk: Likewise.
29557 * conf/i386-pc.rmk: Likewise.
29558 * conf/sparc64-ieee1275.rmk: Likewise.
29559 * conf/powerpc-ieee1275.rmk: Likewise.
29560 (grub_emu_SOURCES): Add `fs/fshelp.c'.
29561
29562 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
29563
29564 2008-02-01 Robert Millan <rmh@aybabtu.com>
29565
29566 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
29567 call at beginning of function.
29568
29569 2008-01-31 Pavel Roskin <proski@gnu.org>
29570
29571 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
29572 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
29573 (grub_mkrescue_SOURCES): Likewise.
29574 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
29575
29576 2008-01-30 Robert Millan <rmh@aybabtu.com>
29577
29578 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
29579 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
29580 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
29581 (grub_probe_SOURCES): ... to here.
29582
29583 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
29584 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
29585 * conf/i386-ieee1275.rmk: Likewise.
29586 * conf/i386-linuxbios.rmk: Likewise.
29587 * conf/powerpc-ieee1275.rmk: Likewise.
29588
29589 2008-01-30 Tristan Gingold <gingold@free.fr>
29590
29591 * kern/rescue.c: Silently accept empty lines.
29592
29593 2008-01-29 Bean <bean123ch@gmail.com>
29594
29595 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
29596 (real_code_2): Code cleanup and change comment style.
29597 (move_memory): Avoid using 32-bit address mode.
29598
29599 2008-01-29 Bean <bean123ch@gmail.com>
29600
29601 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
29602 (png_mod_SOURCES): New variable.
29603 (png_mod_CFLAGS): Likewise.
29604 (png_mod_LDFLAGS): Likewise.
29605
29606 * video/readers/png.c: New file.
29607
29608 2008-01-28 Robert Millan <rmh@aybabtu.com>
29609
29610 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
29611 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
29612 `ifndef GRUB_MOD_GAP' hack.
29613 * util/elf/grub-mkimage.c (add_segments): Likewise.
29614
29615 2008-01-27 Robert Millan <rmh@aybabtu.com>
29616
29617 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
29618 `GRUB_MOD_GAP' for platforms in which it's not defined.
29619 * util/elf/grub-mkimage.c (add_segments): Likewise.
29620
29621 2008-01-27 Robert Millan <rmh@aybabtu.com>
29622
29623 Get grub-emu to build again (including parallel builds).
29624
29625 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
29626 Split into ...
29627 (util/grub-emu.c_DEPENDENCIES): ... this, ...
29628 (normal/execute.c_DEPENDENCIES): ... this, ...
29629 (grub-emu_DEPENDENCIES): ... and this.
29630
29631 * conf/i386-efi.rmk: Likewise.
29632 * conf/i386-linuxbios.rmk: Likewise.
29633 * conf/i386-ieee1275.rmk: Likewise.
29634 * conf/powerpc-ieee1275.rmk: Likewise.
29635 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
29636
29637 2008-01-27 Robert Millan <rmh@aybabtu.com>
29638
29639 * NEWS: Add a few items.
29640
29641 2008-01-27 Robert Millan <rmh@aybabtu.com>
29642
29643 Fix parallel builds with grub-emu. Based on earlier commit for
29644 grub-probe and grub-setup.
29645
29646 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29647 (util/grub-emu.c_DEPENDENCIES): ... this.
29648 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29649 (util/grub-emu.c_DEPENDENCIES): ... this.
29650 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29651 (util/grub-emu.c_DEPENDENCIES): ... this.
29652 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29653 (util/grub-emu.c_DEPENDENCIES): ... this.
29654 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29655 (util/grub-emu.c_DEPENDENCIES): ... this.
29656
29657 2008-01-27 Pavel Roskin <proski@gnu.org>
29658
29659 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
29660 to create a gap between _end and the modules added to the image
29661 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
29662 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
29663 * util/elf/grub-mkimage.c (add_segments): Likewise.
29664
29665 2008-01-26 Pavel Roskin <proski@gnu.org>
29666
29667 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
29668 just return an error.
29669
29670 2008-01-26 Bean <bean123ch@gmail.com>
29671
29672 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
29673 (grub_reiserfs_get_item): Save offset of the next item.
29674 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
29675
29676 2008-01-25 Robert Millan <rmh@aybabtu.com>
29677
29678 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
29679 make all filesystem sources appear together (possibly fixing omissions
29680 while at it).
29681 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29682 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29683 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29685
29686 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
29687 add `kern/file.c'.
29688 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
29689 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29690 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
29691 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29692
29693 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
29694 (probe): Add a sanity check to make sure of our ability to read
29695 requested files when probing for filesystem type.
29696
29697 * genmk.rb: Update copyright year (2007).
29698
29699 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
29700 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
29701 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
29702 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
29703 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
29704 : Remove function prototypes.
29705
29706 2008-01-25 Robert Millan <rmh@aybabtu.com>
29707
29708 Revert my previous commits (based on wrong assumption of how grub_errno
29709 works).
29710
29711 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
29712 * kern/file.c (grub_file_open): Likewise.
29713
29714 2008-01-24 Pavel Roskin <proski@gnu.org>
29715
29716 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
29717 that hang if GRUB tries to setup colors.
29718 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
29719 colors for firmwares that don't support it.
29720 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
29721 Recognize Open Hack'Ware, set flags to work around its
29722 limitations.
29723
29724 2008-01-24 Robert Millan <rmh@aybabtu.com>
29725
29726 * kern/file.c (grub_file_open): Do not account previous failures of
29727 unrelated functions when grub_errno is checked for.
29728 Reported by Oleg Strikov.
29729
29730 2008-01-24 Bean <bean123ch@gmail.com>
29731
29732 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
29733 (grub_ufs_sblock): New member volume name.
29734 (grub_ufs_find_file): Fix string copy bug.
29735 (grub_ufs_label): Implement this function properly.
29736
29737 * fs/hfs.c (grub_hfs_cnid_type): New enum.
29738 (grub_hfs_iterate_records): Use the correct file number for extents
29739 and catalog file. Fix problem in next index calculation.
29740 (grub_hfs_find_node): Replace recursive function call with loop.
29741 (grub_hfs_iterate_dir): Replace recursive function call with loop.
29742
29743 2008-01-23 Robert Millan <rmh@aybabtu.com>
29744
29745 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
29746 `<grub/symbol.h>' and `<grub/multiboot.h>'.
29747 (grub_multiboot2_real_boot): New function prototype.
29748
29749 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
29750 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
29751
29752 * kern/i386/ieee1275/init.c (grub_os_area_addr)
29753 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
29754
29755 2008-01-23 Robert Millan <rmh@aybabtu.com>
29756
29757 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
29758 #ifdef'ed out grub_printf().
29759
29760 2008-01-23 Robert Millan <rmh@aybabtu.com>
29761
29762 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
29763 grub_dprintf calls, since they make "debug=all" mode unusable.
29764 (grub_console_checkkey): Likewise.
29765
29766 2008-01-23 Robert Millan <rmh@aybabtu.com>
29767
29768 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29769 `term/i386/pc/at_keyboard.c'.
29770 (pkglib_MODULES): Add `serial.mod'.
29771 (serial_mod_SOURCES): New variable.
29772 (serial_mod_CFLAGS): Likewise.
29773 (serial_mod_LDFLAGS): Likewise.
29774
29775 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
29776 `<grub/powerpc/ieee1275/console.h>'.
29777 (grub_keyboard_controller_init): New function prototype.
29778 (grub_console_checkkey): Likewise.
29779 (grub_console_getkey): Likewise.
29780
29781 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
29782 keyboard on i386.
29783
29784 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
29785 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
29786
29787 2008-01-23 Robert Millan <rmh@aybabtu.com>
29788
29789 * kern/i386/pc/init.c (make_install_device): When memdisk image is
29790 present, "(memdisk)/boot/grub" becomes the default prefix.
29791
29792 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
29793 a memdisk tarball with all the modules. Add --overlay=DIR option that
29794 allows users to overlay additional files into the image.
29795
29796 2008-01-23 Robert Millan <rmh@aybabtu.com>
29797
29798 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
29799 and `machine/memory.h'.
29800 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
29801 (_multiboot_mod_SOURCES): New variable.
29802 (_multiboot_mod_CFLAGS): Likewise.
29803 (_multiboot_mod_LDFLAGS): Likewise.
29804 (multiboot_mod_SOURCES): Likewise.
29805 (multiboot_mod_CFLAGS): Likewise.
29806 (multiboot_mod_LDFLAGS): Likewise.
29807
29808 * include/grub/i386/ieee1275/loader.h: New file.
29809
29810 * include/grub/i386/ieee1275/machine.h: Likewise.
29811
29812 * include/grub/i386/ieee1275/memory.h: Likewise.
29813
29814 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
29815 variable declaration.
29816 (grub_os_area_size): Likewise.
29817
29818 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
29819 (grub_lower_mem, grub_upper_mem): New variables.
29820 (grub_stop_floppy): New function (just to make
29821 grub_multiboot2_real_boot() happy).
29822
29823 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
29824 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
29825 (grub_stop): New function.
29826 Include `"../realmode.S"' and `"../loader.S"'.
29827
29828 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
29829 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
29830
29831 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
29832 rely on grub_multiboot2_real_boot() for final boot.
29833
29834 2008-01-22 Robert Millan <rmh@aybabtu.com>
29835
29836 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
29837 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
29838 device that doesn't look like an SD card.
29839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
29840 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
29841 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
29842 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
29843 found.
29844
29845 2008-01-22 Robert Millan <rmh@aybabtu.com>
29846
29847 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
29848 avoid claiming over our own code.
29849
29850 2008-01-22 Bean <bean123ch@gmail.com>
29851
29852 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
29853 (jpeg_mod_SOURCES): New variable.
29854 (jpeg_mod_CFLAGS): Likewise.
29855 (jpeg_mod_LDFLAGS): Likewise.
29856
29857 * video/readers/jpeg.c : New file.
29858
29859 2008-01-22 Bean <bean123ch@gmail.com>
29860
29861 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
29862 there are no more items.
29863
29864 2008-01-21 Robert Millan <rmh@aybabtu.com>
29865
29866 * kern/mm.c (grub_mm_init_region): Improve debug message.
29867
29868 2008-01-21 Robert Millan <rmh@aybabtu.com>
29869
29870 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
29871 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
29872 address.
29873 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
29874 a C macro.
29875 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
29876 Indicates start of upper memory.
29877 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
29878 (generate_image): Abort when image size is big enough to corrupt
29879 upper memory.
29880
29881 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
29882 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
29883 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29884 instead of hardcoding 0xA0000.
29885 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
29886 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29887 instead of hardcoding 0xA0000.
29888
29889 2008-01-21 Robert Millan <rmh@aybabtu.com>
29890
29891 * disk/memdisk.c (memdisk_size): New variable.
29892 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
29893 `memdisk_size'.
29894 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
29895 image to dynamic memory.
29896 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
29897 `memdisk_size'. Free memdisk block.
29898
29899 2008-01-21 Robert Millan <rmh@aybabtu.com>
29900
29901 Fix detection of very small filesystems (like tar).
29902
29903 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
29904 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
29905 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
29906 a problem with this disk).
29907
29908 2008-01-21 Robert Millan <rmh@aybabtu.com>
29909
29910 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
29911 on grub_biosdisk_rw_standard() error.
29912
29913 2008-01-21 Robert Millan <rmh@aybabtu.com>
29914
29915 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
29916 recent changes.
29917 * kern/elf.c: Likewise.
29918 * kern/ieee1275/ieee1275.c: Likewise.
29919 * kern/powerpc/ieee1275/openfw.c: Likewise.
29920 * term/ieee1275/ofconsole.c: Likewise.
29921
29922 2008-01-21 Robert Millan <rmh@aybabtu.com>
29923
29924 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
29925
29926 * include/grub/kernel.h (grub_arch_memdisk_addr)
29927 (grub_arch_memdisk_size): Moved from here ...
29928
29929 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
29930 (grub_arch_memdisk_size): ... to here.
29931
29932 2008-01-21 Robert Millan <rmh@aybabtu.com>
29933
29934 Mostly based on bugfix from Bean.
29935
29936 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
29937 attribute with hook() parameter.
29938 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
29939 declaration.
29940 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
29941 attribute with hook() parameter.
29942 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
29943 declaration.
29944
29945 2008-01-21 Robert Millan <rmh@aybabtu.com>
29946
29947 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
29948 (pkglib_MODULES): Add `memdisk.mod'.
29949 (memdisk_mod_SOURCES): New variable.
29950 (memdisk_mod_CFLAGS): Likewise.
29951 (memdisk_mod_LDFLAGS): Likewise.
29952
29953 * disk/memdisk.c: New file.
29954
29955 * include/grub/disk.h (grub_disk_dev_id): Add
29956 `GRUB_DISK_DEVICE_MEMDISK_ID'.
29957
29958 * include/grub/i386/pc/kernel.h
29959 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
29960 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
29961 (grub_kernel_image_size): New variable declaration.
29962 (grub_total_module_size): Likewise.
29963 (grub_memdisk_image_size): Likewise.
29964
29965 * include/grub/i386/pc/memory.h
29966 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
29967
29968 * include/grub/kernel.h: Include `<grub/symbol.h>'.
29969 (grub_arch_memdisk_addr): New variable declaration.
29970 (grub_arch_memdisk_size): Likewise.
29971
29972 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
29973 (grub_arch_memdisk_size): Likewise.
29974
29975 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
29976 (codestart): Replace hardcoded `0x100000' with
29977 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
29978
29979 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
29980 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
29981 not NULL, append the contents of the file it refers to, at the end of
29982 the compressed kernel image. Initialize `grub_memdisk_image_size'
29983 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
29984 (options): Add "memdisk"|'m' option.
29985 (main): Parse --memdisk|-m option, and pass user-provided path as
29986 parameter to generate_image().
29987
29988 2008-01-20 Robert Millan <rmh@aybabtu.com>
29989
29990 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
29991 grub_dprintf() calls from here ...
29992 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
29993
29994 2008-01-20 Robert Millan <rmh@aybabtu.com>
29995
29996 Fix detection of "real mode" when /options/real-mode? doesn't exist.
29997
29998 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
29999 declaration.
30000 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
30001 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
30002 `GRUB_IEEE1275_FLAG_REAL_MODE'.
30003 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
30004 property).
30005 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
30006 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
30007
30008 2008-01-19 Robert Millan <rmh@aybabtu.com>
30009
30010 Get rid of confusing function (superseded by
30011 `grub_ieee1275_get_integer_property')
30012 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
30013 prototype.
30014 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
30015 function.
30016 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
30017 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
30018 in native endianness from grub_ieee1275_get_integer_property().
30019
30020 2008-01-19 Robert Millan <rmh@aybabtu.com>
30021
30022 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
30023 command after "shut-down", since implementations differ on which
30024 the command for halt is.
30025
30026 2008-01-19 Robert Millan <rmh@aybabtu.com>
30027
30028 * include/grub/i386/linuxbios/console.h: Add header protection.
30029 (grub_keyboard_controller_init): New function prototype.
30030 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
30031 (KEYBOARD_COMMAND_READ): Likewise.
30032 (KEYBOARD_COMMAND_WRITE): Likewise.
30033 (KEYBOARD_SCANCODE_SET1): Likewise.
30034 (grub_keyboard_controller_write): New function.
30035 (grub_keyboard_controller_read): Likewise.
30036 (grub_keyboard_controller_init): Likewise.
30037
30038 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
30039 (grub_console_init): On coreboot/LinuxBIOS, call
30040 grub_keyboard_controller_init().
30041
30042 2008-01-19 Robert Millan <rmh@aybabtu.com>
30043
30044 PowerPC changes provided by Pavel Roskin.
30045
30046 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
30047 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
30048 don't rely on cmain() doing it.
30049 * kern/i386/ieee1275/startup.S (_start): Store %eax in
30050 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
30051
30052 2008-01-16 Robert Millan <rmh@aybabtu.com>
30053
30054 * include/grub/i386/linuxbios/memory.h
30055 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
30056 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
30057 receive `table_header' as argument. Instead, probe for it in the
30058 known memory ranges where it can be present.
30059 (grub_available_iterate): Do not pass a fixed `table_header' address
30060 to grub_linuxbios_table_iterate().
30061
30062 2008-01-15 Robert Millan <rmh@aybabtu.com>
30063
30064 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
30065 * conf/i386-ieee1275.rmk: New file.
30066 * include/grub/i386/ieee1275/console.h: Likewise.
30067 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
30068 * include/grub/i386/ieee1275/kernel.h: Likewise.
30069 * include/grub/i386/ieee1275/time.h: Likewise.
30070 * kern/i386/ieee1275/init.c: Likewise.
30071 * kern/i386/ieee1275/startup.S: Likewise.
30072
30073 2008-01-15 Robert Millan <rmh@aybabtu.com>
30074
30075 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
30076 when pointers are 32-bit (but still do set it to one when they are
30077 64-bit).
30078
30079 2008-01-15 Robert Millan <rmh@aybabtu.com>
30080
30081 * include/grub/ieee1275/ieee1275.h
30082 (grub_ieee1275_get_integer_property): New function prototype.
30083
30084 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
30085 (grub_ieee1275_get_integer_property): New function. Wraps around
30086 grub_ieee1275_get_property() to handle endianness.
30087
30088 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
30089 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
30090 where appropriate.
30091 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
30092 (grub_map): Likewise.
30093 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
30094
30095 2008-01-15 Bean <bean123ch@gmail.com>
30096
30097 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
30098 (grub_script_execute_cmdline): Reset grub_errno.
30099
30100 * normal/main.c (read_config_file): Reset grub_errno.
30101
30102 * normal/parse.y (script_init): New.
30103 (script): Move function and menuentry here.
30104 (delimiter): New.
30105 (command): Add delimiter at the end of command.
30106 (commands): Adjust to match the new command.
30107 (commandblock): Remove grub_script_lexer_record_start.
30108 (menuentry): Add grub_script_lexer_record_start, use the new commands.
30109 (if): Use the new commands.
30110
30111 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
30112
30113 2008-01-15 Robert Millan <rmh@aybabtu.com>
30114
30115 * normal/menu.c (run_menu): Move timeout message from here ...
30116 (print_timeout): ... to here.
30117 (run_menu): Use print_timeout() once during initial draw to print
30118 the whole message, and again in every clock tick to update only
30119 the number of seconds.
30120
30121 2008-01-15 Robert Millan <rmh@aybabtu.com>
30122
30123 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
30124 actual size of `available' from grub_ieee1275_get_property(), and
30125 restrict parsing to that bound.
30126
30127 2008-01-15 Christian Franke <franke@computer.org>
30128
30129 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
30130 (argp_program_version): Remove variable.
30131 (argp_program_bug_address): Likewise.
30132 (options): Convert from struct argp_option to struct option.
30133 (struct arguments): Remove.
30134 (parse_opt): Remove.
30135 (usage): New function.
30136 (main): Replace struct args members by simple variables.
30137 Replace argp_parse() by getopt_long().
30138 Add switch to evaluate options.
30139 Add missing "(...)" around root_dev in prefix string.
30140
30141 2008-01-14 Robert Millan <rmh@aybabtu.com>
30142
30143 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
30144 for grub_ieee1275_exit(), in order to improve portability.
30145
30146 2008-01-14 Robert Millan <rmh@aybabtu.com>
30147
30148 * util/grub.d/10_linux.in (prefix): Define.
30149 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
30150
30151 2008-01-13 Pavel Roskin <proski@gnu.org>
30152
30153 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
30154 grub_errno if no errors have been detected.
30155
30156 2008-01-12 Robert Millan <rmh@aybabtu.com>
30157
30158 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
30159 (grub_util_get_dev_abstraction): New function prototype.
30160
30161 * util/getroot.c: Include `<grub/util/getroot.h>'
30162 (grub_util_get_grub_dev): Move detection of abstraction type to ...
30163 (grub_util_get_dev_abstraction): ... here (new function).
30164
30165 * util/grub-probe.c: Convert PRINT_* to an enum. Add
30166 `PRINT_ABSTRACTION'.
30167 (probe): Probe for abstraction type when requested.
30168 (main): Understand `--target=abstraction'.
30169
30170 * util/i386/efi/grub-install.in: Add abstraction module to core
30171 image when it is found to be necessary.
30172 * util/i386/pc/grub-install.in: Likewise.
30173 * util/powerpc/ieee1275/grub-install.in: Likewise.
30174
30175 * util/update-grub_lib.in (font_path): Return system path without
30176 converting to GRUB path.
30177 * util/update-grub.in: Convert system path returned by font_path()
30178 to a GRUB path. Use `grub-probe -t abstraction' to determine what
30179 abstraction module is needed for loading fonts (if any). Export
30180 that as `GRUB_PRELOAD_MODULES'.
30181 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
30182 insmod commands).
30183
30184 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
30185
30186 Remove some unused code from reiserfs.
30187
30188 * fs/reiserfs.c (struct grub_reiserfs_key)
30189 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
30190 (struct grub_reiserfs_node_body): Removed.
30191 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
30192 Likewise.
30193 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30194 Likewise.
30195 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30196 Likewise.
30197 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30198 Likewise.
30199 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
30200 Likewise.
30201 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
30202 Likewise.
30203 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30204 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30205 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30206
30207 2008-01-10 Robert Millan <rmh@aybabtu.com>
30208
30209 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
30210 Determines if a file is garbage left by packaging systems, etc.
30211 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
30212 for processing /etc/grub.d scripts.
30213 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
30214 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
30215 as a condition for processing Linux images.
30216
30217 2008-01-10 Pavel Roskin <proski@gnu.org>
30218
30219 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
30220 to compile reiserfs.c on PowerPC.
30221
30222 2008-01-10 Robert Millan <rmh@aybabtu.com>
30223
30224 * kern/device.c (grub_device_iterate): Do not abort device iteration
30225 when one of the devices cannot be opened.
30226 * kern/disk.c (grub_disk_open): Do not account previous failures of
30227 unrelated functions when grub_errno is checked for.
30228
30229 2008-01-08 Robert Millan <rmh@aybabtu.com>
30230
30231 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
30232 `! grub_linux_is_bzimage', change order of address comparison to make
30233 it more intuitive, and improve "too big zImage" error message.
30234
30235 2008-01-08 Robert Millan <rmh@aybabtu.com>
30236
30237 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
30238 `$(update-grub_DATA)'.
30239 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
30240 targets.
30241
30242 2008-01-07 Robert Millan <rmh@aybabtu.com>
30243
30244 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
30245 which instruction is modified by grub-setup during installation
30246 (since it wasn't obvious by only looking at this file).
30247
30248 2008-01-07 Robert Millan <rmh@aybabtu.com>
30249
30250 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
30251 listing actual TODO items.
30252
30253 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30254
30255 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
30256 correctly.
30257 (grub_reiserfs_get_key_offset): Likewise.
30258 (grub_reiserfs_set_key_offset): Likewise.
30259 (grub_reiserfs_set_key_type): Likewise.
30260 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
30261
30262 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
30263 better to remove the bitfield version completely.
30264
30265 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30266
30267 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
30268 allocated from the heap, due to the fshelp implementation.
30269 (grub_reiserfs_dir): Free NODE, due to the same reason.
30270
30271 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30272
30273 Mostly from Vincent Pelletier:
30274
30275 * fs/reiserfs.c: New file.
30276
30277 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
30278 (reiserfs_mod_SOURCES): New variable.
30279 (reiserfs_mod_CFLAGS): Likewise.
30280 (reiserfs_mod_LDFLAGS): Likewise.
30281
30282 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
30283 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
30284 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
30285 normal/color.c.
30286
30287 2008-01-06 Robert Millan <rmh@aybabtu.com>
30288
30289 * normal/color.c: Remove `<grub/env.h>'.
30290
30291 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
30292
30293 * include/grub/normal.h: Include <grub/env.h>.
30294
30295 2008-01-05 Robert Millan <rmh@aybabtu.com>
30296
30297 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
30298 usage example with `(hd0,1)'.
30299 Reported by Samuel Thibault.
30300
30301 2008-01-05 Robert Millan <rmh@aybabtu.com>
30302
30303 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
30304 (grub_linux_boot_zimage): Rename to ...
30305 (grub_linux_boot): ... this.
30306 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
30307 (grub_linux_boot_zimage): Conditionalize zImage copy.
30308
30309 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
30310 (grub_linux_boot_bzimage): Remove prototype.
30311 (grub_linux_boot_zimage): Rename to ...
30312 (grub_linux_boot): ... this.
30313
30314 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
30315 (grub_linux_boot): Remove function.
30316
30317 2008-01-05 Robert Millan <rmh@aybabtu.com>
30318
30319 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
30320 (grub_env_write_color_highlight): Likewise.
30321 (grub_wait_after_message): Likewise.
30322
30323 * normal/color.c: New file.
30324
30325 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30326 (normal_mod_DEPENDENCIES): Likewise.
30327
30328 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30329 (normal_mod_DEPENDENCIES): Likewise.
30330
30331 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30332 (normal_mod_DEPENDENCIES): Likewise.
30333
30334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30335 (normal_mod_DEPENDENCIES): Likewise.
30336
30337 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
30338 for waiting after a message is printed.
30339 * normal/main.c (read_config_file): Likewise.
30340 (grub_normal_init): Register grub_env_write_color_normal() and
30341 grub_env_write_color_highlight() hooks. Mark `color_normal' and
30342 `color_highlight' variables as global.
30343
30344 * normal/menu.c (grub_wait_after_message): New function.
30345 (grub_color_menu_normal): New variable. Replaces ...
30346 (GRUB_COLOR_MENU_NORMAL): ... this macro.
30347 (grub_color_menu_highlight): New variable. Replaces ...
30348 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
30349 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
30350 `GRUB_TERM_COLOR_STANDARD'.
30351 (print_message): Use `grub_setcolorstate' to reload colors. Rename
30352 `normal_code' and `highlight_code' to `old_color_normal' and
30353 `old_color_highlight', respectively.
30354 (grub_menu_init_page): Update colors when drawing the menu, based on
30355 `menu_color_normal' and `menu_color_highlight' variables.
30356 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
30357 a message is printed.
30358
30359 2008-01-05 Robert Millan <rmh@aybabtu.com>
30360
30361 * kern/env.c (grub_env_context_open): Propagate hooks for global
30362 variables to new context.
30363
30364 * kern/main.c (grub_set_root_dev): Export `root' variable.
30365
30366 2008-01-05 Robert Millan <rmh@aybabtu.com>
30367
30368 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
30369 discs unconditionally, since udev and others have options to provide
30370 them.
30371
30372 2008-01-05 Robert Millan <rmh@aybabtu.com>
30373
30374 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
30375
30376 2008-01-04 Christian Franke <franke@computer.org>
30377
30378 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
30379 of eisa_mmap.
30380
30381 2008-01-03 Pavel Roskin <proski@gnu.org>
30382
30383 * kern/i386/linuxbios/init.c: Put "void" to all function
30384 declarations with no arguments.
30385 * kern/powerpc/ieee1275/init.c: Likewise.
30386 * term/i386/pc/at_keyboard.c: Likewise.
30387 * term/i386/pc/vga_text.c: Likewise.
30388 * util/grub-mkdevicemap.c: Likewise.
30389
30390 2008-01-02 Robert Millan <rmh@aybabtu.com>
30391
30392 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
30393 message when loaded image is out of bounds.
30394 (grub_multiboot_load_elf64): Likewise.
30395
30396 2008-01-02 Pavel Roskin <proski@gnu.org>
30397
30398 * util/grub.d/10_linux.in: Try version without ".old" when
30399 looking for initrd. It's better to use initrd from the newer
30400 kernel of the same version than no initrd at all.
30401
30402 2008-01-01 Robert Millan <rmh@aybabtu.com>
30403
30404 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
30405
30406 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
30407
30408 * include/grub/video.h: Added grub_video_unmap_color and
30409 grub_video_get_active_render_target.
30410 (grub_video_adapter): Added unmap_color and get_active_render_target.
30411
30412 * video/video.c: Added grub_video_unmap_color and
30413 grub_video_get_active_render_target.
30414 (grub_video_get_info): Changed method to accept NULL pointer as an
30415 argument to allow detection of active video adapter.
30416
30417 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
30418 grub_video_vbe_unmap_color_int.
30419 Added grub_video_vbe_unmap_color and
30420 grub_video_vbe_get_active_render_target.
30421 (grub_video_vbe_adapter): Added unmap_color and
30422 get_active_render_target.
30423
30424 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
30425 with grub_video_vbe_unmap_color_int.
30426
30427 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
30428 (DEFAULT_NORMAL_COLOR): Likewise.
30429 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
30430 (DEFAULT_FG_COLOR): Removed.
30431 (DEFAULT_BG_COLOR): Likewise.
30432 (DEFAULT_CURSOR_COLOR): Changed value.
30433 (grub_virtual_screen): Added standard_color_setting,
30434 normal_color_setting, highlight_color_setting and term_color.
30435 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
30436 (bitmap_width): Added.
30437 (bitmap_height): Likewise.
30438 (bitmap): Likewise.
30439 (set_term_color): Likewise.
30440 (grub_virtual_screen_setup): Changed to use new terminal coloring
30441 settings.
30442 (grub_gfxterm_init): Added init for bitmap.
30443 (grub_gfxterm_fini): Added destroy for bitmap.
30444 (redraw_screen_rect): Updated to use background bitmap and new
30445 terminal coloring.
30446 (scroll_up): Added optimization for case when there is no bitmap.
30447 (grub_gfxterm_cls): Fixed to use correct background color.
30448 (grub_virtual_screen_setcolorstate): Changed to use new terminal
30449 coloring.
30450 (grub_virtual_screen_setcolor): Likewise.
30451 (grub_virtual_screen_getcolor): Added.
30452 (grub_gfxterm_background_image_cmd): Likewise.
30453 (grub_video_term): Added setcolor and getcolor.
30454 (MOD_INIT): Added registration of background_image command.
30455 (MOD_TERM): Added unregistration for background_image command.
30456
30457 2007-12-30 Pavel Roskin <proski@gnu.org>
30458
30459 * loader/multiboot_loader.c: Fix multiboot command
30460 unregistration. Fix all typos in the word "multiboot".
30461
30462 2007-12-29 Pavel Roskin <proski@gnu.org>
30463
30464 * util/grub.d/10_linux.in: Refactor search for initrd. Add
30465 support for initrd names used in Fedora.
30466
30467 2007-12-26 Bean <bean123ch@gmail.com>
30468
30469 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
30470 (cpio_mod_SOURCES): New variable.
30471 (cpio_mod_CFLAGS): Likewise.
30472 (cpio_mod_LDFLAGS): Likewise.
30473
30474 * fs/cpio.c: New file.
30475
30476 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
30477
30478 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30479
30480 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30481
30482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30483
30484 2007-12-25 Robert Millan <rmh@aybabtu.com>
30485
30486 * include/grub/term.h (struct grub_term): Add `getcolor' function.
30487 (grub_getcolor): New function.
30488
30489 * kern/term.c (grub_getcolor): New function.
30490 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
30491 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
30492 (print_entry): Set normal and highlight colors to
30493 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
30494 respectively, before printing and restore them to old
30495 values afterwards.
30496 (grub_menu_init_page): Likewise. Fill an additional colored space
30497 that would otherwise be left blank.
30498
30499 * term/efi/console.c (grub_console_getcolor): New function.
30500 (struct grub_console_term.getcolor): New variable.
30501 * term/i386/pc/console.c (grub_console_getcolor): New function.
30502 (struct grub_console_term.getcolor): New variable.
30503 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
30504 (struct grub_console_term.getcolor): New variable.
30505
30506 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
30507 (struct grub_console_term.setcolor): Remove variable.
30508 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
30509 (struct grub_console_term.setcolor): Remove variable.
30510 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
30511 (struct grub_console_term.setcolor): Remove variable.
30512 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
30513 (struct grub_console_term.setcolor): Remove variable.
30514
30515 2007-12-25 Robert Millan <rmh@aybabtu.com>
30516
30517 * configure.ac: Search for possible unifont.hex locations, and
30518 define UNIFONT_HEX if found.
30519
30520 * Makefile.in (UNIFONT_HEX): Define variable.
30521 (DATA): Rename to ...
30522 (PKGLIB): ... this. Update all users.
30523 (PKGDATA): New variable.
30524 (pkgdata_IMAGES): Rename to ...
30525 (pkglib_IMAGES): ... this. Update all users.
30526 (pkgdata_MODULES): Rename to ...
30527 (pkglib_MODULES): ... this. Update all users.
30528 (pkgdata_PROGRAMS): Rename to ...
30529 (pkglib_PROGRAMS): ... this. Update all users.
30530 (pkgdata_DATA): Rename to ...
30531 (pkglib_DATA): ... this. Update all users.
30532 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
30533 (unicode.pff, ascii.pff): New rules.
30534 (all-local): Add `$(PKGDATA)' dependency.
30535 (install-local): Process `$(PKGDATA)'.
30536
30537 * util/update-grub_lib.in (font_path): Search for *.pff files in
30538 a few more locations, including `${pkgdata}'.
30539
30540 2007-12-23 Robert Millan <rmh@aybabtu.com>
30541
30542 Patch from Bean <bean123ch@gmail.com>:
30543 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
30544 `size'.
30545
30546 2007-12-21 Bean <bean123ch@gmail.com>
30547
30548 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
30549 (ntfscomp_mod_SOURCES): New variable.
30550 (ntfscomp_mod_CFLAGS): Likewise.
30551 (ntfscomp_mod_LDFLAGS): Likewise.
30552
30553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
30554 (grub_probe_SOURCES): Likewise.
30555 (grub_emu_SOURCES): Likewise.
30556
30557 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30558 (grub_emu_SOURCES): Likewise.
30559
30560 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30561 (grub_emu_SOURCES): Likewise.
30562
30563 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30564 (grub_emu_SOURCES): Likewise.
30565
30566 * fs/ntfs.c (grub_ntfscomp_func): New variable.
30567 (read_run_list): Renamed to grub_ntfs_read_run_list.
30568 (decomp_nextvcn): Moved to ntfscomp.c.
30569 (decomp_getch): Likewise.
30570 (decomp_get16): Likewise.
30571 (decomp_block): Likewise.
30572 (read_block): Likewise.
30573 (read_data): Partially moved to ntfscomp.c.
30574 (fixup): Change unsigned to grub_uint16_t.
30575 (read_mft): Change unsigned long to grub_uint32_t.
30576 (read_attr): Likewise.
30577 (read_data): Likewise.
30578 (read_run_data): Likewise.
30579 (read_run_list): Likewise.
30580 (read_mft): Likewise.
30581
30582 * fs/ntfscomp.c: New file.
30583
30584 * include/grub/ntfs.h: New file.
30585
30586 2007-12-16 Robert Millan <rmh@aybabtu.com>
30587
30588 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
30589 IDE disk check, since Linux is known to support 20 IDE disks.
30590 Reported by Colin Watson.
30591
30592 2007-12-15 Bean <bean123ch@gmail.com>
30593
30594 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
30595 (lnxboot_img_SOURCES): New variable.
30596 (lnxboot_img_ASFLAGS): Likewise.
30597 (lnxboot_img_LDFLAGS): Likewise.
30598
30599 * boot/i386/pc/lnxboot.S: New file.
30600
30601 2007-11-24 Pavel Roskin <proski@gnu.org>
30602
30603 * configure.ac: Test if '--build-id=none' is supported by the
30604 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
30605 objcopy to generate incorrect binary files (binutils
30606 2.17.50.0.18-1 as shipped by Fedora 8).
30607 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
30608 linking, so that build ID doesn't break the test.
30609
30610 2007-11-24 Pavel Roskin <proski@gnu.org>
30611
30612 * include/grub/i386/time.h: use "void" in the argument list
30613 of grub_cpu_idle().
30614 * include/grub/powerpc/time.h: Likewise.
30615 * include/grub/sparc64/time.h: Likewise.
30616
30617 2007-11-18 Christian Franke <franke@computer.org>
30618
30619 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
30620 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
30621 This fixes the problem that function keys did not work in grub-emu.
30622
30623 2007-11-18 Christian Franke <franke@computer.org>
30624
30625 * disk/host.c (grub_host_open): Remove attribute unused from
30626 name parameter. Add check for "host". This fixes the problem
30627 that grub-emu does not find partitions.
30628
30629 2007-11-18 Christian Franke <franke@computer.org>
30630
30631 * util/hostfs.c (is_dir): New function.
30632 (grub_hostfs_dir): Handle missing dirent.d_type case.
30633 (grub_hostfs_read): Add missing fseek().
30634 (grub_hostfs_label): Clear label pointer. This fixes a crash
30635 of grub-emu on "ls (host)".
30636
30637 2007-11-18 Christian Franke <franke@computer.org>
30638
30639 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
30640 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
30641 to 64 bit boundary by default.
30642
30643 2007-11-18 Bean <bean123ch@gmail.com>
30644
30645 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
30646 (hexdump_mod_SOURCES): New variable.
30647 (hexdump_mod_CFLAGS): Likewise.
30648 (hexdump_mod_LDFLAGS): Likewise.
30649
30650 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30651
30652 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30653
30654 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30655
30656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30657
30658 * include/grub/hexdump.h: New file.
30659
30660 * commands/hexdump.c: New file.
30661
30662 2007-11-10 Robert Millan <rmh@aybabtu.com>
30663
30664 * commands/i386/pc/play.c (beep_off): Switch order of arguments
30665 in grub_outb() calls.
30666 (beep_on): Likewise.
30667
30668 2007-11-10 Christian Franke <franke@computer.org>
30669
30670 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
30671 (grub_menu_run): Likewise.
30672
30673 2007-11-10 Robert Millan <rmh@aybabtu.com>
30674
30675 * include/grub/i386/efi/machine.h: New file.
30676 * include/grub/i386/linuxbios/machine.h: Likewise.
30677 * include/grub/i386/pc/machine.h: Likewise.
30678 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30679 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30680
30681 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
30682 (serial_hw_io_addr): New variable.
30683 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
30684 instead of `(unsigned short *) 0x400'.
30685
30686 2007-11-10 Bean <bean123ch@gmail.com>
30687
30688 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
30689
30690 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30691
30692 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
30693 (vga_mod_SOURCES): Added.
30694 (vga_mod_CFLAGS): Likewise.
30695 (vga_mod_LDFLAGS): Likewise.
30696
30697 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
30698 grub_outb() calls.
30699 (set_map_mask): Likewise.
30700 (set_read_map): Likewise.
30701 (set_read_address): Likewise.
30702 (vga_font): Removed variable.
30703 (get_vga_glyph): Removed function.
30704 (invalidate_char): Likewise.
30705 (write_char): Changed to use grub_font_get_glyph() for font
30706 information.
30707 (grub_vga_putchar): Likewise.
30708 (grub_vga_getcharwidth): Likewise.
30709
30710 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30711
30712 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
30713 flags.
30714 (pxeboot_img_LDFLAGS): Likewise.
30715 (diskboot_img_LDFLAGS): Likewise.
30716 (kernel_img_LDFLAGS): Likewise.
30717
30718 2007-11-06 Robert Millan <rmh@aybabtu.com>
30719
30720 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
30721 in grub_outb() calls.
30722 (serial_hw_init): Likewise.
30723
30724 2007-11-05 Robert Millan <rmh@aybabtu.com>
30725
30726 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
30727 spaces. Skip non-regular files.
30728
30729 2007-11-05 Robert Millan <rmh@aybabtu.com>
30730
30731 * kern/disk.c (grub_disk_firmware_fini)
30732 (grub_disk_firmware_is_tainted): New variables.
30733
30734 * include/grub/disk.h (grub_disk_firmware_fini)
30735 (grub_disk_firmware_is_tainted): Likewise.
30736
30737 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
30738 (grub_disk_biosdisk_fini): ... to here.
30739 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
30740 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
30741 is set. Register grub_disk_biosdisk_fini() in
30742 `grub_disk_firmware_fini'.
30743
30744 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
30745 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
30746 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
30747 to finish existing firmware disk interface.
30748
30749 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
30750 (ata_mod_SOURCES): New variable.
30751 (ata_mod_CFLAGS): Likewise.
30752 (ata_mod_LDFLAGS): Likewise.
30753
30754 2007-11-05 Robert Millan <rmh@aybabtu.com>
30755
30756 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
30757 (grub_ata_wait): Reimplement using grub_millisleep().
30758
30759 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
30760 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
30761
30762 2007-11-03 Marco Gerards <marco@gnu.org>
30763
30764 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
30765 (CRTC_ADDR_PORT): New macro.
30766 (CRTC_DATA_PORT): Likewise.
30767 (CRTC_CURSOR): Likewise.
30768 (CRTC_CURSOR_ADDR_HIGH): Likewise.
30769 (CRTC_CURSOR_ADDR_LOW): Likewise.
30770 (update_cursor): New function.
30771 (grub_console_real_putchar): Call `update_cursor'.
30772 (grub_console_gotoxy): Likewise.
30773 (grub_console_cls): Set the default color when clearing the
30774 screen.
30775 (grub_console_setcursor): Implemented.
30776
30777 2007-11-03 Marco Gerards <marco@gnu.org>
30778
30779 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
30780 become activate.
30781 (grub_ata_pio_write): Likewise.
30782
30783 (grub_atapi_identify): Wait after issuing an ATA command.
30784 (grub_atapi_packet): Likewise.
30785 (grub_ata_identify): Likewise.
30786 (grub_ata_readwrite): Likewise.
30787
30788 2007-11-03 Marco Gerards <marco@gnu.org>
30789
30790 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
30791 (grub_ata_pio_write): Likewise.
30792 (grub_ata_readwrite): Use `grub_error', instead of
30793 returning `grub_errno'.
30794
30795 2007-11-03 Marco Gerards <marco@gnu.org>
30796
30797 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
30798 grub_ata_pio_write once for every single sector, instead of for
30799 multiple sectors.
30800
30801 2007-10-31 Robert Millan <rmh@aybabtu.com>
30802
30803 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
30804
30805 * conf/i386-linuxbios.rmk: New file.
30806
30807 * kern/i386/pc/hardware.c: Likewise.
30808 * term/i386/pc/at_keyboard.c: Likewise.
30809 * term/i386/pc/vga_text.c: Likewise.
30810
30811 * include/grub/i386/linuxbios/boot.h: Likewise.
30812 * include/grub/i386/linuxbios/console.h: Likewise.
30813 * include/grub/i386/linuxbios/init.h: Likewise.
30814 * include/grub/i386/linuxbios/kernel.h: Likewise.
30815 * include/grub/i386/linuxbios/loader.h: Likewise.
30816 * include/grub/i386/linuxbios/memory.h: Likewise.
30817 * include/grub/i386/linuxbios/serial.h: Likewise.
30818 * include/grub/i386/linuxbios/time.h: Likewise.
30819
30820 * kern/i386/linuxbios/init.c: Likewise.
30821 * kern/i386/linuxbios/startup.S: Likewise.
30822 * kern/i386/linuxbios/table.c: Likewise.
30823
30824 2007-10-31 Marco Gerards <marco@gnu.org>
30825
30826 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
30827 (ata_mod_SOURCES): New variable.
30828 (ata_mod_CFLAGS): Likewise.
30829 (ata_mod_LDFLAGS): Likewise.
30830
30831 * disk/ata.c: New file.
30832
30833 * include/grub/disk.h (grub_disk_dev_id): Add
30834 `GRUB_DISK_DEV_ATA_ID'.
30835
30836 2007-10-31 Robert Millan <rmh@aybabtu.com>
30837
30838 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
30839 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
30840
30841 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
30842 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
30843
30844 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
30845 `<grub/types.h>'.
30846
30847 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
30848
30849 2007-10-27 Robert Millan <rmh@aybabtu.com>
30850
30851 * include/grub/types.h (ULONG_MAX): Define macro.
30852
30853 2007-10-22 Robert Millan <rmh@aybabtu.com>
30854
30855 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
30856 `"../realmode.S"'.
30857 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
30858
30859 2007-10-22 Robert Millan <rmh@aybabtu.com>
30860
30861 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
30862 (pkgdata_MODULES): Add `biosdisk.mod'.
30863 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
30864 variables.
30865
30866 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
30867 (grub_biosdisk_init): Replace with ...
30868 (GRUB_MOD_INIT(biosdisk)): ... this.
30869 (grub_biosdisk_fini): Replace with ...
30870 (GRUB_MOD_FINI(biosdisk)): ... this.
30871
30872 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
30873 (grub_machine_init): Remove call to grub_biosdisk_init().
30874 (grub_machine_fini): Remove call to grub_machine_fini().
30875
30876 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
30877
30878 2007-10-22 Robert Millan <rmh@aybabtu.com>
30879
30880 * include/grub/time.h: New file.
30881 * include/grub/i386/time.h: Likewise.
30882 * include/grub/powerpc/time.h: Likewise.
30883 * include/grub/sparc64/time.h: Likewise.
30884
30885 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
30886 instances to ...
30887 (KERNEL_MACHINE_TIME_HEADER): ... this.
30888 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30889 instances to ...
30890 (KERNEL_MACHINE_TIME_HEADER): ... this.
30891 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30892 instances to ...
30893 (KERNEL_MACHINE_TIME_HEADER): ... this.
30894
30895 * kern/i386/efi/init.c: Include `<grub/time.h>'.
30896 (grub_millisleep): New function.
30897 * kern/i386/pc/init.c: Include `<grub/time.h>'.
30898 (grub_millisleep): New function.
30899 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
30900 Remove `grub/machine/time.h' include.
30901 (grub_millisleep): New function.
30902 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
30903 Remove `grub/machine/time.h' include.
30904 (grub_millisleep): New function.
30905
30906 * include/grub/misc.h (grub_div_roundup): New function.
30907
30908 * kern/misc.c: Include `<grub/time.h>'.
30909 (grub_millisleep_generic): New function.
30910
30911 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
30912 Add `time.h'.
30913 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
30914 Add `time.h'.
30915 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
30916 `machine/time.h'. Add `time.h'.
30917 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30918
30919 2007-10-21 Robert Millan <rmh@aybabtu.com>
30920
30921 * include/grub/misc.h (grub_max): New function.
30922
30923 2007-10-21 Robert Millan <rmh@aybabtu.com>
30924
30925 * util/misc.c (grub_util_info): Call fflush() before returning.
30926
30927 2007-10-20 Robert Millan <rmh@aybabtu.com>
30928
30929 * genmk.rb (Image): Copy `extra_flags' from here ...
30930 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
30931
30932 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
30933 to `argc' and `args' arguments.
30934
30935 2007-10-17 Robert Millan <rmh@aybabtu.com>
30936
30937 * kern/i386/loader.S: New file.
30938
30939 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
30940 * kern/i386/loader.S (grub_linux_prot_size)... to here.
30941 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
30942 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
30943 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
30944 * kern/i386/loader.S (grub_linux_real_addr)... to here.
30945 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
30946 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
30947 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
30948 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
30949 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
30950 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
30951 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
30952 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
30953
30954 * kern/i386/realmode.S: New file.
30955
30956 * kern/i386/pc/startup.S (protstack): Moved from here ...
30957 * kern/i386/realmode.S (protstack)... to here.
30958 * kern/i386/pc/startup.S (gdt): Moved from here ...
30959 * kern/i386/realmode.S (gdt)... to here.
30960 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
30961 * kern/i386/realmode.S (prot_to_real)... to here.
30962
30963 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
30964 `kern/i386/realmode.S'.
30965
30966 2007-10-17 Robert Millan <rmh@aybabtu.com>
30967
30968 * include/grub/i386/loader.h: New file.
30969
30970 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
30971 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30972 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30973 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30974 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
30975 * include/grub/i386/loader.h (grub_linux_prot_size)
30976 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30977 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30978 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30979 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
30980
30981 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
30982
30983 2007-10-15 Robert Millan <rmh@aybabtu.com>
30984
30985 * normal/misc.c (grub_normal_print_device_info): Do not probe for
30986 filesystem when dev->disk is unset.
30987 Do probe for filesystem even when dev->disk->has_partitions is set.
30988 In case a filesystem is found, always report it.
30989 In case it isn't, if dev->disk->has_partitions is set, report that
30990 a partition table was found instead of reporting that no filesystem
30991 could be identified.
30992
30993 2007-10-12 Robert Millan <rmh@aybabtu.com>
30994
30995 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
30996 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
30997
30998 * include/grub/types.h (grub_host_to_target16): New macro.
30999 (grub_host_to_target32): Likewise.
31000 (grub_host_to_target64): Likewise.
31001 (grub_target_to_host16): Likewise.
31002 (grub_target_to_host32): Likewise.
31003 (grub_target_to_host64): Likewise.
31004
31005 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
31006 Renamed from to ...
31007 (GRUB_MOD_ALIGN): ...this. Update all users.
31008
31009 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
31010 grub_host_to_target32.
31011 Replace grub_be_to_cpu32 with grub_target_to_host32.
31012 (load_modules): Likewise.
31013 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
31014 Replace grub_be_to_cpu32 with grub_target_to_host32.
31015 Replace grub_cpu_to_be16 with grub_host_to_target16.
31016 Replace grub_cpu_to_be32 grub_host_to_target32.
31017
31018 2007-10-12 Robert Millan <rmh@aybabtu.com>
31019
31020 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
31021 * util/elf/grub-mkimage.c: ... here.
31022
31023 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
31024 `util/powerpc/ieee1275/grub-mkimage.c'.
31025
31026 2007-10-07 Robert Millan <rmh@aybabtu.com>
31027
31028 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
31029 and make it easier to figure out.
31030 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
31031 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
31032 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
31033 leave us with less than HEAP_MIN_SIZE total heap.
31034 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
31035
31036 2007-10-03 Robert Millan <rmh@aybabtu.com>
31037
31038 * include/grub/i386/io.h: New file.
31039 * commands/i386/pc/play.c (inb): Removed.
31040 (outb): Removed.
31041 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31042 with grub_outb().
31043 * term/i386/pc/serial.c (inb): Removed.
31044 (outb): Removed.
31045 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31046 with grub_outb().
31047 * term/i386/pc/vga.c (inb): Removed.
31048 (outb): Removed.
31049 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31050 with grub_outb().
31051
31052 2007-10-02 Robert Millan <rmh@aybabtu.com>
31053
31054 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
31055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31056 Reported by Marcin Kurek.
31057
31058 2007-09-07 Robert Millan <rmh@aybabtu.com>
31059
31060 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
31061 SmartFirmware version updates (as released by Sven Luther), and avoid
31062 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
31063 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
31064 known broken.
31065
31066 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31067
31068 From Hitoshi Ozeki:
31069 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
31070 when merging two regions.
31071
31072 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31073
31074 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
31075 * normal/completion.c (grub_normal_do_completion): Likewise.
31076 Reported by Hitoshi Ozeki.
31077
31078 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31079
31080 Do not use devices at boot in chainloading.
31081
31082 * loader/i386/pc/chainloader.c (boot_drive): New variable.
31083 (boot_part_addr): Likewise.
31084 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
31085 with BOOT_DRIVE and BOOT_PART_ADDR.
31086 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
31087 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
31088
31089 2007-08-29 Robert Millan <rmh@aybabtu.com>
31090
31091 Patch from Simon Peter <dn.tlp@gmx.net>:
31092 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
31093 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
31094 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
31095 util/i386/pc/grub-setup.c_DEPENDENCIES.
31096 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
31097 util/grub-probe.c_DEPENDENCIES.
31098 * conf/powerpc-ieee1275.rmk: Likewise.
31099
31100 2007-08-28 Robert Millan <rmh@aybabtu.com>
31101
31102 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
31103 to tell grub-mkdevicemap how to name devices.
31104 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
31105 feature).
31106
31107 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
31108 util/i386/get_disk_name.c.
31109 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
31110 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
31111 util/ieee1275/get_disk_name.c.
31112
31113 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
31114
31115 * DISTLIST: Add util/i386/get_disk_name.c and
31116 util/ieee1275/get_disk_name.c.
31117
31118 * util/grub-mkdevicemap.c: Replace device naming logic with
31119 grub_util_get_disk_name() calls.
31120
31121 2007-08-20 Robert Millan <rmh@aybabtu.com>
31122
31123 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
31124 (so that it works for both plural and singular quantities).
31125
31126 2007-08-05 Robert Millan <rmh@aybabtu.com>
31127
31128 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
31129 so that [xz] isn't taken into account when determining order.
31130
31131 2007-08-02 Marco Gerards <marco@gnu.org>
31132
31133 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
31134 `include/multiboot2.h', `include/grub/elfload.h',
31135 `include/multiboot.h', `include/grub/multiboot.h',
31136 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
31137 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
31138 `kern/elf.c', `loader/multiboot_loader.c',
31139 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
31140 `loader/i386/pc/multiboot2.c',
31141 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
31142 `util/i386/pc/grub-mkrescue.in'. Remove
31143 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
31144 `include/grub/i386/pc/util/biosdisk.h' and
31145 `include/grub/powerpc/ieee1275/multiboot.h'.
31146
31147 2007-08-02 Bean <bean123ch@gmail.com>
31148
31149 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
31150 (ntfs_mod_SOURCES): New variable.
31151 (ntfs_mod_CFLAGS): Likewise.
31152 (ntfs_mod_LDFLAGS): Likewise.
31153
31154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
31155 (grub_probe_SOURCES): Likewise.
31156 (grub_emu_SOURCES): Likewise.
31157
31158 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
31159 (grub_emu_SOURCES): Likewise.
31160
31161 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
31162 (grub_emu_SOURCES): Likewise.
31163
31164 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
31165
31166 * fs/ntfs.c: New file.
31167
31168 2007-08-02 Bean <bean123ch@gmail.com>
31169
31170 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
31171
31172 * file.h (grub_file): Likewise.
31173
31174 * fshelp.h (grub_fshelp_read_file): Likewise.
31175
31176 * util/i386/pc/grub-setup.c (setup): Likewise.
31177 (save_first_sector): Likewise.
31178 (save_blocklists): Likewise.
31179
31180 * fs/affs.c (grub_affs_read_file): Likewise.
31181
31182 * fs/ext2.c (grub_ext2_read_file): Likewise.
31183
31184 * fs/fat.c (grub_fat_read_data): Likewise.
31185
31186 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
31187
31188 * fs/hfs.c (grub_hfs_read_file): Likewise.
31189
31190 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
31191
31192 * fs/jfs.c (grub_jfs_read_file): Likewise.
31193
31194 * fs/minix.c (grub_minix_read_file): Likewise.
31195
31196 * fs/sfs.c (grub_sfs_read_file): Likewise.
31197
31198 * fs/ufs.c (grub_ufs_read_file): Likewise.
31199
31200 * fs/xfs.c (grub_xfs_read_file): Likewise.
31201
31202 * command/blocklist.c (read_blocklist): Likewise.
31203 (print_blocklist): Likewise.
31204
31205 2007-08-02 Marco Gerards <marco@gnu.org>
31206
31207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
31208 `util/hostfs.c'.
31209
31210 * disk/host.c: New file.
31211
31212 * util/hostfs.c: Likewise.
31213
31214 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
31215 return `GRUB_ERR_BAD_FS'.
31216 * fs/sfs.c (grub_sfs_mount): Likewise.
31217 * fs/xfs.c (grub_xfs_mount): Likewise.
31218
31219 * include/grub/disk.h (enum grub_disk_dev_id): Add
31220 `GRUB_DISK_DEVICE_HOST_ID'.
31221
31222 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
31223
31224 2007-07-24 Jerone Young <jerone@gmail.com>
31225
31226 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
31227 modules for compilation.
31228 * conf/powerpc-ieee1275.rmk: Likewise.
31229
31230 * include/multiboot.h: Move multiboot definitions to one file. Rename
31231 many definitions to not get grub specific.
31232 * include/multiboot2.h: Create header with multiboot 2 definitions.
31233 * include/grub/multiboot.h: Header for grub specific function
31234 prototypes and definitions.
31235 * include/grub/multiboot2.h: Likewise.
31236 * include/grub/multiboot_loader.h: Likewise.
31237 * include/grub/i386/pc/multiboot.h: Removed.
31238 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
31239
31240 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
31241 and 2 to allow for one multiboot and module commands.
31242 * loader/multiboot2.c: Add multiboot2 functionality.
31243 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
31244 and definition names.
31245 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
31246 2 functions.
31247 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
31248 ieee1275 specific multiboot2 code.
31249
31250 * kern/i386/pc/startup.S: Change headers and definition names for
31251 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
31252
31253 2007-07-22 Robert Millan <rmh@aybabtu.com>
31254
31255 * geninitheader.sh: Process file specified in first parameter rather
31256 than hardcoding grub_modules_init.lst.
31257 * geninit.sh: Likewise. Also, construct header name dynamically rather
31258 than hardcoding grub_modules_init.h.
31259
31260 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
31261 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
31262 grub_probe_init.[ch] and grub_setup_init.[ch].
31263
31264 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
31265 grub_modules_init.h with grub_emu_init.h.
31266 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
31267 grub_probe_init.[ch] files.
31268 * conf/i386-efi.rmk: Likewise.
31269 * conf/i386-pc.rmk: Likewise.
31270 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
31271 grub_setup_init.[ch] files.
31272
31273 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
31274 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
31275 to initialize modules rather than a list of hardcoded functions.
31276 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
31277 grub_init_all() to initialize modules rather than a list of hardcoded
31278 functions.
31279
31280 2007-07-22 Robert Millan <rmh@aybabtu.com>
31281
31282 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
31283 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
31284
31285 2007-07-22 Robert Millan <rmh@aybabtu.com>
31286
31287 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31288 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
31289 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
31290 flag when running on SmartFirmware.
31291 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
31292 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
31293 was set.
31294
31295 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
31296 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
31297 rather than decreasing it.
31298
31299 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
31300 there's not enough space to do it, fail in the same way as when it
31301 can't be done because there are no partitions.
31302
31303 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
31304 when nvsetenv failed.
31305
31306 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
31307
31308 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
31309 because this rule is automatically generated.
31310 (grub-mkrescue): Removed for the same reason as above.
31311
31312 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
31313
31314 Migrate to GNU General Public License Version 3.
31315
31316 * COPYING: Replaced with the plain text version of GPLv3.
31317
31318 * config.guess: Updated from gnulib.
31319 * config.sub: Likewise.
31320
31321 * geninit.sh: Output a GPLv3 copyright notice.
31322 * geninitheader.sh: Likewise.
31323 * genmodsrc.sh: Likewise.
31324 * gensymlist.sh.in: Likewise.
31325
31326 * boot/i386/pc/boot.S: Upgraded to GPLv3.
31327 * boot/i386/pc/diskboot.S: Likewise.
31328 * boot/i386/pc/pxeboot.S: Likewise.
31329 * commands/blocklist.c: Likewise.
31330 * commands/boot.c: Likewise.
31331 * commands/cat.c: Likewise.
31332 * commands/cmp.c: Likewise.
31333 * commands/configfile.c: Likewise.
31334 * commands/echo.c: Likewise.
31335 * commands/help.c: Likewise.
31336 * commands/ls.c: Likewise.
31337 * commands/search.c: Likewise.
31338 * commands/terminal.c: Likewise.
31339 * commands/test.c: Likewise.
31340 * commands/videotest.c: Likewise.
31341 * commands/i386/cpuid.c: Likewise.
31342 * commands/i386/pc/halt.c: Likewise.
31343 * commands/i386/pc/play.c: Likewise.
31344 * commands/i386/pc/reboot.c: Likewise.
31345 * commands/i386/pc/vbeinfo.c: Likewise.
31346 * commands/i386/pc/vbetest.c: Likewise.
31347 * commands/ieee1275/halt.c: Likewise.
31348 * commands/ieee1275/reboot.c: Likewise.
31349 * commands/ieee1275/suspend.c: Likewise.
31350 * disk/loopback.c: Likewise.
31351 * disk/lvm.c: Likewise.
31352 * disk/raid.c: Likewise.
31353 * disk/efi/efidisk.c: Likewise.
31354 * disk/i386/pc/biosdisk.c: Likewise.
31355 * disk/ieee1275/ofdisk.c: Likewise.
31356 * font/manager.c: Likewise.
31357 * fs/affs.c: Likewise.
31358 * fs/ext2.c: Likewise.
31359 * fs/fat.c: Likewise.
31360 * fs/fshelp.c: Likewise.
31361 * fs/hfs.c: Likewise.
31362 * fs/hfsplus.c: Likewise.
31363 * fs/iso9660.c: Likewise.
31364 * fs/jfs.c: Likewise.
31365 * fs/minix.c: Likewise.
31366 * fs/sfs.c: Likewise.
31367 * fs/ufs.c: Likewise.
31368 * fs/xfs.c: Likewise.
31369 * hello/hello.c: Likewise.
31370 * include/grub/acorn_filecore.h: Likewise.
31371 * include/grub/arg.h: Likewise.
31372 * include/grub/bitmap.h: Likewise.
31373 * include/grub/boot.h: Likewise.
31374 * include/grub/cache.h: Likewise.
31375 * include/grub/device.h: Likewise.
31376 * include/grub/disk.h: Likewise.
31377 * include/grub/dl.h: Likewise.
31378 * include/grub/elfload.h: Likewise.
31379 * include/grub/env.h: Likewise.
31380 * include/grub/err.h: Likewise.
31381 * include/grub/file.h: Likewise.
31382 * include/grub/font.h: Likewise.
31383 * include/grub/fs.h: Likewise.
31384 * include/grub/fshelp.h: Likewise.
31385 * include/grub/gzio.h: Likewise.
31386 * include/grub/hfs.h: Likewise.
31387 * include/grub/kernel.h: Likewise.
31388 * include/grub/loader.h: Likewise.
31389 * include/grub/lvm.h: Likewise.
31390 * include/grub/misc.h: Likewise.
31391 * include/grub/mm.h: Likewise.
31392 * include/grub/net.h: Likewise.
31393 * include/grub/normal.h: Likewise.
31394 * include/grub/parser.h: Likewise.
31395 * include/grub/partition.h: Likewise.
31396 * include/grub/pc_partition.h: Likewise.
31397 * include/grub/raid.h: Likewise.
31398 * include/grub/rescue.h: Likewise.
31399 * include/grub/script.h: Likewise.
31400 * include/grub/setjmp.h: Likewise.
31401 * include/grub/symbol.h: Likewise.
31402 * include/grub/term.h: Likewise.
31403 * include/grub/terminfo.h: Likewise.
31404 * include/grub/tparm.h: Likewise.
31405 * include/grub/types.h: Likewise.
31406 * include/grub/video.h: Likewise.
31407 * include/grub/efi/api.h: Likewise.
31408 * include/grub/efi/chainloader.h: Likewise.
31409 * include/grub/efi/console.h: Likewise.
31410 * include/grub/efi/console_control.h: Likewise.
31411 * include/grub/efi/disk.h: Likewise.
31412 * include/grub/efi/efi.h: Likewise.
31413 * include/grub/efi/pe32.h: Likewise.
31414 * include/grub/efi/time.h: Likewise.
31415 * include/grub/i386/linux.h: Likewise.
31416 * include/grub/i386/setjmp.h: Likewise.
31417 * include/grub/i386/types.h: Likewise.
31418 * include/grub/i386/efi/kernel.h: Likewise.
31419 * include/grub/i386/efi/loader.h: Likewise.
31420 * include/grub/i386/efi/time.h: Likewise.
31421 * include/grub/i386/pc/biosdisk.h: Likewise.
31422 * include/grub/i386/pc/boot.h: Likewise.
31423 * include/grub/i386/pc/chainloader.h: Likewise.
31424 * include/grub/i386/pc/console.h: Likewise.
31425 * include/grub/i386/pc/init.h: Likewise.
31426 * include/grub/i386/pc/kernel.h: Likewise.
31427 * include/grub/i386/pc/loader.h: Likewise.
31428 * include/grub/i386/pc/memory.h: Likewise.
31429 * include/grub/i386/pc/multiboot.h: Likewise.
31430 * include/grub/i386/pc/serial.h: Likewise.
31431 * include/grub/i386/pc/time.h: Likewise.
31432 * include/grub/i386/pc/vbe.h: Likewise.
31433 * include/grub/i386/pc/vbeblit.h: Likewise.
31434 * include/grub/i386/pc/vbefill.h: Likewise.
31435 * include/grub/i386/pc/vbeutil.h: Likewise.
31436 * include/grub/i386/pc/vga.h: Likewise.
31437 * include/grub/ieee1275/ieee1275.h: Likewise.
31438 * include/grub/ieee1275/ofdisk.h: Likewise.
31439 * include/grub/powerpc/libgcc.h: Likewise.
31440 * include/grub/powerpc/setjmp.h: Likewise.
31441 * include/grub/powerpc/types.h: Likewise.
31442 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
31443 * include/grub/powerpc/ieee1275/console.h: Likewise.
31444 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
31445 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
31446 * include/grub/powerpc/ieee1275/loader.h: Likewise.
31447 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
31448 * include/grub/powerpc/ieee1275/time.h: Likewise.
31449 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
31450 * include/grub/sparc64/libgcc.h: Likewise.
31451 * include/grub/sparc64/setjmp.h: Likewise.
31452 * include/grub/sparc64/types.h: Likewise.
31453 * include/grub/sparc64/ieee1275/console.h: Likewise.
31454 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31455 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31456 * include/grub/sparc64/ieee1275/time.h: Likewise.
31457 * include/grub/util/biosdisk.h: Likewise.
31458 * include/grub/util/getroot.h: Likewise.
31459 * include/grub/util/lvm.h: Likewise.
31460 * include/grub/util/misc.h: Likewise.
31461 * include/grub/util/raid.h: Likewise.
31462 * include/grub/util/resolve.h: Likewise.
31463 * io/gzio.c: Likewise.
31464 * kern/device.c: Likewise.
31465 * kern/disk.c: Likewise.
31466 * kern/dl.c: Likewise.
31467 * kern/elf.c: Likewise.
31468 * kern/env.c: Likewise.
31469 * kern/err.c: Likewise.
31470 * kern/file.c: Likewise.
31471 * kern/fs.c: Likewise.
31472 * kern/loader.c: Likewise.
31473 * kern/main.c: Likewise.
31474 * kern/misc.c: Likewise.
31475 * kern/mm.c: Likewise.
31476 * kern/parser.c: Likewise.
31477 * kern/partition.c: Likewise.
31478 * kern/rescue.c: Likewise.
31479 * kern/term.c: Likewise.
31480 * kern/efi/efi.c: Likewise.
31481 * kern/efi/init.c: Likewise.
31482 * kern/efi/mm.c: Likewise.
31483 * kern/i386/dl.c: Likewise.
31484 * kern/i386/efi/init.c: Likewise.
31485 * kern/i386/efi/startup.S: Likewise.
31486 * kern/i386/pc/init.c: Likewise.
31487 * kern/i386/pc/lzo1x.S: Likewise.
31488 * kern/i386/pc/startup.S: Likewise.
31489 * kern/ieee1275/ieee1275.c: Likewise.
31490 * kern/powerpc/cache.S: Likewise.
31491 * kern/powerpc/dl.c: Likewise.
31492 * kern/powerpc/ieee1275/cmain.c: Likewise.
31493 * kern/powerpc/ieee1275/crt0.S: Likewise.
31494 * kern/powerpc/ieee1275/init.c: Likewise.
31495 * kern/powerpc/ieee1275/openfw.c: Likewise.
31496 * kern/sparc64/cache.S: Likewise.
31497 * kern/sparc64/dl.c: Likewise.
31498 * kern/sparc64/ieee1275/init.c: Likewise.
31499 * kern/sparc64/ieee1275/openfw.c: Likewise.
31500 * loader/efi/chainloader.c: Likewise.
31501 * loader/efi/chainloader_normal.c: Likewise.
31502 * loader/i386/efi/linux.c: Likewise.
31503 * loader/i386/efi/linux_normal.c: Likewise.
31504 * loader/i386/pc/chainloader.c: Likewise.
31505 * loader/i386/pc/chainloader_normal.c: Likewise.
31506 * loader/i386/pc/linux.c: Likewise.
31507 * loader/i386/pc/linux_normal.c: Likewise.
31508 * loader/i386/pc/multiboot.c: Likewise.
31509 * loader/i386/pc/multiboot_normal.c: Likewise.
31510 * loader/powerpc/ieee1275/linux.c: Likewise.
31511 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31512 * normal/arg.c: Likewise.
31513 * normal/cmdline.c: Likewise.
31514 * normal/command.c: Likewise.
31515 * normal/completion.c: Likewise.
31516 * normal/execute.c: Likewise.
31517 * normal/function.c: Likewise.
31518 * normal/lexer.c: Likewise.
31519 * normal/main.c: Likewise.
31520 * normal/menu.c: Likewise.
31521 * normal/menu_entry.c: Likewise.
31522 * normal/misc.c: Likewise.
31523 * normal/parser.y: Likewise.
31524 * normal/script.c: Likewise.
31525 * normal/i386/setjmp.S: Likewise.
31526 * normal/powerpc/setjmp.S: Likewise.
31527 * normal/sparc64/setjmp.S: Likewise.
31528 * partmap/acorn.c: Likewise.
31529 * partmap/amiga.c: Likewise.
31530 * partmap/apple.c: Likewise.
31531 * partmap/gpt.c: Likewise.
31532 * partmap/pc.c: Likewise.
31533 * partmap/sun.c: Likewise.
31534 * term/gfxterm.c: Likewise.
31535 * term/terminfo.c: Likewise.
31536 * term/efi/console.c: Likewise.
31537 * term/i386/pc/console.c: Likewise.
31538 * term/i386/pc/serial.c: Likewise.
31539 * term/i386/pc/vesafb.c: Likewise.
31540 * term/i386/pc/vga.c: Likewise.
31541 * term/ieee1275/ofconsole.c: Likewise.
31542 * util/biosdisk.c: Likewise.
31543 * util/console.c: Likewise.
31544 * util/genmoddep.c: Likewise.
31545 * util/getroot.c: Likewise.
31546 * util/grub-emu.c: Likewise.
31547 * util/grub-mkdevicemap.c: Likewise.
31548 * util/grub-probe.c: Likewise.
31549 * util/lvm.c: Likewise.
31550 * util/misc.c: Likewise.
31551 * util/raid.c: Likewise.
31552 * util/resolve.c: Likewise.
31553 * util/update-grub.in: Likewise.
31554 * util/update-grub_lib.in: Likewise.
31555 * util/grub.d/00_header.in: Likewise.
31556 * util/grub.d/10_hurd.in: Likewise.
31557 * util/grub.d/10_linux.in: Likewise.
31558 * util/i386/efi/grub-install.in: Likewise.
31559 * util/i386/efi/grub-mkimage.c: Likewise.
31560 * util/i386/pc/grub-install.in: Likewise.
31561 * util/i386/pc/grub-mkimage.c: Likewise.
31562 * util/i386/pc/grub-mkrescue.in: Likewise.
31563 * util/i386/pc/grub-setup.c: Likewise.
31564 * util/i386/pc/misc.c: Likewise.
31565 * util/powerpc/ieee1275/grub-install.in: Likewise.
31566 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
31567 * util/powerpc/ieee1275/misc.c: Likewise.
31568 * video/bitmap.c: Likewise.
31569 * video/video.c: Likewise.
31570 * video/i386/pc/vbe.c: Likewise.
31571 * video/i386/pc/vbeblit.c: Likewise.
31572 * video/i386/pc/vbefill.c: Likewise.
31573 * video/i386/pc/vbeutil.c: Likewise.
31574 * video/readers/tga.c: Likewise.
31575
31576 2007-07-02 Robert Millan <rmh@aybabtu.com>
31577
31578 * conf/i386-efi.rmk: Replace obsolete reference to
31579 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
31580 with util/getroot.c.
31581 * conf/powerpc-ieee1275.rmk: Likewise.
31582 * conf/sparc64-ieee1275.rmk: Likewise.
31583
31584 * util/grub-emu.c (main): Fix unchecked pointer handling.
31585
31586 2007-07-02 Robert Millan <rmh@aybabtu.com>
31587
31588 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
31589 invocation to fail, in order to support partition-less media.
31590
31591 * util/i386/pc/grub-install.in: Likewise.
31592
31593 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
31594 which fs or partmap modules are needed (akin to its sister scripts).
31595
31596 Also use grub-probe to get rid of unportable /proc/mounts check.
31597
31598 Print the same informational message that the other scripts do, before
31599 exiting.
31600
31601 2007-06-23 Robert Millan <rmh@aybabtu.com>
31602
31603 * util/update-grub_lib.in (font_path): New function. Determine whether
31604 a font file can be found and, if so, echo the GRUB path to it.
31605
31606 * util/update-grub.in: Handle multiple terminals depending on user
31607 input, platform availability and font file presence. Propagate
31608 variables of our findings to /etc/grub.d/ children.
31609
31610 * util/grub.d/00_header.in: Handle multiple terminals, based on
31611 environment setup by update-grub.
31612
31613 2007-06-23 Robert Millan <rmh@aybabtu.com>
31614
31615 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
31616
31617 2007-06-21 Robert Millan <rmh@aybabtu.com>
31618
31619 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
31620 indicate end of data section in kernel image.
31621 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
31622 GRUB_KERNEL_MACHINE_DATA_END.
31623
31624 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
31625 space for it.
31626 * kern/i386/efi/startup.S: Likewise.
31627
31628 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
31629 during image generation. Implement --prefix option to override this
31630 patch.
31631 * util/i386/efi/grub-mkimage.c: Likewise.
31632
31633 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
31634 code to make path relative to its root into a separate function.
31635
31636 * util/i386/pc/grub-install.in: Use newly provided
31637 make_system_path_relative_to_its_root() to convert ${grubdir}, then
31638 pass the result to grub-install --prefix.
31639
31640 2007-06-13 Robert Millan <rmh@aybabtu.com>
31641
31642 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
31643 DEFAULT_DEVICE_MAP.
31644 * util/grub-emu.c: Use above definitions from misc.h instead of
31645 defining them.
31646 * util/grub-mkdevicemap.c: Likewise.
31647 * util/i386/pc/grub-setup.c: Likewise.
31648 * util/grub-probe.c: Likewise.
31649 (probe): Abort with grub_util_error() when either
31650 grub_guess_root_device or grub_util_get_grub_dev fails.
31651
31652 2007-06-12 Robert Millan <rmh@aybabtu.com>
31653
31654 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
31655 "pager" assignment.
31656 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
31657 "pcdata".
31658 * util/grub-probe.c (probe): Likewise for "drive_name".
31659
31660 2007-06-11 Robert Millan <rmh@aybabtu.com>
31661
31662 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
31663 not just the cdrom one.
31664
31665 2007-06-11 Robert Millan <rmh@aybabtu.com>
31666
31667 * util/i386/pc/grub-mkrescue.in: Add "set -e".
31668 Add --pkglibdir=DIR option to override pkglibdir.
31669 Mention --image-type=TYPE in help output.
31670 Fix --grub-mkimage (it was a no-op).
31671 Abort gracefully when no parameter is given.
31672
31673 2007-06-11 Robert Millan <rmh@aybabtu.com>
31674
31675 * util/i386/pc/grub-mkrescue.in: New file.
31676 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
31677 * Makefile.in: Handle bin_SCRIPTS.
31678
31679 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
31680
31681 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
31682 list of video modes.
31683
31684 2007-06-06 Robert Millan <rmh@aybabtu.com>
31685
31686 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
31687 file doesn't exist, or if it is in a filesystem grub can't read.
31688
31689 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
31690 not abort if GRUB_DRIVE could not be defined. Rearrange generated
31691 header comment to fit in 80 columns when the variables are resolved.
31692
31693 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
31694 could be identified by update-grub. Remove redundant check for
31695 unifont.pff existence (since convert_system_path_to_grub_path now
31696 handles that).
31697
31698 2007-06-04 Robert Millan <rmh@aybabtu.com>
31699
31700 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
31701
31702 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
31703
31704 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
31705
31706 2007-06-04 Robert Millan <rmh@aybabtu.com>
31707
31708 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
31709
31710 * include/grub/partition.h: Declare grub_apple_partition_map_init and
31711 grub_apple_partition_map_fini.
31712
31713 * util/biosdisk.c
31714 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
31715 to access >2 TiB disks).
31716
31717 Print disk->total_sectors with %llu instead of %lu, since this
31718 variable is always 64-bit (prevents wrong disk size from being displayed
31719 on either >2 TiB disk or big-endian CPU).
31720
31721 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
31722 into a generic case that supports all (sane) partition maps.
31723
31724 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
31725 breaks big-endian.
31726
31727 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
31728 and grub_apple_partition_map_fini() after that.
31729
31730 2007-06-01 Robert Millan <rmh@aybabtu.com>
31731
31732 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
31733
31734 * util/grub.d/00_header.in: Only enable gfxterm when
31735 convert_system_path_to_grub_path() succeeds.
31736
31737 2007-05-20 Robert Millan <rmh@aybabtu.com>
31738
31739 * util/update-grub_lib.in: New file.
31740 * DISTLIST: Add update-grub_lib.in.
31741 * conf/common.rmk: Generate update-grub_lib and install it in
31742 $(lib_DATA).
31743 * Makefile.in: Add install routine for $(lib_DATA).
31744
31745 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
31746 function provided by update-grub_lib to support arbitrary paths of
31747 unifont.pff.
31748 * util/update-grub.in: Use convert_system_path_to_grub_path() to
31749 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
31750
31751 2007-05-19 Robert Millan <rmh@aybabtu.com>
31752
31753 * commands/i386/cpuid.c: New module.
31754 * DISTLIST: Add it.
31755 * conf/i386-efi.rmk: Enable cpuid.mod.
31756 * conf/i386-pc.rmk: Likewise.
31757
31758 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31759
31760 * kern/disk.c (grub_disk_read): Check return value of
31761 grub_realloc().
31762
31763 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31764
31765 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
31766 arrays.
31767 * disk/raid.c (grub_raid_open): Likewise.
31768
31769 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31770
31771 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
31772 stack instead of on the heap.
31773
31774 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
31775 before doing a read on it.
31776
31777 * configure.ac: Only use -fno-stack-protector for the target
31778 environment.
31779
31780 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31781
31782 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
31783 __attribute_ ((unused)) to mode_type argument.
31784
31785 * util/getroot.c (grub_guess_root_device): Fix #endif.
31786
31787 * kern/misc.c (memcmp): Fix prototype.
31788
31789 * include/grub/partition.h [GRUB_UTIL]
31790 (grub_gpt_partition_map_init): Add prototype.
31791 (grub_gpt_partition_map_fini): Likewise.
31792
31793 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
31794 at the right place.
31795
31796 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
31797 (grub_fat_read_data): Likewise.
31798 (grub_fat_find_dir): Likewise.
31799
31800 * font/manager.c (find_glyph): Make table a const.
31801 (grub_font_get_glyph): Remove bitmap from if statement.
31802
31803 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
31804
31805 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
31806 code, first search for device in /dev/mapper, then in /dev.
31807 (grub_util_get_grub_dev): New function.
31808 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
31809 prototype.
31810 * util/grub-probe.c (probe): Remove check for RAID, call
31811 grub_util_get_grub_dev() instead of
31812 grub_util_biosdisk_get_grub_dev().
31813 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
31814 grub_util_biosdisk_get_grub_dev().
31815 * util/i386/pc/grub-setup.c (main): Likewise.
31816
31817 2007-05-16 Robert Millan <rmh@aybabtu.com>
31818
31819 * DISTLIST: Update for the latest changes.
31820 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
31821 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
31822 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
31823 grub/util/biosdisk.h.
31824 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
31825 grub/util/biosdisk.h.
31826
31827 2007-05-16 Robert Millan <rmh@aybabtu.com>
31828
31829 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
31830
31831 2007-05-16 Robert Millan <rmh@aybabtu.com>
31832
31833 * util/i386/efi/grub-install.in: New.
31834 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
31835 newly added grub-install.
31836 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
31837 include.
31838 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
31839 grub/util/biosdisk.h.
31840 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
31841 grub/util/biosdisk.h.
31842
31843 2007-05-16 Robert Millan <rmh@aybabtu.com>
31844
31845 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
31846 * include/grub/util/biosdisk.h: ... here.
31847 * util/i386/pc/biosdisk.c: Moved to ...
31848 * util/biosdisk.c: ... here.
31849 * util/i386/pc/getroot.c: Moved to ...
31850 * util/getroot.c: ... here.
31851 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
31852 * util/grub-mkdevicemap.c: ... here.
31853 * util/i386/pc/grub-probe.c: Moved to ...
31854 * util/grub-probe.c: ... here.
31855
31856 2007-05-15 Robert Millan <rmh@aybabtu.com>
31857
31858 * util/update-grub.in: Remove duplicated line in grub.cfg header
31859 message.
31860
31861 2007-05-13 Robert Millan <rmh@aybabtu.com>
31862
31863 * util/update-grub.in: Fix a few assumptions about the devices holding
31864 /, /boot and /boot/grub being the same.
31865 * util/grub.d/00_header.in: Likewise.
31866 * util/grub.d/10_hurd.in: Likewise.
31867 * util/grub.d/10_linux.in: Likewise.
31868
31869 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
31870 patterns. Use that to define the `.old' suffix as older than `'.
31871
31872 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
31873
31874 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
31875 the grub.cfg header message.
31876
31877 2007-05-11 Robert Millan <rmh@aybabtu.com>
31878
31879 * util/update-grub.in: Create device.map if it doesn't already exist,
31880 before attempting to run grub-probe.
31881 Check for grub-probe and grub-mkdevicemap with the same code
31882 grub-install is using.
31883 Remove test mode.
31884
31885 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
31886
31887 * Makefile.in: Add the datarootdir autoconf variable.
31888
31889 2007-05-09 Robert Millan <rmh@aybabtu.com>
31890
31891 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
31892 fail gracefully if dev->disk->partition == NULL.
31893
31894 2007-05-07 Robert Millan <rmh@aybabtu.com>
31895
31896 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
31897 determine partition map module.
31898 * util/i386/pc/grub-install.in: Use this feature to decide which
31899 partition module to load, instead of hardcoding pc and gpt.
31900
31901 2007-05-07 Robert Millan <rmh@aybabtu.com>
31902
31903 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
31904 source directory differs from build directory.
31905
31906 2007-05-05 Robert Millan <rmh@aybabtu.com>
31907
31908 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
31909 initialisation.
31910
31911 2007-05-05 Robert Millan <rmh@aybabtu.com>
31912
31913 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
31914
31915 2007-05-05 Robert Millan <rmh@aybabtu.com>
31916
31917 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
31918 command-line arguments via ${GRUB_CMDLINE_LINUX}.
31919
31920 2007-05-05 Robert Millan <rmh@aybabtu.com>
31921
31922 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
31923 (grub_probe_SOURCES): Likewise.
31924 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
31925 GPT and initialize dos_part and bsd_part accordingly.
31926 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
31927 install_bsd_part.
31928 (main): Activate gpt module for use during partition identification,
31929 and deactivate it afterwards.
31930 * util/i386/pc/grub-install.in: Add gpt module to core.img.
31931 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
31932 partition identification, and deactivate it afterwards.
31933
31934 2007-05-05 Robert Millan <rmh@aybabtu.com>
31935
31936 * term/i386/pc/console.c (grub_console_fini): Call
31937 grub_term_set_current() before grub_term_unregister().
31938
31939 2007-05-04 Robert Millan <rmh@aybabtu.com>
31940
31941 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
31942 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
31943 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
31944 and update-grub_DATA.
31945 * conf/common.rmk: Build and install update-grub components.
31946 * conf/common.mk: Regenerate.
31947 * util/update-grub.in: New. Core of update-grub.
31948 * util/grub.d/00_header.in: New. Generates grub.cfg header.
31949 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
31950 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
31951 * util/grub.d/README: New. Document grub.d directory layout.
31952
31953 2007-05-01 Robert Millan <rmh@aybabtu.com>
31954
31955 * util/grub-emu.c: Move initialization functions
31956 grub_util_biosdisk_init() and grub_init_all() before
31957 grub_util_biosdisk_get_grub_dev(), which relies on them.
31958
31959 2007-04-19 Robert Millan <rmh@aybabtu.com>
31960
31961 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
31962 it is used later.
31963
31964 2007-04-18 Jerone Young <jerone@gmail.com>
31965
31966 * kernel/elf.c: Add missing parenthesis for conditional statement
31967 stanza.
31968
31969 2007-04-10 Jerone Young <jerone@gmail.com>
31970
31971 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
31972 continue on and look for device node with real device name.
31973
31974 2007-04-10 Jerone Young <jerone@gmail.com>
31975
31976 * configure.ac: Add argument for autoconf to use transformation
31977 ability.
31978 * Makefile.in: Add autoconf package transformation code.
31979 * util/i386/pc/grub-install.in: Likewise.
31980 * util/powerpc/ieee1275/grub-install.in: Likewise.
31981
31982 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31983
31984 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
31985 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
31986 (EXT2_REVISION): Likewise.
31987 (EXT2_INODE_SIZE): Likewise.
31988 (struct grub_ext2_block_group): Added a missing member
31989 "used_dirs".
31990 (grub_ext2_read_inode): Divide by the inode size in a superblock
31991 instead of 128 to obtain INODES_PER_BLOCK.
31992 Use the macro EXT2_INODE_SIZE instead of directly using
31993 SBLOCK->INODE_SIZE.
31994
31995 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31996
31997 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
31998 superblock instead of the structure size to compute an
31999 offset. This fixes the problem that GRUB could not read a
32000 filesystem when inode size is different from 128-byte.
32001
32002 2007-03-05 Marco Gerards <marco@gnu.org>
32003
32004 * normal/main.c (read_config_file): When "menu" is not set, create
32005 an initial context.
32006
32007 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
32008
32009 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
32010 (HEAP_LIMIT): New macro.
32011 (grub_claim_heap): Claim memory up to `heaplimit'.
32012
32013 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
32014
32015 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
32016 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
32017 (_start): Likewise.
32018 (grub_arch_modules_addr): Return address after `_end'.
32019 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
32020 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
32021 (add_segments): Calculate `_end' from phdr size and location.
32022 (ALIGN_UP): Moved to ...
32023 * include/grub/misc.h: here.
32024 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32025 New macro.
32026 (GRUB_IEEE1275_MODULE_BASE): Removed.
32027
32028 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32029
32030 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
32031 loop boundary.
32032
32033 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32034
32035 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
32036 All users updated.
32037 (grub_elf64_load_hook_t): Likewise.
32038 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
32039 debug output.
32040
32041 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32042
32043 * kern/mm.c: Update copyright.
32044 (grub_mm_debug): Correct syntax error.
32045 (grub_mm_dump_free): New function.
32046 (grub_debug_free): Call `grub_free'.
32047 * include/grub/mm.h: Update copyright.
32048 (grub_mm_dump_free): Add declaration.
32049
32050 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
32051
32052 * include/grub/ieee1275/ieee1275.h: Update copyright.
32053 * kern/powerpc/ieee1275/init.c: Likewise.
32054 * kern/powerpc/ieee1275/openfw.c: Likewise.
32055
32056 * loader/powerpc/ieee1275/linux.c: Likewise.
32057 * include/grub/elfload.h: Likewise.
32058 * kern/elf.c: Likewise.
32059 (grub_elf32_load): Pass `base' and `size' parameters. Update all
32060 callers.
32061 (grub_elf64_load): Likewise.
32062 (grub_elf32_load_segment): Move to a nested function.
32063 (grub_elf64_load_segment): Likewise.
32064
32065 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
32066
32067 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
32068 prototype.
32069 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
32070 (grub_heap_len): Likewise.
32071 (HEAP_SIZE): New macro.
32072 (grub_claim_heap): New function.
32073 (grub_machine_init): Don't claim heap directly. Call
32074 `grub_claim_heap'.
32075 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
32076 (grub_available_iterate): New function.
32077
32078 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
32079
32080 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
32081 * configure.ac: Use it for testing the HOST and TARGET compilers.
32082
32083 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
32084
32085 * Makefile.in (enable_grub_emu): New variable.
32086 * configure.ac (--enable-grub-emu): New option.
32087 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
32088 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
32089 * conf/i386-pc.rmk: Likewise.
32090 * conf/powerpc-ieee1275.rmk: Likewise.
32091 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
32092
32093 2006-12-12 Marco Gerards <marco@gnu.org>
32094
32095 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
32096
32097 * kern/env.c (grub_env_unset): Don't free the member `value' when
32098 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
32099 pointer.
32100
32101 * normal/main.c (current_menu): Removed.
32102 (free_menu): Unset the `menu' environment variable.
32103 (grub_normal_menu_addentry): Make use of the environment variable
32104 `menu', instead of using the global `current_menu'. Allocate
32105 memory for the sourcecode of this entry.
32106 (read_config_file): New argument `nested', changed all callers.
32107 Only in the case of a new context, initialize a new menu. Set the
32108 `menu' environment variable.
32109 (grub_normal_execute): Don't set and unset the environment
32110 variable `menu' here anymore. Only free the menu when leaving the
32111 context.
32112
32113 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
32114 leak.
32115
32116 2006-12-11 Marco Gerards <marco@gnu.org>
32117
32118 * normal/menu_entry.c (run): Fix off by one bug so the last line
32119 is executed. Move the loader check to outside the loop.
32120
32121 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
32122
32123 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
32124
32125 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
32126
32127 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
32128 the number of sectors. Reported by Andrey Shuvikov
32129 <mr_hyro@yahoo.com>.
32130
32131 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
32132
32133 * kern/disk.c (grub_disk_read): When there is a read error, always
32134 try to read only the necessary data.
32135
32136 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
32137 disk/raid.c.
32138 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
32139 prototype.
32140 [GRUB_UTIL] (grub_raid_fini): Likewise.
32141 [GRUB_UTIL] (grub_lvm_init): Likewise.
32142 [GRUB_UTIL] (grub_lvm_fini): Likewise.
32143 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
32144 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
32145 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
32146 and grub_raid_fini().
32147
32148 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
32149
32150 * include/grub/types.h (__unused): Rename to UNUSED.
32151 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
32152 (grub_elf64_size): Likewise.
32153
32154 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
32155
32156 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
32157 grub_error_push and grub_error_pop in the error-handling path.
32158 (grub_elf32_load_segment): Only call grub_file_read with non-zero
32159 length.
32160
32161 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
32162
32163 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
32164 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32166 (kernel_elf_SOURCES): Likewise.
32167 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
32168 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
32169 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32170 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32171 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
32172 (elf_mod_SOURCES): New variable.
32173 (elf_mod_CFLAGS): Likewise.
32174 (elf_mod_LDFLAGS): Likewise.
32175 * include/grub/types.h (__unused): New macro.
32176 * include/grub/elfload.h: New file.
32177 * kern/elf.c: Likewise.
32178 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
32179 (ELF32_LOADMASK): New macro.
32180 (ELF64_LOADMASK): Likewise.
32181 (vmlinux): Removed.
32182 (grub_linux_load32): New function.
32183 (grub_linux_load64): Likewise.
32184 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
32185 Use grub_elf_t instead of grub_file_t.
32186
32187 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
32188
32189 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
32190 `catch_result' to struct set_color_args.
32191
32192 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32193
32194 * normal/menu.c: Include grub/script.h.
32195 * normal/menu_entry.c: Likewise.
32196 * include/grub/normal.h: Do not include grub/script.h.
32197
32198 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32199
32200 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
32201
32202 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32203
32204 * kern/disk.c (grub_disk_open): Print debug messages when opening a
32205 disk.
32206 (grub_disk_close): Print debug messages when closing a disk.
32207 (grub_disk_read): Print debug messages when disk read fails.
32208 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
32209 filesystem type.
32210 * kern/partition.c: Include misc.h.
32211 (grub_partition_iterate): Print debug messages when detecting
32212 partition type.
32213
32214 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32215
32216 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
32217 is negative.
32218 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
32219
32220 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
32221
32222 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
32223 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
32224
32225 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
32226
32227 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
32228 instead of sizeof(lv). Patch by Michael Guntsche.
32229
32230 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
32231
32232 * disk/lvm.c: Rename VGS to VG_LIST.
32233 (grub_lvm_iterate): Change VGS->LV to VG-LV.
32234 (grub_lvm_open): Likewise.
32235 Thanks to Michael Guntsche for finding this bug.
32236
32237 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32238
32239 * configure.ac (AC_INIT): Bumped to 1.95.
32240
32241 2006-10-14 Robert Millan <rmh@aybabtu.com>
32242
32243 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
32244 with "/dev/.static/dev/md".
32245
32246 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
32247
32248 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
32249 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
32250 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
32251 DRIVE_NAME are always freed.
32252
32253 * util/i386/pc/biosdisk.c (make_device_name): Add one into
32254 DOS_PART, as a DOS partition is counted from one instead of zero
32255 now. Reported by Robert Millan.
32256
32257 2006-10-14 Robert Millan <rmh@aybabtu.com>
32258
32259 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
32260 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
32261 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
32262 string returned by grub_guess_root_device.
32263 * util/i386/pc/grub-setup.c: Likewise.
32264 * util/i386/pc/grub-probefs.c: Likewise.
32265
32266 * util/i386/pc/grub-probefs.c: Rename to ...
32267 * util/i386/pc/grub-probe.c: ... this.
32268 * DISTLIST: Remove grub-probefs, add grub-probe.
32269 * conf/i386-efi.rmk: Likewise.
32270 * conf/i386-pc.rmk: Likewise.
32271 * util/i386/pc/grub-install.in: Likewise.
32272
32273 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
32274 choose which information we want to print.
32275
32276 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
32277
32278 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
32279 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
32280 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
32281 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
32282 video/readers/tga.c and video/i386/pc/vbeutil.c.
32283
32284 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
32285
32286 Added support for RAID and LVM.
32287
32288 * disk/lvm.c: New file.
32289 * disk/raid.c: Likewise.
32290 * include/grub/lvm.h: Likewise.
32291 * include/grub/raid.h: Likewise.
32292 * include/grub/util/lvm.h: Likewise.
32293 * include/grub/util/raid.h: Likewise.
32294 * util/lvm.c: Likewise.
32295 * util/raid.c: Likewise.
32296
32297 * include/grub/disk.h (grub_disk_dev_id): Add
32298 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
32299 (grub_disk_get_size): New prototype.
32300 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
32301 returns a partition.
32302 (grub_disk_get_size): New function.
32303
32304 * kern/i386/pc/init.c (make_install_device): Copy the prefix
32305 verbatim if grub_install_dos_part is -2.
32306
32307 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
32308 and LVM devices.
32309
32310 * util/i386/pc/grub-setup.c (setup): New argument
32311 MUST_EMBED. Force embedding of GRUB when the argument is
32312 true. Close FILE before returning.
32313 (main): Add support for RAID and LVM.
32314
32315 * conf/common.rmk: Add RAID and LVM modules.
32316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
32317 util/lvm.c.
32318 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
32319
32320 * kern/misc.c (grub_strstr): New function.
32321 * include/grub/misc.h (grub_strstr): New prototype.
32322
32323 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
32324
32325 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
32326
32327 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
32328
32329 * kern/misc.c (grub_strtoull): Guess the base only if not
32330 specified.
32331
32332 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32333
32334 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
32335 PowerMac support.
32336
32337 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32338
32339 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
32340
32341 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
32342 Remove `flags' argument. All callers changed.
32343 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
32344 (IEEE1275_IHANDLE_INVALID): New variable.
32345 (IEEE1275_CELL_INVALID): New variable.
32346 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32347 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
32348 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
32349 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
32350 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
32351 codes from Open Firmware. All callers updated.
32352 (grub_ieee1275_next_property): Directly return Open Firmware return
32353 code.
32354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32355 Standardize error checking from `grub_ieee1275_get_property'.
32356 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
32357 `devalias' to `aliases'. Correct comments. Consolidate error paths.
32358
32359 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32360
32361 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
32362 `instance_to_package_args' to `instance_to_path_args'.
32363
32364 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
32365 `grub_ieee1275_chosen'.
32366
32367 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
32368 `grub_ieee1275_interpret'.
32369
32370 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
32371
32372 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
32373
32374 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
32375
32376 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
32377 (__cmpdi): Likewise.
32378
32379 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
32380 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
32381 `grub_ssize_t'.
32382
32383 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
32384
32385 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
32386 to type `grub_ssize_t'.
32387 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
32388
32389 2006-09-22 Marco Gerards <marco@gnu.org>
32390
32391 * normal/script.c (grub_script_create_cmdmenu): Skip leading
32392 newlines.
32393
32394 2006-09-22 Marco Gerards <marco@gnu.org>
32395
32396 * commands/echo.c: New file.
32397
32398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
32399
32400 * conf/common.rmk (echo_mod_SOURCES): New variable.
32401 (echo_mod_CFLAGS): Likewise.
32402 (echo_mod_LDFLAGS): Likewise.
32403
32404 2006-09-22 Marco Gerards <marco@gnu.org>
32405
32406 * normal/main.c (get_line): Malloc memory instead of using
32407 preallocated memory. Removed the arguments `cmdline' and
32408 `max_len'. Updated all callers.
32409
32410 2006-09-22 Marco Gerards <marco@gnu.org>
32411
32412 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
32413 (normal_mod_DEPENDENCIES): Likewise.
32414
32415 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
32416 (normal_mod_DEPENDENCIES): Likewise.
32417
32418 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
32419
32420 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
32421
32422 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
32423 programs.
32424 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
32425 (normal_mod_DEPENDENCIES): Likewise.
32426 * conf/i386-pc.mk: Regenerate.
32427 * conf/i386-efi.mk: Likewise
32428 * conf/common.mk: Likewise.
32429 * conf/powerpc-ieee1275.mk: Likewise.
32430 * conf/sparc64-ieee1275.mk: Likewise.
32431
32432 2006-09-22 Robert Millan <rmh@aybabtu.com>
32433
32434 Sync with i386 version.
32435 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
32436 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
32437
32438 2006-09-21 Robert Millan <rmh@aybabtu.com>
32439
32440 Import from GRUB Legacy (lib/device.c):
32441 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
32442 (init_device_map) [__linux__]: Add support for I2O devices.
32443
32444 2006-09-14 Marco Gerards <marco@gnu.org>
32445
32446 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
32447 `-melf_i386'.
32448
32449 2006-09-14 Robert Millan <rmh@aybabtu.com>
32450
32451 * util/i386/pc/grub-install.in: Skip menu.lst when removing
32452 /boot/grub/*.lst.
32453
32454 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
32455
32456 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
32457 before adding it to device.map.
32458
32459 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
32460
32461 * genmk.rb: Let GCC generate dependencies the first time it
32462 compiles a file; using the -MD option.
32463 * conf/common.mk: Regenerate.
32464 * conf/i386-pc.mk: Likewise.
32465 * conf/i386-efi.mk: Likewise.
32466 * conf/powerpc-ieee1275.mk: Likewise.
32467 * conf/sparc64-ieee1275.mk: Likewise.
32468
32469 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
32470
32471 Move the prototypes of grub_setjmp and grub_longjmp to
32472 cpu/setjmp.h, so that each architecture may specify different
32473 attributes.
32474
32475 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
32476 (grub_longjmp): Likewise.
32477 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
32478 (grub_longjmp): Likewise.
32479 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
32480 (grub_longjmp): Likewise.
32481
32482 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
32483 [!GRUB_UTIL] (grub_longjmp): Removed.
32484
32485 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
32486
32487 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
32488 "color!" method does not return any value.
32489
32490 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32491
32492 * include/grub/bitmap.h: New file.
32493
32494 * include/grub/i386/pc/vbeutil.h: Likewise.
32495
32496 * video/bitmap.c: Likewise.
32497
32498 * video/readers/tga.c: Likewise.
32499
32500 * video/i386/pc/vbeutil.c: Likewise.
32501
32502 * commands/videotest.c: Code cleanup and updated to reflect to new
32503 video API.
32504
32505 * term/gfxterm.c: Likewise.
32506
32507 * video/video.c: Likewise.
32508
32509 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
32510 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
32511 (bitmap_mod_SOURCES): New entry.
32512 (bitmap_mod_CFLAGS): Likewise.
32513 (bitmap_mod_LDFLAGS): Likewise.
32514 (tga_mod_SOURCES): Likewise.
32515 (tga_mod_CFLAGS): Likewise.
32516 (tga_mod_LDFLAGS): Likewise.
32517
32518 * include/grub/video.h (grub_video_blit_operators): New enum type.
32519 (grub_video_render_target): Changed as forward declaration and moved
32520 actual definition to be video driver specific.
32521 (grub_video_adapter.blit_bitmap): Added blitting operator.
32522 (grub_video_adapter.blit_render_target): Likewise.
32523 (grub_video_blit_bitmap): Likewise.
32524 (grub_video_blit_render_target): Likewise.
32525
32526 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
32527 driver specific render target definition.
32528 (grub_video_vbe_map_rgba): Added driver internal helper.
32529 (grub_video_vbe_unmap_color): Updated to use
32530 grub_video_i386_vbeblit_info.
32531 (grub_video_vbe_get_video_ptr): Likewise.
32532
32533 * include/grub/i386/pc/vbeblit.h
32534 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
32535 grub_video_i386_vbeblit_info.
32536 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
32537 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
32538 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
32539 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
32540 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
32541 (grub_video_i386_vbeblit_index_index): Likewise.
32542 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
32543 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
32544 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
32545 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
32546 operator.
32547 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
32548 operator.
32549
32550 * video/i386/pc/vbeblit.c: Updated to reflect changes on
32551 include/grub/i386/pc/vbeblit.h.
32552
32553 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
32554 Updated to use grub_video_i386_vbeblit_info.
32555 (grub_video_i386_vbefill_R8G8B8): Likewise.
32556 (grub_video_i386_vbefill_index): Likewise.
32557 (grub_video_i386_vbefill): Added generic filler.
32558
32559 * video/i386/pc/vbefill.c: Updated to reflect changes on
32560 include/grub/i386/pc/vbefill.h.
32561
32562 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
32563 grub_video_i386_vbeblit_info.
32564 (grub_video_vbe_unmap_color): Likewise.
32565 (grub_video_vbe_blit_glyph): Likewise.
32566 (grub_video_vbe_scroll): Likewise.
32567 (grub_video_vbe_draw_pixel): Removed function.
32568 (grub_video_vbe_get_pixel): Likewise.
32569 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
32570 updated code to use it.
32571 (common_blitter): Added common blitter for render target and bitmap.
32572 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
32573 (grub_video_vbe_blit_render_target): Likewise.
32574
32575 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
32576
32577 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
32578 is in text mode if there is no console control protocol instance
32579 available.
32580
32581 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32582
32583 * include/grub/video.h: Code cleanup.
32584
32585 * include/grub/i386/pc/vbe.h: Likewise.
32586
32587 * video/i386/pc/vbe.c: Likewise.
32588
32589 * video/i386/pc/vbeblit.c: Likewise.
32590
32591 * video/i386/pc/vbefill.c: Likewise.
32592
32593 * video/video.c: Likewise. Also added more comments.
32594
32595 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32596
32597 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
32598 (struct grub_biosdisk_dap): Likewise.
32599
32600 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
32601 linkage settings for all functions.
32602
32603 2006-07-12 Marco Gerards <marco@gnu.org>
32604
32605 * configure.ac (--enable-mm-debug): Fix typo.
32606
32607 * genkernsyms.sh.in: Use proper quoting for `CC'.
32608
32609 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
32610
32611 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
32612 (normal_mod_ASFLAGS): Remove "-m32".
32613
32614 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
32615
32616 * util/misc.c: Include config.h.
32617 [!HAVE_MEMALIGN]: Do not include malloc.h.
32618 (grub_memalign): Use posix_memalign, if present. Then, use
32619 memalign, if present. Otherwise, emit an error.
32620
32621 * util/grub-emu.c: Do not include malloc.h.
32622
32623 * include/grub/util/misc.h: Include unistd.h. This is required for
32624 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
32625 D. Eades III <hde@foobar-qux.org>.
32626
32627 * configure.ac (AC_GNU_SOURCE): Added.
32628 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
32629 type.
32630
32631 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
32632
32633 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
32634 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
32635
32636 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
32637
32638 * include/grub/types.h (grub_host_addr_t): Rename to
32639 grub_target_addr_t.
32640 (grub_host_off_t): Rename to grub_target_off_t.
32641 (grub_host_size_t): Rename to grub_target_size_t.
32642 (grub_host_ssize_t): Rename to grub_target_ssize_t.
32643 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
32644
32645 * include/grub/kernel.h (struct grub_module_header): Change type
32646 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
32647 (grub_module_info): Likewise.
32648
32649 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32650
32651 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
32652 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
32653 Velazquez <jesus.velazquez@gmail.com>.
32654
32655 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32656
32657 Count partitions from 1 instead of 0 in the string representation
32658 of partitions. Still use 0-based internally.
32659
32660 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
32661 (sun_partition_map_iterate): Use grub_partition_t instead of
32662 struct grub_partition *. Cast DESC->START_CYLINDER to
32663 grub_uint64_t after converting the endian.
32664 (sun_partition_map_probe): Subtract 1 for PARTNUM.
32665 (sun_partition_map_get_name): Add 1 to P->INDEX.
32666
32667 * partmap/pc.c (grub_partition_parse): Subtract 1 for
32668 PCDATA->DOS_PART.
32669 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
32670
32671 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
32672 zero instead of one.
32673 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
32674 (gpt_partition_map_get_name): Add 1 into P->INDEX.
32675
32676 * partmap/apple.c (apple_partition_map_iterate): Change the type
32677 of POS to unsigned.
32678 (apple_partition_map_probe): Subtract 1 for PARTNUM.
32679 (apple_partition_map_get_name): Add 1 into P->INDEX.
32680
32681 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
32682 of POS to unsigned.
32683 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
32684 calculate the offset of a partition.
32685 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
32686 (amiga_partition_map_get_name): Add 1 into P->INDEX.
32687
32688 * partmap/acorn.c (acorn_partition_map_find): Change the type of
32689 SECTOR to grub_disk_addr_t.
32690 (acorn_partition_map_iterate): Likewise.
32691 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
32692 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
32693 top.
32694 (acorn_partition_map_get_name): Add 1 into P->INDEX.
32695
32696 * kern/i386/pc/init.c (make_install_device): Add 1 into
32697 GRUB_INSTALL_DOS_PART.
32698
32699 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
32700 conditional.
32701
32702 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32703
32704 Clean up the code to support 64-bit addressing in disks and
32705 files. This change is not enough for filesystems yet.
32706
32707 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
32708 type of "start" to grub_uint64_t.
32709 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
32710 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
32711 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
32712 convert addresses.
32713
32714 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
32715 to grub_disk_addr_t.
32716
32717 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
32718 string.
32719
32720 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32721
32722 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
32723 to char *.
32724
32725 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
32726
32727 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
32728
32729 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
32730
32731 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
32732 to grub_off_t, to detect an error from grub_file_seek.
32733 (grub_multiboot_load_elf32): Likewise.
32734
32735 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
32736 maximum unsigned long value when an overflow is detected.
32737 (grub_strtoull): New function.
32738 (grub_divmod64): Likewise.
32739 (grub_lltoa): use grub_divmod64.
32740
32741 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
32742 grub_disk_addr_t.
32743 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
32744 the pointer to next character. Use grub_strtoull instead of
32745 grub_strtoul.
32746 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
32747 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
32748 respectively.
32749
32750 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
32751 return value is signed.
32752 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
32753 test if OFFSET is less than zero, as OFFSET is unsigned now.
32754
32755 * kern/disk.c (struct grub_disk_cache): Change the type of
32756 "sector" to grub_disk_addr_t.
32757 (grub_disk_cache_get_index): Change the type of SECTOR to
32758 grub_disk_addr_t. Calculate the hash with SECTOR casted to
32759 unsigned after shifting.
32760 (grub_disk_cache_invalidate): Change the type of SECTOR to
32761 grub_disk_addr_t.
32762 (grub_disk_cache_unlock): Likewise.
32763 (grub_disk_cache_store): Likewise.
32764 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
32765 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
32766 grub_disk_addr_t and grub_uint64_t, respectively.
32767 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
32768 body, as the value of OFFSET is tweaked by
32769 grub_disk_check_range. Change the types of START_SECTOR, LEN and
32770 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
32771 respectively.
32772 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
32773 body, as the value of OFFSET is tweaked by
32774 grub_disk_check_range. Change the types of LEN and N to
32775 grub_size_t.
32776
32777 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
32778 and "saved_offset" to grub_off_t.
32779 (test_header): Cast BUF to char *.
32780 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
32781 to char *.
32782 (grub_gzio_read): Change the types of OFFSET and SIZE to
32783 grub_off_t and grub_size_t, respectively.
32784
32785 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
32786 Removed.
32787 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
32788 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
32789 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
32790 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
32791 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
32792
32793 * include/grub/types.h (grub_off_t): Unconditionally set to
32794 grub_uint64_t.
32795 (grub_disk_addr_t): Changed to grub_uint64_t.
32796
32797 * include/grub/partition.h (struct grub_partition): Change the
32798 types of "start", "len" and "offset" to grub_disk_addr_t,
32799 grub_uint64_t and grub_disk_addr_t, respectively.
32800 (grub_partition_get_start): Return grub_disk_addr_t.
32801 (grub_partition_get_len): Return grub_uint64_t.
32802
32803 * include/grub/misc.h (grub_strtoull): New prototype.
32804 (grub_divmod64): Likewise.
32805
32806 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
32807 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
32808 grub_off_t, respectively.
32809 All callers and references changed.
32810
32811 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
32812 grub_size_t in "read".
32813 All callers and references changed.
32814
32815 * include/grub/file.h (struct grub_file): Change the types of
32816 "offset" and "size" to grub_off_t and grub_off_t,
32817 respectively. Change the type of SECTOR to grub_disk_addr_t in
32818 "read_hook".
32819 (grub_file_read): Change the type of LEN to grub_size_t.
32820 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
32821 grub_off_t.
32822 (grub_file_size): Return grub_off_t.
32823 (grub_file_tell): Likewise.
32824 All callers and references changed.
32825
32826 * include/grub/disk.h (struct grub_disk_dev): Change the types of
32827 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
32828 "write".
32829 (struct grub_disk): Change the type of "total_sectors" to
32830 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
32831 "read_hook".
32832 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
32833 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
32834 (grub_disk_write): Likewise.
32835 All callers and references changed.
32836
32837 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
32838 char * for grub_strncmp to silence gcc.
32839 (grub_iso9660_mount): Likewise.
32840 (grub_iso9660_mount): Likewise.
32841 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
32842 return statement.
32843 (grub_iso9660_iterate_dir): Likewise.
32844 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
32845
32846 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
32847 LEN to grub_disk_addr_t and grub_size_t, respectively.
32848
32849 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32850
32851 * fs/jfs.c (grub_jfs_read_file): Likewise.
32852
32853 * fs/minix.c (grub_jfs_read_file): Likewise.
32854
32855 * fs/sfs.c (grub_jfs_read_file): Likewise.
32856
32857 * fs/ufs.c (grub_jfs_read_file): Likewise.
32858
32859 * fs/xfs.c (grub_jfs_read_file): Likewise.
32860
32861 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
32862 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
32863 respectively.
32864
32865 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
32866 BLKNR to -1 instead of returning GRUB_ERRNO.
32867 (grub_ext2_read_file): Change the types of SECTOR and
32868 LEN to grub_disk_addr_t and grub_size_t, respectively.
32869
32870 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
32871 LEN to grub_disk_addr_t and grub_size_t, respectively.
32872
32873 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
32874 grub_file_read.
32875
32876 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
32877 string. Do not cast SECTOR explicitly.
32878
32879 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
32880 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
32881 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
32882 grub_disk_addr_t and grub_size_t, respectively. If the sector is
32883 over 2TB and LBA mode is not supported, raise an error.
32884 (get_safe_sectors): New function.
32885 (grub_biosdisk_read): Use get_safe_sectors.
32886 (grub_biosdisk_write): Likewise.
32887
32888 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
32889 (grub_efidisk_write): Likewise.
32890
32891 * disk/loopback.c (delete_loopback): Cosmetic changes.
32892 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
32893 correctly.
32894 (grub_loopback_open): Likewise.
32895 (grub_loopback_read): Likewise. Also, change the type of POS to
32896 grub_off_t, and fix the usage of grub_memset.
32897
32898 * commands/i386/pc/play.c: Include grub/machine/time.h.
32899
32900 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
32901 print FILE->SIZE.
32902
32903 * commands/configfile.c: Include grub/env.h.
32904
32905 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
32906 GRUB_ERRNO directly instead. Change the type of POS to
32907 grub_off_t. Follow the coding standard.
32908
32909 * commands/blocklist.c: Include grub/partition.h.
32910 (grub_cmd_blocklist): Return an error if the underlying device is
32911 not a disk. Take the starting sector of a partition into account,
32912 if a partition is used.
32913
32914 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
32915 a length field.
32916 (lba_mode): Support 64-bit addresses.
32917 (chs_mode): Likewise.
32918 (copy_buffer): Adapted to the new offsets of a length field and a
32919 segment field.
32920 (blocklist_default_start): Allocate 64-bit space.
32921
32922 * boot/i386/pc/boot.S (force_lba): Removed.
32923 (boot_drive): Moved to under KERNEL_SECTOR.
32924 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
32925 space.
32926 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
32927 is useless.
32928 (lba_mode): Refactored to support a 64-bit address. More size
32929 optimization.
32930 (setup_sectors): Likewise.
32931
32932 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32933
32934 * DISTLIST: Added include/grub/i386/linux.h. Removed
32935 include/grub/i386/pc/linux.h
32936
32937 * configure.ac (AC_INIT): Bumped to 1.94.
32938
32939 * config.guess: Updated from gnulib.
32940 * config.sub: Likewise.
32941 * install-sh: Likewise.
32942 * mkinstalldirs: Likewise.
32943
32944 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32945
32946 * conf/common.rmk (grub_modules_init.lst): Depended on
32947 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
32948 MODSRCFILES.
32949
32950 * genmk.rb (PModule::rule): Reverted the previous change.
32951
32952 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32953
32954 * conf/common.rmk (grub_modules_init.lst): Depends on
32955 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
32956 that the target does not exist before producing.
32957 (grub_modules_init.h): Remove the target before generating.
32958 (grub_emu_init.c): Likewise.
32959
32960 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
32961
32962 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
32963
32964 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
32965 for the target-specific tests. Make sure that we also have the
32966 up-to-date target variables for those tests.
32967
32968 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32969
32970 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
32971 (PModule::rule): Likewise.
32972
32973 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32974
32975 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
32976 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
32977 target-specific flags should be prefixed.
32978 (PModule::rule): Likewise.
32979
32980 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
32981
32982 * configure.ac (CMP): Check if cmp is available explicitly.
32983
32984 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
32985
32986 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
32987 (target_cpu): New variable.
32988 (pkglibdir): Use target_cpu instead of host_cpu.
32989
32990 * util/i386/pc/grub-install.in (host_cpu): Removed.
32991 (target_cpu): New variable.
32992 (pkglibdir): Use target_cpu instead of host_cpu.
32993
32994 * util/genmoddep.c: Removed.
32995
32996 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
32997 instead of GRUB_HOST_SIZEOF_VOID_P.
32998 * kern/dl.c: Likewise.
32999
33000 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
33001 ...
33002 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33003 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33004 (GRUB_TARGET_SIZEOF_LONG): ... this.
33005 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33006 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33007 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
33008 to ...
33009 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33010 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33011 (GRUB_TARGET_SIZEOF_LONG): ... this.
33012 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33013 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33014 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
33015 to ...
33016 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33017 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33018 (GRUB_TARGET_SIZEOF_LONG): ... this.
33019 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33020 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33021
33022 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
33023 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
33024 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
33025 instead of GRUB_HOST_SIZEOF_LONG.
33026 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
33027 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
33028 GRUB_CPU_WORDS_BIGENDIAN.
33029 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
33030 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
33031 grub_host_ssize_t.
33032
33033 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
33034 (genmoddep_SOURCES): Likewise.
33035 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
33036 (genmoddep_SOURCES): Likewise.
33037 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
33038 (genmoddep_SOURCES): Likewise.
33039 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
33040 Likewise.
33041 (genmoddep_SOURCES): Likewise.
33042
33043 * genmoddep.awk: New file.
33044
33045 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
33046 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
33047 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
33048 (PModule::rule): Likewise.
33049 (Program::rule): Likewise.
33050 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
33051 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
33052 respectively.
33053
33054 * configure.ac: Rewritten intensively to use host and target
33055 instead of build and host, respectively.
33056
33057 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
33058 (host_cpu): Removed.
33059 (target_cpu): New variable.
33060 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
33061 (BUILD_CC): Removed.
33062 (BUILD_CFLAGS): Likewise.
33063 (BUILD_CPPFLAGS): Likewise.
33064 (TARGET_CC): New variable.
33065 (TARGET_CFLAGS): Likewise.
33066 (TARGET_CPPFLAGS): Likewise.
33067 (TARGET_LDFLAGS): Likewise.
33068 (AWK): Likewise.
33069 (include): Use target_cpu instead of host_cpu.
33070 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
33071
33072 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
33073
33074 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
33075
33076 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
33077 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
33078 field 'false' to 'exec_on_false'.
33079 (grub_script_create_cmdif): Renamed argument names to reflect above
33080 changes.
33081
33082 * normal/execute.c (grub_script_execute_cmdif): Likewise.
33083
33084 * normal/script.c (grub_script_create_cmdif): Likewise.
33085
33086 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
33087
33088 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
33089 top.
33090 (grub_hfsplus_btree_recptr): Likewise.
33091 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
33092 FILEBLOCK both to pass a block number and store next block
33093 number.
33094 (grub_hfsplus_read_block): Rewritten heavily to support an extent
33095 overflow file correctly. Specify errors appropriately, because
33096 fshelp expects that GRUB_ERRNO is set when fails. Reuse
33097 grub_hfsplus_btree_recptr to get the pointer to a found key.
33098 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
33099 is found.
33100
33101 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
33102 linux.mod.
33103 (_linux_mod_SOURCES): New variable.
33104 (_linux_mod_CFLAGS): Likewise.
33105 (_linux_mod_LDFLAGS): Likewise.
33106 (linux_mod_SOURCES): Likewise.
33107 (linux_mod_CFLAGS): Likewise.
33108 (linux_mod_LDFLAGS): Likewise.
33109
33110 * DISTLIST: Added loader/i386/efi/linux.c,
33111 loader/i386/efi/linux_normal.c and
33112 include/grub/i386/efi/loader.h.
33113
33114 * loader/i386/efi/linux.c: New file.
33115 * loader/i386/efi/linux_normal.c: Likewise.
33116 * include/grub/i386/efi/loader.h: Likewise.
33117
33118 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
33119
33120 * commands/blocklist.c: New file.
33121
33122 * DISTLIST: Added commands/blocklist.c.
33123
33124 * term/efi/console.c (grub_console_highlight_color): Use a lighter
33125 color for the background, and a darker color for the foreground.
33126 (grub_console_checkkey): Return READ_KEY.
33127 (grub_console_cls): Set the background to
33128 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
33129
33130 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
33131
33132 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
33133 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
33134
33135 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
33136 prototype.
33137
33138 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
33139 BG. The spec is wrong again.
33140
33141 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
33142 prototype.
33143 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
33144
33145 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
33146 commands/blocklist.c.
33147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33148
33149 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
33150 (blocklist_mod_SOURCES): New variable.
33151 (blocklist_mod_CFLAGS): Likewise.
33152 (blocklist_mod_LDFLAGS): Likewise.
33153
33154 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
33155
33156 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
33157 duplication.
33158 (lba_mode): Use %eax more intensively to reduce the code size.
33159
33160 2006-05-20 Marco Gerards <marco@gnu.org>
33161
33162 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
33163
33164 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
33165 for `menuentry'.
33166 (script): Accept leading newlines.
33167 (newlines): New rule to describe 0 or more newlines.
33168 (commands): Accept `command' with trailing newline. Fixed the
33169 order in which arguments were passed to `grub_script_add_cmd'.
33170 Accept commands separated by newlines.
33171 (function): Changed to accept newlines.
33172 (menuentry) Rewritten.
33173
33174 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
33175 front of the list, instead of to the end.
33176
33177 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
33178
33179 * util/i386/pc/grub-install.in (bindir): New variable.
33180 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
33181 Shaver <lbgwjl@gmail.com>.
33182
33183 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
33184
33185 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
33186 grub/machine/linux.h
33187 * loader/i386/pc/linux.c: Likewise.
33188
33189 * include/grub/i386/pc/linux.h: Moved to ...
33190 * include/grub/i386/linux.h: ... here.
33191
33192 * include/grub/i386/linux.h (struct linux_kernel_params): New
33193 struct.
33194
33195 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
33196
33197 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
33198 checking.
33199 (grub_video_vbe_blit_glyph): Likewise.
33200 (grub_video_vbe_blit_bitmap): Likewise.
33201 (grub_video_vbe_blit_render_target): Likewise.
33202
33203 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
33204
33205 * configure.ac (--with-platform): Properly quote the square
33206 brackets.
33207
33208 2006-05-08 Marco Gerards <marco@gnu.org>
33209
33210 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
33211 this...
33212 (kernel_elf_HEADERS): ...to this. Updated all users.
33213 (grubof_symlist.c): Renamed from this...
33214 (kernel_elf_symlist.c): ...to this. Updated all users.
33215 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
33216 (grubof_SOURCES): Renamed from this...
33217 (kernel_elf_SOURCES): ...to this.
33218 (grubof_HEADERS): Renamed from this...
33219 (kernel_elf_HEADERS): ...to this.
33220 (grubof_CFLAGS): Renamed from this...
33221 (kernel_elf_CFLAGS): ...to this.
33222 (grubof_ASFLAGS): Renamed from this...
33223 (kernel_elf_ASFLAGS): ...to this.
33224 (grubof_LDFLAGS): Renamed from this...
33225 (kernel_elf_LDFLAGS): ...to this.
33226
33227 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
33228 this...
33229 (kernel_elf_HEADERS): ...to this. Updated all users.
33230 (grubof_symlist.c): Renamed from this...
33231 (kernel_elf_symlist.c): ...to this. Updated all users.
33232 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
33233 (grubof_SOURCES): Renamed from this...
33234 (kernel_elf_SOURCES): ...to this.
33235 (grubof_HEADERS): Renamed from this...
33236 (kernel_elf_HEADERS): ...to this.
33237 (grubof_CFLAGS): Renamed from this...
33238 (kernel_elf_CFLAGS): ...to this.
33239 (grubof_ASFLAGS): Renamed from this...
33240 (kernel_elf_ASFLAGS): ...to this.
33241 (grubof_LDFLAGS): Renamed from this...
33242 (kernel_elf_LDFLAGS): ...to this.
33243
33244 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
33245 `kernel.elf' instead of `grubof'.
33246
33247 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
33248
33249 Add --with-platform to configure. Use pkglibdir instead of
33250 pkgdatadir. This is reported by Roger Leigh.
33251
33252 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
33253 (host_vendor): Likewise.
33254 (host_os): Likewise.
33255 (pkgdatadir): Likewise.
33256 (platform): New variable.
33257 (pkglibdir): Likewise.
33258 Use PKGLIBDIR instead of PKGDATADIR.
33259
33260 * util/i386/pc/grub-install.in (datadir): Removed.
33261 (host_vendor): Likewise.
33262 (host_os): Likewise.
33263 (pkgdatadir): Likewise.
33264 (platform): New variable.
33265 (pkglibdir): Likewise.
33266 Use PKGLIBDIR instead of PKGDATADIR.
33267
33268 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
33269 instead of GRUB_DATADIR.
33270 (main): Likewise.
33271 * util/i386/pc/grub-mkimage.c (usage): Likewise.
33272 (main): Likewise.
33273 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33274 (main): Likewise.
33275
33276 * configure.ac (--with-platform): New option.
33277 Use PLATFORM instead of HOST_VENDOR to specify a platform.
33278
33279 * Makefile.in: Include a makefile based on PLATFORM instead of
33280 HOST_VENDOR.
33281 (pkgdatadir): Not appended by the machine type.
33282 (pkglibdir): Appended by the machine type.
33283 (host_vendor): Removed.
33284 (platform): New variable.
33285 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
33286 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
33287 (uninstall): Likewise.
33288
33289 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
33290
33291 Use the environment context in the menu. Remove the commands
33292 "default" and "timeout", and use variables instead.
33293
33294 * normal/menu.c: Include grub/env.h.
33295 (print_entry): Cast TITLE to silence gcc.
33296 (get_timeout): New function.
33297 (set_timeout): Likewise.
33298 (get_entry_number): Likewise.
33299 (run_menu): Use a default entry, a fallback entry and a timeout
33300 in the environment variables "default", "fallback" and
33301 "timeout". Also, tweak the default entry if it is not within the
33302 current menu entries.
33303 (grub_menu_run): Use a fallback entry in the environment variable
33304 "fallback".
33305
33306 * normal/main.c (read_config_file): Do not initialize
33307 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
33308 NEWMENU->TIMEOUT.
33309 (grub_normal_execute): Use a data slot to store the menu.
33310
33311 * include/grub/normal.h (struct grub_menu): Removed default_entry,
33312 fallback_entry and timeout.
33313 (struct grub_menu_list): Removed.
33314 (grub_menu_list_t): Likewise.
33315 (struct grub_context): Likewise.
33316 (grub_context_t): Likewise.
33317 (grub_context_get): Likewise.
33318 (grub_context_get_current_menu): Likewise.
33319 (grub_context_push_menu): Likewise.
33320 (grub_context_pop_menu): Likewise.
33321 (grub_default_init): Likewise.
33322 (grub_default_fini): Likewise.
33323 (grub_timeout_init): Likewise.
33324 (grub_timeout_fini): Likewise.
33325
33326 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
33327 and timeout.mod.
33328 (normal_mod_SOURCES): Removed normal/context.c.
33329
33330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
33331 commands/default.c, commands/timeout.c and normal/context.c.
33332 (normal_mod_SOURCES): Removed normal/context.c.
33333
33334 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
33335 commands/timeout.c and normal/context.c.
33336 (normal_mod_SOURCES): Removed normal/context.c.
33337
33338 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
33339 commands/default.c, commands/timeout.c and normal/context.c.
33340 (normal_mod_SOURCES): Removed normal/context.c.
33341
33342 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
33343 timeout.mod.
33344 (default_mod_SOURCES): Removed.
33345 (default_mod_CFLAGS): Likewise.
33346 (default_mod_LDFLAGS): Likewise.
33347 (timeout_mod_SOURCES): Removed.
33348 (timeout_mod_CFLAGS): Likewise.
33349 (timeout_mod_LDFLAGS): Likewise.
33350
33351 * DISTLIST: Removed commands/default.c, commands/timeout.c and
33352 normal/context.c.
33353
33354 * commands/default.c: Removed.
33355 * commands/timeout.c: Likewise.
33356 * normal/context.c: Likewise.
33357
33358 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
33359
33360 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
33361
33362 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
33363
33364 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
33365 "next" to "prev" for readability.
33366 (struct grub_env_sorted_var): New struct.
33367 (grub_env_context): Renamed to ...
33368 (initial_context): ... this.
33369 (grub_env_var_context): Renamed to ...
33370 (current_context): ... this.
33371 (grub_env_find): Look only at CURRENT_CONTEXT.
33372 (grub_env_context_open): Rewritten to copy exported variables from
33373 previous context.
33374 (grub_env_context_close): Rewritten according to the new
33375 scheme. Also, add an assertion to prevent the initial context from
33376 removed.
33377 (grub_env_insert): Removed the code for the sorted list.
33378 (grub_env_remove): Likewise.
33379 (grub_env_export): Simply mark the variable with
33380 GRUB_ENV_VAR_GLOBAL.
33381 (grub_env_set): A cosmetic change for naming consistency.
33382 (grub_env_get): Likewise.
33383 (grub_env_unset): Likewise.
33384 (grub_env_iterate): Rewritten to sort variables within this
33385 function.
33386 (grub_register_variable_hook): Fixed for naming consistency. Call
33387 grub_env_find again, only if NAME is not found at the first time.
33388 (mangle_data_slot_name): New function.
33389 (grub_env_set_data_slot): Likewise.
33390 (grub_env_get_data_slot): Likewise.
33391 (grub_env_unset_data_slot): Likewise.
33392
33393 * include/grub/env.h (grub_env_var_type): New enum.
33394 (GRUB_ENV_VAR_LOCAL): New constant.
33395 (GRUB_ENV_VAR_GLOBAL): Likewise.
33396 (GRUB_ENV_VAR_DATA): Likewise.
33397 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
33398 "type".
33399 (grub_env_set): Replace VAR with NAME for consistency.
33400 (grub_register_variable_hook): Likewise.
33401 (grub_env_export): Specify the name of the argument.
33402 (grub_env_set_data_slot): New prototype.
33403 (grub_env_get_data_slot): Likewise.
33404 (grub_env_unset_data_slot): Likewise.
33405
33406 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33407
33408 Extend the loader so that GRUB can accept a loader which comes
33409 back to GRUB when a loaded image exits. Also, this change adds
33410 support for a chainloader on EFI.
33411
33412 * term/efi/console.c: Include grub/misc.h.
33413 (grub_console_checkkey): Display a scan code on the top for
33414 debugging. This will be removed once the EFI port gets stable.
33415 Correct the scan code mapping.
33416
33417 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
33418 allocate memory from larger regions, in order to reduce the number
33419 of allocated regions. Otherwise, the MacOSX loader panics.
33420 (filter_memory_map): Avoid less than 1MB for compatibility with
33421 other loaders.
33422 (add_memory_regions): Allocate from the tail of a region, if
33423 possible, to avoid allocating a region near to 1MB, for the MacOSX
33424 loader.
33425
33426 * kern/efi/init.c (grub_efi_set_prefix): Specify
33427 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
33428
33429 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
33430 argument IMAGE_HANDLE and specify it to get a loaded image.
33431 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
33432 grub_efi_get_loaded_image.
33433 (grub_efi_get_filename): Divide the length by the size of
33434 grub_efi_char16_t.
33435 (grub_efi_get_device_path): New function.
33436 (grub_efi_print_device_path): Print End Device Path nodes. Divide
33437 the length by the size of grub_efi_char16_t for a file path device
33438 path node.
33439
33440 * kern/loader.c (grub_loader_noreturn): New variable.
33441 (grub_loader_set): Accept a new argument NORETURN. Set
33442 GRUB_LOADER_NORETURN to NORETURN.
33443 All callers changed.
33444 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
33445 grub_machine_fini.
33446
33447 * include/grub/efi/efi.h (grub_efi_get_device_path): New
33448 prototype.
33449 (grub_efi_get_loaded_image): Take an argument to specify an image
33450 handle.
33451
33452 * include/grub/loader.h (grub_loader_set): Added one more argument
33453 NORETURN.
33454
33455 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
33456 instead of grub_efi_open_protocol.
33457 (grub_efidisk_get_device_name): Likewise.
33458 (grub_efidisk_close): Print a newline.
33459 (grub_efidisk_get_device_handle): Fixed to use
33460 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
33461 GRUB_EFI_DEVICE_PATH_TYPE.
33462
33463 * disk/efi/efidisk.c (device_path_guid): Moved to ...
33464 * kern/efi/efi.c (device_path_guid): ... here.
33465
33466 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
33467 chain.mod.
33468 (kernel_mod_HEADERS): Added efi/disk.h.
33469 (_chain_mod_SOURCES): New variable.
33470 (_chain_mod_CFLAGS): Likewise.
33471 (_chain_mod_LDFLAGS): Likewise.
33472 (chain_mod_SOURCES): Likewise.
33473 (chain_mod_CFLAGS): Likewise.
33474 (chain_mod_LDFLAGS): Likewise.
33475
33476 * DISTLIST: Added include/grub/efi/chainloader.h,
33477 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
33478
33479 * include/grub/efi/chainloader.h: New file.
33480 * loader/efi/chainloader.c: Likewise.
33481 * loader/efi/chainloader_normal.c: Likewise.
33482
33483 2006-04-30 Marco Gerards <marco@gnu.org>
33484
33485 * commands/configfile.c (grub_cmd_source): New function.
33486 (GRUB_MOD_INIT): Register the commands `source' and `.'.
33487 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
33488
33489 2006-04-30 Marco Gerards <marco@gnu.org>
33490
33491 * normal/execute.c (grub_script_execute_cmd): Change the return
33492 type to `grub_err_t'. Correctly return the error.
33493 (grub_script_execute_cmdline): In case a command line is not a
33494 command or a function, try to interpret it as an assignment.
33495
33496 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33497
33498 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
33499 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
33500 skip a node whose name is obviously invalid as UTF-16,
33501 i.e. contains a NUL character. Stop the iteration when the last
33502 directory entry is found. Instead of using the return value of
33503 grub_hfsplus_btree_iterate_node, store the value in RET and use
33504 it, because the iterator can be stopped by the last directory
33505 entry.
33506
33507 2006-04-30 Marco Gerards <marco@gnu.org>
33508
33509 * include/grub/env.h (grub_env_export): New prototype. Reported
33510 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
33511
33512 2006-04-30 Marco Gerards <marco@gnu.org>
33513
33514 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
33515 size of the extents in a catalog file record.
33516
33517 2006-04-29 Marco Gerards <marco@gnu.org>
33518
33519 * commands/configfile.c (grub_cmd_configfile): Execute the
33520 configfile within its own context.
33521
33522 * include/grub/env.h (grub_env_context_open): New prototype.
33523 (grub_env_context_close): Likewise.
33524
33525 * kern/env.c (grub_env): Removed.
33526 (grub_env_sorted): Likewise.
33527 (grub_env_context): New variable.
33528 (grub_env_var_context): Likewise.
33529 (grub_env_find): Search both the active context and the global
33530 context.
33531 (grub_env_context_open): New function.
33532 (grub_env_context_close): Likewise.
33533 (grub_env_insert): Likewise.
33534 (grub_env_remove): Likewise.
33535 (grub_env_export): Likewise.
33536 (grub_env_set): Changed to use helper functions to avoid code
33537 duplication.
33538 (grub_env_iterate): Rewritten so both the current context and the
33539 global context are being used.
33540
33541 * normal/command.c (export_command): New function.
33542 (grub_command_init): Register the `export' function.
33543
33544 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
33545
33546 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
33547 explicitly to suppress gcc's warnings.
33548 * fs/fat.c (grub_fat_find_dir): Likewise.
33549 (grub_fat_label): Likewise.
33550 * fs/xfs.c (grub_xfs_read_inode): Likewise.
33551 (grub_xfs_mount): Likewise.
33552 (grub_xfs_label): Likewise.
33553 * fs/affs.c (grub_affs_mount): Likewise.
33554 (grub_affs_label): Likewise.
33555 (grub_affs_iterate_dir): Likewise.
33556 * fs/sfs.c (grub_sfs_mount): Likewise.
33557 (grub_sfs_iterate_dir): Likewise.
33558 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
33559 * fs/hfs.c (grub_hfs_mount): Likewise.
33560 (grub_hfs_cmp_catkeys): Likewise.
33561 (grub_hfs_find_dir): Likewise.
33562 (grub_hfs_dir): Likewise.
33563 (grub_hfs_label): Likewise.
33564 * fs/jfs.c (grub_jfs_mount): Likewise.
33565 (grub_jfs_opendir): Likewise.
33566 (grub_jfs_getent): Likewise.
33567 (grub_jfs_lookup_symlink): Likewise.
33568 (grub_jfs_label): Likewise.
33569 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
33570 (grub_hfsplus_iterate_dir): Likewise.
33571 (grub_hfsplus_btree_iterate_node): Made static.
33572
33573 * util/grub-emu.c (prefix): New variable.
33574 (grub_machine_set_prefix): New function.
33575 (main): Do not set the environment variable "prefix" here. Only
33576 set PREFIX, which is used later by grub_machine_set_prefix.
33577
33578 * include/grub/video.h: Do not include grub/symbol.h.
33579 (grub_video_register): Not exported. This symbol is not defined in
33580 the kernel.
33581 (grub_video_unregister): Likewise.
33582 (grub_video_iterate): Likewise.
33583 (grub_video_setup): Likewise.
33584 (grub_video_restore): Likewise.
33585 (grub_video_get_info): Likewise.
33586 (grub_video_get_blit_format): Likewise.
33587 (grub_video_set_palette): Likewise.
33588 (grub_video_get_palette): Likewise.
33589 (grub_video_set_viewport): Likewise.
33590 (grub_video_get_viewport): Likewise.
33591 (grub_video_map_color): Likewise.
33592 (grub_video_map_rgb): Likewise.
33593 (grub_video_map_rgba): Likewise.
33594 (grub_video_fill_rect): Likewise.
33595 (grub_video_blit_glyph): Likewise.
33596 (grub_video_blit_bitmap): Likewise.
33597 (grub_video_blit_render_target): Likewise.
33598 (grub_video_scroll): Likewise.
33599 (grub_video_swap_buffers): Likewise.
33600 (grub_video_create_render_target): Likewise.
33601 (grub_video_delete_render_target): Likewise.
33602 (grub_video_set_active_render_target): Likewise.
33603
33604 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
33605 Undefined.
33606 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
33607
33608 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
33609 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33610 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33611 instead of $(srcdir)/genkernsyms.sh.
33612
33613 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
33614 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33615 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33616 instead of $(srcdir)/genkernsyms.sh.
33617
33618 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
33619 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33620 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33621 instead of $(srcdir)/genkernsyms.sh.
33622
33623 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
33624 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33625 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33626 instead of $(srcdir)/genkernsyms.sh.
33627
33628 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
33629 genkernsyms.sh.
33630
33631 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
33632 genkernsyms.sh.
33633 (gensymlist.sh): New target.
33634 (genkernsyms.sh): Likewise.
33635
33636 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
33637 genkernsyms.sh.in and gensymlist.sh.in.
33638
33639 * genkernsyms.sh: Removed.
33640 * gensymlist.sh: Likewise.
33641
33642 * genkernsyms.sh.in: New file.
33643 * gensymlist.sh.in: Likewise.
33644
33645 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33646
33647 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
33648 clobber "prefix", since we may have already set it manually.
33649
33650 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33651
33652 * kern/misc.c (abort): New alias for grub_abort.
33653
33654 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
33655
33656 A new machine-specific function "grub_machine_set_prefix" is
33657 defined. This is called after loading modules, so that a prefix
33658 initialization can use modules. Also, this change adds an
33659 intensive debugging feature for the memory manager via the
33660 configure option "--enable-mm-debug".
33661
33662 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
33663 PART.LEN.
33664
33665 * kern/sparc64/ieee1275/init.c (abort): Removed.
33666 (grub_stop): Likewise.
33667 (grub_exit): New function.
33668 (grub_set_prefix): Renamed to ...
33669 (grub_machine_set_prefix): ... this.
33670 (grub_machine_init): Do not call grub_set_prefix.
33671
33672 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
33673 (grub_machine_set_prefix): ... this.
33674 (grub_machine_init): Do not call grub_set_prefix.
33675
33676 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
33677 (grub_machine_init): Do not set the prefix here.
33678
33679 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
33680
33681 * kern/efi/init.c: Include grub/mm.h.
33682 (grub_efi_set_prefix): New function.
33683
33684 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
33685 (grub_efi_get_filename): New function.
33686 (grub_print_device_path): Renamed to ...
33687 (grub_efi_print_device_path): ... this.
33688
33689 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
33690 [MM_DEBUG] (grub_realloc): Likewise.
33691 [MM_DEBUG] (grub_free): Likewise.
33692 [MM_DEBUG] (grub_memalign): Likewise.
33693 [MM_DEBUG] (grub_mm_debug): New variable.
33694 [MM_DEBUG] (grub_debug_malloc): New function.
33695 [MM_DEBUG] (grub_debug_free): New function.
33696 [MM_DEBUG] (grub_debug_realloc): New function.
33697 [MM_DEBUG] (grub_debug_memalign): New function.
33698
33699 * kern/misc.c (grub_abort): Print a newline to distinguish
33700 the message.
33701
33702 * kern/main.c (grub_main): Call grub_machine_set_prefix and
33703 grub_set_root_dev after loading modules. This is necessary when
33704 setting a prefix depends on modules.
33705
33706 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
33707 (grub_efi_print_device_path): ... this.
33708 (grub_efi_get_filename): New prototype.
33709 (grub_efi_set_prefix): Likewise.
33710
33711 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
33712 and grub/disk.h.
33713 (grub_efidisk_get_device_handle): New prototype.
33714 (grub_efidisk_get_device_name): Likewise.
33715
33716 * include/grub/mm.h: Include config.h.
33717 (MM_DEBUG): Removed.
33718 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
33719 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
33720 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
33721 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
33722 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
33723 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
33724 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
33725 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
33726 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
33727
33728 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
33729
33730 * disk/efi/efidisk.c: Include grub/partition.h.
33731 (iterate_child_devices): New function.
33732 (add_device): First, compare only last device path nodes, so that
33733 devices are sorted by the types.
33734 (grub_efidisk_get_device_handle): New function.
33735 (grub_efidisk_get_device_name): Likewise.
33736
33737 * configure.ac (--enable-mm-debug): New option to enable the
33738 memory manager debugging feature. This makes the binary much
33739 bigger, so is disabled by default.
33740
33741 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
33742
33743 Use grub_abort instead of grub_stop, and grub_exit must be
33744 define in each architecture now. Also, this change adds support
33745 for EFI disks.
33746
33747 * util/i386/pc/grub-probefs.c: Include grub/term.h.
33748 (grub_getkey): New function.
33749 (grub_term_get_current): Likewise.
33750
33751 * util/i386/pc/grub-setup.c: Include grub/term.h.
33752 (grub_getkey): New function.
33753 (grub_term_get_current): Likewise.
33754
33755 * util/misc.c (grub_stop): Renamed to ...
33756 (grub_exit): ... this.
33757
33758 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
33759 (grub_exit): ... this.
33760 (grub_machine_init): Use grub_abort instead of abort.
33761 (grub_stop): Removed.
33762
33763 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
33764 abort.
33765
33766 * kern/i386/pc/startup.S (grub_exit): New function.
33767 (cold_reboot): New label.
33768
33769 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
33770 (grub_efi_init): Call grub_efidisk_init.
33771 (grub_efi_fini): Call grub_efidisk_fini.
33772
33773 * kern/efi/efi.c: Include grub/mm.h.
33774 (grub_efi_console_control_guid): Renamed to ...
33775 (console_control_guid): ... this.
33776 (grub_efi_loaded_image_guid): Renamed to ...
33777 (loaded_image_guid): ... this.
33778 (grub_efi_locate_handle): New function.
33779 (grub_efi_open_protocol): Likewise.
33780 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
33781 GRUB_EFI_CONSOLE_CONTROL_GUID.
33782 (grub_efi_exit): Removed.
33783 (grub_stop): Likewise.
33784 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
33785 (grub_exit): New function.
33786 (grub_print_device_path): Likewise.
33787
33788 * kern/rescue.c (grub_rescue_cmd_exit): New function.
33789 (grub_enter_rescue_mode): Register "exit".
33790
33791 * kern/misc.c (grub_real_dprintf): A cosmetic change.
33792 (grub_abort): New function.
33793
33794 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
33795
33796 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
33797
33798 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
33799
33800 * include/grub/efi/efi.h (grub_efi_exit): Removed.
33801 (grub_print_device_path): New prototype.
33802 (grub_efi_locate_handle): Likewise.
33803 (grub_efi_open_protocol): Likewise.
33804
33805 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
33806 * disk/efi/efidisk.c: Likewise.
33807
33808 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
33809
33810 * include/grub/efi/console_control.h
33811 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
33812
33813 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
33814 last 8 bytes as an array.
33815 (GRUB_EFI_DISK_IO_GUID): New macro.
33816 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
33817 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
33818 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
33819 grub_uint8_t.
33820 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
33821 (struct grub_efi_device_path): Rename the member "sub_type" to
33822 "subtype".
33823 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
33824 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
33825 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
33826 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
33827 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
33828 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
33829 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
33830 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
33831 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
33832 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
33833 (struct grub_efi_pci_device_path): New structure.
33834 (grub_efi_pci_device_path_t): New type.
33835 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
33836 (struct grub_efi_pccard_device_path): New structure.
33837 (grub_efi_pccard_device_path_t): New type.
33838 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
33839 (struct grub_efi_memory_mapped_device_path): New structure.
33840 (grub_efi_memory_mapped_device_path_t): New type.
33841 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
33842 (struct grub_efi_vendor_device_path): New structure.
33843 (grub_efi_vendor_device_path_t): New type.
33844 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
33845 (struct grub_efi_controller_device_path): New structure.
33846 (grub_efi_controller_device_path_t): New type.
33847 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
33848 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
33849 (struct grub_efi_acpi_device_path): New structure.
33850 (grub_efi_acpi_device_path_t): New type.
33851 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
33852 (struct grub_efi_expanded_acpi_device_path): New structure.
33853 (grub_efi_expanded_acpi_device_path_t): New type.
33854 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
33855 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
33856 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
33857 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
33858 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
33859 (struct grub_efi_atapi_device_path): New structure.
33860 (grub_efi_atapi_device_path_t): New type.
33861 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
33862 (struct grub_efi_fibre_channel_device_path): New structure.
33863 (grub_efi_fibre_channel_device_path_t): New type.
33864 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
33865 (struct grub_efi_1394_device_path): New structure.
33866 (grub_efi_1394_device_path_t): New type.
33867 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
33868 (struct grub_efi_usb_device_path): New structure.
33869 (grub_efi_usb_device_path_t): New type.
33870 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
33871 (struct grub_efi_usb_class_device_path): New structure.
33872 (grub_efi_usb_class_device_path_t): New type.
33873 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
33874 (struct grub_efi_i2o_device_path): New structure.
33875 (grub_efi_i2o_device_path_t): New type.
33876 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
33877 (struct grub_efi_mac_address_device_path): New structure.
33878 (grub_efi_mac_address_device_path_t): New type.
33879 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
33880 (struct grub_efi_ipv4_device_path): New structure.
33881 (grub_efi_ipv4_device_path_t): New type.
33882 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
33883 (struct grub_efi_ipv6_device_path): New structure.
33884 (grub_efi_ipv6_device_path_t): New type.
33885 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
33886 (struct grub_efi_infiniband_device_path): New structure.
33887 (grub_efi_infiniband_device_path_t): New type.
33888 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
33889 (struct grub_efi_uart_device_path): New structure.
33890 (grub_efi_uart_device_path_t): New type.
33891 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
33892 (struct grub_efi_vendor_messaging_device_path): New structure.
33893 (grub_efi_vendor_messaging_device_path_t): New type.
33894 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
33895 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
33896 (struct grub_efi_hard_drive_device_path): New structure.
33897 (grub_efi_hard_drive_device_path_t): New type.
33898 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
33899 (struct grub_efi_cdrom_device_path): New structure.
33900 (grub_efi_cdrom_device_path_t): New type.
33901 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
33902 (struct grub_efi_vendor_media_device_path): New structure.
33903 (grub_efi_vendor_media_device_path_t): New type.
33904 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
33905 (struct grub_efi_file_path_device_path): New structure.
33906 (grub_efi_file_path_device_path_t): New type.
33907 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
33908 (struct grub_efi_protocol_device_path): New structure.
33909 (grub_efi_protocol_device_path_t): New type.
33910 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
33911 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
33912 (struct grub_efi_bios_device_path): New structure.
33913 (grub_efi_bios_device_path_t): New type.
33914 (struct grub_efi_disk_io): New structure.
33915 (grub_efi_disk_io_t): New type.
33916 (struct grub_efi_block_io_media): New structure.
33917 (grub_efi_block_io_media_t): New type.
33918 (struct grub_efi_block_io): New structure.
33919 (grub_efi_block_io_t): New type.
33920
33921 * include/grub/misc.h (grub_stop): Removed.
33922 (grub_exit): New prototype.
33923 (grub_abort): Likewise.
33924
33925 * include/grub/disk.h (enum grub_disk_dev_id): Added
33926 GRUB_DISK_DEVICE_EFIDISK_ID.
33927
33928 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
33929 disk/efi/efidisk.c.
33930 (kernel_syms.lst): Remove the target if an error occurs.
33931
33932 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
33933
33934 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
33935 as it was simply too buggy.
33936
33937 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
33938
33939 * kern/misc.c (grub_lltoa): New function.
33940 (grub_vsprintf): Added support for the long long suffix,
33941 i.e. "ll".
33942
33943 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
33944
33945 * Makefile.in (LDFLAGS): Add variable.
33946 (LD): Remove variable.
33947 * configure.ac: Add -m32 to LDFLAGS.
33948 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
33949 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
33950 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
33951 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
33952 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
33953 variables.
33954 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
33955 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
33956 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
33957
33958 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
33959
33960 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
33961 length for unknown glyph.
33962
33963 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33964
33965 Add support for pre-loaded modules into the EFI port.
33966
33967 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
33968 completely. Accept one more argument DIR. The caller has changed.
33969
33970 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
33971
33972 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
33973 (grub_efi_loaded_image_guid): New variable.
33974 (grub_efi_get_loaded_image): New function.
33975 (grub_arch_modules_addr): Likewise.
33976
33977 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
33978 prototype.
33979
33980 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
33981 (struct grub_efi_loaded_image): New structure.
33982 (grub_efi_loaded_image_t): New type.
33983
33984 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33985
33986 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
33987 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
33988 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
33989
33990 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
33991
33992 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
33993
33994 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
33995
33996 * DISTLIST: Added include/grub/efi/console.h,
33997 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
33998 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
33999
34000 * include/grub/efi/console.h: New file.
34001 * include/grub/efi/time.h: Likewise.
34002 * include/grub/i386/efi/kernel.h: Likewise.
34003 * kern/efi/init.c: Likewise.
34004 * kern/efi/mm.c: Likewise.
34005 * term/efi/console.c: Likewise.
34006
34007 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
34008 (grub_stop): Removed.
34009 (grub_get_rtc): Likewise.
34010 (grub_machine_init): Simply call grub_efi_init.
34011 (grub_machine_fini): Call grub_efi_fini.
34012
34013 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
34014 (grub_efi_output_string): Removed.
34015 (grub_efi_stall): New function.
34016 (grub_stop): Likewise.
34017 (grub_get_rtc): Likewise.
34018
34019 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
34020 (grub_efi_stall): New prototype.
34021 (grub_efi_allocate_pages): Likewise.
34022 (grub_efi_free_pages): Likewise.
34023 (grub_efi_get_memory_map): Likewise.
34024 (grub_efi_mm_init): Likewise.
34025 (grub_efi_mm_fini): Likewise.
34026 (grub_efi_init): Likewise.
34027 (grub_efi_fini): Likewise.
34028
34029 * include/grub/i386/efi/time.h: Do not include
34030 grub/symbol.h. Include grub/efi/time.h.
34031 (GRUB_TICKS_PER_SECOND): Removed.
34032 (grub_get_rtc): Likewise.
34033
34034 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
34035 Added padding. The EFI spec is buggy.
34036 (GRUB_EFI_BLACK): New macro.
34037 (GRUB_EFI_BLUE): Likewise.
34038 (GRUB_EFI_GREEN): Likewise.
34039 (GRUB_EFI_CYAN): Likewise.
34040 (GRUB_EFI_RED): Likewise.
34041 (GRUB_EFI_MAGENTA): Likewise.
34042 (GRUB_EFI_BROWN): Likewise.
34043 (GRUB_EFI_LIGHTGRAY): Likewise.
34044 (GRUB_EFI_BRIGHT): Likewise.
34045 (GRUB_EFI_DARKGRAY): Likewise.
34046 (GRUB_EFI_LIGHTBLUE): Likewise.
34047 (GRUB_EFI_LIGHTGREEN): Likewise.
34048 (GRUB_EFI_LIGHTCYAN): Likewise.
34049 (GRUB_EFI_LIGHTRED): Likewise.
34050 (GRUB_EFI_LIGHTMAGENTA): Likewise.
34051 (GRUB_EFI_YELLOW): Likewise.
34052 (GRUB_EFI_WHITE): Likewise.
34053 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
34054 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
34055 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
34056 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
34057 (GRUB_EFI_BACKGROUND_RED): Likewise.
34058 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
34059 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
34060 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
34061 (GRUB_EFI_TEXT_ATTR): Likewise.
34062
34063 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
34064 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
34065 (kernel_mod_HEADERS): Added efi/time.h.
34066
34067 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
34068
34069 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
34070 include/grub/efi/api.h, include/grub/efi/console_control.h,
34071 include/grub/efi/efi.h, include/grub/efi/pe32.h,
34072 include/grub/i386/efi/time.h, kern/efi/efi.c,
34073 kern/i386/efi/init.c, kern/i386/efi/startup.S,
34074 and util/i386/efi/grub-mkimage.c.
34075
34076 * Makefile.in (RMKFILES): Added i386-efi.rmk.
34077
34078 * genmk.rb (PModule#rule): Do not export symbols if
34079 #{prefix}_EXPORTS is set to "no".
34080
34081 * conf/i386-efi.mk: New file.
34082 * conf/i386-efi.rmk: Likewise.
34083 * include/grub/efi/api.h: Likewise.
34084 * include/grub/efi/console_control.h: Likewise.
34085 * include/grub/efi/efi.h: Likewise.
34086 * include/grub/efi/pe32.h: Likewise.
34087 * include/grub/i386/efi/time.h: Likewise.
34088 * kern/efi/efi.c: Likewise.
34089 * kern/i386/efi/init.c: Likewise.
34090 * kern/i386/efi/startup.S: Likewise.
34091 * util/i386/efi/grub-mkimage.c: Likewise.
34092
34093 2006-04-17 Marco Gerards <marco@gnu.org>
34094
34095 * include/grub/script.h: Include <grub/parser.h> and
34096 "grub_script.tab.h".
34097 (struct grub_lexer_param): New struct.
34098 (struct grub_parser_param): Likewise.
34099 (grub_script_create_arglist): Pass the state in an argument.
34100 (grub_script_add_arglist): Likewise.
34101 (grub_script_create_cmdline): Likewise.
34102 (grub_script_create_cmdblock): Likewise.
34103 (grub_script_create_cmdif): Likewise.
34104 (grub_script_create_cmdmenu): Likewise.
34105 (grub_script_add_cmd): Likewise.
34106 (grub_script_arg_add): Likewise.
34107 (grub_script_lexer_ref): Likewise.
34108 (grub_script_lexer_deref): Likewise.
34109 (grub_script_lexer_record_start): Likewise.
34110 (grub_script_lexer_record_stop): Likewise.
34111 (grub_script_mem_record): Likewise.
34112 (grub_script_mem_record_stop): Likewise.
34113 (grub_script_malloc): Likewise.
34114 (grub_script_yylex): Likewise.
34115 (grub_script_yyparse): Likewise.
34116 (grub_script_yyerror): Likewise.
34117 (grub_script_yylex): Likewise.
34118 (grub_script_lexer_init): Return the state.
34119
34120 * normal/lexer.c (grub_script_lexer_state): Removed variable.
34121 (grub_script_lexer_done): Likewise.
34122 (grub_script_lexer_getline): Likewise.
34123 (grub_script_lexer_refs): Likewise.
34124 (script): Likewise.
34125 (newscript): Likewise.
34126 (record): Likewise.
34127 (recording): Likewise.
34128 (recordpos): Likewise.
34129 (recordlen): Likewise.
34130 (grub_script_lexer_init): Return the state instead of setting
34131 global variables.
34132 (grub_script_lexer_ref): Use the newly added argument for state
34133 instead of globals.
34134 (grub_script_lexer_deref): Likewise.
34135 (grub_script_lexer_record_start): Likewise.
34136 (grub_script_lexer_record_stop): Likewise.
34137 (recordchar): Likewise.
34138 (nextchar): Likewise.
34139 (grub_script_yylex2): Likewise.
34140 (grub_script_yylex): Likewise.
34141 (grub_script_yyerror): Likewise.
34142
34143 * normal/parser.y (func_mem): Removed variable.
34144 (menu_entry): Likewise.
34145 (err): Likewise.
34146 (%lex-param): New parser option.
34147 (%parse-param): Likewise.
34148 (script): Always return the AST.
34149 (argument): Pass the state around.
34150 (arguments): Likewise.
34151 (grubcmd): Likewise.
34152 (commands): Likewise.
34153 (function): Likewise.
34154 (menuentry): Likewise.
34155 (if_statement): Likewise.
34156 (if): Likewise.
34157
34158 * normal/script.c (grub_script_memused): Removed variable.
34159 (grub_script_parsed): Likewise.
34160 (grub_script_malloc): Added a state argument. Use that instead of
34161 global variables.
34162 (grub_script_mem_record): Likewise.
34163 (grub_script_mem_record_stop): Likewise.
34164 (grub_script_arg_add): Likewise.
34165 (grub_script_add_arglist): Likewise.
34166 (grub_script_create_cmdline): Likewise.
34167 (grub_script_create_cmdif): Likewise.
34168 (grub_script_create_cmdmenu): Likewise.
34169 (grub_script_add_cmd): Likewise.
34170 (grub_script_parse): Setup the state before calling the parser.
34171
34172 2006-04-16 Marco Gerards <marco@gnu.org>
34173
34174 * normal/command.c (grub_command_init): Remove the title command.
34175
34176 * normal/lexer.c (grub_script_yylex): Renamed from this...
34177 (grub_script_yylex2): ... to this.
34178 (grub_script_yylex): New function. Temporary
34179 introduced to filter some tokens.
34180 (grub_script_yyerror): Print a newline.
34181
34182 * normal/main.c (read_config_file): Output information about the
34183 lines that contain errors. Wait for a key after all lines have
34184 been processed. Don't return an empty menu.
34185
34186 * normal/parser.y (func_mem): Don't initialize.
34187 (menu_entry): Likewise.
34188 (err): New variable.
34189 (script): Don't return anything when an error was encountered.
34190 (ws, returns): Removed rules.
34191 (argument): Disabled concatenated variable support.
34192 (arguments): Remove explicit separators.
34193 (grubcmd): Likewise.
34194 (function): Likewise.
34195 (menuentry): Likewise.
34196 (if): Likewise.
34197 (commands): Likewise. Add error handling.
34198
34199 * normal/script.c (grub_script_create_cmdline): If
34200 `grub_script_parsed' is 0, assume the parser encountered an error.
34201
34202 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
34203
34204 * configure.ac: Add support for EFI. Fix the typo
34205 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
34206
34207 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
34208
34209 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
34210 foreign multibyte characters should be shown correctly.
34211
34212 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
34213
34214 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
34215 calculation.
34216 (read_config_file): Made it to close file before returning.
34217
34218 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
34219
34220 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
34221 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
34222 video/i386/pc/vbefill.c.
34223
34224 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
34225 video/i386/pc/vbefill.c.
34226
34227 * include/grub/video.h (grub_video_blit_format): New enum.
34228 (grub_video_mode_info): Added new member blit_format.
34229 (grub_video_get_blit_format): New function prototype.
34230
34231 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
34232 function prototype.
34233 (grub_video_vbe_map_rgb): Likewise.
34234 (grub_video_vbe_unmap_color): Likewise.
34235
34236 * include/grub/i386/pc/vbeblit.h: New file.
34237
34238 * include/grub/i386/pc/vbefill.h: New file.
34239
34240 * video/video.c (grub_video_get_blit_format): New function.
34241 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
34242 (grub_video_vbe_map_rgb): Likewise.
34243 (grub_video_vbe_unmap_color): Likewise.
34244
34245 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
34246 optimized fills.
34247 (grub_video_vbe_blit_render_target): Changed to use more optimized
34248 blits.
34249 (grub_video_vbe_setup): Added detection for optimized settings.
34250 (grub_video_vbe_create_render_target): Likewise.
34251
34252 * video/i386/pc/vbeblit.c: New file.
34253
34254 * video/i386/pc/vbefill.c: New file.
34255
34256 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
34257
34258 * font/manager.c (grub_font_get_glyph): Removed font fixup from
34259 here...
34260
34261 * util/unifont2pff.rb: ... and moved it to here. Improved argument
34262 parsing to support both hex and dec ranges. If filename was missing
34263 show usage information.
34264
34265 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
34266
34267 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
34268 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
34269
34270 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
34271 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
34272 (video_mod_SOURCES): Added.
34273 (video_mod_CFLAGS): Likewise.
34274 (video_mod_LDFLAGS): Likewise.
34275 (gfxterm_mod_SOURCES): Likewise.
34276 (gfxterm_mod_CFLAGS): Likewise.
34277 (gfxterm_mod_LDFLAGS): Likewise.
34278 (videotest_mod_SOURCES): Likewise.
34279 (videotest_mod_CFLAGS): Likewise.
34280 (videotest_mod_LDFLAGS): Likewise.
34281 (vesafb_mod_SOURCES): Removed.
34282 (vesafb_mod_CFLAGS): Likewise.
34283 (vesafb_mod_LDFLAGS): Likewise.
34284 (vga_mod_SOURCES): Likewise.
34285 (vga_mod_CFLAGS): Likewise.
34286 (vga_mod_LDFLAGS): Likewise.
34287
34288 * commands/videotest.c: New file.
34289
34290 * font/manager.c (fill_with_default_glyph): Modified to use
34291 grub_font_glyph.
34292 (grub_font_get_glyph): Likewise.
34293 (fontmanager): Renamed from this...
34294 (font_manager): ... to this.
34295
34296 * include/grub/font.h (grub_font_glyph): Added new structure.
34297 (grub_font_get_glyph): Modified to use grub_font_glyph.
34298
34299 * include/grub/misc.h (grub_abs): Added as inline function.
34300
34301 * include/grub/video.h: New file.
34302
34303 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
34304 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
34305 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
34306 (grub_vbe_get_controller_info): Renamed from this...
34307 (grub_vbe_bios_get_controller_info): ... to this.
34308 (grub_vbe_get_mode_info): Renamed from this...
34309 (grub_vbe_bios_get_mode_info): ... to this.
34310 (grub_vbe_set_mode): Renamed from this...
34311 (grub_vbe_bios_set_mode): ... to this.
34312 (grub_vbe_get_mode): Renamed from this...
34313 (grub_vbe_bios_get_mode): ... to this.
34314 (grub_vbe_set_memory_window): Renamed from this...
34315 (grub_vbe_bios_set_memory_window): ... to this.
34316 (grub_vbe_get_memory_window): Renamed from this...
34317 (grub_vbe_bios_get_memory_window): ... to this.
34318 (grub_vbe_set_scanline_length): Renamed from this...
34319 (grub_vbe_set_scanline_length): ... to this.
34320 (grub_vbe_get_scanline_length): Renamed from this...
34321 (grub_vbe_bios_get_scanline_length): ... to this.
34322 (grub_vbe_set_display_start): Renamed from this...
34323 (grub_vbe_bios_set_display_start): ... to this.
34324 (grub_vbe_get_display_start): Renamed from this...
34325 (grub_vbe_bios_get_display_start): ... to this.
34326 (grub_vbe_set_palette_data): Renamed from this...
34327 (grub_vbe_bios_set_palette_data): ... to this.
34328 (grub_vbe_set_pixel_rgb): Removed.
34329 (grub_vbe_set_pixel_index): Likewise.
34330
34331 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
34332 from this...
34333 (grub_vbe_bios_get_controller_info): ... to this.
34334 (grub_vbe_get_mode_info): Renamed from this...
34335 (grub_vbe_bios_get_mode_info): ... to this.
34336 (grub_vbe_set_mode): Renamed from this...
34337 (grub_vbe_bios_set_mode): ... to this.
34338 (grub_vbe_get_mode): Renamed from this...
34339 (grub_vbe_bios_get_mode): ... to this.
34340 (grub_vbe_set_memory_window): Renamed from this...
34341 (grub_vbe_bios_set_memory_window): ... to this.
34342 (grub_vbe_get_memory_window): Renamed from this...
34343 (grub_vbe_bios_get_memory_window): ... to this.
34344 (grub_vbe_set_scanline_length): Renamed from this...
34345 (grub_vbe_set_scanline_length): ... to this.
34346 (grub_vbe_get_scanline_length): Renamed from this...
34347 (grub_vbe_bios_get_scanline_length): ... to this.
34348 (grub_vbe_set_display_start): Renamed from this...
34349 (grub_vbe_bios_set_display_start): ... to this.
34350 (grub_vbe_get_display_start): Renamed from this...
34351 (grub_vbe_bios_get_display_start): ... to this.
34352 (grub_vbe_set_palette_data): Renamed from this...
34353 (grub_vbe_bios_set_palette_data): ... to this.
34354 (grub_vbe_bios_get_controller_info): Fixed problem with registers
34355 getting corrupted after calling it. Added more pushes and pops.
34356 (grub_vbe_bios_set_mode): Likewise.
34357 (grub_vbe_bios_get_mode): Likewise.
34358 (grub_vbe_bios_get_memory_window): Likewise.
34359 (grub_vbe_bios_set_scanline_length): Likewise.
34360 (grub_vbe_bios_get_scanline_length): Likewise.
34361 (grub_vbe_bios_get_display_start): Likewise.
34362 (grub_vbe_bios_set_palette_data): Likewise.
34363
34364 * normal/cmdline.c (cl_set_pos): Refresh the screen.
34365 (cl_insert): Likewise.
34366 (cl_delete): Likewise.
34367
34368 * term/gfxterm.c: New file.
34369
34370 * term/i386/pc/vesafb.c: Removed file.
34371
34372 * video/video.c: New file.
34373
34374 * video/i386/pc/vbe.c (real2pm): Added new function.
34375 (grub_video_vbe_draw_pixel): Likewise.
34376 (grub_video_vbe_get_video_ptr): Likewise.
34377 (grub_video_vbe_get_pixel): Likewise
34378 (grub_video_vbe_init): Likewise.
34379 (grub_video_vbe_fini): Likewise.
34380 (grub_video_vbe_setup): Likewise.
34381 (grub_video_vbe_get_info): Likewise.
34382 (grub_video_vbe_set_palette): Likewise.
34383 (grub_video_vbe_get_palette): Likewise.
34384 (grub_video_vbe_set_viewport): Likewise.
34385 (grub_video_vbe_get_viewport): Likewise.
34386 (grub_video_vbe_map_color): Likewise.
34387 (grub_video_vbe_map_rgb): Likewise.
34388 (grub_video_vbe_map_rgba): Likewise.
34389 (grub_video_vbe_unmap_color): Likewise.
34390 (grub_video_vbe_fill_rect): Likewise.
34391 (grub_video_vbe_blit_glyph): Likewise.
34392 (grub_video_vbe_blit_bitmap): Likewise.
34393 (grub_video_vbe_blit_render_target): Likewise.
34394 (grub_video_vbe_scroll): Likewise.
34395 (grub_video_vbe_swap_buffers): Likewise.
34396 (grub_video_vbe_create_render_target): Likewise.
34397 (grub_video_vbe_delete_render_target): Likewise.
34398 (grub_video_vbe_set_active_render_target): Likewise.
34399 (grub_vbe_set_pixel_rgb): Remove function.
34400 (grub_vbe_set_pixel_index): Likewise.
34401 (index_color_mode): Remove static variable.
34402 (active_mode): Likewise.
34403 (framebuffer): Likewise.
34404 (bytes_per_scan_line): Likewise.
34405 (grub_video_vbe_adapter): Added new static variable.
34406 (framebuffer): Likewise.
34407 (render_target): Likewise.
34408 (initial_mode): Likewise.
34409 (mode_in_use): Likewise.
34410 (mode_list): Likewise.
34411
34412 2006-03-10 Marco Gerards <marco@gnu.org>
34413
34414 * configure.ac (AC_INIT): Bumped to 1.93.
34415
34416 * DISTLIST: Added `include/grub/hfs.h'.
34417
34418 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
34419
34420 * boot/i386/pc/boot.S (general_error): Before looping, try INT
34421 18H, which might help the BIOS falling back to next boot media.
34422
34423 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
34424
34425 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
34426 Poe Chen <poe.poechen@gmail.com>.
34427
34428 2006-01-17 Marco Gerards <marco@gnu.org>
34429
34430 * include/grub/normal.h: Include <grub/script.h>.
34431 (grub_command_list): Removed struct.
34432 (grub_command_list_t): Removed type.
34433 (grub_menu_entry): Remove members `num' and `command_list'. Add
34434 members `commands' and `sourcecode'.
34435 * include/grub/script.h: Add inclusion guards.
34436 (grub_script_cmd_menuentry): New struct.
34437 (grub_script_execute_menuentry): New prototype.
34438 (grub_script_lexer_record_start): Likewise.
34439 (grub_script_lexer_record_stop): Likewise.
34440 * normal/execute.c (grub_script_execute_menuentry): New function.
34441 * normal/lexer.c (record, recording, recordpos, recordlen): New
34442 variables.
34443 (grub_script_lexer_record_start): New function.
34444 (grub_script_lexer_record_stop): Likewise.
34445 (recordchar): Likewise.
34446 (nextchar): Likewise.
34447 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
34448 2048 as the buffer size. Add the tokens `menuentry' and `@'.
34449 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
34450 (current_menu): New variable.
34451 (free_menu): Mainly rewritten.
34452 (grub_normal_menu_addentry): New function.
34453 (read_config_file): Rewritten.
34454 * normal/menu.c (run_menu_entry): Mainly rewritten.
34455 * normal/menu_entry.c (make_screen): Rewritten the code to insert
34456 the menu entry.
34457 (run): Mainly rewritten.
34458 * normal/parser.y (menu_entry): New variable.
34459 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
34460 (menuentry): New rule.
34461 (command): Add `menuentry'.
34462 (if_statement): Allow additional returns before `fi'.
34463 * normal/script.c (grub_script_create_cmdmenu): New function.
34464
34465 2006-01-03 Marco Gerards <marco@gnu.org>
34466
34467 * INSTALL: GNU Bison is required.
34468 * configure.ac: Rewritten the test to detect Bison.
34469 * Makefile.in (YACC): New variable. Reported by Xun Sun
34470 <xun.sun.cn@gmail.com>.
34471
34472 2006-01-03 Marco Gerards <marco@gnu.org>
34473
34474 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
34475 the HFS+ filesystem to filesystem blocks.
34476 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
34477 GCC warning is silenced.
34478
34479 2006-01-03 Marco Gerards <marco@gnu.org>
34480
34481 * partmap/apple.c (apple_partition_map_iterate): Convert the data
34482 read from disk from big endian to host byte order.
34483
34484 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
34485
34486 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
34487 documentation.
34488 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
34489 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
34490 embedded HFS+ filesystem.
34491 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
34492 (grub_hfs_sblock): Move from here...
34493 * include/grub/hfs.h: To here... New file.
34494 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
34495 documentation.
34496 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
34497 New macros.
34498 (grub_hfsplus_volheader): Change type of member `magic' to
34499 `grub_uint16_t'.
34500 (grub_hfsplus_data): Add new member `embedded_offset'.
34501 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
34502 returned block.
34503 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
34504 Calculate the offset.
34505
34506 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34507
34508 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
34509 Removed.
34510 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
34511
34512 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34513
34514 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
34515 ENV->NAME is NULL after allocating ENV->VALUE.
34516
34517 2005-12-25 Marco Gerards <marco@gnu.org>
34518
34519 * kern/env.c (grub_env_set): Rewritten the error handling code.
34520
34521 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34522
34523 * geninit.sh: Made more robust, and more portable.
34524
34525 2005-12-25 Marco Gerards <marco@gnu.org>
34526
34527 Add support for Apple HFS+ filesystems.
34528
34529 * fs/hfsplus.c: New file.
34530
34531 * DISTLIST: Added `fs/hfsplus.c'.
34532
34533 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
34534 (hfsplus_mod_SOURCES): New variable.
34535 (hfsplus_mod_CFLAGS): Likewise.
34536 (hfsplus_mod_LDFLAGS): Likewise.
34537 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
34538 (grub_setup_SOURCES): Likewise.
34539 (grub_mkdevicemap_SOURCES): Likewise.
34540 (grub_emu_SOURCES): Likewise.
34541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34542
34543 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
34544
34545 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
34546
34547 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34548
34549 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
34550 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
34551 include/grub/parser.h, include/grub/script.h, kern/parser.c,
34552 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
34553 normal/lexer.c, normal/parser.y, normal/script.c, and
34554 partmap/gpt.c.
34555 Removed kern/sparc64/cache.c.
34556
34557 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
34558 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
34559 grub_emu_init.c.
34560
34561 * configure.ac (AC_INIT): Bumped to 1.92.
34562
34563 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
34564
34565 * kern/err.c (grub_error_push): Added new function to support error
34566 stacks.
34567 (grub_error_pop): Likewise.
34568 (grub_error_stack_items): New local variable to support error stacks.
34569 (grub_error_stack_pos): Likewise.
34570 (grub_error_stack_assert): Likewise.
34571 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
34572 stack depth.
34573 (grub_print_error): Added support to print errors from error stack.
34574
34575 * include/grub/err.h (grub_error_push): Added function prototype.
34576 (grub_error_pop): Likewise.
34577
34578 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
34579
34580 * configure.ac: Accept `powerpc64' as host_cpu.
34581 (amd64): Rename to `biarch32'.
34582
34583 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
34584 non-cacheline-aligned addresses.
34585
34586 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
34587 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
34588 if `size' is non-zero.
34589
34590 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
34591
34592 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
34593 and `cd' to make sure the filename is not prefixed with a
34594 directory name.
34595 (pkgdata_MODULES): Add `gpt.mod'.
34596 (gpt_mod_SOURCES): New variable.
34597 (gpt_mod_CFLAGS): Likewise.
34598 (gpt_mod_LDFLAGS): Likewise.
34599
34600 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
34601
34602 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
34603 New macro.
34604
34605 * partmap/gpt.c: New file.
34606
34607 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
34608 GPT partition map is detected.
34609
34610 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
34611
34612 * commands/i386/pc/play.c: New file.
34613 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
34614 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
34615 macros.
34616
34617 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
34618
34619 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
34620 ((unused))' to silence gcc warning.
34621
34622 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
34623
34624 * configure.ac: Correct `AC_PROG_YACC' test.
34625
34626 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34627
34628 * util/powerpc/ieee1275/grub-install.in: Run the mount point
34629 check before installing files.
34630
34631 2005-11-22 Mike Small <smallm@panix.com>
34632
34633 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
34634 number regex so multidigit numbers are recognized correctly.
34635
34636 2005-11-22 Mike Small <smallm@panix.com>
34637
34638 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
34639 debugging message before attempting to claim memory.
34640 (grub_rescue_cmd_initrd): Add a claim debugging message and try
34641 multiple addresses in case of failure.
34642
34643 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34644
34645 * term/tparm.c (get_space): Remove empty `if' statement.
34646
34647 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
34648
34649 * kern/parser.c (check_varstate): Rename `state' to 's'.
34650
34651 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34652
34653 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
34654 variable definitions to the beginning of each function. Sort stack
34655 variables by size.
34656 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
34657 `buf' argument to `char *'.
34658
34659 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34660
34661 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
34662 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34663 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34664 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34665 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34666 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34667 configfile.mod, search.mod, gzio.mod and test.mod.
34668 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34669 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34670 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34671 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34672 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34673 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34674 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34675 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34676 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34677 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34678 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34679 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34680 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34681 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34682 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34683 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34684 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34685 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34686 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34687 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34688 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34689 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34690 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
34691
34692 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
34693 `grep --include'.
34694 (pkgdata_MODULES): Add test.mod.
34695
34696 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34697
34698 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
34699 appending to variables with "+=".
34700 (PModule): Use full pathname to generate *.lst filenames.
34701
34702 * Makefile.in: Fixed list rules moved from genmk.rb.
34703 (.DELETE_ON_ERROR): New special target.
34704 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
34705
34706 * conf/i386-pc.rmk: Include conf/common.mk.
34707 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34708 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34709 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34710 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34711 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34712 configfile.mod, search.mod, gzio.mod and test.mod.
34713 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34714 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34715 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34716 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34717 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34718 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34719 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34720 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34721 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34722 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34723 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34724 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34725 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34726 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34727 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34728 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34729 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34730 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34731 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34732 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34733 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34734 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34735 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
34736 here...
34737 * conf/common.rmk: ... to here. New file.
34738
34739 * conf/common.mk: New file.
34740
34741 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
34742
34743 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
34744 (grub_script.tab.c): ... here.
34745
34746 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
34747 (grub_script.tab.c): ... here.
34748
34749 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
34750 (grub_script.tab.c): ... here.
34751
34752 * normal/command.c (grub_command_find): Fixed a memory leak of
34753 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
34754
34755 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34756
34757 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
34758 "@" which marks the start of a comment on ARM.
34759 (VARIABLE): Likewise.
34760
34761 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34762
34763 Add support for Linux/ADFS partition tables.
34764
34765 * partmap/acorn.c: New file.
34766
34767 * include/grub/acorn_filecore.h: Likewise.
34768
34769 * DISTLIST: Added `partmap/acorn.c' and
34770 `include/grub/acorn_filecore.h'.
34771
34772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34773 `partmap/acorn.c'.
34774 (pkgdata_MODULES): Add `acorn.mod'.
34775 (acorn_mod_SOURCES): New variable.
34776 (acorn_mod_CFLAGS): Likewise.
34777
34778 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34779 `partmap/acorn.c'.
34780 (pkgdata_MODULES): Add `acorn.mod'.
34781 (acorn_mod_SOURCES): New variable.
34782 (acorn_mod_CFLAGS): Likewise.
34783
34784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
34785 (pkgdata_MODULES): Add `acorn.mod'.
34786 (acorn_mod_SOURCES): New variable.
34787 (acorn_mod_CFLAGS): Likewise.
34788 (acorn_mod_LDFLAGS): Likewise.
34789
34790 * include/types.h (grub_disk_addr_t): New typedef.
34791
34792 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
34793
34794 * geninit.sh: New file.
34795
34796 * geninitheader.sh: Likewise.
34797
34798 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
34799 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
34800 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
34801 * commands/configfile.c (grub_configfile_init)
34802 (grub_configfile_fini): Likewise.
34803 * commands/default.c (grub_default_init, grub_default_fini):
34804 Likewise.
34805 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
34806 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
34807 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
34808 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
34809 Likewise.
34810 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
34811 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
34812 Likewise.
34813 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
34814 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
34815 Likewise.
34816 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
34817 Likewise.
34818 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
34819 Likewise.
34820 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
34821 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
34822 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
34823 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
34824 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
34825 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
34826 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
34827 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
34828 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
34829 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
34830 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
34831 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
34832 * partmap/amiga.c (grub_amiga_partition_map_init)
34833 (grub_amiga_partition_map_fini): Likewise.
34834 * partmap/apple.c (grub_apple_partition_map_init)
34835 (grub_apple_partition_map_fini): Likewise.
34836 * partmap/pc.c (grub_pc_partition_map_init)
34837 (grub_pc_partition_map_fini): Likewise.
34838 * partmap/sun.c (grub_sun_partition_map_init,
34839 grub_sun_partition_map_fini): Likewise.
34840 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
34841 Likewise.
34842
34843 * util/grub-emu.c: Include <grub_modules_init.h>.
34844 (main): Don't initialize and de-initialize any modules directly,
34845 use `grub_init_all' and `grub_fini_all' instead.
34846
34847 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
34848 `grub_vesafb_mod_init'.
34849 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
34850 all users.
34851 * term/i386/pc/vga.c (grub_vga_init): Renamed to
34852 `grub_vga_mod_init'. Updated all users.
34853 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
34854
34855 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
34856 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
34857 rules.
34858
34859 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
34860 Generate a function to initialize the module in utilities.
34861 Updated all callers.
34862 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
34863 initialize the module in utilities. Updated all callers.
34864
34865 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34866
34867 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
34868 escape sequence and a literal ^L to clear the screen.
34869
34870 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
34871 when returning from Open Firmware.
34872
34873 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34874
34875 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
34876 (grub_ofconsole_height): Likewise.
34877 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
34878 manually insert a '\n'.
34879 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
34880 `grub_ofconsole_height'. Return early if these are already set.
34881
34882 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
34883
34884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34885 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
34886 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
34887 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
34888 and `normal/script.c'.
34889 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34890 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34891 (test_mod_SOURCES): New variable.
34892 (test_mod_CFLAGS): Likewise.
34893 (test_mod_LDFLAGS): Likewise.
34894 (pkgdata_MODULES): Add `test.mod'.
34895 (grub_script.tab.c): New rule.
34896 (grub_script.tab.h): Likewise.
34897
34898 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
34899
34900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34901 `commands/test.c', `normal/execute.c', `normal/lexer.c',
34902 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34903 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34904 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34905 (test_mod_SOURCES): New variable.
34906 (test_mod_CFLAGS): Likewise.
34907 (pkgdata_MODULES): Add `test.mod'.
34908 (grub_script.tab.c): New rule.
34909 (grub_script.tab.h): Likewise.
34910
34911 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
34912
34913 Add initial scripting support.
34914
34915 * commands/test.c: New file.
34916 * include/grub/script.h: Likewise.
34917 * normal/execute.c: Likewise.
34918 * normal/function.c: Likewise.
34919 * normal/lexer.c: Likewise.
34920 * normal/parser.y: Likewise.
34921 * normal/script.c: Likewise.
34922
34923 * configure.ac: Add `AC_PROG_YACC' test.
34924
34925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
34926 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
34927 `normal/function.c' and `normal/script.c'.
34928 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34929 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34930 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
34931 variables.
34932 (pkgdata_MODULES): Add `test.mod'.
34933 (grub_script.tab.c): New rule.
34934 (grub_script.tab.h): Likewise.
34935
34936 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
34937
34938 * include/grub/normal.h (grub_test_init): New prototype.
34939 (grub_test_fini): Likewise.
34940
34941 * normal/command.c: Include <grub/script.h>.
34942 (grub_command_execute): Rewritten.
34943
34944 * util/grub-emu.c (main): Call `grub_test_init' and
34945 `grub_test_fini'.
34946
34947 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34948
34949 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
34950 to 0.
34951 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
34952 there are no pending characters.
34953
34954 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34955
34956 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
34957 `grub_strndup' to drop device arguments. Replace unnecessary
34958 `grub_strndup' with `grub_strdup'.
34959
34960 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34961
34962 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
34963 `debug' environment variable has been set.
34964
34965 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
34966
34967 * Makefile.in (install-local): Use $(DATA).
34968 (uninstall): Likewise.
34969 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
34970 (sbin_UTILITIES): ... to here.
34971 (sbin_SCRIPTS): New variable.
34972 (grub_install_SOURCES): New variable.
34973 * util/powerpc/ieee1275/grub-install.in: New file.
34974 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
34975 variable.
34976 (add_segments): Call `grub_util_get_path'.
34977
34978 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34979
34980 From Timothy Baldwin:
34981 * commands/ls.c (grub_ls_list_files): Close FILE with
34982 grub_file_close.
34983 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
34984
34985 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
34986
34987 * include/grub/parser.h: New file.
34988
34989 * kern/parser.c: Likewise.
34990
34991 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
34992 (grub_setup_SOURCES): Likewise.
34993 (grub_probefs_SOURCES): Likewise.
34994 (grub_emu_SOURCES): Likewise.
34995 (kernel_img_HEADERS): Add `parser.h'.
34996
34997 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34998 (grub_emu_SOURCES): Add `kern/parser.c'.
34999 (grubof_SOURCES): Likewise.
35000
35001 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
35002 (grubof_SOURCES): Add `kern/parser.c'.
35003
35004 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
35005
35006 * kern/misc.c (grub_split_cmdline): Removed function.
35007
35008 * kern/rescue.c: Include <grub/parser.h>.
35009 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
35010 of `grub_split_cmdline'.
35011
35012 * normal/command.c: Include <grub/parser.h>.
35013 (grub_command_execute): Use `grub_parser_split_cmdline' instead
35014 of `grub_split_cmdline'.
35015
35016 * normal/completion.c: Include <grub/parser.h>.
35017 (cmdline_state): New variable.
35018 (iterate_dir): End the filename with a quote depending on the
35019 command line state.
35020 (get_state): new function.
35021 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
35022 split the arguments and determine the current argument. When the
35023 argument string is not quoted, escape all spaces.
35024
35025 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35026
35027 * normal/sparc64/setjmp.S: New file.
35028
35029 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35030
35031 * include/grub/sparc64/libgcc.h: New file.
35032 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
35033 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
35034 normal/sparc64/setjmp.c.
35035
35036 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35037
35038 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
35039 * kern/sparc64/cache.S: New file.
35040 * kern/sparc64/cache.c: Removed.
35041 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
35042 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
35043 -mtune=ultrasparc.
35044 (COMMON_LDFLAGS): Add -melf64_sparc.
35045 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
35046 (grubof_SOURCES): Use cache.S instead of cache.c.
35047 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
35048 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
35049 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
35050 commented though.
35051 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
35052 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
35053 (linux_mod_CFLAGS): Commented out.
35054 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
35055 out because module isn't built.
35056 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
35057 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
35058 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
35059 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
35060 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
35061 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
35062 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
35063 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
35064 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
35065 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
35066 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
35067 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
35068 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
35069 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
35070
35071 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
35072
35073 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
35074 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
35075 longer, because HFS should not be used on PC.
35076
35077 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35078
35079 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
35080 consistently within the loop.
35081
35082 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
35083
35084 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
35085 directory can not be read.
35086
35087 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35088
35089 * configure.ac (AC_INIT): Increase the version number to 1.91.
35090
35091 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
35092 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
35093 term/i386/pc/serial.c.
35094
35095 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35096
35097 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
35098 file size must be permitted.
35099
35100 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
35101 between %ah and %al.
35102
35103 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35104
35105 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
35106 grub_uint64_t.
35107 Call the hook with a NUL-terminated filename.
35108 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
35109 grub_cpu_to_be32.
35110
35111 * kern/term.c (cursor_state): New variable.
35112 (grub_term_set_current): Reset the cursor state on a new
35113 terminal.
35114 (grub_setcursor): Rewritten to use CURSOR_STATE.
35115 (grub_getcursor): New function.
35116
35117 * include/grub/term.h (grub_getcursor): New prototype.
35118
35119 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
35120 integers on ARM. Reported by Timothy Baldwin
35121 <T.E.Baldwin99@members.leeds.ac.uk>.
35122
35123 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
35124
35125 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
35126 allocated.
35127 (grub_sfs_dir): Likewise.
35128
35129 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
35130
35131 Add support for the SFS filesystem.
35132
35133 * fs/sfs.c: New file.
35134
35135 * DISTLIST: Added `fs/sfs.c'.
35136
35137 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
35138 (grub_probefs_SOURCES): Likewise.
35139 (grub_emu_SOURCES): Likewise.
35140 (pkgdata_MODULES): Add `sfs.mod'.
35141 (sfs_mod_SOURCES): New variable.
35142 (sfs_mod_CFLAGS): Likewise.
35143 (sfs_mod_LDFLAGS): Likewise.
35144
35145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
35146 (pkgdata_MODULES): Add `sfs.mod'.
35147 (sfs_mod_SOURCES): New variable.
35148 (sfs_mod_CFLAGS): Likewise.
35149
35150 * util/grub-emu.c (main): Call `grub_sfs_init' and
35151 `grub_sfs_fini'.
35152
35153 * include/grub/fs.h (grub_sfs_init): New prototype.
35154 (grub_sfs_fini): Likewise.
35155
35156 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
35157
35158 Add support for the AFFS filesystem.
35159
35160 * fs/affs.c: New file.
35161
35162 * DISTLIST: Added `fs/affs.c'.
35163
35164 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
35165 (grub_probefs_SOURCES): Likewise.
35166 (grub_emu_SOURCES): Likewise.
35167 (pkgdata_MODULES): Add `affs.mod'.
35168 (affs_mod_SOURCES): New variable.
35169 (affs_mod_CFLAGS): Likewise.
35170 (affs_mod_LDFLAGS): Likewise.
35171
35172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
35173 (pkgdata_MODULES): Add `affs.mod'.
35174 (affs_mod_SOURCES): New variable.
35175 (affs_mod_CFLAGS): Likewise.
35176
35177 * util/grub-emu.c (main): Call `grub_affs_init' and
35178 `grub_affs_fini'.
35179
35180 * include/grub/fs.h (grub_affs_init): New prototype.
35181 (grub_affs_fini): Likewise.
35182
35183 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
35184
35185 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
35186
35187 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
35188
35189 * configure.ac: Accept `x86_64' as host_cpu. In that case add
35190 `-m32' to CFLAGS.
35191
35192 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
35193 linking.
35194
35195 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
35196 (COMMON_LDFLAGS): New variable.
35197 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
35198 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
35199 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
35200 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
35201 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
35202 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
35203 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
35204 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
35205 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
35206 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
35207 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
35208 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
35209 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
35210 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
35211 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
35212 variables.
35213 (normal_mod_ASFLAGS): Add `-m32'.
35214
35215 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
35216 (grub_host_size_t, grub_host_ssize_t): New types.
35217 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
35218 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
35219 `GRUB_HOST_SIZEOF_VOID_P'.
35220
35221 * include/grub/kernel.h (struct grub_module_header): Type of
35222 member offset changed to `grub_host_off_t'. Type of member size
35223 changed to `grub_host_size_t'.
35224 (struct grub_module_info): Type of member offset changed to
35225 `grub_host_off_t'. Type of member size changed to
35226 `grub_host_size_t'.
35227
35228 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
35229
35230 Make GRUB's kernel compliant to Multiboot Specification.
35231
35232 * kern/i386/pc/startup.S (multiboot_header): New label.
35233 (multiboot_entry): Likewise.
35234 (multiboot_trampoline): Likewise.
35235
35236 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35237 Increased to 0x4A0.
35238
35239 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
35240 put parentheses after a question mark.
35241 [!GRUB_UTIL] (my_mod): New variable.
35242
35243 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
35244
35245 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
35246
35247 Adds support for the XFS filesystem. Btrees are not supported
35248 yet.
35249
35250 * fs/xfs.c: New file.
35251
35252 * DISTLIST: Added `fs/xfs.c'.
35253
35254 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
35255 (grub_probefs_SOURCES): Likewise.
35256 (grub_emu_SOURCES): Likewise.
35257 (pkgdata_MODULES): Add `xfs.mod'.
35258 (xfs_mod_SOURCES): New variable.
35259 (xfs_mod_CFLAGS): Likewise.
35260
35261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
35262 (pkgdata_MODULES): Add `xfs.mod'.
35263 (xfs_mod_SOURCES): New variable.
35264 (xfs_mod_CFLAGS): Likewise.
35265
35266 * util/grub-emu.c (main): Call `grub_xfs_init' and
35267 `grub_xfs_fini'.
35268
35269 * include/grub/fs.h (grub_xfs_init): New prototype.
35270 (grub_xfs_fini): Likewise.
35271
35272
35273 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
35274
35275 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
35276 color modes, allow greater than 16 colors to be configured as
35277 a default palette.
35278
35279 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35280
35281 * normal/completion.c (complete_arguments): Add the qualifier
35282 const into OPTIONS.
35283
35284 From Omniflux <omniflux+lists@omniflux.com>:
35285 * include/grub/terminfo.h: New file.
35286 * include/grub/tparm.h: Likewise.
35287 * include/grub/i386/pc/serial.h: Likewise.
35288 * term/terminfo.c: Likewise.
35289 * term/tparm.c: Likewise.
35290 * term/i386/pc/serial.c: Likewise.
35291 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
35292 serial.mod.
35293 (terminfo_mod_SOURCES): New variable.
35294 (terminfo_mod_CFLAGS): Likewise.
35295 (serial_mod_SOURCES): Likewise.
35296 (serial_mod_CFLAGS): Likewise.
35297
35298 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
35299
35300 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
35301 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
35302 and kern/powerpc/ieee1275/cmain.c, respectively.
35303
35304 * boot/powerpc/ieee1275/crt0.S: Moved to ...
35305 * kern/powerpc/ieee1275/crt0.S: ... here.
35306
35307 * boot/powerpc/ieee1275/cmain.c: Moved to ...
35308 * kern/powerpc/ieee1275/cmain.c: ... here.
35309
35310 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
35311 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
35312 instead of boot/powerpc/ieee1275/crt0.S and
35313 boot/powerpc/ieee1275/cmain.c, respectively.
35314
35315 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
35316 sectors. It was not used anyway.
35317
35318 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
35319
35320 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
35321 `unused parameter' warning.
35322
35323 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
35324
35325 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
35326 function.
35327 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
35328 getcharwidth.
35329
35330 2005-08-28 Marco Gerards <metgerards@student.han.nl>
35331
35332 * include/grub/normal.h (enum grub_completion_type): Added
35333 `GRUB_COMPLETION_TYPE_ARGUMENT'.
35334
35335 * normal/cmdline.c (print_completion): Handle
35336 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
35337 * normal/menu_entry.c (store_completion): Likewise.
35338
35339 * normal/completion.c (complete_arguments): New function.
35340 (grub_normal_do_completion): Call `complete_arguments' when the
35341 current words start with a dash.
35342
35343 2005-08-27 Marco Gerards <metgerards@student.han.nl>
35344
35345 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
35346 `gzio.mod' instead of `io.mod').
35347
35348 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
35349
35350 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
35351 (DISTDIRS): Added io and video.
35352 Rewrite the search routine to make an output consistently.
35353
35354 * DISTLIST: Added conf/sparc64-ieee1275.mk,
35355 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
35356 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
35357 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
35358 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
35359 util/powerpc/ieee1275/misc.c.
35360
35361 * include/grub/gzio.h: New file.
35362 * io/gzio.c: Likewise.
35363
35364 * kern/file.c (grub_file_close): Call grub_device_close only if
35365 FILE->DEVICE is not NULL.
35366
35367 * include/grub/mm.h [!NULL] (NULL): New macro.
35368
35369 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
35370
35371 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
35372 (pkgdata_MODULES): Added gzio.mod.
35373 (gzio_mod_SOURCES): New variable.
35374 (gzio_mod_CFLAGS): Likewise.
35375
35376 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
35377 (pkgdata_MODULES): Added gzio.mod.
35378 (gzio_mod_SOURCES): New variable.
35379 (gzio_mod_CFLAGS): Likewise.
35380
35381 * commands/cat.c: Include grub/gzio.h.
35382 (grub_cmd_cat): Use grub_gzfile_open instead of
35383 grub_file_open.
35384
35385 * commands/cmp.c: Include grub/gzio.h.
35386 (grub_cmd_cmp): Use grub_gzfile_open instead of
35387 grub_file_open.
35388
35389 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
35390 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
35391 grub_file_open.
35392 (grub_rescue_cmd_module): Likewise.
35393
35394 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
35395
35396 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
35397 kern/sparc64/ieee1275/init.c because it contains _start.
35398 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
35399
35400 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
35401
35402 * configure.ac: Add support for sparc64 host with ieee1275
35403 firmware.
35404 * configure: Generated from configure.ac.
35405 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
35406 instead of int.
35407 (grub_ofdisk_read): Likewise.
35408 (grub_ofdisk_open): Use %p to print pointer values, and cast the
35409 pointers as (void *) to remove a warning.
35410 (grub_ofdisk_close): Likewise.
35411 (grub_ofdisk_read): Likewise.
35412 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
35413 returns, so make it return void to remove a warning.
35414 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
35415 Corresponding prototype change.
35416 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
35417 values, and cast the pointers as (void *) to remove a warning.
35418 (grub_mm_dump): Likewise.
35419 * conf/sparc64-ieee1275.mk: New file.
35420 * conf/sparc64-ieee1275.rmk: Likewise.
35421 * include/grub/sparc64/setjmp.h: Likewise.
35422 * include/grub/sparc64/types.h: Likewise.
35423 * include/grub/sparc64/ieee1275/console.h: Likewise.
35424 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35425 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35426 * include/grub/sparc64/ieee1275/time.h: Likewise.
35427 * kern/sparc64/cache.c: Likewise.
35428 * kern/sparc64/dl.c: Likewise.
35429 * kern/sparc64/ieee1275/init.c: Likewise.
35430 * kern/sparc64/ieee1275/openfw.c: Likewise.
35431
35432 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35433
35434 * util/console.c (grub_ncurses_putchar): If C is greater than
35435 0x7f, set C to a question mark.
35436 (grub_ncurses_getcharwidth): New function.
35437 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
35438 getcharwidth.
35439
35440 * normal/menu.c (print_entry): Made aware of Unicode. First,
35441 convert TITLE to UCS-4, and predict the cursor position by
35442 grub_getcharwidth.
35443
35444 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
35445 const to SRC.
35446 * kern/misc.c (grub_utf16_to_utf8): Likewise.
35447
35448 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35449
35450 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
35451 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35452 grub_strcat.
35453
35454 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
35455 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35456 grub_strcpy and grub_strlen. Take it into account that a space
35457 character is inserted as a delimiter.
35458
35459 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35460
35461 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
35462 invalid magic in the error.
35463
35464 * commands/search.c: New file.
35465
35466 * util/grub-emu.c (main): Call grub_search_init and
35467 grub_search_fini.
35468
35469 * kern/rescue.c (grub_rescue_print_disks): Removed.
35470 (grub_rescue_print_devices): New function.
35471 (grub_rescue_cmd_ls): Use grub_device_iterate with
35472 grub_rescue_print_devices instead of grub_disk_dev_iterate with
35473 grub_rescue_print_disks.
35474
35475 * kern/partition.c (grub_partition_iterate): Return the result of
35476 PARTMAP->ITERATE instead of GRUB_ERRNO.
35477
35478 * kern/device.c: Include grub/partition.h.
35479 (grub_device_iterate): New function.
35480
35481 * include/grub/partition.h (grub_partition_iterate): Return int
35482 instead of grub_err_t.
35483
35484 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
35485 prototype.
35486 [GRUB_UTIL] (grub_search_fini): Likewise.
35487
35488 * include/grub/device.h (grub_device_iterate): New prototype.
35489
35490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35491 commands/search.c.
35492 (pkgdata_MODULES): Added search.mod.
35493 (search_mod_SOURCES): New variable.
35494 (search_mod_CFLAGS): Likewise.
35495
35496 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
35497 (pkgdata_MODULES): Added search.mod.
35498 (search_mod_SOURCES): New variable.
35499 (search_mod_CFLAGS): Likewise.
35500
35501 * commands/ls.c (grub_ls_list_disks): Renamed to ...
35502 (grub_ls_list_devices): ... this, and use grub_device_iterate.
35503 All callers changed.
35504
35505 * DISTLIST: Added commands/search.c.
35506
35507 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35508
35509 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
35510 conversion.
35511 (grub_getcharwidth): New function.
35512
35513 * kern/misc.c (grub_utf8_to_ucs4): New function.
35514
35515 * include/grub/term.h (struct grub_term): Added a new member
35516 "getcharwidth".
35517 (grub_getcharwidth): New prototype.
35518
35519 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
35520
35521 * term/i386/pc/console.c (map_char): New function. Segregated from
35522 grub_console_putchar.
35523 (grub_console_putchar): Use map_char.
35524 (grub_console_getcharwidth): New function.
35525 (grub_console_term): Specified grub_console_getcharwidth as
35526 getcharwidth.
35527
35528 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
35529 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
35530
35531 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
35532 GRUB_ERRNO.
35533 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
35534 on grub_strtoul completely.
35535 (write_char): Declare local variables in the beginning of the
35536 function.
35537 (grub_vesafb_getcharwidth): New function.
35538 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
35539 getcharwidth.
35540
35541 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
35542
35543 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
35544 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
35545 commands/i386/pc/vbetest.c.
35546
35547 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
35548 call grub_vbe_get_controller_info again, because the returned
35549 information is volatile.
35550 (grub_vbe_set_video_mode): Mostly rewritten.
35551 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
35552 grub_vbe_status_t correctly.
35553 (grub_vbe_get_video_mode_info): Likewise.
35554 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
35555 several if statements.
35556
35557 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
35558 * commands/i386/pc/vbeinfo.c: ... this.
35559
35560 * commands/i386/pc/vbe_test.c: Renamed to ...
35561 * commands/i386/pc/vbetest.c: ... this.
35562
35563 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
35564 ...
35565 (grub_cmd_vbeinfo): ... this. Save video modes before
35566 iterating. Skip a video mode, if it is not available, not enough
35567 information is given or it is monochrome. Show the memory
35568 model. Leave the interpretation of MODEVAR to grub_strtoul
35569 completely.
35570 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
35571 (GRUB_MOD_FINI): Likewise.
35572
35573 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
35574 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
35575 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
35576 duplicated grub_env_get. Leave the interpretation of MODEVAR to
35577 grub_strtoul completely.
35578 (real2pm): Removed.
35579 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
35580 (GRUB_MOD_FINI): Likewise.
35581
35582 * normal/misc.c: Include grub/mm.h.
35583
35584 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
35585 vbe_list_modes with vbetest.mod and vbeinfo.mod.
35586 (vbe_list_modes_mod_SOURCES): Removed.
35587 (vbe_list_modes_mod_CFLAGS): Likewise.
35588 (vbe_test_mod_SOURCES): Likewise.
35589 (vbe_test_mod_CFLAGS): Likewise.
35590 (vbeinfo_mod_SOURCES): New variable.
35591 (vbeinfo_mod_CFLAGS): Likewise.
35592 (vbetest_mod_SOURCES): Likewise.
35593 (vbetest_mod_CFLAGS): Likewise.
35594
35595 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
35596
35597 * normal/misc.c: New file.
35598
35599 * DISTLIST: Added normal/misc.c.
35600
35601 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
35602 DISK to HOOK. Call HOOK with DISK.
35603 * partmap/apple.c (apple_partition_map_iterate): Likewise.
35604 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35605 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35606
35607 * normal/menu_entry.c (struct screen): Added a new member
35608 "completion_shown".
35609 (completion_buffer): New global variable.
35610 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
35611 (store_completion): New function.
35612 (complete): Likewise.
35613 (clear_completions): Likewise.
35614 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
35615 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
35616 a tab, call complete.
35617
35618 * normal/completion.c (disk_dev): Removed.
35619 (print_simple_completion): Likewise.
35620 (print_partition_completion): Likewise.
35621 (print_func): New global variable.
35622 (add_completion): Do not take the arguments WHAT or PRINT any
35623 longer. Added a new argument TYPE. Instead of printing directly,
35624 call PRINT_FUNC if not NULL.
35625 All callers changed.
35626 (complete_device): Use a local variable DEV instead of
35627 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
35628 (grub_normal_do_completion): Take a new argument HOOK. Do not
35629 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
35630 empty string, return NULL instead.
35631 All callers changed.
35632
35633 * normal/cmdline.c (print_completion): New function.
35634
35635 * kern/partition.c (grub_partition_iterate): Add an argument DISK
35636 to HOOK.
35637 All callers changed.
35638
35639 * kern/disk.c (grub_print_partinfo): Removed.
35640
35641 * include/grub/partition.h (struct grub_partition_map): Add a new
35642 argument DISK into HOOK of ITERATE.
35643 (grub_partition_iterate): Add a new argument DISK to HOOK.
35644
35645 * include/grub/normal.h (enum grub_completion_type): New enum.
35646 (grub_completion_type_t): New type.
35647 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
35648 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
35649 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
35650 (GRUB_COMPLETION_TYPE_FILE): Likewise.
35651 (grub_normal_do_completion): Added a new argument HOOK.
35652 (grub_normal_print_device_info): New prototype.
35653
35654 * include/grub/disk.h (grub_print_partinfo): Removed.
35655
35656 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
35657 (normal_mod_SOURCES): Likewise.
35658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35659 (normal_mod_SOURCES): Likewise.
35660
35661 * commands/ls.c (grub_ls_list_disks): Use
35662 grub_normal_print_device_info instead of grub_print_partinfo. Free
35663 PNAME.
35664 (grub_ls_list_files): Use grub_normal_print_device_info instead of
35665 duplicating the code.
35666
35667 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35668
35669 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
35670 follow GCS more precisely.
35671 * commands/i386/pc/vbe_test.c: Likewise.
35672 * include/grub/i386/pc/vbe.h: Likewise.
35673 * term/i386/pc/vesafb.c: Likewise.
35674 * video/i386/pc/vbe.c: Likewise.
35675
35676 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35677
35678 * DISTLIST: Added term/i386/pc/vesafb.c
35679 DISTLIST: Added video/i386/pc/vbe.c
35680 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
35681 DISTLIST: Added commands/i386/pc/vbe_test.c.
35682 * commands/i386/pc/vbe_list_modes.c: New file.
35683 * commands/i386/pc/vbe_test.c: Likewise.
35684 * term/i386/pc/vesafb.c: Likewise.
35685 * video/i386/pc/vbe.c: Likewise.
35686 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
35687 (grub_vbe_probe) Added prototype.
35688 (grub_vbe_set_video_mode) Likewise.
35689 (grub_vbe_get_video_mode) Likewise.
35690 (grub_vbe_get_video_mode_info) Likewise.
35691 (grub_vbe_set_pixel_rgb) Likewise.
35692 (grub_vbe_set_pixel_index) Likewise.
35693 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
35694 (pkgdata_MODULES): Added vesafb.mod.
35695 (pkgdata_MODULES): Added vbe_list_modes.mod.
35696 (pkgdata_MODULES): Added vbe_test.mod.
35697 (vbe_mod_SOURCES): Added.
35698 (vbe_mod_CFLAGS): Likewise.
35699 (vesafb_mod_SOURCES): Likewise.
35700 (vesafb_mod_CFLAGS): Likewise.
35701 (vbe_list_modes_mod_SOURCES): Likewise.
35702 (vbe_list_modes_mod_CFLAGS): Likewise.
35703 (vbe_test_mod_SOURCES): Likewise.
35704 (vbe_test_mod_CFLAGS): Likewise.
35705
35706 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
35707
35708 * normal/command.c (grub_command_execute): If INTERACTIVE is
35709 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
35710 CMDLINE. Disable the pager if INTERACTIVE is true.
35711 All callers are changed.
35712
35713 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
35714 before reading a config file.
35715 * normal/main.c (read_config_file): Even if a command is not
35716 found, register it if it is within an entry.
35717
35718 * util/grub-emu.c: Include sys/types.h and unistd.h.
35719 (options): Added --hold.
35720 (struct arguments): Added a new member "hold".
35721 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
35722 missing.
35723 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
35724 cleared by a debugger, if it is not zero.
35725
35726 * include/grub/normal.h (grub_command_execute): Add an argument
35727 INTERACTIVE.
35728
35729 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
35730
35731 * DISTLIST: Added include/grub/i386/pc/vbe.h.
35732
35733 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
35734
35735 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
35736 program with another one, because the old one didn't detect a bug
35737 in gcc-3.4. Always use regparm 2, because the new test is still
35738 not enough for gcc-4.0. Someone must investigate a simple test
35739 case which detects a bug in gcc-4.0.
35740
35741 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
35742
35743 * DISTLIST: Added normal/completion.c.
35744
35745 * normal/completion.c: New file.
35746
35747 * term/i386/pc/console.c (grub_console_getwh): New function.
35748 (grub_console_term): Assign grub_console_getwh to getwh.
35749
35750 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
35751 function is defined in normal/completion.c as
35752 grub_normal_do_completion.
35753 (grub_cmdline_get): Use grub_normal_do_completion instead of
35754 grub_tab_complete.
35755
35756 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
35757 returns non-zero, otherwise return 0.
35758 (grub_partition_iterate): First, probe the partition map. Then,
35759 call ITERATE only for this partition map.
35760
35761 * kern/misc.c (grub_strncmp): Rewritten.
35762
35763 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
35764 returns non-zero. Otherwise return 0.
35765
35766 * include/grub/partition.h (grub_partition_map_iterate): Return
35767 int instead of void.
35768
35769 * include/grub/normal.h (grub_normal_do_completion): New prototype.
35770
35771 * include/grub/misc.h (grub_strncmp): Change the type of N to
35772 grub_size_t.
35773
35774 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
35775 of void.
35776
35777 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
35778 unsigned explicitly before comparing it with I.
35779
35780 * kern/main.c (grub_env_write_root): Add the attribute unused into
35781 VAR.
35782
35783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35784 normal/completion.c.
35785 (normal_mod_SOURCES): Likewise.
35786 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35787 (normal_mod_SOURCES): Likewise.
35788
35789 * normal/command.c (grub_iterate_commands): If ITERATE returns
35790 non-zero, return one immediately.
35791
35792 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
35793
35794 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
35795 * kern/i386/pc/startup.S: Updated Global Descriptor table's
35796 descriptions.
35797 (grub_vbe_get_controller_info): New function.
35798 (grub_vbe_get_mode_info): Likewise.
35799 (grub_vbe_set_mode): Likewise.
35800 (grub_vbe_get_mode): Likewise.
35801 (grub_vbe_set_memory_window): Likewise.
35802 (grub_vbe_get_memory_window): Likewise.
35803 (grub_vbe_set_scanline_length): Likewise.
35804 (grub_vbe_get_scanline_length): Likewise.
35805 (grub_vbe_set_display_start): Likewise.
35806 (grub_vbe_get_display_start): Likewise.
35807 (grub_vbe_set_palette_data): Likewise.
35808 * include/grub/i386/pc/vbe.h: New file.
35809
35810 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35811
35812 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35813 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
35814 * DISTLIST: Likewise.
35815 * kern/ieee1275/of.c: Moved to ...
35816 * kern/ieee1275/ieee1275.c: ... here.
35817
35818 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35819
35820 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
35821 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
35822 Pass 0 as `end' parameter to grub_strtoul().
35823
35824 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35825
35826 * include/grub/powerpc/ieee1275/console.h: Do not include
35827 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
35828 ifdef.
35829 (grub_console_cur_color): Remove i386-specific prototype.
35830 (grub_console_real_putchar): Likewise.
35831 (grub_console_checkkey): Likewise.
35832 (grub_console_getkey): Likewise.
35833 (grub_console_getxy): Likewise.
35834 (grub_console_gotoxy): Likewise.
35835 (grub_console_cls): Likewise.
35836 (grub_console_setcursor): Likewise.
35837 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
35838 Include <grub/machine/console.h>.
35839 * term/ieee1275/ofconsole.c: Likewise.
35840
35841 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
35842
35843 * Makefile.in (LIBLZO): New variable.
35844
35845 * configure.ac: Check for LZO version 2.
35846
35847 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
35848 lzo/lzo1x.h instead of lzo1x.h.
35849
35850 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
35851 of -llzo.
35852
35853 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
35854 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
35855
35856 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
35857 copying the data from PARTITION to P.
35858
35859 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35860
35861 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
35862 negative, unload the module.
35863
35864 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
35865 map is "pc_partition_map" but not "pc".
35866 (usage): Fix the description. The options are --boot-image and
35867 --core-image but not --boot-file or --core-file.
35868 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
35869 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
35870 DEFAULT_DIRECTORY.
35871
35872 * util/i386/pc/grub-install.in: Do not specify --boot-file or
35873 --core-file. Specify INSTALL_DEVICE as an argument.
35874
35875 * util/console.c: Include config.h.
35876 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
35877 [HAVE_NCURSES_H]: Include ncurses.h.
35878 [HAVE_CURSES_H]: Include curses.h.
35879 [!A_NORMAL] (A_NORMAL): Defined as zero.
35880 [!A_STANDOUT] (A_STANDOUT): Likewise.
35881
35882 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
35883 -lncurses.
35884 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
35885
35886 * configure.ac: Check for curses libraries and headers.
35887
35888 * Makefile.in (LIBCURSES): New variable.
35889
35890 * genmk.rb (Script::rule): Set the executable bits.
35891
35892 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
35893 name of the PC partition map is "pc_partition_map" but not "pc".
35894
35895 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35896
35897 * util/i386/pc/grub-install.in (grub_probefs): New variable.
35898 (modules): Likewise.
35899 (usage): Added descriptions for --modules and --grub-probefs.
35900 Handle --modules and --grub-probefs. Save the arguments in MODULES
35901 and GRUB_PROBEFS, respectively.
35902 Auto-detect a filesystem module against GRUBDIR. If the result is
35903 empty and modules are not specified explicitly, abort the
35904 installation. Add the result to MODULES.
35905
35906 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
35907 disk/powerpc/ieee1275/ofdisk.c,
35908 include/grub/powerpc/ieee1275/init.h and
35909 term/powerpc/ieee1275/ofconsole.c.
35910 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
35911 term/ieee1275/ofconsole.c.
35912
35913 * include/grub/powerpc/ieee1275/console.h: Resurrected.
35914
35915 * COPYING: Upgraded to the latest version. Only the address of the
35916 FSF office has changed.
35917
35918 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35919
35920 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35921 kern/ieee1275.c with kern/ieee1275/of.c.
35922
35923 * kern/ieee1275.c: Moved to ...
35924 * kern/ieee1275/of.c: ... here.
35925
35926 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
35927
35928 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
35929 readability.
35930
35931 * config.guess: Updated to the latest version from gnulib.
35932 * config.sub: Likewise.
35933 * install.sh: Likewise.
35934 * mkinstalldirs: Likewise.
35935
35936 * include/grub/console.h: Removed. This file is arch-specific. Do
35937 not put this in include/grub.
35938
35939 * include/grub/i386/pc/console.h: Resurrected.
35940
35941 * util/console.c: Include grub/machine/console.h instead of
35942 grub/console.h.
35943 * util/grub-emu.c: Likewise.
35944
35945 2005-08-04 Marco Gerards <metgerards@student.han.nl>
35946
35947 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
35948 hardcoded value.
35949
35950 From Vincent Pelletier <subdino2004@yahoo.fr>
35951 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
35952 Redefined to use grub_getwh.
35953 (grub_term): New member named getwh.
35954 (grub_getwh): New prototype.
35955 * kern/term.c (grub_getwh): New function.
35956 * term/i386/pc/console.c (grub_console_getwh): New function.
35957 (grub_console_term): New member `getwh'.
35958 * term/i386/pc/vga.c (grub_vga_getwh): New function.
35959 (grub_vga_term): New member `getwh'.
35960 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
35961 grub_ssize_t.
35962 (grub_ofconsole_getw): New function.
35963 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
35964 (grub_ofconsole_term): New field named getwh and new initial
35965 value.
35966
35967 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
35968
35969 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
35970 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
35971 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
35972 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
35973 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
35974 of <grub/machine/ieee1275.h>.
35975 * commands/ieee1275/reboot.c: Likewise.
35976 * boot/powerpc/ieee1275/ieee1275.c: Move ...
35977 * kern/ieee1275.c: ... to here. All users updated. Change all
35978 parameter structs to use new type `grub_ieee1275_cell_t'.
35979 * term/powerpc/ieee1275/ofconsole.c: Move ...
35980 * term/ieee1275/ofconsole.c: ... to here. All users updated.
35981 * disk/powerpc/ieee1275/ofdisk.c: Move ...
35982 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
35983 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
35984 to return int.
35985 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
35986 Remove unused prototypes. All users updated.
35987 * include/grub/powerpc/ieee1275/console.h: Removed.
35988 * include/grub/powerpc/ieee1275/ieee1275.h: Define
35989 `grub_ieee1275_cell_t'.
35990 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
35991 Cast comparisons with -1 to the correct type.
35992 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
35993 type to match `grub_ieee1275_entry_fn'.
35994
35995 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
35996
35997 * DISTLIST: Added util/i386/pc/grub-probefs.c.
35998
35999 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
36000 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
36001 partmap/sun.c.
36002 (grub_probefs_SOURCES): New variable.
36003
36004 * util/i386/pc/grub-probefs.c: New file.
36005
36006 * util/i386/pc/grub-setup.c (main): Call
36007 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
36008 grub_hfs_init and grub_jfs_init to initialize the system. Call
36009 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
36010 grub_pc_partition_map_fini to finish the system.
36011
36012 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
36013
36014 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
36015 function.
36016 (grub_multiboot_load_elf32): Likewise.
36017 (grub_multiboot_is_elf64): Likewise.
36018 (grub_multiboot_load_elf64): Likewise.
36019 (grub_multiboot_load_elf): Likewise.
36020 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
36021 an ELF32 or ELF64 file.
36022 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
36023
36024 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
36025 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
36026 NULL before calling FS->LABEL.
36027 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
36028 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
36029 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
36030 before calling FS->LABEL.
36031
36032 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
36033
36034 * util/i386/pc/grub-install.in (datadir): New variable.
36035 (libdir): Removed.
36036 (pkgdatadir): New variable.
36037 (pkglibdir): Removed.
36038
36039 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
36040
36041 * DISTLIST: Added util/i386/pc/grub-install.in.
36042
36043 * util/i386/pc/grub-install.in: New file.
36044
36045 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
36046 (grub_install_SOURCES): Likewise.
36047
36048 * genmk.rb: Added support for scripts.
36049 (Script): New class.
36050 (scripts): New variable.
36051
36052 * Makefile.in (install-local): Install sbin_SCRIPTS by
36053 INSTALL_SCRIPT.
36054 (uninstall): Remove sbin_SCRIPTS.
36055
36056 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
36057 device, try to get a GRUB device by
36058 grub_util_biosdisk_get_grub_dev.
36059 Free DEST_DEV.
36060
36061 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
36062 description for --device-map.
36063
36064 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
36065
36066 Change the semantics of variable hooks. They now return strings
36067 instead of error values.
36068
36069 * util/i386/pc/grub-setup.c: Include grub/env.h.
36070 (setup): Use grub_device_set_root instead of grub_env_set.
36071
36072 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
36073 grub_env_get instead of grub_device_set_root and
36074 grub_device_get_root, respectively.
36075
36076 * kern/main.c (grub_env_write_root): New function.
36077 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
36078 grub_env_set instead of grub_device_set_root.
36079
36080 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
36081 many variables.
36082 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
36083 rather than calling ENV->WRITE_HOOK afterwards.
36084 (grub_env_get): Return the result of ENV->READ_HOOK rather than
36085 passing a pointer of a pointer.
36086 (grub_register_variable_hook): Change the types of "read_hook" and
36087 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
36088 respectively.
36089 Allocate the default empty string on the heap, because this string
36090 may be freed later.
36091
36092 * kern/device.c: Include grub/env.h.
36093 (grub_device_set_root): Removed.
36094 (grub_device_get_root): Likewise.
36095 (grub_device_open): Use grub_env_get instead of
36096 grub_device_get_root.
36097
36098 * include/grub/env.h (grub_env_read_hook_t): New type.
36099 (grub_env_write_hook_t): Likewise.
36100 (grub_env_var): Change the types of "read_hook" and "write_hook"
36101 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
36102 (grub_register_variable_hook): Likewise.
36103
36104 * include/grub/device.h (grub_device_set_root): Removed.
36105 (grub_device_set_root): Likewise.
36106
36107 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
36108 make sure that DIRNAME terminates with '/', so that
36109 grub_fat_find_dir will fail if PATH is not a directory.
36110
36111 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
36112 from DIRNAME.
36113 Use the qualifier auto for print_files and print_files_long.
36114 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
36115 as a regular file.
36116 Put a newline only if there is no error.
36117 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
36118 used.
36119
36120 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
36121
36122 * kern/partition.c (grub_partition_probe): Initialize PART to
36123 NULL. Otherwise, when no partition map is registered, this returns
36124 a garbage.
36125
36126 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
36127
36128 * partmap/apple.c (apple_partition_map_iterate): Check if POS
36129 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
36130 valid.
36131
36132 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
36133
36134 * commands/ls.c (grub_ls_list_disks): Print the filesystem
36135 information on each device, if it does not have partitions. Print
36136 "Device" instead of "Disk", because this function is not specific
36137 to disk devices.
36138
36139 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
36140 static to ensure that it is put on the memory rather than a
36141 register.
36142
36143 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36144
36145 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
36146 (grub_cat_init): Likewise.
36147 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
36148 (options): Likewise.
36149 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
36150 (grub_configfile_init): Likewise.
36151 * font/manager.c (GRUB_MOD_INIT): Likewise.
36152 * commands/help.c (GRUB_MOD_INIT): Likewise.
36153 (grub_help_init): Likewise.
36154 * normal/command.c (grub_command_init): Likewise.
36155 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
36156 * disk/loopback.c (grub_loop_init): Likewise.
36157 (GRUB_MOD_INIT): Likewise.
36158 * commands/ls.c (grub_ls_init): Likewise.
36159 (GRUB_MOD_INIT): Likewise.
36160 (options): Likewise.
36161 * commands/boot.c (grub_boot_init): Likewise.
36162 (GRUB_MOD_INIT): Likewise.
36163 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
36164 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
36165 (GRUB_MOD_INIT): Likewise.
36166 * commands/cmp.c (grub_cmp_init): Likewise.
36167 (GRUB_MOD_INIT): Likewise.
36168
36169 * normal/arg.c: Use <> instead of "" to include header files.
36170 (SHORT_ARG_HELP): New macro.
36171 (SHORT_ARG_USAGE): Likewise.
36172 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
36173 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
36174 descriptions.
36175 (find_short): Check if C is 'h' or 'u' explicitly.
36176 (grub_arg_show_help): Use space characters instead of tabs. Treat
36177 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
36178 are shown with --help and --usage only if they are not used for
36179 the command itself.
36180 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
36181 'h' and 'u'.
36182
36183 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
36184 const into "longarg". Change the type of "shortarg" to int.
36185
36186 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36187
36188 * boot/i386/pc/boot.S (boot_drive_check): New label.
36189
36190 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
36191 macro.
36192
36193 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
36194 which do not pass a boot drive correctly. Copied from GRUB Legacy.
36195
36196 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36197
36198 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
36199 When turning off Gate A20, skip the check and return immediately,
36200 because this is not fatal usually.
36201
36202 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36203
36204 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
36205 be 0x7C00 instead of 0x8000.
36206
36207 * boot/i386/pc/pxeboot.S: Rewritten.
36208
36209 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
36210 EXT_C.
36211 (gate_a20_check_state): Read a byte from 0x108000. Invert the
36212 result.
36213
36214 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
36215
36216 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
36217 robustness. This routine now supports a BIOS call and System
36218 Control Port A to modify the gate A20.
36219
36220 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36221 Increased to 0x440.
36222
36223 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
36224
36225 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
36226 device path and resulting ihandle.
36227 (grub_ofdisk_close): dprintf the ihandle being closed.
36228 (grub_ofdisk_read): dprintf function parameters.
36229 * kern/mm.c (grub_mm_init_region): Likewise.
36230 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
36231 (grub_linux_boot): dprintf the Linux entry point, initrd address and
36232 size, and boot arguments.
36233 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
36234 before loading into memory.
36235 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
36236 before loading into memory.
36237
36238 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
36239
36240 * kern/mm.c: Added much documentation.
36241 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
36242 8, set to 5 instead of 8.
36243
36244 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
36245
36246 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
36247
36248 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
36249 (grub_mkdevicemap_SOURCES): New variable.
36250
36251 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
36252 lib/device.c of GRUB Legacy.
36253
36254 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
36255
36256 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
36257 instead of PATH is NULL.
36258
36259 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
36260
36261 * commands/cmp.c (BUFFER_SIZE): New macro.
36262 (grub_cmd_cmp): Close the right file at the right time. Compare
36263 only data just read. Don't report files of different size as
36264 identical. Dynamically allocate buffers. Move variable
36265 declarations at the beginning of function.
36266
36267 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
36268
36269 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
36270 reverse.
36271
36272 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
36273
36274 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
36275 when backspace is pressed at beginning of line.
36276
36277 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
36278
36279 * DISTLIST: Added genfslist.sh.
36280
36281 * normal/main.c (fs_module_list): New variable.
36282 (autoload_fs_module): New function.
36283 (read_fs_list): Likewise.
36284 (grub_normal_execute): Call read_fs_list.
36285
36286 * kern/fs.c (grub_fs_autoload_hook): New variable.
36287 (grub_fs_probe): Added support for auto-loading.
36288
36289 * include/grub/normal.h (struct grub_fs_module_list): New struct.
36290 (grub_fs_module_list_t): New type.
36291
36292 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
36293 (grub_fs_autoload_hook): New prototype.
36294
36295 * genfslist.sh: New file.
36296
36297 * genmk.rb: Added a rule to generate a filesystem list.
36298
36299 2005-06-30 Marco Gerards <metgerards@student.han.nl>
36300
36301 * configure.ac: Fix the test for cross-compiling.
36302
36303 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
36304 define GRUB_UTIL anymore.
36305
36306 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
36307 so this function works on other systems than just big endian.
36308 (load_modules): Likewise.
36309 (add_segments): Likewise.
36310
36311 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
36312
36313 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
36314 contains `l' modifier, get a long from va_arg().
36315
36316 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
36317
36318 * kern/mm.c (grub_free): If the next free block which is being
36319 merged is the first free block, set the first block to the block
36320 being freed.
36321 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
36322
36323 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
36324
36325 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
36326 `grub_ieee1275_chosen'.
36327
36328 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
36329
36330 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
36331 (grub_ieee1275_chosen): New variable.
36332 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
36333 `chosen'.
36334 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
36335 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
36336 Rename first argument to `phandle' for consistency.
36337 (grub_ieee1275_get_property_length): Likewise.
36338 (grub_ieee1275_next_property): Likewise. Change type of first argument
36339 to grub_ieee1275_phandle_t.
36340 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
36341 Move export next to declaration.
36342 (grub_ieee1275_chosen): New variable.
36343 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
36344 Correct cosmetic typo.
36345 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
36346 `grub_ieee1275_chosen'.
36347 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
36348 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
36349 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
36350 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
36351 `grub_ieee1275_chosen'.
36352
36353 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
36354
36355 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
36356 /chosen/bootargs.
36357 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
36358 /chosen/bootargs as "variable=value" pairs.
36359
36360 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
36361
36362 * include/grub/misc.h (grub_dprintf): New macro.
36363 (grub_real_dprintf): New prototype.
36364 (grub_strword): Likewise.
36365 (grub_iswordseparator): Likewise.
36366 * kern/misc.c (grub_real_dprintf): New function.
36367 (grub_strword): Likewise.
36368 (grub_iswordseparator): Likewise.
36369
36370 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
36371
36372 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
36373 (roundup): Remove macro.
36374 (grub_ieee1275_flags): Make static.
36375 (grub_ieee1275_realmode): Remove.
36376 (grub_ieee1275_test_flag): New function.
36377 (grub_ieee1275_set_flag): Likewise.
36378 (find_options): Rename to `grub_ieee1275_find_options'; update
36379 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
36380 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
36381 (cmain): New prototype.
36382 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
36383 `grub_ieee1275_flags' directly.
36384 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
36385 machine/biosdisk.h.
36386 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
36387 Don't include grub/machine/init.h.
36388 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
36389 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
36390 Remove prototype.
36391 (grub_ieee1275_realmode): Likewise.
36392 (grub_ieee1275_flag): New enum.
36393 (grub_ieee1275_test_flag): New prototype.
36394 (grub_ieee1275_set_flag): New prototype.
36395 * include/grub/powerpc/ieee1275/init.h: Remove file.
36396 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
36397 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
36398 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
36399 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
36400 comment.
36401 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
36402 `grub_ieee1275_test_flag'.
36403 (grub_ieee1275_encode_devname): Likewise.
36404
36405 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
36406
36407 * include/grub/powerpc/ieee1275/ieee1275.h
36408 (grub_ieee1275_encode_devname): New prototype.
36409 (grub_ieee1275_get_filename): Likewise.
36410 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
36411 function.
36412 (grub_set_prefix): Likewise.
36413 (grub_machine_init): Call grub_set_prefix.
36414 * kern/powerpc/ieee1275/openfw.c: Fix typos.
36415 (grub_parse_type): New enum.
36416 (grub_ieee1275_get_devargs): New function.
36417 (grub_ieee1275_get_devname): Likewise.
36418 (grub_ieee1275_parse_args): Likewise.
36419 (grub_ieee1275_get_filename): Likewise.
36420 (grub_ieee1275_encode_devname): Likewise.
36421
36422 2005-03-30 Marco Gerards <metgerards@student.han.nl>
36423
36424 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
36425 `grub_loader_unset'.
36426
36427 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
36428
36429 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
36430 instead of grub_ieee1275_interpret.
36431 (grub_halt_init): New function.
36432 (grub_halt_fini): Likewise.
36433 (GRUB_MOD_INIT): Correct message grammar.
36434 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
36435 instead of grub_ieee1275_interpret.
36436 (grub_reboot_init): New function.
36437 (grub_reboot_fini): Likewise.
36438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
36439 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
36440 util/i386/pc/misc.c with commands/ieee1275/halt.c,
36441 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
36442 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
36443 function.
36444 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
36445 Add prototype.
36446 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
36447 prototype.
36448 (grub_halt): Likewise.
36449 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
36450 (cmain): Remove __attribute__((unused)).
36451 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
36452 (grub_heap_len): Likewise.
36453 (grub_machine_fini): New function.
36454 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
36455 (grub_halt): Likewise.
36456 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
36457 function.
36458 * util/powerpc/ieee1275/misc.c: New file.
36459
36460 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36461
36462 * DISTLIST: New file.
36463 * gendistlist.sh: Likewise.
36464
36465 * Makefile.in (COMMON_DISTFILES): Removed.
36466 (BOOT_DISTFILES): Likewise.
36467 (CONF_DISTFILES): Likewise.
36468 (DISK_DISTFILES): Likewise.
36469 (FS_DISTFILES): Likewise.
36470 (INCLUDE_DISTFILES): Likewise.
36471 (KERN_DISTFILES): Likewise.
36472 (LOADER_DISTFILES): Likewise.
36473 (TERM_DISTFILES): Likewise.
36474 (UTIL_DISTFILES): Likewise.
36475 (DISTFILES): Likewise.
36476 (uninstall): Uninstall files in $(pkgdata_DATA).
36477 (DISTLIST): New target.
36478 (distdir): Use the contents of the file DISTLIST to get a list of
36479 distributed files.
36480
36481 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36482
36483 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
36484 descriptor. This is ported from GRUB Legacy.
36485
36486 * gencmdlist.sh: Added an extra semicolon to make it work with
36487 old sed versions. Reported by Robert Bihlmeyer
36488 <robbe@orcus.priv.at>.
36489
36490 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
36491
36492 Automatic loading of commands is supported.
36493
36494 * normal/main.c (read_command_list): New function.
36495 (grub_normal_execute): Call read_command_list.
36496
36497 * normal/command.c (grub_register_command): Return zero or CMD.
36498 Allocate CMD->NAME from the heap.
36499 Initialize CMD->MODULE_NAME to zero.
36500 Find the same name as well. If the same command is found and it is
36501 a dummy command, overwrite members. If it is not a dummy command,
36502 return zero.
36503 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
36504 (grub_command_find): If a dummy command is found, load a module
36505 and retry to find a command only once.
36506
36507 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
36508 make sure that each command is loaded.
36509
36510 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
36511 macro.
36512 (struct grub_command): Remove const from the member `name'.
36513 Add a new member `module_name'.
36514 (grub_register_command): Return grub_command_t.
36515
36516 * commands/help.c (grub_cmd_help): Call grub_command_find to make
36517 sure that each command is loaded.
36518
36519 * genmk.rb (PModule::rule): Specify a module name without the
36520 suffix ".mod" to gencmdlist.sh.
36521
36522 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36523
36524 * gencmdlist.sh: New file.
36525
36526 * genmk.rb (PModule::rule): Generate a rule for a command list.
36527 Clean command.lst.
36528 Generate command.lst from $(COMMANDFILES).
36529
36530 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
36531 (DATA): Added $(pkgdata_DATA).
36532 (install-local): Install files in $(pkgdata_DATA).
36533
36534 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36535
36536 * term/i386/pc/vga.c (debug_command): Removed.
36537 (GRUB_MOD_INIT): Do not register the command "debug".
36538
36539 From Hollis Blanchard:
36540 * commands/configfile.c: New file.
36541 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36542 commands/configfile.c.
36543 (pkgdata_MODULES): Added configfile.mod.
36544 (configfile_mod_SOURCES): New variable.
36545 (configfile_mod_CFLAGS): Likewise.
36546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36547 commands/configfile.c.
36548 (pkgdata_MODULES): Added configfile.mod.
36549 (configfile_mod_SOURCES): New variable.
36550 (configfile_mod_CFLAGS): Likewise.
36551 * util/grub-emu.c (main): Call grub_configfile_init and
36552 grub_configfile_fini.
36553 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
36554 prototype.
36555 [GRUB_UTIL] (grub_configfile_fini): Likewise.
36556
36557 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36558
36559 * normal/arg.c (grub_arg_show_help): Do not show the bug report
36560 address.
36561
36562 * commands/help.c (grub_cmd_help): Do not print newlines after
36563 the last command in print_command_help.
36564
36565 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36566
36567 * commands/default.h: New file.
36568 * commands/timeout.h: Likewise.
36569 * normal/context.c: Likewise.
36570
36571 * util/misc.c: Do not include sys/times.h.
36572 Include sys/time.h and grub/machine/time.h.
36573 (grub_get_rtc): Rewritten with gettimeofday.
36574
36575 * util/grub-emu.c (main): Call grub_default_init and
36576 grub_timeout_init before grub_normal_init, and call
36577 grub_timeout_fini and grub_default_fini after grub_main.
36578
36579 * util/console.c (grub_ncurses_checkkey): Return the read
36580 character or -1.
36581
36582 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
36583 timeouts.
36584
36585 * normal/main.c (read_config_file): Push MENU. If this fails,
36586 print an error and wait for a user input.
36587 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
36588 If a menu is empty or an error occurs, pop MENU.
36589 (grub_normal_execute): Pop and free MENU after grub_menu_run
36590 returns.
36591
36592 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
36593
36594 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
36595 include time.h.
36596 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36597 without GRUB_UTIL.
36598 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
36599 time.h.
36600 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36601 without GRUB_UTIL.
36602
36603 * include/grub/normal.h (struct grub_menu_list): New struct.
36604 (grub_menu_list_t): New type.
36605 (struct grub_context): New struct.
36606 (grub_context_t): New type.
36607 (grub_register_command): Got rid of EXPORT_FUNC.
36608 (grub_unregister_command): Likewise.
36609 (grub_context_get): New prototype.
36610 (grub_context_get_current_menu): Likewise.
36611 (grub_context_push_menu): Likewise.
36612 (grub_context_pop_menu): Likewise.
36613 [GRUB_UTIL] (grub_default_init): Likewise.
36614 [GRUB_UTIL] (grub_default_fini): Likewise.
36615 [GRUB_UTIL] (grub_timeout_init): Likewise.
36616 [GRUB_UTIL] (grub_timeout_fini): Likewise.
36617
36618 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
36619 commands/timeout.c and normal/context.c.
36620 (pkgdata_MODULES): Added default.mod and timeout.mod.
36621 (normal_mod_SOURCES): Added normal/context.c.
36622 (default_mod_SOURCES): New variable.
36623 (default_mod_CFLAGS): Likewise.
36624 (timeout_mod_SOURCES): Likewise.
36625 (timeout_mod_CFLAGS): Likewise.
36626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
36627 conf/i386-pc.rmk.
36628 (pkgdata_MODULES): Added default.mod and timeout.mod.
36629 (normal_mod_SOURCES): Added normal/context.c.
36630 (default_mod_SOURCES): New variable.
36631 (default_mod_CFLAGS): Likewise.
36632 (timeout_mod_SOURCES): Likewise.
36633 (timeout_mod_CFLAGS): Likewise.
36634
36635 * Makefile.in (all-local): Added $(MKFILES).
36636
36637 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
36638
36639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
36640 (grub_emu_SOURCES): Likewise.
36641 (pkgdata_MODULES): Add `sun.mod'.
36642 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36644 `partmap/sun.c'.
36645 (pkgdata_MODULES): Add `sun.mod'.
36646 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36647 * include/grub/partition.h (grub_sun_partition_map_init): New
36648 prototype.
36649 (grub_sun_partition_map_fini): Likewise.
36650 * partmap/sun.c: New file.
36651 * util/grub-emu.c (main): Initialize and de-initialize the sun
36652 partitionmap support.
36653
36654 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
36655
36656 This implements an Emacs-like menu entry editor.
36657
36658 * normal/menu_entry.c: New file.
36659
36660 * util/console.c (grub_ncurses_putchar): Translate some Unicode
36661 characters to ASCII.
36662 (saved_char): New variable.
36663 (grub_ncurses_checkkey): Rewritten completely.
36664 (grub_ncurses_getkey): Likewise.
36665 (grub_ncurses_init): Call raw instead of cbreak.
36666
36667 * normal/menu.c (print_entry): Do not put a space.
36668 (init_page): Renamed to ...
36669 (grub_menu_init_page): ... this. All callers changed.
36670 (edit_menu_entry): Removed.
36671 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
36672
36673 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
36674
36675 * kern/misc.c (grub_vprintf): Call grub_refresh.
36676
36677 * normal/menu.c (DISP_LEFT): Renamed to ...
36678 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
36679 * normal/menu.c (DISP_UP): Renamed to ...
36680 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
36681 * normal/menu.c (DISP_RIGHT): Renamed to ...
36682 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
36683 * normal/menu.c (DISP_DOWN): Renamed to ...
36684 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
36685 * normal/menu.c (DISP_HLINE): Renamed to ...
36686 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
36687 * normal/menu.c (DISP_VLINE): Renamed to ...
36688 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
36689 * normal/menu.c (DISP_UL): Renamed to ...
36690 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
36691 * normal/menu.c (DISP_UR): Renamed to ...
36692 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
36693 * normal/menu.c (DISP_LL): Renamed to ...
36694 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
36695 * normal/menu.c (DISP_LR): Renamed to ...
36696 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
36697 * normal/menu.c (TERM_WIDTH): Renamed to ...
36698 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
36699 * normal/menu.c (TERM_HEIGHT): Renamed to ...
36700 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
36701 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
36702 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
36703 * normal/menu.c (TERM_MARGIN): Renamed to ...
36704 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
36705 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
36706 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
36707 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
36708 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
36709 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
36710 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
36711 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
36712 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
36713 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
36714 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
36715 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
36716 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
36717 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
36718 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
36719 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
36720 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
36721 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
36722 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
36723 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
36724 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
36725 All callers changed.
36726
36727 * include/grub/normal.h: New prototype.
36728
36729 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36730 normal/menu_entry.c.
36731 (normal_mod_SOURCES): Likewise.
36732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36733 (normal_mod_SOURCES): Likewise.
36734
36735 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
36736
36737 * include/grub/normal.h (grub_halt_init): New prototype.
36738 (grub_halt_fini): Likewise.
36739 (grub_reboot_init): Likewise.
36740 (grub_reboot_fini): Likewise.
36741
36742 * util/grub-emu.c: Include signal.h.
36743 (main_env): New global variable.
36744 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
36745 catch C-c.
36746 (grub_machine_fini): New function.
36747 (main): Call grub_halt_init and grub_reboot_init before
36748 grub_main, and grub_reboot_fini and grub_halt_fini after it.
36749 Call setjmp with MAIN_ENV to go back afterwards.
36750 Call grub_machine_fini right before return.
36751
36752 * include/grub/util/misc.h: Include setjmp.h.
36753 (main_env): New prototype.
36754
36755 * include/grub/kernel.h (grub_machine_fini): New prototype.
36756 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
36757 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
36758
36759 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
36760 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
36761 * term/i386/pc/console.c (grub_console_fini): Likewise.
36762
36763 * util/i386/pc/misc.c: New file.
36764
36765 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36766 util/i386/pc/misc.c, commands/i386/pc/halt.c and
36767 commands/i386/pc/reboot.c.
36768
36769 2005-02-14 Guillem Jover <guillem@hadrons.org>
36770
36771 * include/grub/dl.h (grub_dl_check_header): New prototype.
36772 (grub_arch_dl_check_header): Change return type to grub_err_t,
36773 remove size parameter and export function. Update all callers.
36774 * kern/dl.c (grub_dl_check_header): New function.
36775 (grub_dl_load_core): Use `grub_dl_check_header' instead of
36776 `grub_arch_dl_check_header'. Check ELF type. Check if sections
36777 are inside the core.
36778 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
36779 independent ELF header checks.
36780 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36781 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
36782 `grub_dl_check_header' instead of explicit checks. Check for the
36783 ELF type.
36784 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
36785 `grub_dl_check_header' instead of explicit checks. Remove arch
36786 specific ELF header checks.
36787
36788 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
36789 argument SIZE.
36790
36791 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
36792
36793 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
36794 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
36795
36796 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
36797
36798 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
36799 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
36800 (part_map_iterate): Clear `grub_errno' and return 0 if
36801 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
36802 * partmap/amiga.c (amiga_partition_map_iterate): Return
36803 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
36804 * partmap/apple.c (apple_partition_map_iterate): Likewise.
36805
36806 2005-02-01 Guillem Jover <guillem@hadrons.org>
36807
36808 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
36809 help info.
36810
36811 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36812
36813 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
36814 Removed prototype.
36815 (grub_rescue_cmd_linux): New prototype.
36816 (grub_rescue_cmd_initrd): Likewise.
36817 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
36818 `bi_rec'.
36819 (grub_linux_release_mem): Release the memory for the initrd.
36820 (grub_load_linux): Renamed from this...
36821 (grub_rescue_cmd_linux): ...To this. Changed all callers.
36822 Changed `entry' not to be static. Loop over memory regions to
36823 find another one when the default fails.
36824 (grub_rescue_cmd_initrd): New function.
36825 (grub_linux_init): Remove function.
36826 (grub_linux_fini): Likewise.
36827 (GRUB_MOD_INIT): Register `initrd'.
36828 (GRUB_MOD_FINI): Unregister `initrd'.
36829 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
36830 Function removed.
36831 (grub_linux_normal_fini): Likewise.
36832 (GRUB_MOD_INIT): Register `initrd'.
36833 (GRUB_MOD_FINI): Unregister `initrd'.
36834
36835 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36836
36837 * commands/help.c: New file.
36838 * normal/arg.c (show_help): Renamed to...
36839 (grub_arg_show_help): ... this.
36840 * commands/i386/pc/halt.c: New file.
36841 * commands/i386/pc/reboot.c: Likewise.
36842 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
36843 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
36844 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
36845 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
36846 variables.
36847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36848 `commands/help.c'.
36849 (pkgdata_MODULES): Add `help.mod'.
36850 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
36851 * grub/i386/pc/init.h (grub_reboot): New prototype.
36852 (grub_halt): Likewise.
36853 * include/grub/normal.h (grub_arg_show_help): New prototype.
36854 (grub_help_init): Likewise.
36855 (grub_help_fini): Likewise.
36856 * util/grub-emu.c (main): Initialize and deinitialize the help
36857 command.
36858
36859 * normal/cmdline.c (grub_cmdline_get): Doc fix.
36860
36861 * normal/command.c (grub_command_init): Fixed the description of
36862 the `set' and `unset' commands.
36863
36864 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36865
36866 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
36867 function.
36868 * commands/ieee1275/halt.c: New file.
36869 * commands/ieee1275/reboot.c: Likewise.
36870 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
36871 `__attribute__ ((unused))'. Some GCS related fixed.
36872 (grub_suspend_init) [GRUB_UTIL]: Function removed.
36873 (grub_suspend_fini): Likewise.
36874 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
36875 and `halt.mod'.
36876 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
36877 (halt_mod_CFLAGS): New variables.
36878 * include/grub/powerpc/ieee1275/ieee1275.h
36879 (grub_ieee1275_interpret): New prototype.
36880
36881 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
36882
36883 * include/grub/misc.h (memmove): New prototype.
36884 (memcpy): Likewise.
36885
36886 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
36887
36888 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
36889 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
36890
36891 2005-01-22 Marco Gerards <metgerards@student.han.nl>
36892
36893 * kern/misc.c (grub_strndup): Function rewritten.
36894
36895 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
36896
36897 * normal/menu.c (TERM_WIDTH): Macro redefined.
36898 (TERM_TOP_BORDER_Y): Likewise.
36899 (draw_border): Replaced while-loop by a for-loop. Make the number
36900 of lines consistent with the number of lines displayed in
36901 print_entries. Added a margin below the rectangle.
36902 (print_entry): Make the entry fit in the rectangle.
36903 (print_entries): Display the scroll arrows next to the right
36904 border.
36905
36906 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36907
36908 * fs/minix.c (grub_minix_find_file): Reserve more space for
36909 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
36910 `grub_strncpy' to copy `path' into it.
36911
36912 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36913
36914 Add the loopback device, a device via which files can be accessed
36915 as devices.
36916
36917 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
36918 (pkgdata_MODULES): Add loopback.mod.
36919 (loopback_mod_SOURCES): New variable.
36920 (loopback_mod_CFLAGS): Likewise.
36921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36922 `disk/loopback.c'.
36923 (pkgdata_MODULES): Add loopback.mod.
36924 (loopback_mod_SOURCES): New variable.
36925 (loopback_mod_CFLAGS): Likewise.
36926 * disk/loopback.c: new file.
36927 * include/grub/normal.h (grub_loop_init): New prototype.
36928 (grub_loop_fini): New prototype.
36929 * util/grub-emu.c (main): Initialize and de-initialize loopback
36930 support.
36931 * include/grub/disk.h (grub_disk_dev_id): Add
36932 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
36933
36934 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
36935
36936 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
36937 function.
36938 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
36939 (suspend_mod_SOURCES): New variable.
36940 (suspend_mod_CFLAGS): Likewise.
36941 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
36942 New prototype.
36943 * commands/ieee1275/suspend.c: New file.
36944
36945 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36946
36947 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
36948 ((unused))' to `__attribute__ ((used))'.
36949 (GRUB_MOD_FINI): Likewise.
36950 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
36951 * genmk.rb (PModule): Assign space to common symbols when linking
36952 modules.
36953
36954 2005-01-20 Marco Gerards <metgerards@student.han.nl>
36955
36956 * include/grub/mm.h (grub_mm_init_region): Change the type of the
36957 `unsigned' arguments to `grub_size_t'.
36958 (grub_malloc): Likewise.
36959 (grub_realloc): Likewise.
36960 (grub_memalign): Likewise.
36961 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
36962 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36963 * util/misc.c (grub_malloc): Likewise.
36964 (grub_realloc): Likewise.
36965 * kern/mm.c (get_header_from_pointer): Change the casts to
36966 `unsigned' into a cast to `grub_size_t'.
36967
36968 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
36969 point to `currnode' when `currnode' is changed.
36970
36971 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
36972 Schottelius <nico-linux@schottelius.org>.
36973
36974 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
36975
36976 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
36977 (note_path): Remove variable.
36978 (GRUB_IEEE1275_NOTE_NAME): New macro.
36979 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
36980 (grub_ieee1275_note_hdr): New structure.
36981 (grub_ieee1275_note_desc): Likewise.
36982 (grub_ieee1275_note): Likewise.
36983 (load_note): Remove `dir' argument. All callers updated. Remove
36984 `note_img' and `path'. Do not load a file from `note_path'.
36985 Initialize a struct grub_ieee1275_note and write that to `out'.
36986 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
36987
36988 2005-01-05 Marco Gerards <metgerards@student.han.nl>
36989
36990 * util/misc.c (grub_util_read_image): Revert last change. It
36991 called `grub_util_read_at', which seeks from the beginning of the
36992 file.
36993
36994 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
36995
36996 * TODO: Add note about endianness in grub-mkimage.
36997 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
36998 section.
36999 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
37000 (grub_mkimage_SOURCES): New target.
37001 * include/grub/kernel.h (grub_start_addr): Remove variable.
37002 (grub_end_addr): Likewise.
37003 (grub_total_module_size): Likewise.
37004 (grub_kernel_image_size): Likewise.
37005 (GRUB_MODULE_MAGIC): New constant.
37006 (grub_module_info): New structure.
37007 (grub_arch_modules_addr): New prototype.
37008 (grub_get_end_addr): Remove prototype.
37009 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
37010 * include/grub/powerpc/ieee1275/kernel.h: New file.
37011 * include/grub/util/misc.h (grub_util_get_fp_size): New
37012 prototype.
37013 (grub_util_read_at): Likewise.
37014 (grub_util_write_image_at): Likewise.
37015 * kern/main.c (grub_get_end_addr): Remove function.
37016 (grub_load_modules): Call grub_arch_modules_addr instead of using
37017 grub_end_addr. Look for a grub_module_info struct in memory. Use
37018 the grub_module_info fields instead of calling grub_get_end_addr
37019 as loop conditions. Move grub_add_unused_region code here.
37020 (grub_add_unused_region): Remove function.
37021 * kern/i386/pc/init.c: Include grub/cache.h.
37022 (grub_machine_init): Remove call to grub_get_end_addr. Remove
37023 one call to add_mem_region.
37024 (grub_arch_modules_addr): New function.
37025 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
37026 (grub_total_module_size): Likewise.
37027 Include grub/machine/kernel.h.
37028 (grub_arch_modules_addr): New function.
37029 * util/grub-emu.c (grub_end_addr): Remove variable.
37030 (grub_total_module_size): Likewise.
37031 (grub_arch_modules_addr): New function.
37032 * util/misc.c: Include unistd.h.
37033 (grub_util_get_fp_size): New function.
37034 (grub_util_read_at): Likewise.
37035 (grub_util_write_image_at): Likewise.
37036 (grub_util_read_image): Call grub_util_read_at.
37037 (grub_util_write_image): Call grub_util_write_image_at.
37038 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
37039 additional memory in kernel_img for a struct grub_module_info.
37040 Fill in that grub_module_info.
37041 * util/powerpc/ieee1275/grub-mkimage.c: New file.
37042
37043 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
37044
37045 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
37046 New function.
37047 * include/grub/powerpc/ieee1275/ieee1275.h
37048 (grub_ieee1275_milliseconds): New prototype.
37049 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
37050 Change to 1000.
37051 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
37052 grub_ieee1275_milliseconds.
37053
37054 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
37055
37056 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
37057 variable.
37058 (find_options): New function.
37059 (cmain): Call find_options.
37060 * include/grub/powerpc/ieee1275/ieee1275.h
37061 (grub_ieee1275_realmode): New extern variable.
37062 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
37063 grub_map if grub_ieee1275_realmode is false.
37064
37065 2004-12-29 Marco Gerards <metgerards@student.han.nl>
37066
37067 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
37068 lines are inserted and make it work like readline. Reported by
37069 Vincent Pelletier <subdino2004@yahoo.fr>.
37070
37071 2004-12-28 Marco Gerards <metgerards@student.han.nl>
37072
37073 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
37074
37075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
37076 `kern/powerpc/cache.S'.
37077
37078 2004-12-27 Marco Gerards <metgerards@student.han.nl>
37079
37080 * genmk.rb: Handle the `Program' class in the main loop. Written
37081 by Johan Rydberg <jrydberg@gnu.org>.
37082 (Program): New class.
37083 (programs): New variable.
37084 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
37085 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
37086 instead of "grub/kernel.h". Include <grub/machine/init.h>.
37087 (help_arch): Function removed.
37088 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
37089 `powerpc/libgcc.h' and `loader.h'.
37090 (pkgdata_PROGRAMS): New variable.
37091 (sbin_UTILITIES): Variable removed.
37092 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
37093 (grubof_SOURCES): Variable re-defined so it only includes the
37094 core functionality.
37095 (grubof_CFLAGS): Remove `-DGRUBOF'.
37096 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
37097 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
37098 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
37099 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
37100 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
37101 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
37102 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
37103 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
37104 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
37105 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
37106 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
37107 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
37108 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
37109 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
37110 (pc_mod_CFLAGS): New variables.
37111 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
37112 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
37113 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
37114 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
37115 Moved from here...
37116 * include/grub/i386/pc/init.h (grub_os_area_addr)
37117 (rub_os_area_size): ... to here.
37118 * include/grub/powerpc/ieee1275/ieee1275.h
37119 (grub_ieee1275_entry_fn): Export symbol.
37120 * include/grub/powerpc/ieee1275/init.h: New file.
37121 * include/grub/powerpc/libgcc.h: Likewise.
37122 * include/grub/cache.h: Likewise.
37123 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
37124 <hollis@penguinppc.org>.
37125 * kern/dl.c: Include <grub/cache.h>.
37126 (grub_dl_flush_cache): New function.
37127 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
37128 for this module.
37129 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
37130 (grub_console_init): Removed prototypes.
37131 (grub_machine_init): Don't initialize the modules anymore.
37132 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
37133 static.
37134 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
37135 Macro undef removed.
37136 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
37137 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
37138 relocation `R_PPC_REL32'. Return an error when the relocation is
37139 unknown.
37140 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
37141 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
37142 * util/misc.c (grub_arch_sync_caches): Likewise.
37143
37144 2004-12-19 Marco Gerards <metgerards@student.han.nl>
37145
37146 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
37147 `symlist.c', add `grubof_symlist.c'.
37148 (symlist.c): Variable removed.
37149 (grubof_HEADERS): Variable added.
37150 (grubof_symlist.c): New target.
37151 (kernel_syms.lst): Use `grubof_HEADERS' instead of
37152 `kernel_img_HEADERS'.
37153 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
37154 * kern/powerpc/dl.c: New file.
37155 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
37156 Function removed.
37157 (grub_arch_dl_relocate_symbols): Likewise.
37158 (grub_register_exported_symbols): Likewise.
37159
37160 2004-12-13 Marco Gerards <metgerards@student.han.nl>
37161
37162 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
37163 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
37164 to fail instead. Reported by Vincent Pelletier
37165 <subdino2004@yahoo.fr>.
37166
37167 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
37168 it is not allocated. Reported by Vincent Pelletier
37169 <subdino2004@yahoo.fr>.
37170
37171 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
37172 output so the output looks better.
37173
37174 2004-12-04 Marco Gerards <metgerards@student.han.nl>
37175
37176 Modulize the partition map support and add support for the amiga
37177 partition map.
37178
37179 * commands/ls.c: Include <grub/partition.h> instead of
37180 <grub/machine/partition.h>.
37181 * kern/disk.c: Likewise.
37182 * kern/rescue.c: Likewise.
37183 * loader/i386/pc/chainloader.c: Likewise.
37184 * normal/cmdline.c: Likewise.
37185 * kern/powerpc/ieee1275/init.c: Likewise.
37186 (grub_machine_init): Call `grub_pc_partition_map_init',
37187 `grub_amiga_partition_map_init' and
37188 `grub_apple_partition_map_init'.
37189 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
37190 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
37191 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
37192 `partition.h' and `pc_partition.h'.
37193 (grub_setup_SOURCES): Remove
37194 `disk/i386/pc/partition.c'. Add `kern/partition.c',
37195 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
37196 (grub_emu_SOURCES): Likewise.
37197 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
37198 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
37199 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
37200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
37201 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
37202 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
37203 (grubof_SOURCES): Likewise.
37204 * disk/i386/pc/partition.c: File removed.
37205 * disk/powerpc/ieee1275/partition.c: Likewise.
37206 * include/grub/powerpc/ieee1275/partition.h: Likewise.
37207 * include/grub/i386/pc/partition.h: Likewise.
37208 * kern/partition.c: New file.
37209 * partmap/amiga.c: Likewise.
37210 * partmap/apple.c: Likewise.
37211 * partmap/pc.c: Likewise.
37212 * include/grub/partition.h: Likewise..
37213 * include/grub/pc_partition.h: Likewise.
37214 * util/grub-emu.c: Include <grub/partition.h> instead of
37215 <grub/machine/partition.h>.
37216 (main): Call `grub_pc_partition_map_init',
37217 `grub_amiga_partition_map_init' and
37218 `grub_apple_partition_map_init' and deinitialize afterwards.
37219 * util/i386/pc/biosdisk.c: Include `#include
37220 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
37221 `<grub/machine/partition.h>'.
37222 * util/i386/pc/grub-setup.c: Likewise.
37223 * util/i386/pc/biosdisk.c: Likewise.
37224 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
37225 partition information in case of a PC partition.
37226 * util/i386/pc/grub-setup.c: Include `#include
37227 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
37228 `<grub/machine/partition.h>'.
37229 (setup): Only access the PC specific partition information in case
37230 of a PC partition.
37231
37232 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
37233
37234 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
37235 (grub_longjmp): Likewise.
37236 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
37237 20.
37238 * normal/powerpc/setjmp.S: New file.
37239 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37240 `normal/powerpc/setjmp.S'.
37241 (grubof_CFLAGS): Add `-DGRUBOF'.
37242 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
37243 [GRUB_UTIL && !GRUBOF].
37244
37245 2004-11-16 Marco Gerards <metgerards@student.han.nl>
37246
37247 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
37248 property named `name'. Correctly handle the error returned by
37249 `grub_ieee1275_finddevice' if a device can not be opened.
37250
37251 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
37252
37253 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
37254 `actual' for negativity.
37255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
37256 kern/fshelp.c.
37257
37258 2004-11-01 Marco Gerards <metgerards@student.han.nl>
37259
37260 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
37261 (PAGE_OFFSET): New macro.
37262 (CRTC_ADDR_PORT): Likewise.
37263 (CRTC_DATA_PORT): Likewise.
37264 (START_ADDR_HIGH_REGISTER): Likewise.
37265 (START_ADDR_LOW_REGISTER): Likewise.
37266 (GRAPHICS_ADDR_PORT): Likewise.
37267 (GRAPHICS_DATA_PORT): Likewise.
37268 (READ_MAP_REGISTER): Likewise.
37269 (INPUT_STATUS1_REGISTER): Likewise.
37270 (INPUT_STATUS1_VERTR_BIT): Likewise.
37271 (page): New variable.
37272 (wait_vretrace): New function.
37273 (set_read_map): Likewise.
37274 (set_start_address): Likewise.
37275 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
37276 the right page.
37277 (check_vga_mem): Take the page into account.
37278 (write_char): Likewise.
37279 (write_cursor): Likewise.
37280 (scroll_up): Likewise. Copy the page to the page that is not
37281 shown and switch between both pages.
37282 (grub_vga_putchar): Fix off by one error.
37283 (grub_vga_cls): Wait for the vertical retrace. Take the page into
37284 account.
37285
37286 2004-11-01 Marco Gerards <metgerards@student.han.nl>
37287
37288 Add support for iso9660 (including rockridge).
37289
37290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
37291 (iso9660_mod_SOURCES): New variable.
37292 (iso9660_mod_CFLAGS): Likewise.
37293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
37294 * include/grub/fs.h (grub_iso9660_init): New prototype.
37295 * util/grub-emu.c (main): Call `grub_iso9660_init'.
37296 * fs/iso9660.c: New file.
37297
37298 * include/grub/misc.h (grub_strncat): New prototype.
37299 * kern/misc.c (grub_strncat): New function.
37300
37301 * fs/hfs.c (grub_hfs_mount): Translate the error
37302 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
37303 * fs/jfs.c (grub_jfs_mount): Likewise.
37304 * fs/ufs.c (grub_ufs_mount): Likewise.
37305
37306 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
37307
37308 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
37309 which initialized BAT registers.
37310 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
37311 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
37312 Move from here...
37313 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
37314 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
37315 ... to here.
37316 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
37317 (grub_mapclaim): Likewise.
37318 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
37319 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
37320 hand.
37321
37322 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
37323
37324 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
37325 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
37326 -ffreestanding and -msoft-float.
37327
37328 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
37329
37330 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
37331 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
37332 set in grub_ieee1275_flags.
37333
37334 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
37335
37336 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
37337 prototype.
37338 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
37339 grub_console_init first.
37340 Change the memory range used for grub_ieee1275_claim and
37341 grub_mm_init_region.
37342 Print an error message if the claim fails.
37343 Include <grub/misc.h>.
37344
37345 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
37346
37347 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
37348 Call grub_children_iterate for device nodes of type `scsi',
37349 `ide', or `ata'.
37350 (grub_ofdisk_open): Remove manual device alias resolution.
37351 Fix memory leak when device cannot be opened.
37352 * include/grub/powerpc/ieee1275/ieee1275.h
37353 (grub_children_iterate): New prototype.
37354 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
37355 New function.
37356 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37357 Return -1 if args.size was -1.
37358
37359 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
37360
37361 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
37362 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
37363 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
37364 Open Firmware's memory for it; claim memory from _start to _end.
37365 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
37366 (_end): New extern.
37367 (_start): Zero BSS from __bss_start to _end.
37368 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
37369 New extern.
37370 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
37371
37372 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
37373
37374 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
37375 -1 if args.base was -1.
37376
37377 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
37378
37379 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
37380 escape sequence instead of a literal ^L. Also call
37381 grub_ofconsole_gotoxy.
37382
37383 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
37384
37385 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
37386 void * arguments to grub_addr_t. All callers updated. Also make
37387 the `result' argument optional.
37388 (grub_ieee1275_release): change void * arguments to grub_addr_t.
37389 All callers updated.
37390
37391 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
37392
37393 * commands/ls.c (grub_ls_list_files): Use the string following the
37394 initial ')', if present, as the filesystem path.
37395 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
37396
37397 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
37398
37399 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
37400
37401 Make the source code of the menu interface more readable.
37402
37403 * normal/menu.c: Include grub/mm.h.
37404 (TERM_WIDTH): New macro.
37405 (TERM_HEIGHT): Likewise.
37406 (TERM_INFO_HEIGHT): Likewise.
37407 (TERM_MARGIN): Likewise.
37408 (TERM_SCROLL_WIDTH): Likewise.
37409 (TERM_TOP_BORDER_Y): Likewise.
37410 (TERM_LEFT_BORDER_X): Likewise.
37411 (TERM_BORDER_WIDTH): Likewise.
37412 (TERM_MESSAGE_HEIGHT): Likewise.
37413 (TERM_BORDER_HEIGHT): Likewise.
37414 (TERM_NUM_ENTRIES): Likewise.
37415 (TERM_FIRST_ENTRY_Y): Likewise.
37416 (TERM_ENTRY_WIDTH): Likewise.
37417 (TERM_CURSOR_X): Likewise.
37418 (draw_border): Use macros instead of magic numbers.
37419 (print_entry): Likewise.
37420 (print_entries): Likewise.
37421 (run_menu): Likewise. Also, handle the key 'e'.
37422 (run_menu_entry): Ignore empty command lines.
37423 (print_message): Added a new argument EDIT. If EDIT is true,
37424 print a different message.
37425 (init_page): Likewise.
37426 (edit_menu_entry): New function. Not implemented yet.
37427
37428 2004-09-17 Marco Gerards <metgerards@student.han.nl>
37429
37430 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
37431 can be loaded from normal mode.
37432
37433 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
37434 `multiboot.mod'.
37435 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
37436 (multiboot_mod_CFLAGS): New variables.
37437 * loader/i386/pc/linux_normal.c: New file.
37438 * loader/i386/pc/multiboot_normal.c: Likewise.
37439
37440 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
37441 attribute `unused'.
37442
37443 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
37444 `fdiro' to read the mode information from instead of `diro'.
37445
37446 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
37447 looking up a symlink.
37448
37449 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
37450 macro.
37451 * normal/command.c (grub_command_execute): Don't parse the
37452 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
37453 flags of the command.
37454
37455 * normal/menu.c (grub_menu_run): Fix typo.
37456
37457 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
37458
37459 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
37460
37461 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
37462 `y + 1' instead of `y - 1'.
37463
37464 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
37465
37466 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
37467
37468 From Hollis Blanchard <hollis@penguinppc.org>:
37469 * kern/misc.c (memmove): New alias for grub_memmove.
37470 (memcmp): New alias for grub_memcmp.
37471 (memset): New alias for grub_memset.
37472 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37473 Change "int handle" to "grub_ieee1275_phandle_t handle".
37474 * include/grub/powerpc/ieee1275/ieee1275.h
37475 (grub_ieee1275_get_property): Likewise.
37476
37477 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
37478
37479 Added normal mode command `chainloader' as module chain.mod, which
37480 depends on normal.mod and _chain.mod.
37481
37482 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
37483 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
37484 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
37485 Deleted prototype.
37486 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
37487 but arguments parsing moved to ...
37488 (grub_chainloader_cmd): ... here. New function.
37489 * include/grub/i386/pc/chainloader.h: New file.
37490 * loader/i386/pc/chainloader_normal.c: Likewise.
37491
37492 2004-09-11 Marco Gerards <metgerards@student.han.nl>
37493
37494 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
37495 (grub_mkimage_LDFLAGS): Likewise.
37496 (grub_emu_SOURCES): Likewise.
37497 (kernel_img_HEADERS): Added fshelp.h.
37498 * fs/ext2.c: Include <grub/fshelp.h>.
37499 (FILETYPE_REG): New macro.
37500 (FILETYPE_INO_REG): Likewise.
37501 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
37502 Changed all users.
37503 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
37504 all users.
37505 (grub_fshelp_node): New struct.
37506 (grub_ext2_data): Added member `diropen'. Changed member `inode'
37507 to a pointer.
37508 (grub_ext2_get_file_block): Removed function.
37509 (grub_ext2_read_block): New function.
37510 (grub_ext2_read_file): Replaced parameter `data' by `node'.
37511 This function was written.
37512 (grub_ext2_mount): Read the root inode. Create a diropen struct.
37513 (grub_ext2_find_file): Removed function.
37514 (grub_ext2_read_symlink): New function.
37515 (grub_ext2_iterate_dir): Likewise.
37516 (grub_ext2_open): Rewritten.
37517 (grub_ext2_dir): Rewritten.
37518 * include/grub/fshelp.h: New file.
37519 * fs/fshelp.c: Likewise.
37520
37521 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
37522
37523 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
37524 (print_message): Add a missing newline.
37525 (run_menu): Added timeout support.
37526 (run_menu_entry): New local function.
37527 (grub_menu_run): Added support for booting.
37528
37529 * kern/loader.c (grub_loader_is_loaded): New function.
37530
37531 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
37532 (grub_get_rtc): Exported.
37533
37534 * include/grub/i386/pc/time.h: Include grub/symbol.h.
37535 (grub_get_rtc): Exported.
37536
37537 * include/grub/normal.h (struct grub_command_list): Remove
37538 constant from the member `command'.
37539
37540 * include/grub/loader.h (grub_loader_is_loaded): Declared.
37541
37542 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
37543
37544 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
37545
37546 2004-08-28 Marco Gerards <metgerards@student.han.nl>
37547
37548 Add support for the JFS filesystem.
37549
37550 * fs/jfs.c: New file.
37551 * include/grub/fs.h (grub_jfs_init): New prototype.
37552 (grub_jfs_fini): New prototype.
37553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
37554 (grub_emu_SOURCES): Likewise.
37555 (pkgdata_MODULES): Add jfs.mod.
37556 (jfs_mod_SOURCES): New variable.
37557 (jfs_mod_CFLAGS): Likewise.
37558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
37559 (grubof_SOURCES): Likewise.
37560 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
37561
37562 * fs/fat.c (grub_fat_find_dir): Convert the filename little
37563 endian to the host endian.
37564 (grub_fat_utf16_to_utf8): Move function from there...
37565 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
37566 the endianness of the source string anymore.
37567 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
37568
37569 2004-08-24 Marco Gerards <metgerards@student.han.nl>
37570
37571 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
37572 (grub_boot_fini) [GRUB_UTIL]: Likewise.
37573 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
37574 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
37575
37576 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
37577 (grub_hfs_iterate_dir): Make the function static. Add prototypes
37578 for `node_found' and `it_dir'.
37579 (grub_hfs_dir): Add prototype for `dir_hook'.
37580
37581 * fs/minix.c (grub_minix_get_file_block): Add prototype for
37582 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
37583 and `indir32' to silence a gcc warning.
37584
37585 * include/grub/fs.h (grub_hfs_init): New prototype.
37586 (grub_hfs_fini): Likewise.
37587
37588
37589 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37590
37591 Each disk device has its own id now. This is useful to make use
37592 of multiple disk devices.
37593
37594 * include/grub/disk.h (grub_disk_dev_id): New enum.
37595 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
37596 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
37597
37598 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
37599 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37600
37601 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
37602 GRUB_DISK_DEVICE_OFDISK_ID as an id.
37603
37604 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
37605 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37606
37607 * include/grub/disk.h (struct grub_disk_dev): Added a new member
37608 "id" which is used by the cache manager.
37609
37610 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
37611 of just "GRUB".
37612
37613 2004-08-18 Marco Gerards <metgerards@student.han.nl>
37614
37615 * fs/hfs.c: New file.
37616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
37617 (grub_emu_SOURCES): Likewise.
37618 (pkgdata_MODULES): Add hfs.mod.
37619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
37620 (grubof_SOURCES): Likewise.
37621 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
37622
37623 * include/grub/misc.h (grub_strncasecmp): Add prototype.
37624 * kern/misc.c (grub_strncasecmp): Add function.
37625
37626 2004-08-14 Marco Gerards <metgerards@student.han.nl>
37627
37628 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
37629 with parentheses.
37630
37631 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
37632 (grub_ext2_dir): In case the directory entry type is unknown, read
37633 it from the inode.
37634
37635 2004-08-02 Peter Bruin <pjbruin@dds.nl>
37636
37637 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
37638 grub_load_linux instead of grub_rescue_cmd_linux as second
37639 argument of grub_rescue_register_command.
37640
37641 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
37642
37643 2004-07-27 Marco Gerards <metgerards@student.han.nl>
37644
37645 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
37646 function.
37647 * commands/boot.c: Remove the check for `GRUB_UTIL'.
37648 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37649 `loader/powerpc/ieee1275/linux.c',
37650 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
37651 * include/grub/powerpc/ieee1275/ieee1275.h
37652 (grub_ieee1275_release): New prototype.
37653 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
37654 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
37655 normal, boot, linux and linux_normal.
37656 * loader/powerpc/ieee1275/linux.c: New file.
37657 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37658
37659 2004-07-12 Marco Gerards <metgerards@student.han.nl>
37660
37661 * normal/arg.c (grub_arg_parse): Correct error handling after
37662 reallocating the argumentlist (check if `argl' is not null instead
37663 of checking if `args' is not null).
37664 * kern/mm.c (grub_realloc): Return the same pointer when using the
37665 same region, instead of returning the header address.
37666
37667 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37668
37669 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
37670 one block instead of two when looking for the initial partition.
37671 (grub_partition_probe): Initialize the local variable `p' with 0.
37672 Use base 10 for the grub_strtoul call.
37673 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
37674 need for one local variable.
37675 (grub_strtoul): Don't add the new value to `num', instead of that
37676 just assign it.
37677
37678 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37679
37680 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
37681 (pxeboot_img_SOURCES): New variable.
37682 (pxeboot_img_ASFLAGS): Likewise.
37683 (pxeboot_img_LDFLAGS): Likewise.
37684 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
37685 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
37686 <lode_leroy@hotmail.com>.
37687
37688 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37689
37690 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
37691 there was no input.
37692
37693 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37694
37695 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
37696 the history buffer logic.
37697
37698 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37699
37700 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
37701 (FILETYPE_INO_SYMLINK): New macros.
37702 (grub_ext2_find_file): Check if the node is a directory using the
37703 inode stat information instead of using the filetype in the
37704 dirent. Exclude the first character of an absolute symlink.
37705 (grub_ext2_dir): Mask out the filetype part of the mode member of
37706 the inode.
37707
37708 2004-05-24 Marco Gerards <metgerards@student.han.nl>
37709
37710 Add support for UFS version 1 and 2. Add support for the minix
37711 filesystem version 1 and 2, both the variants with 14 and 30 long
37712 filenames.
37713
37714 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
37715 fs/minix.c.
37716 (grub_emu_SOURCES): Likewise.
37717 (pkgdata_MODULES): Add ufs.mod and minix.mod.
37718 (ufs_mod_SOURCES): New variable.
37719 (ufs_mod_CFLAGS): Likewise.
37720 (minix_mod_SOURCES): Likewise.
37721 (minix_mod_CFLAGS): Likewise.
37722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
37723 fs/minix.c.
37724 (grubof_SOURCES): Likewise.
37725 * fs/ufs.c: New file.
37726 * fs/minix.c: New file.
37727 * include/grub/fs.h (grub_ufs_init): New prototype.
37728 (grub_ufs_fini): Likewise.
37729 (grub_minix_init): Likewise.
37730 (grub_minix_fini): Likewise.
37731 * util/grub-emu.c (main): Initialize and deinitialize UFS and
37732 minix fs.
37733
37734 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
37735
37736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
37737 commands/ls.c, commands/terminal.c, commands/boot.c,
37738 commands/cmp.c and commands/cat.c.
37739 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
37740
37741 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
37742 "env.h"
37743
37744 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37745
37746 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
37747 and grub_, respectively. Because the conversion is trivial and
37748 mechanical, I omit the details here. Please refer to the CVS
37749 if you need more information.
37750
37751 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37752
37753 * include/pupa: Renamed to ...
37754 * include/grub: ... this.
37755 * util/i386/pc/pupa-mkimage.c: Renamed to ...
37756 * util/i386/pc/grub-mkimage.c: ... this.
37757 * util/i386/pc/pupa-setup.c: Renamed to ...
37758 * util/i386/pc/grub-setup.c: ... this.
37759 * util/pupa-emu.c: Renamed to ...
37760 * util/grub-emu.c: ... this.
37761
37762 2004-03-29 Marco Gerards <metgerards@student.han.nl>
37763
37764 Add support for the newworld apple macintosh (PPC). This has been
37765 tested on the powerbook 2000 only. It only adds support for
37766 generic ieee1275 functions, console and disk support. This should
37767 be easy to port to other architectures with support for Open
37768 Firmware.
37769
37770 * configure.ac: Accept the powerpc as host_cpu. In the case of
37771 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
37772 specific tests are only executed while building for the i386.
37773 Inverse test for crosscompile.
37774 * genmk.rb (Utility): Allow assembler files.
37775 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
37776 * conf/powerpc-ieee1275.rmk: New file.
37777 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
37778 * disk/powerpc/ieee1275/partition.c: Likewise.
37779 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
37780 * include/pupa/powerpc/ieee1275/console.h: Likewise.
37781 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
37782 * include/pupa/powerpc/ieee1275/time.h: Likewise.
37783 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
37784 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
37785 * include/pupa/powerpc/ieee1275/loader.h
37786 * include/pupa/powerpc/setjmp.h: Likewise.
37787 * include/pupa/powerpc/types.h: Likewise.
37788 * kern/powerpc/ieee1275/init.c: Likewise.
37789 * kern/powerpc/ieee1275/openfw.c: Likewise.
37790 * term/powerpc/ieee1275/ofconsole.c: Likewise.
37791
37792 These files were written by Johan Rydberg
37793 (jrydberg@night.trouble.net) and I only modified them slightly.
37794
37795 * boot/powerpc/ieee1275/cmain.c: New file.
37796 * boot/powerpc/ieee1275/crt0.S: Likewise.
37797 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
37798 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
37799
37800 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
37801
37802 * Makefile.in: Update copyright.
37803 * genmodsrc.sh: Likewise.
37804 * gensymlist.sh: Likewise.
37805 * term/i386/pc/vga.c: Indent correctly.
37806
37807 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
37808 bugreporting address.
37809 * util/i386/pc/pupa-setup.c (usage): Likewise,
37810 (main): Call pupa_ext2_init and pupa_ext2_fini.
37811
37812 * fs/fat.c (log2): Renamed to ...
37813 (fat_log2): ... this.
37814 All callers changed.
37815 * kern/misc.c (memcpy): Alias to pupa_memmove.
37816 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
37817 lvalue cast.
37818 * util/console.c (pupa_ncurses_fini): Return 0.
37819
37820 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
37821 Move fail label here.
37822 [__GNU__]: Don't warn when using stat.
37823 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
37824 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
37825 long int. Use strtol instead of strtoul.
37826
37827 2004-03-14 Marco Gerards <metgerards@student.han.nl>
37828
37829 * commands/boot.c: New file.
37830 * commands/cat.c: Likewise.
37831 * commands/cmp.c: Likewise.
37832 * commands/ls.c: Likewise.
37833 * commands/terminal.c: Likewise.
37834 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
37835 (pupa_register_command): Changed interface to match the new
37836 argument parser.
37837 (pupa_command_execute): Changed (almost rewritten) so it uses
37838 pupa_split_command. Added support for setting variables using the
37839 syntax `foo=bar'.
37840 (rescue_command): Changed to work with the new argument parser.
37841 (terminal_command): Moved from here to commands/terminal.c.
37842 (set_command): New function.
37843 (unset_command): New function.
37844 (insmod_command): New function.
37845 (rmmod_command): New function.
37846 (lsmod_command): New function.
37847 (pupa_command_init): Don't initialize the command terminal
37848 anymore. Initialize the commands set, unset, insmod, rmmod and
37849 lsmod.
37850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
37851 (kernel_img_HEADERS): Add arg.h and env.h.
37852 (pupa_mkimage_LDFLAGS): Add kern/env.c.
37853 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
37854 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
37855 normal/arg.c.
37856 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
37857 terminal.mod.
37858 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
37859 (boot_mod_SOURCES): New variable.
37860 (terminal_mod_SOURCES): Likewise.
37861 (ls_mod_SOURCES): Likewise.
37862 (cmp_mod_SOURCES): Likewise.
37863 (cat_mod_SOURCES): Likewise.
37864
37865 * normal/arg.c: New file.
37866 * kern/env.c: Likewise.
37867 * include/pupa/arg.h: Likewise.
37868 * include/pupa/env.h: Likewise.
37869 * font/manager.c (font_command): Changed to match argument parsing
37870 interface changes.
37871 (PUPA_MOD_INIT): Likewise.
37872 * hello/hello.c (pupa_cmd_hello): Likewise.
37873 (PUPA_MOD_INIT): Likewise.
37874 * include/pupa/disk.h: Include <pupa/device.h>.
37875 (pupa_print_partinfo): New prototype.
37876 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
37877 (pupa_dl_get_prefix): Likewise.
37878 * include/pupa/misc.h: Include <pupa/err.h>.
37879 (pupa_isgraph): New prototype.
37880 (pupa_isdigit): Likewise.
37881 (pupa_split_cmdline): Likewise.
37882 * include/pupa/normal.h: Include <pupa/arg.h>.
37883 (pupa_command): Changed the prototype of the member `func' to
37884 match the argument parsing interface. Added member `options'.
37885 (pupa_register_command): Updated to match function.
37886 (pupa_arg_parse): New prototype.
37887 (pupa_hello_init) [PUPA_UTIL]: New prototype.
37888 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
37889 (pupa_ls_init) [PUPA_UTIL]: Likewise.
37890 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
37891 (pupa_cat_init) [PUPA_UTIL]: Likewise.
37892 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
37893 (pupa_boot_init) [PUPA_UTIL]: Likewise.
37894 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
37895 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
37896 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
37897 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
37898 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
37899 * kern/disk.c: Include <pupa/file.h>.
37900 (pupa_print_partinfo): New function.
37901 * kern/dl.c: Include <pupa/env.h>.
37902 (pupa_dl_dir): Variable removed.
37903 (pupa_dl_load): Use the environment variable `prefix' instead of
37904 the variable pupa_dl_dir.
37905 (pupa_dl_set_prefix): Function removed.
37906 (pupa_dl_get_prefix): Likewise.
37907 * kern/i386/pc/init.c: Include <pupa/env.h>.
37908 (pupa_machine_init): Use the environment variable `prefix' instead of
37909 using pupa_dl_set_prefix to set the prefix.
37910 * kern/main.c: Include <pupa/env.h>.
37911 (pupa_set_root_dev): Use the environment variable `prefix' instead of
37912 using pupa_dl_get_prefix to get the prefix.
37913 * kern/misc.c: Include <pupa/env.h>.
37914 (pupa_isdigit): New function.
37915 (pupa_isgraph): Likewise.
37916 (pupa_ftoa): Likewise.
37917 (pupa_vsprintf): Added support for printing values of the type
37918 `double'. Make it possible to format variable output when using
37919 formatting like `%1.2%f'.
37920 (pupa_split_cmdline): New function.
37921 * kern/rescue.c: Include <pupa/env.h>.
37922 (next_word): Removed function.
37923 (pupa_rescue_cmd_prefix): Likewise.
37924 (pupa_rescue_cmd_set): New function.
37925 (pupa_rescue_cmd_unset): New function.
37926 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
37927 split the command line instead of splitting it here. Added
37928 support for setting variables using the syntax `foo=bar'. Don't
37929 initialize the prefix command anymore. Initialized the set and
37930 unset commands.
37931 * normal/cmdline.c: Include <pupa/env.h>.
37932 (pupa_tab_complete): Added prototypes for print_simple_completion,
37933 print_partition_completion, add_completion, iterate_commands,
37934 iterate_dev, iterate_part and iterate_dir. Moved code to print
37935 partition information from here to kern/disk.c.
37936 (pupa_cmdline_run): Don't check if the function exists anymore.
37937 * normal/main.c: Include <pupa/env.h>.
37938 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
37939 instead of using pupa_dl_get_prefix to get the prefix.
37940 * term/i386/pc/vga.c: Include <pupa/arg.h>.
37941 (check_vga_mem): Cast pointers to `void *' to silence a gcc
37942 warning.
37943 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
37944 (pupa_vga_setcolor): Declare unused variables with `__attribute__
37945 ((unused))' to silence a gcc warning.
37946 (pupa_vga_setcolor): Likewise.
37947 (debug_command): Changed to match argument parsing
37948 interface changes.
37949 * util/pupa-emu.c: Include <pupa/env.h>.
37950 (options): Added 0's for unused fields to silence a gcc warning.
37951 (argp): Likewise.
37952 (main): Use the environment variable `prefix' instead of using
37953 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
37954 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
37955 and terminal.
37956
37957 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
37958 * util/misc.c: Include <malloc.h>.
37959 (pupa_malloc): Rewritten so errors are correctly reported.
37960 (pupa_realloc): Likewise.
37961 (pupa_memalign): Likewise.
37962 (pupa_mm_init_region): Declare unused variables with
37963 `__attribute__ ((unused))' to silence a gcc warning.
37964 * normal/i386/setjmp.S: Remove tab at the end of the file to
37965 silence a gcc warning.
37966 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
37967 variables with `__attribute__ ((unused))' to silence a gcc
37968 warning.
37969 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
37970 local variable i unsigned to silence a gcc warning.
37971
37972 * kern/term.c: Include <pupa/misc.h>.
37973 (pupa_more_lines): New variable.
37974 (pupa_more): Likewise.
37975 (pupa_putcode): When the pager is active pause at the end of every
37976 screen.
37977 (pupa_set_more): New function.
37978 * include/pupa/term.h (pupa_set_more): New prototype.
37979
37980
37981 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
37982
37983 Now this project is GRUB 2 rather than PUPA. The location of
37984 the CVS repository was moved to GRUB's.
37985
37986 * configure.ac: Use bug-grub as the reporting address.
37987 Use GRUB instead of PUPA.
37988 Change the version number to 1.90.
37989
37990 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
37991
37992 * genkernsyms.sh: Updated copyright information.
37993 * genmk.rb: Likewise.
37994 * genmodsrc.sh: Likewise.
37995 * gensymlist.sh: Likewise.
37996 * boot/i386/pc/boot.S: Likewise.
37997 * boot/i386/pc/diskboot.S: Likewise.
37998 * disk/i386/pc/biosdisk.c: Likewise.
37999 * disk/i386/pc/partition.c: Likewise.
38000 * font/manager.c: Likewise.
38001 * fs/ext2.c: Likewise.
38002 * fs/fat.c: Likewise.
38003 * include/pupa/boot.h: Likewise.
38004 * include/pupa/device.h: Likewise.
38005 * include/pupa/disk.h: Likewise.
38006 * include/pupa/dl.h: Likewise.
38007 * include/pupa/elf.h: Likewise.
38008 * include/pupa/err.h: Likewise.
38009 * include/pupa/file.h: Likewise.
38010 * include/pupa/font.h: Likewise.
38011 * include/pupa/fs.h: Likewise.
38012 * include/pupa/kernel.h: Likewise.
38013 * include/pupa/loader.h: Likewise.
38014 * include/pupa/misc.h: Likewise.
38015 * include/pupa/mm.h: Likewise.
38016 * include/pupa/net.h: Likewise.
38017 * include/pupa/normal.h: Likewise.
38018 * include/pupa/rescue.h: Likewise.
38019 * include/pupa/setjmp.h: Likewise.
38020 * include/pupa/symbol.h: Likewise.
38021 * include/pupa/term.h: Likewise.
38022 * include/pupa/types.h: Likewise.
38023 * include/pupa/i386/setjmp.h: Likewise.
38024 * include/pupa/i386/types.h: Likewise.
38025 * include/pupa/i386/pc/biosdisk.h: Likewise.
38026 * include/pupa/i386/pc/boot.h: Likewise.
38027 * include/pupa/i386/pc/console.h: Likewise.
38028 * include/pupa/i386/pc/init.h: Likewise.
38029 * include/pupa/i386/pc/kernel.h: Likewise.
38030 * include/pupa/i386/pc/linux.h: Likewise.
38031 * include/pupa/i386/pc/loader.h: Likewise.
38032 * include/pupa/i386/pc/memory.h: Likewise.
38033 * include/pupa/i386/pc/multiboot.h: Likewise.
38034 * include/pupa/i386/pc/partition.h: Likewise.
38035 * include/pupa/i386/pc/time.h: Likewise.
38036 * include/pupa/i386/pc/vga.h: Likewise.
38037 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
38038 * include/pupa/util/getroot.h: Likewise.
38039 * include/pupa/util/misc.h: Likewise.
38040 * include/pupa/util/resolve.h: Likewise.
38041 * kern/device.c: Likewise.
38042 * kern/disk.c: Likewise.
38043 * kern/dl.c: Likewise.
38044 * kern/err.c: Likewise.
38045 * kern/file.c: Likewise.
38046 * kern/fs.c: Likewise.
38047 * kern/loader.c: Likewise.
38048 * kern/main.c: Likewise.
38049 * kern/misc.c: Likewise.
38050 * kern/mm.c: Likewise.
38051 * kern/rescue.c: Likewise.
38052 * kern/term.c: Likewise.
38053 * kern/i386/dl.c: Likewise.
38054 * kern/i386/pc/init.c: Likewise.
38055 * kern/i386/pc/lzo1x.S: Likewise.
38056 * kern/i386/pc/startup.S: Likewise.
38057 * loader/i386/pc/chainloader.c: Likewise.
38058 * loader/i386/pc/linux.c: Likewise.
38059 * loader/i386/pc/multiboot.c: Likewise.
38060 * normal/cmdline.c: Likewise.
38061 * normal/command.c: Likewise.
38062 * normal/main.c: Likewise.
38063 * normal/menu.c: Likewise.
38064 * normal/i386/setjmp.S: Likewise.
38065 * term/i386/pc/console.c: Likewise.
38066 * term/i386/pc/vga.c: Likewise.
38067 * util/console.c: Likewise.
38068 * util/genmoddep.c: Likewise.
38069 * util/misc.c: Likewise.
38070 * util/pupa-emu.c: Likewise.
38071 * util/resolve.c: Likewise.
38072 * util/unifont2pff.rb: Likewise.
38073 * util/i386/pc/biosdisk.c: Likewise.
38074 * util/i386/pc/getroot.c: Likewise.
38075 * util/i386/pc/pupa-mkimage.c: Likewise.
38076 * util/i386/pc/pupa-setup.c: Likewise.
38077
38078 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
38079
38080 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
38081 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
38082 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
38083 reading and reset it after reading.
38084 (pupa_ext2_close): Return PUPA_ERR_NONE.
38085
38086 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
38087 Correct value.
38088 (struct linux_kernel_header): Add kernel_version and
38089 initrd_addr_max.
38090 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
38091 pupa_file_read succeeds.
38092 (pupa_rescue_cmd_initrd): Implement.
38093
38094 2003-12-03 Marco Gerards <metgerards@student.han.nl>
38095
38096 * fs/ext2.c (pupa_ext2_label): New function.
38097 (pupa_ext2_fs): Added label.
38098 * fs/fat.c (pupa_fat_label): New function.
38099 (pupa_fat_fs): Added label.
38100 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
38101
38102 * kern/misc.c (pupa_strndup): New function.
38103 * include/pupa/misc.h (pupa_strndup): New prototype.
38104
38105 * include/pupa/normal.h: Include <pupa/err.h>.
38106 (pupa_set_history): New prototype.
38107 (pupa_iterate_commands): New prototype.
38108 * normal/cmdline.c: Include <pupa/machine/partition.h>,
38109 <pupa/disk.h>, <pupa/file.h>.
38110 (hist_size): New variable.
38111 (hist_lines): Likewise.
38112 (hist_end): Likewise.
38113 (hist_used): Likewise.
38114 (pupa_set_history): New function.
38115 (pupa_history_get): Likewise.
38116 (pupa_history_add): Likewise.
38117 (pupa_history_replace): Likewise.
38118 (pupa_tab_complete): Likewise.
38119 (pupa_cmdline_run): Added tab completion and history buffer. Tab
38120 completion shows partitionnames while completing partitions, this
38121 feature was suggested by Jeff Bailey.
38122 * normal/command.c (pupa_iterate_commands): New function.
38123 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
38124 (pupa_normal_init): Initialize history buffer.
38125 (PUPA_MOD_INIT): Likewise.
38126 (pupa_normal_fini): Free the history buffer.
38127 (PUPA_MOD_FINI): Likewise.
38128
38129 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
38130 key.
38131
38132 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
38133 * configure.ac [i386]: Check for regparam bug.
38134 (NESTED_FUNC_ATTR) [! i386]: Defined.
38135
38136 2003-11-17 Marco Gerards <metgerards@student.han.nl>
38137
38138 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
38139 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
38140 (pupa_emu_SOURCES): New variable.
38141 (pupa_emu_LDFLAGS): Likewise.
38142 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
38143 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
38144 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
38145 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
38146 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
38147 (pupa_jmp_buf): New typedef.
38148 (pupa_setjmp) [PUPA_UTIL]: New macro.
38149 (pupa_longjmp) [PUPA_UTIL]: Likewise.
38150 * include/pupa/term.h (struct pupa_term): New member `refresh'.
38151 (pupa_refresh): New prototype.
38152 * include/pupa/util/getroot.h: New file.
38153 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
38154 it.
38155 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
38156 (pupa_rescue_cmd_cat): Likewise.
38157 (pupa_rescue_cmd_ls): Likewise.
38158 (pupa_rescue_cmd_testload): Likewise.
38159 (pupa_rescue_cmd_lsmod): Likewise.
38160 * normal/cmdline.c (pupa_cmdline_get): Likewise.
38161 * normal/menu.c (run_menu): Likewise.
38162 * kern/term.c (pupa_cls): Likewise.
38163 (pupa_refresh): New function.
38164 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
38165 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
38166 * util/console.c: New file.
38167
38168 * util/i386/pc/getroot.c: New file.
38169 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
38170 (pupa_putchar): New function.
38171 (pupa_refresh): Likewise.
38172 (xgetcwd): Function moved to ...
38173 (strip_extra_slashes): Likewise.
38174 (get_prefix): Likewise.
38175 * util/i386/pc/getroot.c: ... here.
38176 (find_root_device): Function moved and renamed to...
38177 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
38178 Changed all callers.
38179 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
38180 and renamed to...
38181 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
38182 Changed all callers.
38183 * util/misc.c (pupa_memalign): New function.
38184 (pupa_mm_init_region): Likewise.
38185 (pupa_register_exported_symbols): Likewise.
38186 (pupa_putchar): Function removed.
38187 * util/pupa-emu.c: New file.
38188
38189 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
38190
38191 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
38192 (_multiboot_mod_SOURCES): New variable.
38193 (_multiboot_mod_CFLAGS): Likewise.
38194 * loader/i386/pc/multiboot.c: New file.
38195 * include/pupa/i386/pc/multiboot.h: Likewise.
38196 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
38197 (pupa_multiboot_real_boot): New function.
38198 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
38199 (pupa_multiboot_real_boot): New prototype.
38200 (pupa_rescue_cmd_multiboot): Likewise
38201 (pupa_rescue_cmd_module): Likewise.
38202
38203 * kern/loader.c (pupa_loader_set): Continue when
38204 pupa_loader_unload_func() fails.
38205 (pupa_loader_unset): New function.
38206 * include/pupa/loader.h (pupa_loader_unset): New prototype.
38207
38208 * kern/misc.c (pupa_stpcpy): New function.
38209 * include/pupa/misc.h (pupa_stpcpy): New prototype.
38210
38211 2003-11-12 Marco Gerards <metgerards@student.han.nl>
38212
38213 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
38214 for available extensions.
38215
38216 * include/pupa/i386/pc/time.h: New file.
38217 * kern/disk.c: Include <pupa/machine/time.h>.
38218 (PUPA_CACHE_TIMEOUT): New macro.
38219 (pupa_last_time): New variable.
38220 (pupa_disk_open): Flush the cache when there was a timeout.
38221 (pupa_disk_close): Reset the timer.
38222 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
38223 pupa_currticks.
38224 * util/misc.c: Include <sys/times.h>
38225 (pupa_get_rtc): New function.
38226
38227 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
38228
38229 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
38230 as blocks.
38231 (pupa_ext2_get_file_block): Use blocks member.
38232
38233 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
38234 first block. Return -1 instead of pupa_errno on error.
38235
38236 2003-10-27 Marco Gerards <metgerards@student.han.nl>
38237
38238 * README: In the pupa-mkimage example use _chain instead of chain
38239 and ext2 instead of fat.
38240 * TODO: Replace ext2fs with jfs as an example. Add an item for
38241 adding journal playback for ext2fs.
38242 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
38243 (pkgdata_MODULES): Added ext2.mod.
38244 (ext2_mod_SOURCES): New variable.
38245 (ext2_mod_CFLAGS): Likewise.
38246 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
38247 * include/pupa/misc.h (pupa_strncpy): New prototype.
38248 (pupa_strcat): Likewise.
38249 (pupa_strncmp): Likewise.
38250 * kern/misc.c (pupa_strcat): Enable function.
38251 (pupa_strncpy): New function.
38252 (pupa_strncmp): Likewise.
38253 * fs/ext2.c: New file.
38254
38255 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
38256 when the read failed before retrying.
38257 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
38258 (_FILE_OFFSET_BITS): Likewise.
38259 * configure.ac: Added AC_SYS_LARGEFILE.
38260
38261 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
38262
38263 * genmk.rb (PModule#rule): Make sure to get only symbol names
38264 from the output of nm.
38265 Reported by Robert Millan <rmh.grub@aybabtu.com>.
38266
38267 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
38268
38269 I forgot to check in these changes for a long time. This adds
38270 incomplete support for VGA console, and this is still very
38271 buggy. Also, a lot of consideration is required for I18N,
38272 UNICODE, and VGA font issues. Therefore, assume that this is
38273 such that "better than nothing".
38274
38275 * font/manager.c: New file.
38276 * include/pupa/font.h: Likewise.
38277 * include/pupa/i386/pc/vga.h: Likewise.
38278 * term/i386/pc/vga.c: Likewise.
38279 * util/unifont2pff.rb: Likewise.
38280
38281 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
38282 (pkgdata_MODULES): Added vga.mod and font.mod.
38283 (vga_mod_SOURCES): New variables.
38284 (vga_mod_CFLAGS): Likewise.
38285 (font_mod_SOURCES): Likewise.
38286 (font_mod_CFLAGS): Likewise.
38287
38288 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
38289
38290 * include/pupa/term.h: Include pupa/err.h.
38291 (struct pupa_term): Added init and fini.
38292 Changed the argument of putchar to pupa_uint32_t.
38293
38294 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
38295 (pupa_console_real_putchar): New prototype.
38296 (pupa_console_putchar): Removed.
38297 (pupa_console_checkkey): Exported.
38298 (pupa_console_getkey): Likewise.
38299
38300 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
38301 characters.
38302
38303 * kern/term.c (pupa_term_set_current): Rewritten.
38304 (pupa_putchar): Likewise.
38305 (pupa_putcode): New function.
38306
38307 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
38308 (pupa_console_real_putchar): ... this.
38309 (pupa_vga_set_mode): New function.
38310 (pupa_vga_get_font): Likewise.
38311
38312 * normal/command.c: Include pupa/term.h.
38313 (terminal_command): New function.
38314 (pupa_command_init): Register the command "terminal".
38315
38316 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
38317 (DISP_UP): Likewise.
38318 (DISP_RIGHT): Likewise.
38319 (DISP_DOWN): Likewise.
38320 (DISP_HLINE): Likewise.
38321 (DISP_VLINE): Likewise.
38322 (DISP_UL): Likewise.
38323 (DISP_UR): Likewise.
38324 (DISP_LL): Likewise.
38325 (DISP_LR): Likewise.
38326
38327 * term/i386/pc/console.c (pupa_console_putchar): New function.
38328
38329 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
38330
38331 * util/resolve.c (pupa_util_resolve_dependencies): BUG
38332 FIX. Reverse the path_list.
38333
38334 * include/pupa/normal.h: Export pupa_register_command and
38335 pupa_unregister_command.
38336
38337 * hello/hello.c (pupa_cmd_hello): New module.
38338 * conf/i386-pc.rmk: Added hello.mod.
38339
38340 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
38341
38342 * kern/i386/pc/lzo1x.S: New file.
38343
38344 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
38345 (compress_kernel): New variable.
38346 (generate_image): Heavily modified to support compressing a
38347 large part of the core image.
38348
38349 * util/misc.c (pupa_util_read_image): Fix a file descriptor
38350 leak.
38351 (pupa_util_load_image): New function.
38352
38353 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
38354 (pupa_compressed_size): New variable.
38355 (codestart): Enable Gate A20 here.
38356 Decompress the compressed part of the core image.
38357 Rearrange the code to put functions and variables which are
38358 required for initialization in the non-compressed part.
38359 Include lzo1x.S.
38360
38361 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
38362 here.
38363
38364 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
38365
38366 * include/pupa/i386/pc/kernel.h
38367 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
38368 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
38369 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38370 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38371 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
38372
38373 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
38374
38375 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
38376 (Utility#rule): Likewise.
38377
38378 * configure.ac: Check if LZO is available.
38379
38380 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
38381
38382 * include/pupa/normal.h: New file.
38383 * include/pupa/setjmp.h: Likewise.
38384 * include/pupa/i386/setjmp.h: Likewise.
38385 * normal/cmdline.c: Likewise.
38386 * normal/command.c: Likewise.
38387 * normal/main.c: Likewise.
38388 * normal/menu.c: Likewise.
38389 * normal/i386/setjmp.S: Likewise.
38390
38391 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
38392 (pupa_rescue_cmd_initrd): Likewise.
38393
38394 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
38395 Likewise.
38396
38397 * kern/i386/pc/startup.S (translation_table): New variable.
38398 (translate_keycode): New function.
38399 (pupa_console_getkey): Call translate_keycode.
38400
38401 * kern/rescue.c (attempt_normal_mode): New function.
38402 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
38403 it failed, print a message.
38404
38405 * kern/mm.c (pupa_real_malloc): Print more information when a
38406 free magic is broken.
38407 (pupa_free): If the first free header is not free actually, set
38408 it to P.
38409
38410 * kern/main.c (pupa_load_normal_mode): Just load the module
38411 "normal".
38412 (pupa_main): Don't print the message
38413 "Entering into rescue mode..." here.
38414
38415 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
38416 Declared.
38417 (pupa_rescue_cmd_initrd): Likewise.
38418 (pupa_rescue_cmd_initrd): Likewise.
38419
38420 * include/pupa/symbol.h (FUNCTION): Specify the type.
38421 (VARIABLE): Likewise.
38422
38423 * include/pupa/err.h (pupa_err_t): Added
38424 PUPA_ERR_UNKNOWN_COMMAND.
38425
38426 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
38427 (pupa_dl_get_prefix): Likewise.
38428
38429 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
38430 Added _chain.mod and _linux.mod instead of chain.mod and
38431 linux.mod.
38432 (chain_mod_SOURCES): Renamed to ...
38433 (_chain_mod_SOURCES): ... this.
38434 (chain_mod_CFLAGS): Renamed to ...
38435 (_chain_mod_CFLAGS): ... this.
38436 (linux_mod_SOURCES): Renamed to ...
38437 (_linux_mod_SOURCES): ... this.
38438 (linux_mod_CFLAGS): Renamed to ...
38439 (_linux_mod_CFLAGS): ... this.
38440 (normal_mod_SOURCES): New variable.
38441 (normal_mod_CFLAGS): Likewise.
38442 (normal_mod_ASFLAGS): Likewise.
38443
38444 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
38445
38446 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
38447 possible.
38448
38449 * kern/dl.c (pupa_dl_ref): Refer depending modules
38450 recursively.
38451 (pupa_dl_unref): Unrefer depending modules recursively.
38452 Don't call pupa_dl_unload implicitly, because PUPA can crash if
38453 a module is unloaded before one depending on that module is
38454 unloaded.
38455 (pupa_dl_unload): Unload depending modules explicitly,
38456 if possible.
38457
38458 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
38459
38460 * include/pupa/i386/pc/linux.h: New file.
38461 * loader/i386/pc/linux.c: Likewise.
38462
38463 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
38464 Removed.
38465 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
38466 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
38467 of PUPA_CHAINLOADER_BOOT_SECTOR.
38468
38469 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
38470 (pupa_linux_prot_size): New variable.
38471 (pupa_linux_tmp_addr): Likewise.
38472 (pupa_linux_real_addr): Likewise.
38473 (pupa_linux_boot_zimage): New function.
38474 (pupa_linux_boot_bzimage): Likewise.
38475
38476 * kern/i386/pc/init.c (struct mem_region): New structure.
38477 (MAX_REGIONS): New macro.
38478 (mem_regions): New variable.
38479 (num_regions): Likewise.
38480 (pupa_os_area_addr): Likewise.
38481 (pupa_os_area_size): Likewise.
38482 (pupa_lower_mem): Likewise.
38483 (pupa_upper_mem): Likewise.
38484 (add_mem_region): New function.
38485 (compact_mem_regions): Likewise.
38486 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
38487 the size of the conventional memory and that of so-called upper
38488 memory (before the first memory hole).
38489 Instead of adding each found region to free memory, use
38490 add_mem_region and add them after removing overlaps.
38491 Also, add only 1/4 of the upper memory to free memory. The rest
38492 is used for loading OS images. Maybe this is ad hoc, but this
38493 makes it much easier to relocate OS images when booting.
38494
38495 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
38496 (pupa_enter_rescue_mode): Don't register initrd and module.
38497
38498 * kern/mm.c: Include pupa/dl.h.
38499
38500 * kern/main.c: Include pupa/file.h and pupa/device.h.
38501
38502 * kern/loader.c (pupa_loader_load_module_func): Removed.
38503 (pupa_loader_load_module): Likewise.
38504
38505 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
38506 ``.o''.
38507
38508 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
38509 (pupa_linux_tmp_addr): Likewise.
38510 (pupa_linux_real_addr): Likewise.
38511 (pupa_linux_boot_zimage): Likewise.
38512 (pupa_linux_boot_bzimage): Likewise.
38513
38514 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
38515 (pupa_upper_mem): Likewise.
38516 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
38517 module is too dangerous.
38518
38519 * include/pupa/loader.h (pupa_os_area_addr): Declared.
38520 (pupa_os_area_size): Likewise.
38521 (pupa_loader_set): Remove the first argument. Loader doesn't
38522 manage modules or initrd any longer.
38523 (pupa_loader_load_module): Removed.
38524
38525 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
38526 (linux_mod_SOURCES): New variable.
38527 (linux_mod_CFLAGS): Likewise.
38528
38529 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
38530
38531 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
38532 the length of a blocklist correctly.
38533
38534 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
38535 Use ioctl only if the OS file is a block device.
38536 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
38537 not very useful for normal files.
38538
38539 * kern/main.c (pupa_set_root_dev): New function.
38540 (pupa_load_normal_mode): Likewise.
38541 (pupa_main): Call those above.
38542
38543 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
38544 pupa_uint16_t.
38545
38546 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
38547
38548 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38549
38550 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
38551 (setup): Configure the installed partition information and the
38552 dl prefix.
38553
38554 * loader/i386/pc/chainloader.c (my_mod): New variable.
38555 (pupa_chainloader_unload): New function.
38556 (pupa_rescue_cmd_chainloader): Refer itself.
38557 (PUPA_MOD_INIT): Save its own module in MY_MOD.
38558
38559 * kern/i386/pc/startup.S (install_partition): Removed.
38560 (version_string): Likewise.
38561 (config_file): Likewise.
38562 (pupa_install_dos_part): New variable.
38563 (pupa_install_bsd_part): Likewise.
38564 (pupa_prefix): Likewise.
38565 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
38566
38567 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
38568 and pupa/misc.h.
38569 (make_install_device): New function.
38570 (pupa_machine_init): Set the dl prefix.
38571
38572 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
38573 (buf): Renamed to ...
38574 (linebuf): ... this.
38575 (pupa_rescue_cmd_prefix): New function.
38576 (pupa_rescue_cmd_insmod): Likewise.
38577 (pupa_rescue_cmd_rmmod): Likewise.
38578 (pupa_rescue_cmd_lsmod): Likewise.
38579 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
38580 rmmod and lsmod.
38581
38582 * kern/mm.c (pupa_memalign): If failed even after invalidating
38583 disk caches, unload unneeded modules and retry.
38584
38585 * kern/misc.c (pupa_memmove): New function.
38586 (pupa_memcpy): Removed.
38587 (pupa_strcpy): New function.
38588 (pupa_itoa): Made static.
38589
38590 * kern/dl.c (pupa_dl_iterate): New function.
38591 (pupa_dl_ref): Likewise.
38592 (pupa_dl_unref): Likewise.
38593 (pupa_dl_unload): Return if succeeded or not.
38594 (pupa_dl_unload_unneeded): New function.
38595 (pupa_dl_unload_all): Likewise.
38596 (pupa_dl_init): Renamed to ...
38597 (pupa_dl_set_prefix): ... this.
38598 (pupa_dl_get_prefix): New function.
38599
38600 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
38601 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
38602 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38603 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38604 (pupa_install_dos_part): Declared.
38605 (pupa_install_bsd_part): Likewise.
38606 (pupa_prefix): Likewise.
38607 (pupa_boot_drive): Likewise.
38608
38609 * include/pupa/types.h: Fix a typo.
38610
38611 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
38612 pupa_memmove.
38613 (pupa_memmove): Declared.
38614 (pupa_strcpy): Likewise.
38615
38616 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
38617 pupa_mod_init takes one argument, its own module.
38618 (pupa_dl_unload_unneeded): Declared.
38619 (pupa_dl_unload_all): Likewise.
38620 (pupa_dl_ref): Likewise.
38621 (pupa_dl_unref): Likewise.
38622 (pupa_dl_iterate): Likewise.
38623 (pupa_dl_init): Renamed to ...
38624 (pupa_dl_set_prefix): ... this.
38625 (pupa_dl_get_prefix): Declared.
38626
38627 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
38628 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
38629 unloaded.
38630 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
38631 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
38632
38633 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
38634 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
38635
38636 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38637
38638 * util/i386/pc/pupa-setup.c (setup): Define the internal
38639 function find_first_partition_start at the top level, because GCC
38640 3.0.x cannot compile internal functions in deeper scopes
38641 correctly.
38642 (find_root_device): Use lstat instead of stat.
38643 Don't follow symbolic links.
38644 Fix the path-constructing code.
38645
38646 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
38647 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
38648 by a BLKGETSIZE ioctl first, because block devices don't fill
38649 the member st_mode of the structure stat on Linux.
38650 [__linux__] (linux_find_partition): Use a temporary buffer
38651 REAL_DEV for the working space. Copy it to DEV before returning.
38652 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
38653 buffer cache consistent.
38654 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
38655 strncmp. The previous value was merely wrong.
38656 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
38657
38658 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
38659 FAT size is 12. The previous value was merely wrong.
38660
38661 * kern/main.c (pupa_main): Don't split the starting message from
38662 newlines.
38663
38664 * kern/term.c (pupa_putchar): Put CR after LF instead of before
38665 LF, because BIOS goes crazy about character attributes in this
38666 case.
38667
38668 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38669
38670 * include/i386/pc/util/biosdisk.h: New file.
38671 * util/i386/pc/biosdisk.c: Likewise.
38672 * util/i386/pc/pupa-setup.c: Likewise.
38673
38674 * Makefile.in (INCLUDE_DISTFILES): Added
38675 include/pupa/i386/pc/util/biosdisk.h.
38676 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
38677 directory util/i386/pc.
38678 (install-local): Added a rule for sbin_UTILITIES.
38679 (uninstall): Likewise.
38680
38681 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
38682
38683 * util/misc.c (xrealloc): New function.
38684 (pupa_malloc): Likewise.
38685 (pupa_free): Likewise.
38686 (pupa_realloc): Likewise.
38687 (pupa_stop): Likewise.
38688 (pupa_putchar): Likewise.
38689
38690 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
38691
38692 * include/pupa/util/misc.h (xrealloc): Declared.
38693
38694 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
38695 macro.
38696 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
38697 (PUPA_BOOT_MACHINE_BPB_END): ... this.
38698
38699 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
38700 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38701
38702 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
38703 way should be implemented.
38704 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38705
38706 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
38707 the size of NAME for safety.
38708 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
38709 0x88.
38710
38711 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
38712 (pupa_setup_SOURCES): Likewise.
38713
38714 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
38715
38716 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38717
38718 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
38719 bunch of pushl's from pusha, because this destroys the return
38720 value.
38721
38722 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38723
38724 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
38725 This means that any missing prototypes could be fatal. Also, you
38726 must take care when writing assembly code. See the comments at
38727 the beginning of startup.S, for more details.
38728
38729 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
38730 compilation mechanism.
38731 (pupa_chainloader_real_boot): Likewise.
38732 (pupa_biosdisk_rw_int13_extensions): Likewise.
38733 (pupa_biosdisk_rw_standard): Likewise.
38734 (pupa_biosdisk_check_int13_extensions): Likewise.
38735 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
38736 (pupa_biosdisk_get_diskinfo_standard): Likewise.
38737 (pupa_get_memsize): Likewise.
38738 (pupa_get_mmap_entry): Likewise.
38739 (pupa_console_putchar): Likewise.
38740 (pupa_console_setcursor): Likewise.
38741 (pupa_getrtsecs): Use pushl instead of push.
38742
38743 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
38744 memory instead of the stack for a mmap entry, because some
38745 BIOSes may ignore the maximum size and overflow.
38746
38747 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
38748
38749 * genmk.rb (PModule#rule): Compile automatically generated
38750 sources with module-specific CFLAGS as well as other sources.
38751
38752 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38753
38754 * configure.ac: Check ld.
38755 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
38756 respectively, before checking endianness and sizes.
38757
38758 * Makefile.in (LD): New variable.
38759
38760 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38761
38762 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
38763
38764 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38765
38766 * Changelog: New file.
38767