]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
[grub2.git] / ChangeLog
1 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4
5 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8 drive failure on both raidz and raidz2.
9
10 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11
12 Fix RAIDZ(2) for >= 5 devices.
13
14 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
15 asize argument. All users updated.
16
17 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18
19 Fix RAIDZ(2).
20
21 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
22 (fill_vdev_info_real): Set ashift.
23 (read_device): Rewrite RAIDZ part based on reverse engineering.
24
25 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
28 don't report potentially unavialiable fields in debug output.
29 (find_path): Fix double-free and memory leak.
30
31 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
32
33 Read label on UFS1.
34
35 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
36 (grub_ufs_fs): Always set .label.
37
38 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
39
40 Use shifts in UFS.
41
42 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
43 (grub_ufs_data): New field log2_blksz.
44 (grub_ufs_read_file): Use shifts.
45 (grub_ufs_mount): Check block size and logarithm it.
46
47 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
50 long symlinks.
51
52 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
53
54 Handle symlinks and long names on tar and cpio.
55
56 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
57 (ATTR_FILE): Likewise.
58 (ATTR_DIR): Likewise.
59 (ATTR_LNK): Likewise.
60 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
61 (grub_cpio_find_file): Fill mode, handle linkname field as well as
62 L and K entries.
63 (grub_cpio_mount): Zero-fill data.
64 (handle_symlink): New function.
65 (grub_cpio_dir): Handle symlinks.
66 (grub_cpio_open): Likewise.
67 (grub_cpio_close) [MODE_USTAR]: Free linkname.
68
69 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
70
71 Fix iso9660 filename limitations and fix memory leaks.
72
73 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
74 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
75
76 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
77
78 Fix JFS file name length limitations.
79
80 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
81 (grub_jfs_diropen): Fix maximum filename length.
82 (grub_jfs_getent): Fix filename length.
83 (grub_jfs_lookup_symlink): Fix size checks.
84
85 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
88 string.
89
90 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
91
92 Leverage BFS implementation to read AFS.
93
94 * Makefile.util.def (libgrubmods): Add afs.c.
95 * grub-core/Makefile.core.def (afs): New module
96 * grub-core/fs/afs.c: New file.
97 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
98
99 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
102
103 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
104
105 * grub-core/fs/bfs.c: Run indent.
106
107 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
108
109 BFS implementation based on the specification.
110
111 * grub-core/fs/bfs.c: New file.
112 * Makefile.util.def (libgrubmods): Add bfs.c.
113 * grub-core/Makefile.core.def (bfs): New module.
114
115 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * util/grub-fstest.c (cmd_cp): Clarify error message.
118 (cmd_cmp): Likewise.
119
120 2011-10-30 Yves Blusseau <blusseau@zetam.org>
121
122 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
123 and befs_be.
124
125 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
126
127 Remove afs and befs because of copyright problem.
128
129 * grub-core/fs/afs.c: Removed.
130 * grub-core/fs/afs_be.c: Removed.
131 * grub-core/fs/befs.c: Removed.
132 * grub-core/fs/befs_be.c: Removed.
133 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
134 * grub-core/Makefile.core.def (afs): Removed.
135 (afs_be): Likewise.
136 (befs): Likewise.
137 (befs_be): Likewise.
138
139 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
140
141 Prefer rockridge over Joliet.
142
143 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
144 to ...
145 (set_rockridge): ... here.
146 (grub_iso9660_mount): Check rockridge on the primary label when
147 discovering. Ignore Joliet if Rockridge is present.
148
149 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
150
151 Use shifts in nilfs2.
152
153 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
154 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
155 (grub_nilfs2_palloc_entries_per_group): Replace with ...
156 (grub_nilfs2_log_palloc_entries_per_group): ... this.
157 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
158 (grub_nilfs2_entries_per_block): Replaced with ...
159 (grub_nilfs2_log_entries_per_block_log): ... this.
160 (grub_nilfs2_blocks_per_group): Replaced with ...
161 (grub_nilfs2_blocks_per_group_log): ... this.
162 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
163 (grub_nilfs2_blocks_per_desc_block_log): ... this.
164 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
165 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
166 (grub_nilfs2_palloc_entry_offset): Replaced ...
167 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
168 (grub_nilfs2_dat_translate): Use shifts.
169 (grub_nilfs2_read_inode): Likewise.
170 (GRUB_MOD_INIT): Ensure that logs are correct.
171
172 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
173
174 Use shifts in minix filesystem.
175
176 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
177 (GRUB_MINIX_ZONE2SECT): Likewise.
178 (grub_minix_data): Replace block_size with log_block_size.
179 (grub_minix_read_file): Use shifts.
180 (grub_minix_mount): Check block size and take a logarithm.
181
182 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
183
184 Use shifts in squash4.
185
186 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
187 (squash_mount): Check block size and take logarithm.
188 (direct_read): Use shifts.
189
190 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
191
192 Correct befs block counting logic.
193
194 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
195 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
196 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
197 (grub_afs_read_inode): Use block_shift.
198 (RANGE_SHIFT): New definition.
199 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
200 unexpected conditions, use shifts and appropriate types.
201 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
202
203 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
204
205 * grub-core/disk/raid.c (scan_devices): Check partition.
206 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
207
208 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
209
210 Support BFS (befs) UUID.
211
212 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
213 (grub_afs_small_data_element_header): New struct.
214 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
215 (grub_afs_read_attribute) [MODE_BFS]: New function.
216 (grub_afs_iterate_dir): Allocate for complete inode.
217 (grub_afs_mount): Likewise.
218 (grub_afs_uuid) [MODE_BFS]: New function.
219 (grub_afs_fs) [MODE_BFS]: Add .uuid.
220
221 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
224 (zfs_unmount): Fix memory leak.
225
226 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
227
228 Support NTFS reparse points.
229
230 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
231 (symlink_descriptor): New struct.
232 (grub_ntfs_read_symlink): New function.
233 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
234 (grub_ntfs_open): Likewise.
235
236 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
239
240 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
241
242 fstest xnu_uuid subcommand.
243
244 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
245 grub-core/commands/xnu_uuid.c.
246 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
247 (fstest): Handle xnu_uuid.
248 (options): Document xnu_uuid.
249 (argp_parser): Parse xnu_uuid.
250
251 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
254 -l argument. Add newline at the end if printing.
255 (GRUB_MOD_INIT): Document -l.
256
257 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
260
261 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
262
263 ZFS multi-device and version 33 support.
264
265 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
266 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
267 (grub_zfs_data): Add multidev-ice-related fields.
268 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
269 (dva_get_offset): Make dva const.
270 (zfs_fetch_nvlist): New function.
271 (fill_vdev_info_real): Likewise.
272 (fill_vdev_info): Likewise.
273 (check_pool_label): Likewise.
274 (scan_disk): Likewise.
275 (scan_devices): Likewise.
276 (read_device): Likewise.
277 (read_dva): Likewise.
278 (zio_read_gang): Use read_dva.
279 (zio_read_data): Likewise.
280 (zap_leaf_lookup): Add missing endian conversion.
281 (zap_verify): Add missing endian conversion. All users updated.
282 (fzap_lookup): Likewise.
283 (fzap_iterate): Likewise.
284 (dnode_get_path): Handle SA bonus.
285 (nvlist_find_value): Make input const. All users updated.
286 (unmount_device): New function.
287 (zfs_unmount): Use unmount_device.
288 (zfs_mount): Use scan_disk.
289 (zfs_mtime): New function.
290 (grub_zfs_open): Handle system attributes.
291 (fill_fs_info): Likewise.
292 (grub_zfs_dir): Likewise.
293 (grub_zfs_fs): Add mtime.
294 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
295 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
296 (SA_MTIME_OFFSET): Likewise.
297 (SA_SYMLINK_OFFSET): Likewise.
298 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
299 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
300 (fstest): Support zfsinfo.
301 (argp_parser): Likewise.
302
303 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
306 error.
307
308 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
309
310 ZFS fixes.
311
312 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
313 sharing the same block. Iterate over correct number of indices.
314 (dnode_get_path): Handle symlinks correctly.
315
316 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
319
320 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
321
322 Read label on HFS+.
323
324 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
325 (grub_hfsplus_btree_search): Fix types.
326 (grub_hfsplus_label): Implement.
327
328 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
331
332 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
335
336 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
337
338 Fix symlink handling on iso9660.
339
340 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
341 All users updated.
342 (grub_iso9660_susp_iterate): Accept zero-size iterate.
343 (grub_iso9660_read_symlink): Moved most of code ...
344 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
345
346 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
349 Use union to avoid breaking strict-aliasing rules.
350
351 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
352
353 Support multi-extent iso files.
354
355 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
356 Add node.
357 (grub_fshelp_node): Revamp. All users updated.
358 (FLAG_*): New enum.
359 (read_node): New function.
360 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
361 All users updated.
362 (grub_iso9660_mount): Don't attempt to read sua when there is none.
363 (get_node_size): New function.
364 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
365 entries.
366 Fix memory leak on . and ..
367 (grub_iso9660_read): Use read_node.
368 (grub_iso9660_close): Free node.
369
370 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
371
372 Fix tar 4G limit and handle paths containing dot.
373
374 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
375 (canonicalize): New function.
376 (grub_cpio_find_file): Use canonicalize. Store offs in
377 grub_disk_addr_t.
378 (grub_cpio_dir): Use grub_disk_addr_t.
379 (grub_cpio_open): Likewise.
380
381 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
382
383 Fix handling of uncompressed blocks on squashfs and break 4G limit.
384
385 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
386 unused flags.
387 (grub_squash_inode): Add long_file and block_size.
388 (grub_squash_cache_inode): New struct.
389 (grub_squash_dirent): Make types into enum.
390 (SQUASH_TYPE_LONG_REGULAR): New type.
391 (grub_squash_frag_desc): Add field size.
392 (SQUASH_BLOCK_FLAGS): New enum.
393 (grub_squash_data): Use grub_squash_cache_inode.
394 (grub_fshelp_node): Make ino_chunk 64-bit.
395 (read_chunk): Minor argument change. All users updated.
396 (squash_mount): Use correct le_to_cpu.
397 (grub_squash_open): Handle LONG_REGULAR.
398 (direct_read): New function.
399 (grub_squash_read_data): Handle blocks correctly.
400
401 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
404
405 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
408
409 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
410
411 Fix 2G limit on ZFS.
412
413 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
414 types.
415 (uberblock_verify): Likewise.
416 (dmu_read): Likewise.
417 (grub_zfs_read): Likewise. Remove invalid cast.
418
419 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
422 (grub_jfs_blkno): Fix incorrect shift.
423 (grub_jfs_read_file): Use more appropriate types.
424
425 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
426
427 Support triple indirect on minix2 and minix3.
428
429 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
430 Declare triple_indir_zone.
431 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
432 indirect.
433
434 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
435
436 Minix FS fixes.
437
438 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
439 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
440 Rename ctime to mtime. All users updated.
441 (grub_minix_get_file_block): Fix types and double indirect computations.
442
443 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
446 if no label is found.
447 (grub_fat_iterate_dir): Fix file size type.
448 (grub_fat_iterate_dir): Likewise.
449
450 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
453 save some space.
454 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
455 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
456
457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
460
461 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * util/import_gcry.py: Accept space between # and include.
464
465 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
468
469 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
470
471 Fine grainely disable warnings on lexer. Remove Wno-error on it.
472
473 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
474 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
475 yylex_strncpy.
476 * grub-core/script/yylex.l: Add fine-grained #pragma.
477
478 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
481 New inline function.
482 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
483 Likewise.
484 (memset) [GRUB_UTIL]: Likewise.
485 (memcmp) [GRUB_UTIL]: Likewise.
486
487 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
488
489 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
490 inline function rather than a define.
491
492 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * util/grub-setup.c: Add missing include.
495
496 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * util/ieee1275/grub-ofpathname.c: Add missing include.
499
500 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
503 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
504 Likewise.
505
506 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
509 grub_memcmp usage.
510
511 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
512
513 * util/grub-install.in: Add datarootdir as per automake manual
514 suggestion.
515 * util/grub-mknetdir.in: Likewise.
516
517 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
520 suggestion.
521 * util/grub.d/10_kfreebsd.in: Likewise.
522 * util/grub.d/10_linux.in: Likewise.
523 * util/grub.d/10_netbsd.in: Likewise.
524 * util/grub.d/10_windows.in: Likewise.
525 * util/grub.d/20_linux_xen.in: Likewise.
526
527 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
528
529 Remove redundant grub_kernel_image_size.
530
531 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
532 _edata and _start.
533 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
534 the small code. It moves it only by few bytes but simplifies the code.
535 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
536 _start.
537 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
538 (grub_kernel_image_size): Removed.
539 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
540 (grub_kernel_image_size): Removed.
541 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
542 compiled with Apple toolchain.
543 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
544 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
545 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
546 (grub_total_module_size): Likewise.
547 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
548 Removed.
549 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
550 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
551 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
552 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
553 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
554 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
555 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
556 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
557 Removed.
558 (grub_total_module_size): Removed.
559 * util/grub-mkimage.c (image_target_desc): Remove image_size.
560 (image_targets): Likewise.
561 Set .compressed_size to no field on sparc.
562 (generate_image): Remove kernel_image_size handling.
563
564 2011-10-19 Szymon Janc <szymon@janc.net.pl>
565
566 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
567 NULL pointer dereference.
568
569 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
570
571 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
572 done with a dedicated section.
573
574 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
575 Ensure the correct position of boot_path.
576 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
577 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
578 other fields.
579 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
580 * include/grub/boot.h: Removed. All references removed.
581 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
582 Removed.
583 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
584
585 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
588 name.
589
590 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
593
594 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
597 Don't add the bogus brackets.
598
599 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
600
601 ExFAT support.
602
603 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
604 * grub-core/Makefile.core.def (exfat): New module.
605 * grub-core/fs/exfat.c: New file.
606 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
607 (GRUB_FAT_ATTR_*): Make into an enum.
608 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
609 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
610 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
611 (GRUB_FAT_MAXFILE): Removed.
612 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
613 (grub_current_fat_bpb_t): New type.
614 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
615 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
616 (grub_fat_dir_node_t): New type.
617 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
618 (fat_log2) [MODE_EXFAT]: Removed.
619 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
620 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
621 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
622 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
623 (grub_fat_label) [MODE_EXFAT]: New function.
624 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
625 reserved_first_sector to 0.
626
627 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
628
629 Move grub_reboot out of the kernel.
630
631 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
632 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
633 * grub-core/lib/efi/reboot.c: ... here.
634 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
635 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
636 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
637 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
638 * grub-core/lib/i386/reboot_trampoline.S: ... here.
639 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
640 * grub-core/lib/ieee1275/reboot.c: ... here.
641 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
642 * grub-core/lib/mips/arc/reboot.c: ... here.
643 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
644 * grub-core/lib/mips/loongson/reboot.c: ...here.
645 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
646 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
647 * include/grub/emu/misc.h (grub_reboot): New function declaration.
648 * include/grub/i386/reboot.h: New file.
649 * include/grub/mips/loongson/ec.h: Fix includes.
650 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
651 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
652 * grub-core/lib/i386/reboot.c: New file.
653
654 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
655
656 Make grub_prefix into module to fix the arbitrary limit and save
657 some space.
658
659 * grub-core/kern/emu/main.c (grub_prefix): Removed.
660 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
661 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
662 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
663 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
664 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
665 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
666 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
667 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
668 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
669 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
670 * include/grub/ia64/efi/kernel.h: Removed.
671 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
672 (grub_prefix): Removed.
673 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
674 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
675 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
676 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
677 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
678 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
679 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
680 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
681 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
682 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
683 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
684 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
685 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
686 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
687 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
688 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
689 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
690 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
691 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
692 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
693 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
694 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
695 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
696 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
697 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
698 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
699 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
700 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
701 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
702 from module.
703 * util/grub-mkimage.c (image_target_desc): Removed prefix and
704 prefix_end.
705 (image_targets): Likewise.
706 (generate_image): Put prefix as a module.
707
708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
709
710 Replace grub_module_iterate with FOR_MODULES.
711
712 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
713 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
714 (grub_efi_modules_addr): ...this.
715 * grub-core/kern/efi/init.c (grub_modbase): New variable.
716 (grub_efi_init): Set grub_modbase.
717 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
718 (grub_modbase): New variable.
719 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
720 (grub_modbase): New variable.
721 (grub_machine_init): Set grub_modbase.
722 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
723 (grub_modbase): New variable.
724 (grub_machine_init): Set grub_modbase.
725 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
726 (grub_modbase): New variable.
727 (grub_machine_init): Set grub_modbase.
728 * grub-core/kern/main.c (grub_module_iterate): Remove.
729 (grub_modules_get_end): Use grub_modbase.
730 (grub_load_modules): Use FOR_MODULES.
731 (grub_load_config): Likewise.
732 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
733 (grub_modbase): New variable.
734 (grub_machine_init): Set grub_modbase.
735 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
736 (grub_modbase): New variable.
737 (grub_machine_init): Set grub_modbase.
738 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
739 Removed.
740 (grub_modbase): New variable.
741 (grub_machine_init): Set grub_modbase.
742 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
743 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
744 (grub_module_iterate): Likewise.
745 (grub_modbase): New variable declaration.
746 (FOR_MODULES): New macro.
747
748 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * configure.ac: Check for __ctzdi2 and __ctzsi2.
751 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
752
753 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
754
755 Fix few obvious type discrepancies.
756
757 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
758 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
759 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
760 variable.
761 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
762 and connected types.
763 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
764 offset.
765 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
766 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
767 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
768 and connected types.
769
770 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
771
772 Fix python 3.x incompatibilities.
773
774 * gentpl.py: Put brackets around print strings.
775 * util/import_gcry.py: Open explicitly as utf-8.
776 Use in instead of has_key.
777
778 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
781 (GRUB_XFS_INO_AGBITS): Make into inline function.
782 (GRUB_XFS_INO_INOINAG): Likewise.
783 (GRUB_XFS_INO_AG): Likewise.
784 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
785 (GRUB_XFS_EXTENT_OFFSET): Likewise.
786 (GRUB_XFS_EXTENT_BLOCK): Likewise.
787 (GRUB_XFS_EXTENT_SIZE): Likewise.
788 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
789 (GRUB_XFS_NEXT_DIRENT): Likewise.
790 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
791 (grub_xfs_read_file): Fix offset type.
792
793 2011-10-15 Robert Millan <rmh@gnu.org>
794
795 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
796
797 2011-10-15 Robert Millan <rmh@gnu.org>
798
799 Fix build problem on FreeBSD and GNU/kFreeBSD.
800
801 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
802
803 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
804
805 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
806
807 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
808 types.
809 (grub_hfsplus_btree_recoffset): Likewise.
810 (grub_hfsplus_btree_recptr): Likewise.
811 (grub_hfsplus_find_block): Likewise.
812 (grub_hfsplus_btree_search): Likewise.
813 (grub_hfsplus_read_block): Likewise.
814 (grub_hfsplus_read_file): Likewise.
815 (grub_hfsplus_mount): Likewise.
816 (grub_hfsplus_btree_iterate_node): Likewise.
817 (grub_hfsplus_btree_search): Likewise.
818 (grub_hfsplus_iterate_dir): Likewise.
819 (grub_hfsplus_read): A small code simplification.
820
821 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * grub-core/kern/emu/hostdisk.c
824 (convert_system_partition_to_system_disk): Don't assume that children
825 of mapper nodes are mapper nodes.
826
827 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
828
829 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
830 * include/grub/misc.h (grub_isxdigit): New function.
831 * grub-core/video/colors.c (my_isxdigit): Removed. All users
832 switched to grub_isxdigit.
833 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
834 number starting with a letter.
835
836 2011-10-09 Robert Millan <rmh@gnu.org>
837
838 LVM support for FreeBSD and GNU/kFreeBSD.
839
840 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
841 GNU/kFreeBSD.
842 (LVM_DEV_MAPPER_STRING): Move from here ...
843 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
844 * util/getroot.c: Include `<grub/util/lvm.h>'.
845 (grub_util_get_dev_abstraction): Enable
846 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
847 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
848 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
849 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
850 support it.
851 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
852 GNU/kFreeBSD.
853 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
854 when LVM abstraction is required for ${GRUB_DEVICE}.
855
856 2011-10-06 Szymon Janc <szymon@janc.net.pl>
857
858 Add support for LZO compression in GRUB:
859 - import of minilzo library,
860 - LZO decompression for btrfs,
861 - lzop files decompression.
862
863 * grub-core/io/lzopio.c: New file.
864 * grub-core/lib/adler32.c: Likewise.
865 * grub-core/lib/minilzo/lzoconf.h: Likewise.
866 * grub-core/lib/minilzo/lzodefs.h: Likewise.
867 * grub-core/lib/minilzo/minilzo.c: Likewise.
868 * grub-core/lib/minilzo/minilzo.h: Likewise.
869 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
870 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
871 grub-core/lib/minilzo/minilzo.c to common.
872 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
873 cflags in cppflags.
874 * grub-core/Makefile.core.def (btrfs): Likewise.
875 * grub-core/Makefile.core.def (lzopio): New module.
876 (adler32): Likewise.
877 * grub-core/fs/btrfs.c: Include minilzo.h.
878 (GRUB_BTRFS_COMPRESSION_LZO): New define.
879 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
880 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
881 (grub_btrfs_lzo_decompress): New function.
882 (grub_btrfs_extent_read): Add support for LZO compression type.
883 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
884 (GRUB_USHRT_MAX): Likewise.
885 (GRUB_UINT_MAX): Likewise.
886 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
887 (UINT_MAX): Likewise.
888 (CHAR_BIT): Likewise.
889 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
890 grub-core/lib/posix_wrap/limits.h
891 (UCHAR_MAX): Likewise.
892 * include/grub/file.h (grub_file_filter_id): New compression filter
893 GRUB_FILE_FILTER_LZOPIO.
894 * include/grub/file.h (grub_file_filter_id): Set
895 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
896 * include/grub/types.h (grub_get_unaligned16): New function.
897 (grub_get_unaligned32): Likewise.
898 (grub_get_unaligned64): Likewise.
899 * util/import_gcry.py (cryptolist): Add adler32.
900
901 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
902
903 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
904 in perspective decreases the complexity of build system and fixes
905 compilation right now.
906
907 2011-10-01 Ales Nesrsta <starous@volny.cz>
908
909 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
910 (fixed problem related to using UHCI with coreboot).
911
912 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
913
914 * gentpl.py: Use Autogen macros so that the output template file
915 (Makefile.tpl) size is reduced.
916
917 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
918
919 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
920 extra_dist.
921
922 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
923
924 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
925 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
926
927 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
928
929 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
930 _fullpath.
931
932 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
933
934 Remove extra declaration of sleep for mingw32.
935
936 * util/misc.c (sleep) [__MINGW32__]: Removed.
937 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
938
939 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
940
941 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
942 type and packname.
943 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
944 Resurrected.
945 (NETBSD_BTINFO_BOOTWEDGE): New definition.
946 (grub_netbsd_btinfo_bootwedge): New struct.
947 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
948 New function.
949 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
950
951 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
952
953 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
954 loader.
955
956 2011-09-28 Andreas Born <futur.andy@googlemail.com>
957
958 Fix incorrect identifiers in bash-completion.
959
960 * util/bash-completion.d/grub-completion.bash.in
961 (_grub_mkpasswd-pbkdf2): Rename to ...
962 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
963 (_grub_script-check): Rename to ...
964 (_grub_script_check): ... this. All users updated.
965
966 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
969 Return 0 if disk isn't biosdisk.
970
971 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
972
973 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
974 on NetBSD.
975 * Makefile.util.def (grub-fstest): Likewise.
976
977 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
978
979 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
980 Get sector size from disk label.
981
982 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
983
984 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
985 */README* as well as README*.
986 Reported by: Axel Beckert.
987
988 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
991 case of less than 256 MiB of RAM.
992
993 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * grub-core/commands/wildcard.c (make_regex): Handle @.
996
997 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
998
999 * util/grub-install.in: Move cryptodisk logic to appropriate place.
1000
1001 2011-08-21 Szymon Janc <szymon@janc.net.pl>
1002
1003 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
1004 AC_LANG_CONFTEST macros.
1005
1006 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1007
1008 Add grub-fstest option to uncompress data for commands.
1009
1010 * util/grub-fstest.c (uncompress): New var.
1011 (options): New option -u.
1012
1013 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1014
1015 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1016 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
1017
1018 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1019
1020 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
1021 file type was not recognized correctly (not gzip or corrupted).
1022
1023 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
1026 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
1027
1028 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
1031 loongson.
1032 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
1033 video_radeon_fuloong2e.
1034 * grub-core/video/radeon_fuloong2e.c: New file.
1035 * include/grub/video.h (grub_video_id_t): Add new ID
1036 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
1037
1038 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
1041 define.
1042 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
1043 that PRID matches the detected subplatform and reset the subplatform
1044 if it doesn't.
1045
1046 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
1049
1050 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 Fix PCI iterating on functions >= 4.
1053
1054 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
1055 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
1056 Removed.
1057 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
1058 (grub_pci_read): Fix bitmask.
1059 (grub_pci_read_word): Likewise.
1060 (grub_pci_read_byte): Likewise.
1061 (grub_pci_write): Likewise.
1062 (grub_pci_write_word): Likewise.
1063 (grub_pci_write_byte): Likewise.
1064
1065 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
1068 can still be specified in TARGET_CFLAGS)
1069
1070 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
1073
1074 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
1075 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
1076 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
1077 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
1078 (FULOONG): Rename to ...
1079 (FULOONG2F): ... this. All users updated.
1080 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
1081 (machtype_fuloong2f_str): ... this.
1082 (machtype_fuloong2e_str): New string.
1083 Check for machtype_fuloong2e_str.
1084 * grub-core/loader/mips/linux.c (loongson_machtypes)
1085 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
1086 * grub-core/term/serial.c (loongson_defserial)
1087 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
1088 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
1089 loongson_defserial.
1090 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
1091 Rename to ...
1092 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
1093 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
1094 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
1095 to IMAGE_FULOONG2F_FLASH. All users updated.
1096 (image_targets): Rename images.
1097 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
1098
1099 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1100
1101 Make enable of disk cache statistics code configurable.
1102
1103 * configure.ac: --enable-cache-stats added.
1104 * config.h.in (DISK_CACHE_STATS): New define.
1105 * grub-core/Makefile.core.def (cacheinfo): New command.
1106 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
1107 * grub-core/commands/cacheinfo.c: New file.
1108 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
1109 moved to cacheinfo.c.
1110 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
1111 debug code.
1112 * include/grub/disk.h: Likewise.
1113
1114 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1115
1116 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
1117 * grub-core/Makefile.am: Likewise.
1118
1119 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
1122 non-zero pull.
1123
1124 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
1127 All users updated.
1128 (grub_jfs_lookup_symlink): Use correct starting inode.
1129
1130 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * util/grub-setup.c (main): Add missing gcry initialisation.
1133
1134 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Don't accept text modes on EFI when booting Linux.
1137
1138 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
1139 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
1140
1141 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
1142 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1143
1144 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
1145 use of "/path/.." as in grub-install for EFI as well as handling
1146 symlinks correctly.
1147 Fixes Debian bug #637768.
1148
1149 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1150
1151 * util/grub-probe.c: Remove duplicate #include.
1152
1153 2011-08-10 Robert Millan <rmh@gnu.org>
1154
1155 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
1156
1157 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
1158 function.
1159 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
1160 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
1161
1162 2011-08-03 Robert Millan <rmh@gnu.org>
1163
1164 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
1165 la_array as packed.
1166 Reported by: Zachary Bedell
1167
1168 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1169
1170 * configure.ac: The Loongson port requires grub-mkfont due to its
1171 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
1172 be built.
1173
1174 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1175
1176 * util/grub-install.in: Don't source grub-mkconfig_lib until after
1177 processing arguments (otherwise help2man fails when GRUB has not yet
1178 been installed).
1179
1180 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 New script grub-mkstandalone.
1183
1184 * Makefile.util.def (grub-mkstandalone): New script.
1185 * docs/man/grub-mkstandalone.h2m: New file.
1186 * util/grub-mkstandalone.in: Likewise.
1187
1188 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 Support ATA disks with 4K sectors.
1191
1192 * include/grub/ata.h (grub_ata): New member log_sector_size.
1193 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
1194 (grub_ata_identify): Read sector size.
1195 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
1196
1197 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * util/grub-install.in: Don't use uhci outside of x86.
1200
1201 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * util/grub-mkrescue.in: Add missing quotes.
1204
1205 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
1208 dereference.
1209
1210 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
1213
1214 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * include/grub/video.h: add missing EXPORT_FUND on
1217 grub_video_edid_checksum and grub_video_edid_preferred_mode.
1218
1219 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * include/grub/mips/kernel.h: Fix define conflict.
1222
1223 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
1226 all four ways.
1227
1228 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
1229
1230 Preferred resolution detection for VBE.
1231
1232 * grub-core/video/video.c (grub_video_edid_checksum): New function.
1233 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
1234 the Flat Panel extension, in line with the X.org VESA driver.
1235 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
1236 New function.
1237 (grub_vbe_bios_get_ddc_capabilities): Likewise.
1238 (grub_vbe_bios_read_edid): Likewise.
1239 (grub_vbe_get_preferred_mode): Likewise.
1240 (grub_video_vbe_setup): When the mode is "auto", try to get the
1241 preferred mode from VBE, and use the largest mode that is no larger
1242 than the preferred mode (some BIOSes expose a preferred mode that is
1243 not in their mode list!). If this fails, fall back to 640x480 as a
1244 safe conservative choice.
1245 (grub_video_vbe_get_edid): New function.
1246 (grub_video_vbe_adapter): Add get_edid.
1247 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
1248 (struct grub_video_adapter): Add get_edid.
1249 (grub_video_edid_checksum): Add prototype.
1250 (grub_video_edid_preferred_mode): Likewise.
1251 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
1252 structure.
1253
1254 * grub-core/commands/videoinfo.c (print_edid): New function.
1255 (grub_cmd_videoinfo): Print EDID if available.
1256
1257 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
1258 is more appropriate on a wider range of platforms than 640x480.
1259 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
1260 documentation.
1261
1262 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
1265
1266 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 * po/POTFILES.in: Regenerate.
1269
1270 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1271
1272 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
1273 incorrect memory usage.
1274
1275 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * util/grub-install.in: Source grub-mkconfig_lib.
1278
1279 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Remove getroot.c from core on emu platform.
1282
1283 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
1284 kern/emu/raid.c.
1285 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
1286 useless.
1287 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
1288 * util/getroot.c (get_win32_path): ... here.
1289 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
1290 * util/getroot.c (fini_libzfs): ... here.
1291 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
1292 * util/getroot.c (grub_get_libzfs_handle): ... here.
1293 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
1294 Moved from here...
1295 * util/getroot.c (grub_find_zpool_from_dir): ... here.
1296 * grub-core/kern/emu/misc.c
1297 (grub_make_system_path_relative_to_its_root): Moved from here...
1298 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
1299 * grub-core/kern/emu/getroot.c: Moved from here ...
1300 * util/getroot.c: ... here. All users updated.
1301 * grub-core/kern/emu/raid.c: Moved from here ...
1302 * util/raid.c: ... here. All users updated.
1303
1304 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * po/POTFILES.in: Regenerate.
1307
1308 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 Fix compilation on GNU/Linux.
1311
1312 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
1313 Disable geli.
1314 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
1315 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
1316 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
1317
1318 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1319 2011-07-07 Michael Gorven <michael@gorven.za.net>
1320 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
1321
1322 LUKS and GELI support.
1323
1324 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
1325 grub-core/disk/luks.c, grub-core/disk/geli.c,
1326 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
1327 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
1328 grub-core/lib/arg.c.
1329 (libgrubmods.a): Remove gcrypts cflags and cppflags.
1330 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
1331 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
1332 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
1333 (grub-bin2h): Add libgcry.a.
1334 (grub-mkimage): Likewise.
1335 (grub-mkrelpath): Likewise.
1336 (grub-script-check): Likewise.
1337 (grub-editenv): Likewise.
1338 (grub-mkpasswd-pbkdf2): Likewise.
1339 (grub-pe2elf): Likewise.
1340 (grub-fstest): Likewise.
1341 (grub-mkfont): Likewise.
1342 (grub-mkdevicemap): Likewise.
1343 (grub-probe): Likewise.
1344 (grub-ofpath): Likewise.
1345 (grub-mklayout): Likewise.
1346 (example_unit_test): Likewise.
1347 (grub-menulst2cfg): Likewise.
1348 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
1349 * grub-core/Makefile.core.def (cryptodisk): New module.
1350 (luks): Likewise.
1351 (geli): Likewise.
1352 * grub-core/disk/AFSplitter.c: New file.
1353 * grub-core/disk/cryptodisk.c: Likewise.
1354 * grub-core/disk/geli.c: Likewise.
1355 * grub-core/disk/luks.c: Likewise.
1356 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
1357 grub_util_is_lvm.
1358 (grub_util_get_dm_abstraction): New function.
1359 (grub_util_follow_gpart_up): Likewise.
1360 (grub_util_get_geom_abstraction): Likewise.
1361 (grub_util_get_dev_abstraction): Use new functions.
1362 (grub_util_pull_device): Pull GELI and LUKS.
1363 (grub_util_get_grub_dev): Handle LUKS and GELI.
1364 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
1365 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
1366 (follow_geom_up): Removed.
1367 (grub_util_fd_seek): New function.
1368 (open_device): Use grub_util_fd_seek.
1369 (nread): Rename to ..
1370 (grub_util_fd_read): ... this. All users updated.
1371 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
1372 (grub_crypto_cbc_decrypt): Likewise.
1373 (grub_crypto_hmac_write): Likewise.
1374 (grub_crypto_hmac_buffer): Likewise.
1375 (grub_password_get): Extend to util.
1376 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
1377 New member modname.
1378 (gcry_md_spec) [GRUB_UTIL]: Likewise.
1379 * include/grub/cryptodisk.h: New file.
1380 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
1381 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
1382 LUKS and GELI.
1383 (grub_util_follow_gpart_up): New proto.
1384 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
1385 (grub_util_fd_read): Likewise.
1386 (grub_cryptodisk_cheat_mount): Likewise.
1387 (grub_util_cryptodisk_print_uuid): Likewise.
1388 (grub_util_get_fd_sectors): Likewise.
1389 * util/grub-fstest.c (mount_crypt): New var.
1390 (fstest): Mount crypto if requested.
1391 (options): New option -C.
1392 (argp_parser): Parse -C.
1393 (main): Init and fini gcry.
1394 * util/grub-install.in: Support cryptodisk install.
1395 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
1396 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
1397 cryptodisk.
1398 (prepare_grub_to_access_device): Likewise.
1399 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
1400 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
1401 (probe_cryptodisk_uuid): New function.
1402 (probe_abstraction): Likewise.
1403 (probe): Use new functions.
1404 * util/import_gcry.py: Create Makefile.utilgcry.def.
1405 Add modname member.
1406
1407 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 Lazy device scanning.
1410
1411 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
1412 (grub-setup): Remove util/raid.c.
1413 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
1414 * grub-core/disk/lvm.c (scan_depth): New variable.
1415 (grub_lvm_iterate): Rescan if necessary.
1416 (find_lv): New function based on grub_lvm_open.
1417 (grub_lvm_open): Use find_lv. Rescan on error.
1418 (is_node_readable): New function.
1419 (is_lv_readable): Likewise.
1420 (grub_lvm_scan_device): Skip already found disks.
1421 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
1422 Stop if searched device is found and readable.
1423 * grub-core/disk/raid.c (inscnt): New variable.
1424 (scan_depth): Likewise.
1425 (scan_devices): New function based on grub_raid_register. Abort if
1426 looked for device is found.
1427 (grub_raid_iterate): Rescan if needed.
1428 (find_array): NEw function based on -grub_raid_open.
1429 (grub_raid_open): Use find_array and rescan.
1430 (insert_array): Set became_readable_at.
1431 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
1432 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
1433 New function.
1434 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
1435 (grub_util_pull_device): New function.
1436 (grub_util_get_grub_dev): Call grub_util_pull_device.
1437 * util/raid.c: Moved to ..
1438 * grub-core/kern/emu/raid.c: ... here.
1439 (grub_util_raid_getmembers): New parameter "bootable".
1440 All users updated. Support 1.x.
1441 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
1442 All users updated.
1443 * include/grub/disk.h (grub_disk_pull_t): New enum.
1444 (grub_disk_dev): Change iterate prototype.
1445 All users updated.
1446 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
1447 New proto.
1448 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
1449 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
1450 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
1451 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
1452 All users updated.
1453 * include/grub/util/raid.h: Removed.
1454
1455 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * po/POTFILES.in: Regenerate.
1458
1459 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Unify sparc init with other ieee1275.
1462
1463 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
1464 instead of kern/sparc64/ieee1275/init.c.
1465 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
1466 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
1467 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
1468 grub/machine/kernel.h.
1469 (grub_ieee1275_original_stack) [__sparc__]: New variable.
1470 (grub_claim_heap) [__sparc__]: Use sparc version.
1471 (grub_machine_init): Moved args parsing to
1472 (grub_parse_cmdline): ...this.
1473 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
1474 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
1475 New definition.
1476 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
1477
1478 Move BOOTP to separate file.
1479
1480 * grub-core/Makefile.core.def (net): Add net/bootp.c.
1481 * grub-core/net/net.c: Move all BOOTP functions to
1482 * grub-core/net/bootp.c: ... here.
1483
1484 Use frame interface on PXE.
1485
1486 * grub-core/Makefile.core.def (pxecmd): Removed.
1487 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
1488 * grub-core/commands/i386/pc/pxecmd.c: Removed.
1489 * grub-core/i386/pc/pxe.c: Moved from here ...
1490 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
1491 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
1492 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
1493
1494 EFI network support.
1495
1496 * grub-core/Makefile.core.def (efinet): New module.
1497 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
1498 here...
1499 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
1500 All users updated.
1501 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
1502 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
1503 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
1504 * grub-core/net/drivers/efi/efinet.c: New file.
1505 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
1506 (grub_efi_net_config): New extern var.
1507
1508 Various cleanups and bugfixes.
1509
1510 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
1511 error.
1512 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
1513 disk declared as partition.
1514 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
1515 leak on failure.
1516 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
1517 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
1518 (grub_debug_zalloc): Likewise.
1519 (grub_debug_realloc): Likewise.
1520 (grub_debug_memalign): Likewise.
1521 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
1522 Check that target is IPv4.
1523 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
1524 local-mac-address as fallback.
1525 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
1526 memory leak.
1527 * grub-core/net/ip.c (ipchksum): Rename to ...
1528 (grub_net_ip_chksum): ... this. All users updated.
1529 (grub_net_recv_ip_packets): Special handling for DHCP.
1530 * util/grub-mkimage.c (generate_image): Zero-out aout header.
1531
1532 Unify prefix handling
1533
1534 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
1535 (grub_machine_get_bootlocation): ... this.
1536 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
1537 (grub_machine_get_bootlocation): ... this.
1538 (grub_prefix): New variable.
1539 (prefix): Removed.
1540 (root_dev): New variable.
1541 (dir): Likewise.
1542 (main): Use new variables.
1543 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
1544 Revamped into ...
1545 (grub_machine_get_bootlocation): ... this.
1546 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
1547 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
1548 (grub_machine_get_bootlocation): ... this.
1549 (grub_machine_set_prefix): Removed.
1550 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
1551 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
1552 Revamped into ...
1553 (grub_machine_get_bootlocation): ... this.
1554 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
1555 (grub_set_prefix_and_root): ... this. All users updated.
1556 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
1557 Revamped into ...
1558 (grub_machine_get_bootlocation): ... this.
1559 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
1560 (grub_machine_get_bootlocation): New proto.
1561 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
1562
1563 Less intrusive and more reliable seek on network implementation.
1564
1565 * grub-core/kern/file.c (grub_file_net_seek): Removed.
1566 (grub_file_seek): Don't call grub_file_net_seek.
1567 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
1568 (grub_net_fs_read_real): .. this.
1569 (grub_net_seek_real): Use net->offset.
1570 (grub_net_fs_read): Seek if necessary.
1571
1572 Unify IEEE1275 netwotk config with the other platforms.
1573
1574 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
1575 New variable.
1576 (grub_machine_get_bootlocation): Support network.
1577 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1578 Support type and device parsing.
1579 (grub_ieee1275_get_device_type): New function.
1580 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
1581 into ...
1582 (grub_ieee1275_net_config_real): ... this.
1583 (grub_ofnet_probecards): Removed.
1584 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
1585 * include/grub/ieee1275/ofnet.h: Removed.
1586 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
1587 extern var.
1588 (grub_ieee1275_get_device_type): New function.
1589
1590 Unify network device closing across platforms and make more robust.
1591
1592 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
1593 grub_grubnet_fini.
1594 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
1595 already.
1596 * grub-core/net/net.c (grub_net_network_level_interface_register):
1597 Update num_ifaces.
1598 (grub_net_card_unregister): Close all interfaces.
1599 (receive_packets): Don't poll if no iterfaces are registered.
1600 Open if necessary.
1601 (grub_net_fini_hw): New function.
1602 (grub_net_restore_hw): Likewise.
1603 (fini_hnd): New variable.
1604 (GRUB_MOD_INIT): Register preboot hook.
1605 (GRUB_MOD_FINI): Run and unregister preboot hook.
1606
1607 Poll network cards when idle.
1608
1609 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
1610 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
1611 * grub-core/net/net.c (receive_packets): Save last poll time.
1612 (grub_net_poll_cards_idle_real): New function.
1613 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
1614 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
1615 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
1616
1617 Rename ofnet interfaces.
1618
1619 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
1620 (grub_ofnet_findcards): Use ofnet_%s names.
1621
1622 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
1623
1624 Cleanup socket opening.
1625
1626 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
1627 (grub_net_fs_close): Likewise.
1628 (grub_net_fs_read_real): Use eof member.
1629 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
1630 (+grub_net_udp_close): New inline function.
1631
1632 * include/grub/net/tftp.h: Moved to the top of ...
1633 * grub-core/net/tftp.c: ... here.
1634 * include/grub/net/ip.h: Moved mostly to the top of ...
1635 * grub-core/net/ip.c: ... here.
1636 * include/grub/net/ethernet.h: Moved mostly to the top of ...
1637 * grub-core/net/ethernet.c: ... here.
1638
1639 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
1640
1641 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
1642 FS name.
1643
1644 * include/grub/net/ip.h (ipv4_ini): Removed.
1645 (ipv4_fini): Likewise.
1646
1647 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
1648 (grub_net_send_ip_packets): Likewise.
1649
1650 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
1653 grub_read_cmos prototype.
1654
1655 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 VGA text support in qemu-mips
1658
1659 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
1660 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
1661 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
1662 text.
1663 * grub-core/kern/i386/qemu/init.c: Renamed to ...
1664 * grub-core/kern/vga_init.c: ... this.
1665 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
1666 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
1667 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
1668 Adjust.
1669 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
1670 GRUB_MACHINE_PCI_IO_BASE.
1671
1672 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 MIPS qemu flash support.
1675
1676 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
1677 magic.
1678 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
1679 (grub_machine_init): Probe memory if its size isn't known.
1680 * util/grub-mkimage.c (image_targets): Add flash targets.
1681 (generate_image): Handle flash targets.
1682
1683 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 MIPS qemu at_keyboard support.
1686
1687 * gentpl.py (videoinkernel): Add qemu-mips.
1688 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
1689 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
1690 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
1691 modules.
1692 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
1693 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
1694 * grub-core/term/serial.c (grub_serial_register)
1695 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
1696
1697 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 CMOS support on sparc.
1700
1701 * gentpl.py (cmos): Add powerpc and sparc.
1702 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
1703 powerpc and sparc.
1704 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
1705 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
1706 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
1707 grub_set_datetime_cmos.
1708 * grub-core/lib/ieee1275/cmos.c: New file.
1709 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
1710 (find_rtc): Set no_ieee1275_rtc on error.
1711 (grub_get_datetime): Call grub_get_datetime_cmos on error.
1712 (grub_set_datetime): Call grub_set_datetime_cmos on error.
1713 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
1714 fail. Move value to argument. All users updated
1715 (grub_cmos_write): Likewise.
1716 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
1717 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
1718 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
1719 grub_get_datetime_cmos and grub_set_datetime_cmos.
1720
1721 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1722
1723 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
1724 sourcing grub-mkconfig_lib.
1725 * util/update-grub_lib.in: Likewise.
1726 * util/grub.d/00_header.in: Likewise.
1727 * util/grub.d/10_hurd.in: Likewise.
1728 * util/grub.d/10_kfreebsd.in: Likewise.
1729 * util/grub.d/10_linux.in: Likewise.
1730 * util/grub.d/10_netbsd.in: Likewise.
1731 * util/grub.d/10_windows.in: Likewise.
1732 * util/grub.d/20_linux_xen.in: Likewise.
1733 * util/grub.d/30_os-prober.in: Likewise.
1734
1735 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
1736
1737 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
1738 default_bg_color rather than black.
1739 (grub_gfxterm_fullscreen): Likewise.
1740 (grub_gfxterm_background_color_cmd): Save new background color in
1741 default_bg_color.
1742
1743 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
1746
1747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
1750 mismerge.
1751
1752 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 Chainloading on coreboot support.
1755
1756 * grub-core/Makefile.core.def (chain): Add coreboot.
1757 * grub-core/loader/i386/coreboot/chainloader.c: New file.
1758
1759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
1762 if it happens.
1763
1764 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 Implement time command.
1767
1768 * grub-core/Makefile.core.def (time): New module.
1769 * grub-core/commands/time.c: New file.
1770 * grub-core/script/parser.y: Remove "time" keyword.
1771 * grub-core/script/yylex.l: Likewise.
1772
1773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
1776
1777 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
1780 when handling leftovers.
1781
1782 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
1785 so that help2man doesn't fail.
1786
1787 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
1790 type in pointers on sparc64.
1791 (get_card_packet): Likewise.
1792
1793 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
1794
1795 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
1796 with `*'.
1797 (grub_cmd_videoinfo): Fetch current video mode.
1798
1799 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
1802 because of underlying system restrictions.
1803
1804 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
1807 necessary.
1808
1809 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 Coreboot video support.
1812
1813 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
1814 (vbe): Likewise.
1815 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
1816 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
1817 here ...
1818 * grub-core/kern/i386/int.S: ... here.
1819 * grub-core/video/i386/pc/vbe.c: Updated includes.
1820 * grub-core/video/i386/pc/vga.c: Likewise.
1821 * include/grub/i386/coreboot/memory.h
1822 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
1823 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
1824 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
1825 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
1826 Disable interrupts.
1827 * include/grub/i386/pc/vga.h: Removed. All users updated.
1828
1829 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
1832 definitions for dprintf.
1833 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
1834
1835 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
1838 prototype.
1839 (get_card_packet): Likewise.
1840
1841 2011-06-26 Yves Blusseau <blusseau@zetam.org>
1842
1843 Display the path of the file when file is not found
1844
1845 * grub-core/fs/fat.c: Display the filename when file is not found.
1846 * grub-core/fs/fshelp.c: Likewise.
1847 * grub-core/fs/hfs.c: Likewise.
1848 * grub-core/fs/jfs.c: Likewise.
1849 * grub-core/fs/minix.c: Likewise.
1850 * grub-core/fs/ufs.c: Likewise.
1851 * grub-core/fs/btrfs.c: Likewise.
1852 * grub-core/commands/i386/pc/play.c: Likewise.
1853
1854 2011-06-26 Szymon Janc <szymon@janc.net.pl>
1855
1856 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
1857 pointer checks before calling grub_free().
1858 * grub-core/commands/wildcard.c (match_devices): Likewise.
1859 * grub-core/commands/wildcard.c (match_files): Likewise.
1860 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
1861 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
1862 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
1863 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
1864 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
1865 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
1866 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
1867 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1868 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
1869
1870 2011-06-25 Patrick <p55@mailinator.com>
1871
1872 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
1873
1874 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
1877 (grub_pxe_send): Likewise.
1878 (GRUB_MOD_INIT): Fix types.
1879
1880 2011-06-24 Szymon Janc <szymon@janc.net.pl>
1881
1882 * grub-core/io/xzio.c: Fix code style issues
1883
1884 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1885 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
1886
1887 Network infrastructure.
1888 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
1889
1890 * include/grub/net/arp.h: New file.
1891 * include/grub/net/device.h: Likewise.
1892 * include/grub/net/ethernet.h: Likewise.
1893 * include/grub/net/ip.h: Likewise.
1894 * include/grub/net/netbuff.h: Likewise.
1895 * include/grub/net/tftp.h: Likewise.
1896 * include/grub/net/udp.h: Likewise.
1897 * include/grub/ieee1275/ofnet.h: Likewise.
1898 * include/grub/emu/export.h: Likewise.
1899 * include/grub/net.h: Likewise.
1900 * grub-core/net/arp.c: Likewise.
1901 * grub-core/net/ethernet.c: Likewise.
1902 * grub-core/net/ip.c: Likewise.
1903 * grub-core/net/udp.c: Likewise.
1904 * grub-core/net/tftp.c: Likewise.
1905 * grub-core/net/netbuff.c: Likewise.
1906 * grub-core/net/net.c: Likewise.
1907 * grub-core/net/drivers/emu/emunet.c: Likewise.
1908 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1909 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
1910 export.h.
1911 * grub-core/Makefile.core.def (net): New module.
1912 (tftp): Likewise.
1913 (ofnet): Likewise.
1914 (emunet): Likewise.
1915 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
1916 network protocols.
1917 * grub-core/kern/device.c (grub_net_open) : New variable.
1918 (grub_device_open): Handle network device.
1919 (grub_device_close): Likewise.
1920 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
1921 (grub_grubnet_fini): Likewise.
1922 (grub_file_seek): Seek in network device.
1923 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
1924 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
1925 network root.
1926 (grub_machine_fini): Call grub_grubnet_fini.
1927 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
1928 network.
1929 (grub_ieee1275_get_aliasdevname): New function.
1930 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1931 Add unofficial Solaris network info.
1932 (grub_multiboot_make_mbi): Likewise.
1933 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
1934 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
1935 * include/grub/device.h (grub_fs): Removed.
1936 * include/grub/err.h (grub_err_t): Add network-related values.
1937 * include/grub/i386/pc/pxe.h: Removed bootp parts.
1938 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
1939 (grub_ieee1275_get_aliasdevname): New proto.
1940 * include/grub/net.h: Rewritten.
1941
1942 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
1945 names.
1946
1947 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
1950 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
1951 it truncates the output.
1952 Reported by: Ximin Luo.
1953
1954 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
1957
1958 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1961 partmap before abstraction.
1962
1963 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
1964
1965 * util/grub-mkconfig_lib.in: Add missing quotes.
1966
1967 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
1970 old method if mountinfo would return /dev/root and /dev/root doesn't
1971 exist.
1972
1973 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1974
1975 ZFS zlib support
1976
1977 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
1978 (decomp_table): Add zlib entries.
1979 (zio_read): USe 8 bits for compression function rather than 3.
1980 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
1981
1982 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/disk/ahci.c: Add missing license statements.
1985 * grub-core/fs/romfs.c: Likewise.
1986 * grub-core/lib/ia64/setjmp.S: Likewise.
1987 * grub-core/loader/i386/pc/freedos.c: Likewise.
1988 * grub-core/loader/ia64/efi/linux.c: Likewise.
1989 * grub-core/video/colors.c: Likewise.
1990 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
1991
1992 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 AHCI support.
1995
1996 * grub-core/Makefile.core.def (ata_pthru): Removed.
1997 (ahci): New module.
1998 (pata): Likewise.
1999 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
2000 on unload.
2001 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
2002 readwrite.
2003 (grub_hdparm_do_check_powermode_cmd): Likewise.
2004 (grub_hdparm_do_smart_cmd): Likewise.
2005 (grub_hdparm_set_val_cmd): Likewise.
2006 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
2007 * grub-core/disk/ahci.c: New file.
2008 * grub-core/disk/ata.c: Factor out the low-level part into ...
2009 * grub-core/disk/pata.c: ... here.
2010 * grub-core/disk/ata_pthru.c: Contents moved to ...
2011 * grub-core/disk/pata.c: ... here.
2012 * grub-core/disk/scsi.c (grub_scsi_names): New array.
2013 (grub_scsi_iterate): Use grub_scsi_names.
2014 (grub_scsi_open): Likewise.
2015 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
2016 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
2017 (grub_ata_regs_t): New struct.
2018 (grub_disk_ata_pass_through_parms): Likewise.
2019 (grub_ata_device): Renamed to ...
2020 (grub_ata): ... this.
2021 (grub_ata_dev): New struct.
2022 Removed all low-level inline functions.
2023 * include/grub/scsi.h: Add PATA and AHCI subsystems.
2024 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
2025 iterate hooks and open. All users updated.
2026 * util/grub-install.in: Handle AHCI disk module.
2027
2028 2011-06-23 Szymon Janc <szymon@janc.net.pl>
2029
2030 Add support for DRI and RSTn markers in JPEG files.
2031
2032 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
2033 (JPEG_MARKER_RST0): Likewise.
2034 (JPEG_MARKER_RST1): Likewise.
2035 (JPEG_MARKER_RST2): Likewise.
2036 (JPEG_MARKER_RST3): Likewise.
2037 (JPEG_MARKER_RST4): Likewise.
2038 (JPEG_MARKER_RST5): Likewise.
2039 (JPEG_MARKER_RST6): Likewise.
2040 (JPEG_MARKER_RST7): Likewise.
2041 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
2042 (grub_jpeg_decode_dri): New function.
2043 (grub_jpeg_decode_sos): Move image data related part into
2044 grub_jpeg_decode_data function.
2045 (grub_jpeg_decode_data): New function.
2046 (grub_jpeg_reset): New function.
2047 (grub_jpeg_decode_jpeg): Handle new markers.
2048
2049 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * util/ieee1275/ofpath.c (check_sas): Close fd.
2052 (main): Free of_path.
2053 Reported by: David Volgyes <dvolgyes>.
2054
2055 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
2058 Reported by: David Volgyes <dvolgyes>.
2059
2060 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
2063 file after stat.
2064 Reported by: David Volgyes <dvolgyes>.
2065
2066 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
2069
2070 Reported by: David Volgyes <dvolgyes>.
2071
2072 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
2075 Prevent memory leak.
2076
2077 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
2080 (main): Close file.
2081 Reported by: David Volgyes <dvolgyes>.
2082
2083 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2084
2085 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
2086 to continue if allocation is failed.
2087
2088 Reported by: David Volgyes <dvolgyes>.
2089
2090 2011-06-23 David Volgyes <dvolgyes>
2091
2092 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
2093 dereference.
2094
2095 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 Fix spurious warning.
2098
2099 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
2100 (acorn_partition_map_find): Use .bin member.
2101
2102 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
2105 /dev/root as a valid device.
2106
2107 2011-06-23 Jim Meyering <meyering@redhat.com>
2108
2109 Avoid NULL deref in grub_device_open.
2110
2111 * grub-core/kern/device.c (grub_device_open): Don't dereference
2112 a NULL pointer upon failed grub_env_get.
2113
2114 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 Support non-512B sectors and agglomerate reads.
2117
2118 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
2119 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
2120 (disk_io_guid): Removed.
2121 (make_devices): Locate solely by BlockIO.
2122 (grub_efidisk_open): Fill log_sector_size and total_sectors.
2123 (grub_efidisk_read): Use read_blocks.
2124 (grub_efidisk_write): Use write_blocks.
2125 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
2126 log_sector_size.
2127 (get_safe_sectors): Handle non-512B sectors.
2128 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
2129 sectors.
2130 (grub_biosdisk_write): Handle non-512B sectors.
2131 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
2132 (grub_scsi_read): Remove special non-512B block handling (now handled
2133 one level up).
2134 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
2135 and do sanity checks.
2136 (grub_disk_adjust_range): Handle non-512B sectors.
2137 (transform_sector): New function.
2138 (grub_disk_read_small): Likewise.
2139 (grub_disk_read): Rewritten.
2140 (grub_disk_write): Handle non-512B sectors.
2141 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
2142 log_sector_size.
2143 (open_device): Use log_sector_size.
2144 (grub_util_biosdisk_read): Likewise.
2145 (grub_util_biosdisk_write): Likewise.
2146 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
2147 non-512B sectors.
2148 (pc_partition_map_embed): Likewise.
2149 * include/grub/disk.h (grub_disk): New field log_sector_size.
2150 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
2151 (GRUB_DISK_CACHE_BITS): Increased to 6.
2152 * util/grub-fstest.c (fstest): New command testload.
2153 (argp_parser): Likewise.
2154
2155 2011-06-16 Robert Millan <rmh@gnu.org>
2156
2157 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
2158 `ata' driver on kernel of FreeBSD 9.
2159
2160 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
2161 (get_ataraid_disk_name): New functions.
2162 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
2163 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
2164 get_ataraid_disk_name() and get_ada_disk_name().
2165
2166 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
2167
2168 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
2169 input format.
2170
2171 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
2172
2173 * docs/grub.texi (Obtaining and Building GRUB): Substitute
2174 `ftp.gnu.org' for `alpha.gnu.org'.
2175
2176 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2177
2178 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
2179 partitions under /dev/disk/by-id/.
2180
2181 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2182
2183 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
2184 after ten consecutive open failures. Scanning all the way up to
2185 10000 is excessive and can cause serious performance problems in
2186 some configurations.
2187 Fixes Ubuntu bug #787461.
2188
2189 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
2192 opening new one.
2193
2194 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
2195 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 Don't stat devices unless we have to.
2198
2199 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
2200 dir == /dev/mapper.
2201 (grub_guess_root_device): Use already known os_dev if possible.
2202 * grub-core/kern/emu/hostdisk.c
2203 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
2204 if device is known to be a dm one.
2205
2206 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
2207
2208 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
2209 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
2210 Reported by: Pawel Tecza.
2211
2212 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
2215 (lsefisystab): Likewise.
2216 (lssal): Likewise.
2217 (lsefimmap): Likewise.
2218 (hdparm): Enable on qemu-mips.
2219 (setjmp): Add ia64 nodist.
2220 (serial): Simplify tags.
2221
2222 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2223
2224 * Makefile.util.def (grub-ofpathname): Install manual page.
2225
2226 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2227
2228 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
2229
2230 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2231
2232 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
2233
2234 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
2237 into dprintf.
2238
2239 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 Use full 64-bit division.
2242
2243 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
2244 (grub_divmod64): ... this.
2245 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
2246 version.
2247
2248 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2249
2250 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
2251 `source'.
2252
2253 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2254
2255 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
2256 to avoid accidents when debugging with 'sh -x'.
2257 * grub-core/gensyminfo.sh.in: Likewise.
2258 * tests/example_scripted_test.in: Likewise.
2259 * tests/grub_cmd_regexp.in: Likewise.
2260 * tests/grub_script_blanklines.in: Likewise.
2261 * tests/grub_script_dollar.in: Likewise.
2262 * tests/grub_script_expansion.in: Likewise.
2263 * tests/grub_script_final_semicolon.in: Likewise.
2264 * tests/partmap_test.in: Likewise.
2265 * tests/util/grub-shell-tester.in: Likewise.
2266 * tests/util/grub-shell.in: Likewise.
2267
2268 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2269
2270 Move gfxmenu color handling to video, so that gfxterm can use it
2271 too.
2272
2273 * grub-core/gfxmenu/named_colors.c: Move to ...
2274 * grub-core/video/colors.c: ... here. Rename
2275 grub_gui_get_named_color to grub_video_get_named_color.
2276 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
2277 * grub-core/video/colors.c (my_isxdigit): ... here.
2278 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
2279 Move to ...
2280 * grub-core/video/colors.c (parse_hex_color_component): ... here.
2281 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
2282 to ...
2283 * grub-core/video/colors.c (grub_video_parse_color): ... here.
2284
2285 * include/grub/gui.h (grub_gui_color_t): Move to ...
2286 * include/grub/video.h (grub_video_rgba_color_t): ... here.
2287 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
2288 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
2289 * include/grub/gui.h (grub_gui_map_color): Move to ...
2290 * include/grub/video.h (grub_video_map_rgba_color): ... here.
2291 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
2292 to ...
2293 * include/grub/video.h (grub_video_get_named_color): ... here.
2294 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
2295 * include/grub/video.h (grub_video_parse_color): ... here.
2296
2297 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
2298 video/colors.c.
2299 (gfxmenu): Remove gfxmenu/named_colors.c.
2300 (video) [videomodules]: Add video/colors.c.
2301
2302 Add a background_color command.
2303
2304 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
2305 function.
2306 (GRUB_MOD_INIT): Register background_color command.
2307 (GRUB_MOD_FINI): Unregister background_color command.
2308 (redraw_screen_rect): Allow blend/replace of text layer to be
2309 controlled independently from whether there is a background bitmap.
2310 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
2311 changing bitmap.
2312
2313 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 Patch BPB in ntldr and chainloader --bpb.
2316
2317 * grub-core/fs/fat.c: Include grub/fat.h.
2318 (grub_fat_bpb): Moved to ...
2319 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
2320 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
2321 grub/ntfs.h.
2322 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
2323 Moved from here...
2324 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
2325 here.
2326 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
2327 New function.
2328 (grub_chainloader_cmd): Patch BPB if --bpb is given.
2329 (GRUB_MOD_INIT): Show --bpb.
2330 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
2331 * grub-core/normal/main.c (features): New variable.
2332 (GRUB_MOD_INIT): Set feature_* variables.
2333 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
2334 proto.
2335 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
2336
2337 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
2340 for cleanness.
2341
2342 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 FreeDOS direct loading support.
2345
2346 * docs/grub.texi (Supported OS): Add FreeDOS.
2347 * grub-core/Makefile.core.def (freedos): New module.
2348 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
2349 variable.
2350 (grub_relocator16_boot): Handle %ebx.
2351 * grub-core/lib/i386/relocator16.S: Likewise.
2352 * grub-core/loader/i386/pc/freedos.c: New file.
2353
2354 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 Long Linux command line support.
2357
2358 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2359 (maximal_cmdline_size): New variable.
2360 (allocate_pages): Use maximal_cmdline_size.
2361 (grub_cmd_linux): Set and use maximal_cmdline_size.
2362 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2363 (allocate_pages): Use maximal_cmdline_size.
2364 (grub_cmd_linux): Set and use maximal_cmdline_size.
2365 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
2366 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
2367 and cmdline_size.
2368
2369 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2370 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2371
2372 Improve devmapper support
2373
2374 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
2375 (grub_util_is_lvm): New function.
2376 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
2377 than lvm if not dmraid.
2378 Handle mapped md nodes.
2379 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
2380 (grub_util_device_is_mapped): ... this. Make always available. All users
2381 updated.
2382 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
2383 (convert_system_partition_to_system_disk): Handle lvm, mpath and
2384 dmraid nodes.
2385 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
2386
2387 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
2390
2391 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
2392 * grub-core/modinfo.sh.in: New file.
2393 * grub-core/Makefile.core.def (modinfo.sh): New script.
2394 * util/grub-mknetdir.in: Use modinfo.sh.
2395 * util/grub-mkrescue.in: Likewise.
2396
2397 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2400 Fix potential usage of Elf32 instead of Elf64 when compiling on
2401 32-bit architecture. Add endianness macros while on it.
2402
2403 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 Use mipsel- rather than mips- in directories involving mipsel ports to
2406 allow both endiannesses coexist.
2407
2408 * configure.ac: proparate target_cpu=mipsel rather than resetting to
2409 mips. All conditions adjusted.
2410 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
2411 variable.
2412 * util/grub-install.in: Adjust conditions to take renaming into account.
2413 * util/grub-mkimage.c (image_targets): Likewise. New target
2414 mips-qemu_mips-elf for bigendian mips.
2415
2416 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 Avoid unnecessary copying on MIPS.
2419
2420 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
2421 early if src == dest.
2422 * util/grub-mkimage.c (generate_image): Arange for src == dest if
2423 compression is none.
2424
2425 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 Reduce memory footprint on SGI by putting modules before the kernel
2428 as opposed to after.
2429
2430 * grub-core/Makefile.core.def (kernel): Increase linking address.
2431 (none_decompress): Likewise.
2432 (xz_decompress): Likewise.
2433 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
2434 address.
2435 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
2436 layout change.
2437 (grub_arch_modules_addr): New function.
2438 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
2439 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
2440 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
2441 here.
2442 * grub-core/kern/mips/startup.S (total_size): Rename to ...
2443 (grub_total_modules_size): ... this. Make global.
2444 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
2445 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
2446 New definition.
2447 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
2448 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
2449 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
2450 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
2451 * util/grub-mkimage.c (image_target_desc): New flag
2452 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
2453 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
2454 (generate_image): Handle images with modules before kernel.
2455
2456 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 Prevent potential loss of memory map by overwrite on qemu-mips.
2459
2460 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2461 Save ram size in $s4.
2462 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
2463 All users changed to grub_arch_memsize.
2464 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
2465 Loongson.
2466 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
2467 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
2468 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
2469 external variable.
2470
2471 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2472
2473 * .bzrignore: Remove grub-dumpbios.
2474
2475 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2476
2477 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
2478 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
2479 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
2480 existing options which append).
2481 * docs/grub.texi (Simple configuration): Document new options.
2482 Reported by: Ian Jackson. Fixes Debian bug #617538.
2483
2484 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2485
2486 * util/grub-fstest.c (cmd_cat): New function.
2487 (fstest): Handle CMD_CAT.
2488 (options): Add cat.
2489 (argp_parser): Handle cat.
2490
2491 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2492
2493 * Makefile.util.def (grub-bin2h): Don't install.
2494 * docs/man/grub-bin2h.h2m: Remove.
2495
2496 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
2499 place.
2500
2501 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 Reenable qemu-mips port.
2504
2505 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
2506 Fix small arc bug while on it.
2507 * gentpl.py: Handle qemu_mips.
2508 * grub-core/Makefile.am: Likewise.
2509 * grub-core/Makefile.core.def: Likewise.
2510 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
2511 inappropriate includes.
2512 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
2513 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
2514 * grub-core/kern/main.c (grub_modules_get_end)
2515 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
2516 * grub-core/kern/mips/qemu-mips: Moved to ..
2517 * grub-core/kern/mips/qemu_mips: ... this.
2518 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
2519 (grub_machine_init): Call terminfo_init and serial_init.
2520 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
2521 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2522 New variable.
2523 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
2524 parameter passing.
2525 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
2526 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
2527 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2528 * include/grub/mips/qemu_mips/cmos.h: New file.
2529 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
2530 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
2531 Removed.
2532 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
2533 Use correct mips-style address.
2534 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
2535 (GRUB_TICKS_PER_SECOND): Removed.
2536 (grub_get_rtc): Likewise.
2537 (grub_cpu_idle): Likewise.
2538 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
2539 New definition.
2540 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
2541 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
2542 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
2543 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
2544 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2545 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2546 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
2547 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
2548
2549 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 SGI ARCS port.
2552
2553 * Makefile.util.def (libgrubmods.a): Add dvh.c.
2554 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
2555 platforms.
2556 * configure.ac: New target mips-arc.
2557 * gentpl.py: Likewise.
2558 * grub-core/Makefile.am: Likewise.
2559 * grub-core/Makefile.core.def: Likewise.
2560 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
2561 (none_decompress): Likewise.
2562 (lsdev): New module.
2563 (datetime): Use lib/arc/datetime.c on ARC.
2564 (part_dvh): New module.
2565 * grub-core/commands/arc/lsdev.c: New file.
2566 * grub-core/disk/arc/arcdisk.c: Likewise.
2567 * grub-core/kern/mips/arc/init.c: Likewise.
2568 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
2569 aligned addresses.
2570 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
2571 support.
2572 (grub_arch_dl_relocate_symbols): Likewise.
2573 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
2574 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
2575 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
2576 platforms.
2577 * grub-core/lib/arc/datetime.c: New file.
2578 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
2579 pci.h on non-loongson.
2580 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
2581 (grub_linux_boot): Set unused registers to 0.
2582 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
2583 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
2584 * grub-core/mmap/mips/uppermem.c: ...here.
2585 * grub-core/partmap/dvh.c: New file.
2586 * grub-core/term/arc/console.c: Likewise.
2587 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
2588 (grub_terminfo_set_current): Add terminal "arc".
2589 (grub_terminfo_readkey): Support ARC sequences.
2590 * include/grub/arc/arc.h: New file.
2591 * include/grub/arc/console.h: Likewise.
2592 * include/grub/disk.h (grub_disk_dev_id): Add
2593 GRUB_DISK_DEVICE_ARCDISK_ID.
2594 * include/grub/mips/arc/kernel.h: New file.
2595 * include/grub/mips/arc/memory.h: Likewise.
2596 * include/grub/mips/arc/time.h: Likewise.
2597 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
2598 * include/grub/mips/kernel.h (grub_halt): ... here.
2599 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
2600 here...
2601 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
2602 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
2603 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
2604 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
2605 proto.
2606 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
2607 from here ...
2608 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
2609 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
2610 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
2611 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
2612 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
2613 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
2614 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
2615 (grub_phys_addr_t): Moved from here ...
2616 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
2617 (grub_vtop): Moved from here ...
2618 * include/grub/mips/memory.h (grub_vtop): ... here.
2619 (grub_map_memory): Moved from here ...
2620 * include/grub/mips/memory.h (grub_map_memory): ... here.
2621 (grub_unmap_memory): Moved from here ...
2622 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
2623 (grub_machine_mmap_iterate): Moved from here ...
2624 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
2625 (grub_mmap_get_lower): Moved from here ...
2626 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
2627 (grub_mmap_get_upper): Moved from here ...
2628 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
2629 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
2630 here ...
2631 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
2632 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
2633 here ...
2634 * include/grub/mips/time.h (grub_get_rtc): ... here.
2635 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
2636 here ...
2637 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
2638 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
2639 here ...
2640 * include/grub/mips/time.h (grub_cpu_idle): ... here.
2641 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
2642 definition.
2643 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
2644 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
2645 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
2646 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
2647 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
2648 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
2649 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
2650 (GRUB_MACHINE_LINK_ADDR): Likewise.
2651 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
2652 to 6.
2653 * util/grub-install.in: Run dvhtool on ARC.
2654 * util/grub-mkimage.c (image_targets): Add mips-arc.
2655 (generate_image): Handle ECOFF output for mips-arc.
2656
2657 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
2660 blocks.
2661
2662 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
2665 after enabling port.
2666
2667 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 Skip incorrect USB devices.
2670
2671 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
2672 configcnt == 0.
2673 * include/grub/usb.h (grub_usb_err_t): New enum value
2674 GRUB_USB_ERR_BADDEVICE.
2675
2676 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 Fuloong video init support.
2679
2680 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
2681 well.
2682 (grub_vga_read_arx): New function.
2683 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
2684 definition.
2685 (framebuffer): New members io, mmioptr and mmiobase.
2686 (read_sis_cmd): New function.
2687 (write_sis_cmd): Likewise.
2688 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
2689 rather than 640x400.
2690 * grub-core/video/sis315_init.c: New file.
2691
2692 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
2695 non-loongson.
2696 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
2697 to grub_dl_register_symbol.
2698
2699 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 Fix compilation errors.
2702
2703 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
2704 potentially unused.
2705 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
2706 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
2707 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
2708 to loongson machines.
2709
2710 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 Several FS mtime support.
2713
2714 * grub-core/fs/affs.c (grub_affs_time): New struct.
2715 (grub_affs_file): New field mtime.
2716 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
2717 type. Removed 'size'. New field 'di'. All users updated.
2718 (grub_affs_mount): Simplify checsum checking.
2719 (grub_affs_iterate_dir): New helper grub_affs_create_node.
2720 (grub_affs_dir): Handle mtime.
2721 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
2722 (grub_cpio_dir): Likewise.
2723 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
2724 (grub_hfs_filerec): New field mtime.
2725 (grub_hfs_dir): Handle mtime.
2726 (grub_hfs_mtime): New function.
2727 (grub_hfs_fs): Register grub_hfs_mtime.
2728 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
2729 (grub_iso9660_dir): New field mtime.
2730 (grub_fshelp_node): New field dirent.
2731 (iso9660_to_unixtime): New function.
2732 (iso9660_to_unixtime2): Likewise.
2733 (grub_iso9660_read_symlink): Use node->dirent.
2734 (grub_iso9660_iterate_dir): Likewise.
2735 (grub_iso9660_dir): Set mtime.
2736 (grub_iso9660_mtime): New function.
2737 (grub_iso9660_fs): Register grub_iso9660_mtime.
2738 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
2739 (grub_jfs_inode): New fields atime, ctime and mtime.
2740 (grub_jfs_dir): Set mtime.
2741 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
2742 * grub-core/fs/ntfs.c (list_file): Set mtime.
2743 (grub_ntfs_dir): Likewise.
2744 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
2745 (grub_reiserfs_iterate_dir): Set mtime.
2746 (grub_reiserfs_dir): Likewise.
2747 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
2748 (grub_fshelp_node): Likewise.
2749 (grub_sfs_iterate_dir): Set mtime.
2750 (grub_sfs_dir): Likewise.
2751 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
2752 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
2753 (grub_xfs_inode): New fields atime, mtime, ctime.
2754 (grub_xfs_dir): Set mtime.
2755 * include/grub/datetime.h (grub_datetime2unixtime): New function.
2756 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
2757 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
2758
2759 Support UDF symlinks.
2760
2761 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
2762 (grub_ufs_read_symlink): New function. All users updated.
2763
2764 Check amiga partmap checksum.
2765
2766 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
2767 (grub_amiga_partition): Likewise.
2768 (amiga_partition_map_checksum): New function.
2769 (amiga_partition_map_iterate): Check checksum.
2770
2771 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 ROMFS support.
2774
2775 * Makefile.util.def (libgrubmods.a): Add romfs.
2776 * grub-core/Makefile.core.def (romfs): New module.
2777 * grub-core/fs/romfs.c: New file.
2778
2779 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 Squashfs v4 support.
2782
2783 * Makefile.util.def (libgrubmods.a): Add squash4.
2784 * grub-core/Makefile.core.def (squash4): New module.
2785 * grub-core/fs/squash4.c: New file.
2786 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
2787 disk_input_start, disk_input.
2788 (get_byte): Handle disk_input.
2789 (grub_zlib_disk_read): New function.
2790 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
2791
2792 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2793 2011-05-15 Feiran Zheng <famcool@gmail.com>
2794
2795 * Makefile.util.def (libgrubmods.a): Add minix3.
2796 * grub-core/Makefile.core.def (minix3): New module.
2797 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
2798 (GRUB_MINIX_BSIZE): Removed.
2799 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
2800 (grub_minix_ino_t): New type.
2801 (grub_minix_le_to_cpu_ino): New macro.
2802 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
2803 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
2804 (grub_minix_data): New field block_size.
2805 (grub_minix_read_file): Handle 64-bit correctly.
2806 * grub-core/fs/minix3.c: New file.
2807
2808 2011-05-15 Tristan Gingold <gingold@free.fr>
2809 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
2810 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 IA64 support.
2813
2814 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
2815 * configure.ac: Add ia64-efi target.
2816 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
2817 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
2818 * gentpl.py: Add ia64_efi platform.
2819 Rename x86_efi to efi and Add ia64-efi. All users updated.
2820 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
2821 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
2822 Remove kern/generic/rtc_get_time_ms.c on EFI.
2823 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
2824 kern/ia64/dl_helper.c on ia64-efi.
2825 Add kern/emu/cache.c on emu.
2826 (linux): Use on loader/ia64/efi/linux.c on ia64.
2827 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
2828 whether symbol is a function.
2829 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
2830 (grub_symbol): New field 'isfunc'.
2831 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
2832 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
2833 (grub_dl_load_segments): Place all sections into the same region.
2834 [__ia64__]: Create trampolines and got.
2835 [GRUB_MACHINE_EMU]: Call mprotect.
2836 (grub_dl_resolve_symbols): Resolve symbol type as well.
2837 [__ia64__]: Create function descriptors.
2838 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
2839 (grub_rtc_get_time_ms): ... this. Expressions simplified.
2840 (grub_get_rtc): New function.
2841 * grub-core/kern/emu/cache.c [__ia64__]: New file.
2842 * grub-core/kern/emu/cache.S: Renamed to ...
2843 * grub-core/kern/emu/cache_s.S: ... this.
2844 [__ia64__]: Add a nop.
2845 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
2846 [__ia64__]: New function.
2847 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
2848 * grub-core/kern/ia64/dl.c: New file.
2849 * grub-core/kern/ia64/dl_helper.c: Likewise.
2850 * grub-core/kern/ia64/efi/init.c: New file.
2851 * grub-core/kern/ia64/efi/startup.S: Likewise.
2852 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
2853 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
2854 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
2855 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
2856 * grub-core/loader/ia64/efi/linux.c: New file.
2857 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
2858 (GRUB_MOD_DEP): Likewise.
2859 (grub_dl) [__ia64__]: New fields got and tramp.
2860 (grub_dl): New field 'base'.
2861 (grub_dl_register_symbol): New argument isfunc. All users updated.
2862 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
2863 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
2864 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
2865 (grub_ia64_dl_get_tramp_got_size): New proto.
2866 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
2867 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
2868 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
2869 * include/grub/efi/api.h: Skip call wrappers on ia64.
2870 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
2871 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
2872 * include/grub/elf.h (ELF_ST_INFO): New definition.
2873 * include/grub/ia64/efi/kernel.h: New file.
2874 * include/grub/ia64/efi/memory.h: Likewise.
2875 * include/grub/ia64/efi/time.h: Likewise.
2876 * include/grub/ia64/kernel.h: Likewise.
2877 * include/grub/ia64/setjmp.h: Likewise (from glibc).
2878 * include/grub/ia64/time.h: New file.
2879 * include/grub/ia64/types.h: Likewise.
2880 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
2881 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
2882 New protos.
2883 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
2884 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2885 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
2886 * util/grub-mkimage.c (image_target_desc): New field pe_target.
2887 All users updated.
2888 (EFI64_HEADER_SIZE): New definition. All users updated.
2889 (image_targets): Add ia64-efi.
2890 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
2891 jumpers_addr. All users updated.
2892 Create function descriptors.
2893 (count_funcs): New function.
2894 (unaligned_uint32): New struct.
2895 (MASK20): New definition.
2896 (MASK19): Likewise.
2897 (MASKF21): Likewise.
2898 (add_value_to_slot_20b): New function.
2899 (add_value_to_slot_21_real): Likewise.
2900 (add_value_to_slot_21): Likewise.
2901 (ia64_kernel_trampoline): New struct.
2902 (nopm): New variable.
2903 (jump): Likewise.
2904 (make_trampoline): New function.
2905 (relocate_addresses): Handle ia64.
2906 (make_reloc_section): Likewise.
2907 (load_image): Likewise.
2908
2909 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
2912 warning. Move variables before code while on it.
2913
2914 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 Fuloong support.
2917
2918 * configure.ac: Rename yeeloong platform to loongson. All users updated.
2919 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
2920 * grub-core/boot/mips/loongson/fuloong.S: New file.
2921 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
2922 Explicitly init CS5536.
2923 [FULOONG]: Don't use serial until CS5536 is available.
2924 Set GPIO based on dumps.
2925 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
2926 [FULOONG]: Handle GPIO and memory controller differences.
2927 Parse machine type in $a2.
2928 * grub-core/boot/mips/startup_raw.S: Determine and save the
2929 architecture.
2930 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
2931 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
2932 init on architecture type.
2933 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
2934 SIS315E. Don't init at_keyboard on fuloong.
2935 (grub_halt): Support Fuloong.
2936 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
2937 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
2938 (loongson_machtypes): New array.
2939 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
2940 type.
2941 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
2942 config. All users updated. Handle CS5536 serial.
2943 * grub-core/term/serial.c (grub_serial_register): Conditionalise
2944 default port on machine type. Register serial as inactive.
2945 * grub-core/video/sis315pro.c: New file.
2946 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
2947 definition.
2948 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
2949 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
2950 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
2951 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
2952 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
2953 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
2954 to ...
2955 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
2956 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
2957 definition.
2958 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
2959 (grub_arch_machine): New extern var.
2960 * include/grub/mips/loongson/serial.h
2961 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
2962 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
2963 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
2964 (GRUB_MACHINE_SERIAL_PORT0): ... this.
2965 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
2966 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
2967 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
2968 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
2969 * include/grub/term.h (grub_term_register_input_inactive): New inline
2970 function.
2971 (grub_term_register_output_inactive): Likewise.
2972 * include/grub/video.h (grub_video_driver_id): New value
2973 GRUB_VIDEO_DRIVER_SIS315PRO.
2974 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
2975 New field "names". All users updated.
2976 New field value IMAGE_FULOONG_FLASH.
2977 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
2978
2979 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
2980
2981 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
2982 and add some clarification.
2983
2984 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
2987 platforms if kernel is compressed.
2988
2989 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
2992 unused modules since currently referrence counter isn't reliable and
2993 there isn't much memory to recover there anyway.
2994
2995 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
2998 rather than resetting it to allow modules to reference themselves
2999 in init.
3000
3001 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
3004 counter on dependencies since grub_dl_unref already handles this.
3005
3006 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
3009 on error if not already done.
3010
3011 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 Fix few potential memory misusage.
3014
3015 * grub-core/font/font.c (load_font_index): Don't free char_index to
3016 avoid double free.
3017 (grub_font_load): Zero-fill font at alloc for safety.
3018 Close file on error.
3019 (free_font): Free bmp_idx.
3020
3021 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * docs/grub.texi (Installation): Fix several outdated claims.
3024
3025 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 Handle module_license on windows.
3028
3029 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
3030 sections shifted.
3031 (insert_string): Make argument const char * instead of char *.
3032 (write_section_data): Handle long section names.
3033 Handle module_license.
3034
3035 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
3038 handle class-free menuentries.
3039 (grub_normal_add_menu_entry): Add a check to be sure.
3040
3041 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
3044 PgUp and PgDown.
3045
3046 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * configure.ac: Bump version to 1.99.
3049
3050 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 Give ATA device a bit more time on first try in order to allow disks
3053 to spin up.
3054
3055 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
3056 if dev->present is 1. Reset dev->present on failure.
3057 (grub_ata_device_initialize): Set dev->present to 1.
3058 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
3059 (grub_ata_device): New member 'present'.
3060
3061 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * util/grub-mkimage.c (generate_image): Update hash.
3064
3065 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 Flush caches on DMA memory.
3068
3069 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
3070 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
3071 (grub_dma_free): Likewise.
3072 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
3073
3074 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
3077 to avoid asm treating ld and sd as macros.
3078
3079 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
3082 decompressor.
3083
3084 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
3087 grub_decompress_core since later would fail if grub_decompress_core
3088 is too far.
3089
3090 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
3093 R_MIPS_JALR since it's used by newer compiler.
3094
3095 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
3098
3099 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
3102 file_path to 0 for surety.
3103 (grub_chainloader_boot): Set exit_data to NULL.
3104 Unset the loader once done.
3105 (grub_cmd_chainloader): Fix confusing error message if file is empty.
3106
3107 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
3110 unknown key into a dprintf.
3111
3112 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
3115 on first non-existant partition.
3116
3117 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
3120 openning fails.
3121 Reported by: Mark Korenberg.
3122
3123 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
3126 overflow.
3127
3128 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * util/grub-mkimage.c (main): Explicitely flush and sync the output
3131 before closing to ensure that it will be readable by grub-setup.
3132
3133 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
3136 (devpath_1): Use MAKE_PIWG_PATH.
3137 (devpath_2): Likewise.
3138 (devpath_3): Likewise.
3139 (devpath_4): Likewise.
3140 (devpath_5): Likewise.
3141 (devpath_6): Likewise.
3142
3143 The appleldr.mod was checked that to be binary identical to previous
3144 version.
3145
3146 2011-05-05 Zach <mikezackles>
3147
3148 Support 2010 Macbooks.
3149
3150 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
3151 (devs): Add devpath_6.
3152
3153 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
3156 /dev/random. /dev/urandom is good enough for our purposes (salting).
3157
3158 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
3161
3162 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
3165 hexadecimal.
3166
3167 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
3170 and not 0 on failure.
3171
3172 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3173
3174 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
3175 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
3176 disk; otherwise grub_fs_probe will not fall back to the next
3177 filesystem.
3178 (grub_pxefs_open): Likewise, for consistency.
3179 Reported and tested by: Ezekiel Grave.
3180
3181 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3182
3183 * tests/partmap_test.in: Don't hardcode path to parted.
3184 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
3185
3186 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
3187
3188 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
3189 of `ls' to find out which devices are available.
3190
3191 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
3194 than source address for efi mmap buffer.
3195
3196 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
3199 wrong action on non-detecting the magic.
3200
3201 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
3204 already supplied by another part of the module (fixes compilation on
3205 FreeBSD).
3206
3207 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
3210 match the one used by mdadm.
3211
3212 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3213
3214 * po/README: Add instructions for creating po/LINGUAS.
3215
3216 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3217
3218 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
3219 #551428.
3220
3221 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
3222 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
3223 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
3224 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3225 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
3226 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
3227 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
3228 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
3229 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
3230 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3231 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
3232 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
3233 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
3234 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
3235 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
3236 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
3237 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
3238 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
3239 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
3240 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
3241 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
3242 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
3243
3244 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3245
3246 * grub-core/kern/emu/getroot.c
3247 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
3248 test that was incorrectly reintroduced in r3214.
3249 Reported by: Ian Dall. Fixes Savannah bug #33133.
3250
3251 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3252
3253 Fix stack pointer handling in 16-bit relocator.
3254
3255 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
3256 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
3257 Fixes Ubuntu bug #683904.
3258
3259 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * configure.ac: Bump version to 1.99~rc2.
3262
3263 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
3266 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
3267 * grub-core/lib/x86_64/setjmp.S: Likewise.
3268 * grub-core/lib/mips/setjmp.S: Likewise.
3269 * grub-core/lib/powerpc/setjmp.S: Likewise.
3270 * grub-core/lib/sparc64/setjmp.S: Likewise.
3271
3272 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
3275 * grub-core/lib/efi/datetime.c: Likewise.
3276
3277 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
3280 New function.
3281 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
3282 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
3283 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
3284
3285 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
3288 bitmap.
3289 (grub_gfxterm_term_init): Likewise.
3290
3291 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 Take into account the decorations the computing menu entry width.
3294
3295 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
3296 (grub_gfxmenu_create_box): Register get_border_width.
3297 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
3298 if available.
3299 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
3300 get_border_width.
3301
3302 2011-04-18 Endres Puschner <code@e7p.de>
3303
3304 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
3305 Don't skip first class.
3306
3307 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
3310 chunks.
3311 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
3312
3313 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 Complete 64-bit division support.
3316
3317 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
3318 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
3319 * include/grub/misc.h (grub_divmod64): Rename to ...
3320 (grub_divmod64_full): ... this.
3321 (grub_divmod64): New inline function.
3322
3323 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * util/grub-mkimage.c (generate_image): Add forgotten comma.
3326
3327 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
3330 performing the necessary test.
3331
3332 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
3335 (kfreebsd.elf): Likewise.
3336 (pc-chainloader.elf): Likewise.
3337 (ntldr.elf): Likewise.
3338
3339 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 Identify RAID by its UUID rather than (guessed) name.
3342
3343 * grub-core/disk/raid.c (ascii2hex): New function.
3344 (grub_raid_open): Accept mduuid/%s specification.
3345 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
3346 (get_mdadm_uuid): ... this.
3347 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
3348
3349 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
3352 to negative size.
3353
3354 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3355
3356 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
3357 btrfs subvolume.
3358 * util/grub.d/20_linux_xen.in: Likewise.
3359
3360 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3361
3362 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
3363 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
3364
3365 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3366 Build a list of relevant visible mounts using the mnt_id and
3367 parent_mnt_id fields, and then scan that list at the end.
3368
3369 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3370
3371 * docs/grub.texi (normal): New section.
3372 (normal_exit): New section.
3373 (Embedded configuration): Add reference to normal.
3374 (GRUB only offers a rescue shell): Likewise.
3375 * docs/grub-dev.texi (Error Handling): Fix typo.
3376
3377 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3378
3379 * NEWS: Drop obsolete entry about probe-only btrfs support.
3380
3381 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3382
3383 * util/import_gcry.py: Fix typo.
3384
3385 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * NEWS: Add btrfs support.
3388
3389 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3390 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3391
3392 BtrFS support. Written by me (Vladimir) with important bugfixes and
3393 even more important testing by Colin.
3394
3395 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
3396 * grub-core/Makefile.core.def (btrfs): Add crc.c.
3397 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
3398 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
3399 mem_input_off and mem_input. All users updated to accept in-RAM input.
3400 (gzio_seek): New function.
3401 (test_zlib_header): Likewise.
3402 (grub_gzio_read): Likewise.
3403 (grub_zlib_decompress): Likewise.
3404 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
3405 Accept partial and non-virtual mounts.
3406 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
3407 avoid receiving /dev/dm-X as device.
3408 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
3409 Handle bind and partial mounts.
3410 * grub-core/lib/crc.c: New file.
3411 * include/grub/deflate.h: Likewise.
3412 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
3413 proto.
3414 * include/grub/lib/crc.h: New file.
3415
3416 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 Implement automatic module license checking according to new GNU
3419 guidelines.
3420
3421 * grub-core/kern/dl.c (grub_dl_check_license): New function.
3422 (grub_dl_load_core): Use grub_dl_check_license.
3423 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
3424 (GRUB_MOD_LICENSE): Likewise.
3425 (GRUB_MOD_DUAL_LICENSE): Likewise.
3426 All modules updated.
3427
3428 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3429
3430 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
3431 reserved_first_sector to 1. btrfs reserves plenty of space for boot
3432 loaders.
3433 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
3434
3435 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
3438
3439 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * util/grub-fstest.c (read_file): Report GRUB error if file opening
3442 failed.
3443
3444 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/kern/file.c (grub_file_open): Don't take into account the
3447 parenthesis in the middle of the filename.
3448
3449 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
3452 rather than trying to put initrd way too high.
3453 Reported by: Ryan Lortie <desrt@desrt.ca>
3454
3455 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
3458 improperly removed string.
3459
3460 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
3463 is_disk.
3464 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
3465 (open_device) Likewise.
3466 (grub_util_biosdisk_close): Likewise.
3467 Reported by: Mark Korenberg.
3468
3469 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
3470
3471 * util/grub-mkconfig_lib.in: Add missing quotes.
3472
3473 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
3474
3475 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
3476 is NULL.
3477
3478 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 Dynamically count the number of lines for the lower banner.
3481
3482 * grub-core/normal/menu_entry.c (per_term_screen): New member
3483 num_entries.
3484 (print_down): Use num_entries.
3485 (update_screen): Likewise.
3486 (grub_menu_entry_run): Set num_entries.
3487 * grub-core/normal/menu_text.c (menu_viewer_data): New member
3488 num_entries.
3489 (grub_print_message_indented): Move real part to ...
3490 (grub_print_message_indented_real): ... here. Additional argument
3491 dry_run.
3492 (draw_border): Additional argument num_entries.
3493 (print_message): Additional argument dry_run.
3494 (print_entries): Receive menu viewer data.
3495 (grub_menu_init_page): New argment num_entries.
3496 (menu_text_set_chosen_entry): Use num_entries.
3497 (grub_menu_try_text): Likewise.
3498 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
3499 All users updated.
3500 (grub_ucs4_count_lines): New function.
3501 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
3502 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
3503 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
3504 (grub_term_border_height): Likewise.
3505 (grub_term_num_entries): Likewise.
3506
3507 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
3510 Remove now unused string.
3511
3512 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3513
3514 * docs/grub-dev.texi (Finding your way around): Update for 1.99
3515 build system.
3516 (Getting started): GRUB is developed in Bazaar now, not Subversion.
3517
3518 (Comment): Fix typo.
3519 (Getting started): General copy-editing.
3520 (Typical Development Experience): Likewise.
3521 (Error Handling): Likewise.
3522 (Video API): Likewise.
3523
3524 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3525
3526 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
3527 throughout.
3528
3529 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 * util/grub-mkimage.c (main): Handle special naming of yeeloong
3532 directory.
3533
3534 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3535
3536 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
3537 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
3538 "development".
3539
3540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
3543 grub_strcpy since the lines aren't necessarily 0-terminated.
3544
3545 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
3548 root on legacy.
3549
3550 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/commands/probe.c (options): Argument to set isn't optional.
3553 (GRUB_MOD_INIT): DEVICE isn't optional.
3554
3555 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
3558 word on new line if it's too long anyway. Fixes a hang.
3559
3560 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
3563 const.
3564 * util/grub-setup.c (main): Reuse md device name if available.
3565 * util/raid.c (grub_util_raid_getmembers): Receive device name and
3566 not GRUB name as argument.
3567 Based on patch by: Florian Wagner <fwagner>.
3568
3569 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
3572 Place mbi on low memory for better compatibility.
3573
3574 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
3577
3578 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3579 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3580
3581 * autogen.sh: Ensure that collate and ctype locale is C.
3582 * conf/Makefile.common: Likewise.
3583
3584 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * grub-core/normal/menu.c: Add missing include.
3587
3588 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3591
3592 2011-04-08 Martin Zuther <mzuther@mzuther.de>
3593
3594 * util/grub-mkconfig.in: Ignore emacsen backup.
3595
3596 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
3599 on open.
3600 (grub_util_biosdisk_close): Likewise.
3601
3602 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
3605 const attribute and use grub_isdigit.
3606
3607 2011-04-06 Andrey <dev_null@ukr.net>
3608
3609 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
3610 gcc warning.
3611
3612 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
3615 useful grub_dprintf's.
3616
3617 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
3620
3621 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
3624
3625 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 Output errors if theme loading failed.
3628
3629 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
3630 grub_gfxterm_fullscreen on error paths to ...
3631 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
3632 theme loading error.
3633
3634 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
3637 space for older compilers.
3638 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3639
3640 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
3643 and report them as not RAID members since they are useless for GRUB.
3644 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3645
3646 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 Increase LVM implementation robustness in order not to crash on
3649 configurations like pvmove. Previously code assumed that in some places
3650 only lvs or only pvs are used whereas it seems that they are used
3651 interchangeably.
3652
3653 * grub-core/disk/lvm.c (read_node): New function.
3654 (read_lv): Use read_node.
3655 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
3656 Match volumes only at the end when all lvs are found. Take both
3657 pvs (first) and lvs (second) into account.
3658 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
3659 mirror_* into node_*. All users updated.
3660 (grub_lvm_stripe): Merge this ...
3661 (grub_lvm_mirror): ... and this ...
3662 (grub_lvm_node): ... into this. All users updated.
3663
3664 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
3667 of function to allow further scanning for LVMs.
3668
3669 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
3672 on failed seek as it breaks open fd reusage.
3673
3674 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * util/grub-install.in: Add a recommendation to use --recheck before
3677 reporting bugs.
3678
3679 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
3682 are obtained.
3683
3684 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 GRUB developper manual based on existing Internals section and
3687 contributions by the various authors with active copyright assignment.
3688
3689 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
3690 * docs/font_char_metrics.png: New file.
3691 * docs/font_char_metrics.txt: Likewise.
3692 * docs/grub-dev.texi: Likewise.
3693 * docs/grub.texi (Internals): Move from here ...
3694 * docs/grub-dev.texi: ... here.
3695
3696 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3697
3698 Store the loopback device as data on loopback grub_disk structures,
3699 rather than the file it points to. This fixes use of freed memory
3700 if an existing loopback device is replaced.
3701
3702 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
3703 disk->data, not dev->file.
3704 (grub_loopback_read): Adjust file assignment to match.
3705 Fixes Ubuntu bug #742967.
3706
3707 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3708
3709 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
3710 when replacing an existing device.
3711
3712 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
3715 memory corruptions.
3716
3717 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
3718 unsigned.
3719 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
3720 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
3721 (grub_jfs_read_inode): Likewise.
3722 (grub_jfs_opendir): Likewise. Remove now useless casts.
3723 (grub_jfs_getent): Likewise.
3724 Make ino a grub_uint32_t rather than int.
3725 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
3726 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
3727 division and module with bit operations.
3728 (grub_jfs_find_file): Make ino a grub_uint32_t.
3729 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
3730
3731 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
3732
3733 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
3734 warning. (This was in fact always initialised before use, but GCC
3735 wasn't smart enough to prove that.)
3736 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
3737
3738 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
3741 stack alignment.
3742 (efi_wrap_1): Likewise.
3743 (efi_wrap_2): Likewise.
3744 (efi_wrap_3): Likewise.
3745 (efi_wrap_4): Likewise.
3746 (efi_wrap_5): Likewise.
3747 (efi_wrap_6): Likewise.
3748 (efi_wrap_10): Likewise.
3749 Based on information by: Red Hat/Peter Jones.
3750
3751 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
3752
3753 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
3754 set-but-not-used variable.
3755
3756 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
3757
3758 * docs/grub.texi (Simple configuration): Be more explicit about
3759 GRUB_DEFAULT, and add an example.
3760 Reported by: Leslie Rhorer.
3761
3762 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3763
3764 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
3765 shell".
3766
3767 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3768
3769 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
3770 * util/grub.d/20_linux_xen.in: Likewise.
3771
3772 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * util/grub.d/10_linux.in: Try alternative config filenames where
3775 we parse config file.
3776 * util/grub.d/20_linux_xen.in: Likewise.
3777
3778 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3779
3780 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
3781 * util/grub.d/20_linux_xen.in: Likewise.
3782
3783 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * grub-core/disk/raid.c (insert_array): Add few potentially
3786 useful grub_util_info.
3787 (grub_raid_register): Likewise.
3788
3789 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3790
3791 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
3792 Preserve partition number in mdadm code path.
3793
3794 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3795
3796 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
3797 few potentially useful grub_util_info.
3798
3799 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
3802
3803 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3804
3805 * docs/grub.texi (default): Use @example rather than nested
3806 itemized lists to avoid breaking gendocs.
3807
3808 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3809
3810 * docs/grub.texi (Future): Update.
3811
3812 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3813
3814 * docs/grub.texi (Environment): New chapter.
3815 (Changes from GRUB Legacy): Link to "Environment block" section for
3816 details of limitations.
3817 (Simple configuration): Likewise. Link to documentation of gfxmode
3818 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
3819 respectively.
3820 (Shell-like scripting): Note that normal variables are stored in the
3821 environment.
3822 (gettext): Link to documentation of lang and locale_dir.
3823 (list_env): New section.
3824 (load_env): New section.
3825 (save_env): New section.
3826
3827 (Reporting bugs): Fix typo.
3828
3829 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
3832 the example.
3833
3834 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/term/at_keyboard.c (set_scancodes)
3837 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
3838
3839 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3840
3841 * docs/grub.texi (Menu-specific commands): Remove some semantics
3842 that were true in GRUB Legacy but not in GRUB 2.
3843 (submenu): New section.
3844 (false): New section.
3845 (read): New section.
3846 (true): New section.
3847
3848 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3849
3850 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
3851
3852 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
3853
3854 * docs/grub.texi (Simple configuration): Explain some of the
3855 current limitations of grub-mkconfig.
3856 Reported by: Leslie Rhorer.
3857
3858 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 Old macs search for boot.efi rather than for bootia32.efi.
3861
3862 * util/grub-install.in: Copy bootia32.efi to boot.efi.
3863 * util/grub-mkrescue.in: Likewise.
3864 Suggested by: Peter Jones.
3865
3866 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
3869
3870 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
3873 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
3874 (grub_lvm_mirror): New struct.
3875 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
3876 (grub_lvm_iterate): Iterate only visible volumes.
3877 (grub_lvm_read): Factor out to ..
3878 (read_lv): ... this. Support mirrors.
3879 (grub_lvm_read): New wrapper function.
3880 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
3881 stripped or mirrored.
3882
3883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
3886
3887 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3888
3889 * docs/grub.texi (loopback): New section.
3890
3891 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3892
3893 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
3894 removed -p option.
3895
3896 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3897
3898 * docs/grub.texi (BIOS installation): New section, partly based on
3899 previous text in other sections.
3900 (Installing GRUB using grub-install): Replace BIOS discussion with a
3901 cross-reference.
3902 (Images): Likewise.
3903
3904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * grub-core/kern/emu/hostdisk.c (find_partition_start)
3907 [HAVE_DIOCGDINFO]: Add safety checks.
3908
3909 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
3912 per default compiled in kernel and prior to 8.0 isn't shipped at all.
3913
3914 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
3915
3916 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
3917 real_sb->size is zero (e.g. RAID-0), get the disk size from
3918 real_sb->data_size instead.
3919 Fixes Ubuntu bug #743136.
3920
3921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
3924 printf clauses for printing size and start.
3925
3926 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
3929 Reported and tested by: Timothy Nikkel.
3930
3931 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
3934 (dirty_region_add_real): ... this.
3935 (dirty_region_add): Don't discard margin refresh when performing
3936 scheduled repaint.
3937
3938 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/lib/relocator.c (allocate_regstart)
3941 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
3942 terminals are capabple of malloc-free operation.
3943 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3944 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3945
3946 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
3947
3948 * util/grub-setup.c: Copy the partition table zone if floppy support
3949 is disabled, even if no partition table is found.
3950
3951 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
3952 during POST if an invalid partition table is contained in the PBR
3953 of the active partition when GRUB is installed to a partition.
3954
3955 2011-03-28 Colin Watson <cjwatson@debian.org>
3956
3957 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
3958 comment.
3959
3960 2011-03-28 Colin Watson <cjwatson@debian.org>
3961
3962 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
3963 to be specific about what kind of RAID device we're scanning for.
3964
3965 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
3966
3967 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
3968 return freed string.
3969
3970 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
3973
3974 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Use libgeom on FreeBSD to detect partitions.
3977
3978 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
3979 (grub-mkrelpath): Likewise.
3980 (grub-script-check): Likewise.
3981 (grub-editenv): Likewise.
3982 (grub-mkpasswd-pbkdf2): Likewise.
3983 (grub-fstest): Likewise.
3984 (grub-mkfont): Likewise.
3985 (grub-mkdevicemap): Likewise.
3986 (grub-probe): Likewise.
3987 (grub-setup): Likewise.
3988 (grub-ofpathname): Likewise.
3989 (grub-mklayout): Likewise.
3990 (example_unit_test): Likewise.
3991 (grub-menulst2cfg): Likewise.
3992 * grub-core/Makefile.core.def (grub-emu): Likewise.
3993 (grub-emu-lite): Likewise.
3994 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
3995 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
3996 define HAVE_DIOCGDINFO.
3997 (follow_geom_up) [FreeBSD]: New function.
3998 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
3999 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
4000 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
4001 unconditionally of HAVE_DIOCGDINFO.
4002
4003 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 Fix FreeBSD compilation problem.
4006
4007 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
4008 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
4009
4010 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
4011
4012 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
4013 Switch back to page zero before loading a kernel, since some kernel
4014 drivers expect that.
4015 Thanks to: Felix Kuehling.
4016
4017 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
4020 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
4021 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
4022
4023 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
4026 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
4027
4028 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
4031 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
4032 malloc is disabled.
4033
4034 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
4037 for modules headers when counting the needed allocation size.
4038
4039 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
4042 if no ASCII character is found to prevent crash.
4043
4044 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
4045
4046 * grub-core/video/bitmap.c (match_extension): Ignore case.
4047
4048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
4051
4052 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * grub-core/script/parser.y: Declare "time" as valid argument.
4055
4056 2011-03-23 Peter Jones <pjones@redhat.com>
4057
4058 Fix incorrect assert failure reporting.
4059
4060 * grub-core/tests/example_functional_test.c (example_test): Add
4061 a failure comment.
4062 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
4063 (failure_start): ...this. Check that malloc succeeded.
4064 Don't call xvasprintf. Return failure struct.
4065 (failure_append_vtext): New function.
4066 (failure_append_text): Likewise.
4067 (add_failure): Likewise.
4068 (grub_test_assert_helper): Likewise.
4069 * include/grub/test.h (grub_test_assert_helper): New declaration.
4070 (grub_test_assert): Macro rewritten.
4071
4072 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
4075
4076 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
4079
4080 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
4083 into GRUB-style one.
4084
4085 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
4088 error and not grub_errno.
4089 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
4090
4091 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
4094 GRUB_USB_SPEED_NONE in case of failure and not the error code.
4095
4096 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/efiemu/i386/pc/cfgtables.c
4099 (grub_machine_efiemu_init_tables): Make declaration a prototype.
4100 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
4101 (grub_xnu_unlock): Likewise.
4102 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
4103
4104 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
4107 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
4108 * grub-core/commands/hashsum.c (aliases): Likewise.
4109 * grub-core/commands/setpci.c (pci_registers): Likewise.
4110 * grub-core/disk/usbms.c (attach_hook): Likewise.
4111 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
4112 (zio_checksum_table): Likewise.
4113 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
4114 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
4115 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
4116 * grub-core/lib/relocator.c (leftovers): Likewise.
4117 (extra_blocks): Likewise.
4118 * grub-core/loader/i386/bsd.c (relocator): Likewise.
4119 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
4120 (modules_last): Likewise.
4121 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
4122 (devices): Likewise.
4123 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
4124 (modules_last): Likewise.
4125 * grub-core/normal/auth.c (users): Likewise.
4126 * grub-core/normal/context.c (initial_menu): Likewise.
4127 (current_menu): Likewise.
4128 * grub-core/normal/crypto.c (crypto_specs): Likewise.
4129 * grub-core/term/serial.c (grub_serial_ports): Likewise.
4130 (grub_serial_terminfo_input_template): Likewise.
4131 (grub_serial_terminfo_output_template): Likewise.
4132 (grub_serial_terminfo_input): Likewise.
4133 (grub_serial_terminfo_output): Likewise.
4134 (registered): Likewise.
4135 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
4136
4137 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
4140 grub_video_mode_type_t.
4141 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
4142 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
4143 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
4144
4145 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * util/grub-install.in: Correct the x86-64 name as x86_64.
4148
4149 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
4150
4151 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
4152 initial chunk read from the kernel always includes GRUB's multiboot
4153 header, which is now outside the first sector.
4154
4155 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4156
4157 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
4158 cached mmap_size, so that this works correctly when called multiple
4159 times.
4160 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
4161
4162 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4163
4164 * docs/grub.texi (Simple configuration): Tidy up formatting.
4165
4166 2011-03-07 Szymon Janc <szymon@janc.net.pl>
4167
4168 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
4169 Set-but-not-used variable removed.
4170
4171 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 Workaround yet another IEEE1275 bug.
4174
4175 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4176 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
4177 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
4178 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
4179 is set.
4180 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4181 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
4182
4183 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
4186 error.
4187
4188 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
4189
4190 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
4191 empty, since in that case we can only generate either nothing or a
4192 syntactically invalid configuration file.
4193 Reported by: Michal Suchanek. Fixes Debian bug #612898.
4194
4195 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4196
4197 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
4198 (Making a GRUB bootable CD-ROM): Likewise.
4199 (Invoking grub-mkrescue): New section.
4200 Reported by: Yann Dirson. Fixes Debian bug #612585.
4201
4202 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4203
4204 * util/grub-install.in: Remove unnecessary brackets from tr
4205 arguments.
4206 * util/grub.d/10_hurd.in: Likewise.
4207 * util/grub.d/10_kfreebsd.in: Likewise.
4208 * util/grub.d/10_linux.in: Likewise.
4209 * util/grub.d/20_linux_xen.in: Likewise.
4210 Reported by: Jamie Heilman. Fixes Debian bug #612564.
4211
4212 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
4213
4214 * include/grub/file.h (not_easly_seekable): Rename to ...
4215 (not_easily_seekable): ... this. Update all users.
4216
4217 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
4218
4219 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
4220 grub-mkrescue.
4221
4222 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
4223
4224 * util/grub-mkimage.c (generate_image): Refuse to create the images
4225 bigger than the actual flash (512K) in Loongson machines. 512K is also
4226 the biggest chip supported by them.
4227
4228 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
4231
4232 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
4233
4234 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
4235 super_offset field.
4236
4237 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * util/grub-install.in: Ignore install device on platforms
4240 where it doesn't make sense. Always use UUIDs except on pc, efi and
4241 sparc64.
4242 Reported by: Daniel Kahn Gillmor.
4243
4244 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
4247
4248 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
4251 (iterate_real): Don't rely on partition being non-NULL.
4252
4253 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
4256 supported platforms. Put a compile time assert for this rather than
4257 generate a warning with 32-bit shift.
4258
4259 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
4262 logical expression more readable.
4263
4264 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
4267 even if some elements have a name.
4268 Reported by: Alexander GQ Gerasiov.
4269
4270 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4271
4272 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
4273 path unreadable if `grub-probe -t abstraction' fails, for example if
4274 memberlist fails on an LVM volume group.
4275 Reported by: Darius Jahandarie.
4276
4277 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4278
4279 * docs/grub.texi (Simple configuration): Document
4280 GRUB_PRELOAD_MODULES.
4281
4282 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
4283
4284 * .bzrignore: Remove nonexistent grub-pbkdf2.
4285
4286 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * configure.ac: Bump version to 1.99~rc1.
4289
4290 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
4293 for safety.
4294
4295 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
4298 module.
4299
4300 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
4303
4304 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
4307 diskdevid.
4308
4309 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 Fix compilation on cygwin.
4312
4313 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
4314 -R .drectve on cygwin.
4315 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
4316 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
4317 (COND_CYGWIN): New condition.
4318 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
4319 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
4320 not @TARGET_OBJ2ELF@.
4321 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
4322 type to determine whether aux is to be used.
4323
4324 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
4327 realpath'ed device string.
4328 Handle floppy (somewhat).
4329 Issue error in unknown case rather than garbage.
4330 Reported by: Axel Beckert.
4331
4332 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * util/grub.d/00_header.in (load_video): Handle the case when no video
4335 drivers available.
4336 Thanks to: Axel Beckert.
4337
4338 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
4341 variable. Fixes problem on big endian platforms.
4342
4343 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
4346 It doesn't work well there.
4347
4348 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
4351 warning.
4352 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
4353 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
4354 counter.
4355
4356 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 Use alias->path rather than buggy "canon".
4359
4360 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
4361 (ofdisk_hash_add): New argument curcan. All users updated.
4362
4363 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4364
4365 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
4366
4367 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
4370 loadmask before doing any calculations. Use correct type for offset.
4371 (grub_linux_load64): Likewise.
4372
4373 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4374
4375 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
4376 with NULL.
4377 (console_grub_equivalences_unshift): Likewise.
4378 Reported by: Daniel Dehennin.
4379
4380 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4381
4382 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
4383 (set_env_limn_ro): Likewise.
4384 (GRUB_MOD_INIT): Likewise.
4385 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
4386 ARRAY_SIZE while on it.
4387 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
4388 * grub-core/normal/context.c (grub_env_export): Move from here ...
4389 * grub-core/kern/env.c (grub_env_export): ... here.
4390 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
4391 prefix.
4392 * grub-core/kern/main.c (grub_main): Export root and prefix.
4393 * include/grub/env.h (grub_env_export): Export.
4394 Reported by: Seth Goldberg.
4395
4396 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4399 Take into account space used by ELF sections and multiboot palette.
4400 Reported by: Grégoire Sutre.
4401
4402 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * BUGS: New file.
4405
4406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 Pass more appropriate video id to Linux.
4409
4410 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
4411 grub_video_get_driver_id and variable gfxpayloadforcelfb to
4412 fill have_vga.
4413 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
4414 shift params->lfb_size.
4415 * include/grub/i386/linux.h: Make an enume out of have_vga values.
4416
4417 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * util/grub-menulst2cfg.c: Add missing include of misc.h.
4420
4421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
4424 separator and pass bootpath/devid even if only one of them is available.
4425 Reported by: Seth Goldberg.
4426
4427 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
4430 implementations bug on them.
4431
4432 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
4433 memory.
4434 (filter_memory_map): Likewise.
4435
4436 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
4439 Reported by: nebuchadnezzar.
4440
4441 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
4444 Reported by: nebuchadnezzar.
4445
4446 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 Submenu default support.
4449
4450 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
4451 auto_boot. All users updated.
4452 Declared static.
4453 Handle chosen and default with submenus.
4454 (grub_menu_execute_with_fallback): Declared static.
4455 Don't notify failure if autobooted. Upper level does it.
4456 (menuentry_eq): New function.
4457 (get_entry_number): Use menuentry_eq.
4458 (show_menu): New parameter "autobooted". All users updated.
4459 (grub_show_menu): Likewise.
4460 * include/grub/normal.h (grub_show_menu): Likewise.
4461 * include/grub/menu.h (grub_menu_execute_entry): Removed.
4462 (grub_menu_execute_with_fallback): Likewise.
4463
4464 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 * util/grub-mklayout.c (usage): Update help text.
4467
4468 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
4471
4472 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * util/grub-menulst2cfg.c (main): Trim the line.
4475
4476 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
4479 (grub_machine_init): Don't check amount of low memory as reportedly
4480 INT 12h can be broken and if low memory is too low we wouldn't have
4481 gotten into grub_machine_init anyway.
4482
4483 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
4486 (grub_machine_mmap_iterate): Take low memory into account
4487
4488 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
4491 badfs.
4492 Reported by: TiCPU.
4493
4494 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
4497 members errors.
4498
4499 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4500
4501 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
4502 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
4503
4504 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4505
4506 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
4507 openbsd and netbsd types being in part_bsd module.
4508
4509 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
4512 (_FILE_OFFSET_BITS): Likewise.
4513 Reported by: Seth Goldberg.
4514
4515 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4516
4517 * configure.ac: Check for libdevmapper header.
4518
4519 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
4522 avoid aliasing.
4523 (fzap_lookup): Likewise.
4524 (dnode_get): Likewise.
4525 (make_mdn): Likewise.
4526 (zfs_mount): Likewise.
4527 (fzap_iterate): Use temporary pointer to avoid aliasing.
4528 (grub_zfs_read): Likewise.
4529 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
4530 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
4531 pointers to avoid aliasing.
4532 (grub_cmd_xnu_kernel64): Likewise.
4533 (grub_xnu_load_driver): Likewise.
4534
4535 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
4538 aliasing warning.
4539 (grub_cmd_terminal_output): Likewise.
4540 Reported and tested by: Grégoire Sutre.
4541
4542 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
4545 warning.
4546 Reported and tested by: Grégoire Sutre.
4547
4548 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * configure.ac: Do CPU substitution even if it's specified explicitly.
4551 Reported and tested by: Alain Greppin.
4552
4553 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
4556 Reported and tested by: Alain Greppin.
4557
4558 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 Satisfy some bison versions need for inttypes.h.
4561
4562 * grub-core/lib/posix_wrap/inttypes.h: New file.
4563 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
4564 (int16_t): Likewise.
4565 (int32_t): Likewise.
4566 (int64_t): Likewise.
4567 Reported and tested by: Alain Greppin.
4568
4569 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
4572 Silence spurious warning.
4573 Reported and tested by: Alain Greppin.
4574
4575 2011-01-07 Szymon Janc <szymon@janc.net.pl>
4576
4577 * docs/grub.texi (Support automatic decompression): Update with xz
4578 decompression support.
4579
4580 2011-01-07 Szymon Janc <szymon@janc.net.pl>
4581
4582 Improve loaders' kernel command line handling.
4583
4584 * grub-core/lib/cmdline.c: New file.
4585 * include/grub/lib/cmdline.h: Likewise.
4586 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
4587 grub_create_loader_cmdline to create kernel command line.
4588 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4589 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
4590 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
4591 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
4592 (linux): Add lib/cmdline.c on common.
4593
4594 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
4597 inopos might be unaligned.
4598
4599 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4602 endian transformations.
4603 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4604 Based on report by: Doug Nazar.
4605
4606 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
4607
4608 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
4609 array->members[i].start_sector.
4610 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
4611
4612 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
4615 Reported and tested by: Grégoire Sutre.
4616
4617 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
4618
4619 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
4620 avoid causing test failures by clearing the screen.
4621
4622 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
4623
4624 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
4625 Fix prefix check to handle the case where dir ends with a slash
4626 (most significantly, "/" itself).
4627 Reported by: Michael Vogt.
4628
4629 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 Run terminfo_cls on initing terminfo output to clear the screen and
4632 move the cursor to (0,0).
4633
4634 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
4635 Call grub_terminfo_output_init.
4636 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
4637 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
4638 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
4639
4640 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
4643 only when needed.
4644
4645 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
4648 CTRL.
4649
4650 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 The E820 type 5 is BADRAM, not EXEC_CODE.
4653
4654 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
4655 (GRUB_E820_BADRAM): New define.
4656 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
4657 into reserved. Propagate BADRAM.
4658 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
4659 (GRUB_E820_BADRAM): New define.
4660
4661 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
4664 Ignore the memory post-4G.
4665 (grub_relocator_firmware_alloc_region): Additional debug statement.
4666
4667 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4668
4669 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
4670 names.
4671 Reported by: David Pravec.
4672
4673 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
4676 BIOSes.
4677
4678 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
4681 Prevent overflow.
4682 (grub_reed_solomon_recover): Likewise.
4683
4684 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
4687
4688 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
4691 variable.
4692
4693 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
4694
4695 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
4696 descriptions of extract_legacy_entries_source and
4697 extract_legacy_entries_configfile.
4698 Reported by: Seung Soo, Ha.
4699
4700 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
4701
4702 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
4703 on devices that do not implement function 0.
4704
4705 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
4706
4707 * grub-core/fs/hfsplus.c: Make parent unsigned.
4708 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
4709 overflows.
4710 (grub_hfsplus_cmp_extkey): Likewise
4711
4712 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 * util/grub-install.in: Correctly use bootloader_id and not
4715 GRUB_DISTRIBUTOR on efibootmgr line.
4716
4717 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
4720
4721 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
4722
4723 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
4724 Xen and reorder menu item wording to make it clearer that this entry
4725 will launch Xen. Print separate messages when loading Xen and
4726 Linux.
4727
4728 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
4731 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
4732 loop in case of incorrect amiga partmap.
4733
4734 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
4737 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
4738 Reported by:EHeM.
4739
4740 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
4743 spurious warning.
4744 Reported by: crocket
4745
4746 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
4749 Preload EFIemu.
4750 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
4751
4752 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
4755 is loaded
4756 (grub_cmd_xnu_kextdir): Likewise.
4757 (grub_cmd_xnu_splash): Likewise.
4758
4759 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 Avoid using Reed-Solomon with 0 redundancy.
4762
4763 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
4764 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
4765 or 0 redundancy.
4766 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
4767 (grub_reed_solomon_recover): Likewise.
4768
4769 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 Don't use disk subsystem in freebsd_boot.
4772
4773 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
4774 (freebsd_biosdev): Likewise.
4775 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
4776 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
4777
4778 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 Handling of files of unknown size is currently limited. They can't be
4781 used e.g. for initrd or modules. Moreover gzip handling of not
4782 easily seekable files is buggy. Disable unknown file size for now. May
4783 be inefficient but works.
4784
4785 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
4786 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4787
4788 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
4789
4790 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
4791 floppy probe.
4792
4793 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
4794
4795 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
4796
4797 2010-12-25 Shea Levy <shlevy>
4798
4799 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
4800
4801 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
4804 Windows Server 2008.
4805 Reported by: Devin Giddings.
4806
4807 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
4810 writing an error message because of async power management.
4811 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
4812 (grub_reboot): Likewise.
4813
4814 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
4815
4816 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
4817 keep unit tests from failing when they shouldn't.
4818
4819 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4820
4821 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
4822 previous patch increased the size of the RS code by 20 bytes (at
4823 least with gcc-4.4), so increase this by 20 bytes to match.
4824 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4825
4826 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4827
4828 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
4829 scratch area. Make sure to initialise chosen in standalone mode as
4830 well as non-standalone.
4831 Reported by: Robert Hooker and Andy Whitcroft.
4832 Tested by: Andy Whitcroft.
4833
4834 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4835
4836 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
4837 constructing a new unescaped string and passing it to grub_xputs in
4838 one go, rather than passing characters to grub_printf one at a time.
4839
4840 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4841
4842 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
4843 initialising utf16.
4844
4845 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
4846
4847 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
4848 comment. Add an extra layer of quotation, requiring the output of
4849 this function to be used in a printf format string.
4850 (gettext_printf): New function.
4851 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
4852 Extract translatable strings from here-documents and use a temporary
4853 variable instead, so that xgettext can find them.
4854 * util/grub.d/10_kfreebsd.in: Likewise.
4855 * util/grub.d/10_linux.in: Likewise.
4856 * util/grub.d/20_linux_xen.in: Likewise.
4857
4858 * po/grub.d.sed: New file.
4859 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
4860 arguments. Set c-format flags on all strings extracted from
4861 util/grub.d/ (xgettext refuses to include these itself for strings
4862 it extracted from a shell file, but these really are c-format).
4863
4864 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
4867 Avoid next pointing to nowhere.
4868
4869 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
4872 rather than assuming than rootblock is exactly in the middle.
4873 (grub_affs_label): Likewise.
4874
4875 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
4878 reserved_first_sector to 0.
4879 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
4880 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
4881 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
4882
4883 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 Fix handling of UTF-16 UDF labels.
4886
4887 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
4888 (read_string): .. here.
4889 (grub_udf_label): Use read_string.
4890
4891 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
4892
4893 * grub-core/normal/menu_entry.c (run): Execute commands from menu
4894 editor under argument scope.
4895 Reported by: Jordan Uggla
4896
4897 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
4900
4901 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
4902
4903 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
4904 line, and other keys scroll an entire page (previous handling was
4905 for \r and \n to scroll a page and other keys to scroll two lines).
4906
4907 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4910 Set ptrdest to correct get_physical_target_address rather than
4911 incorrect get_virtual_current_address.
4912
4913 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
4914
4915 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
4916 correct cat to grub_uint8_t * rather than grub_uint32_t *.
4917
4918 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
4919
4920 * .bzrignore: Ignore grub-core/rs_decoder.S.
4921
4922 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
4923
4924 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
4925 .mo/.mo.gz opening sequence to ...
4926 (grub_mofile_open_lang): ... here.
4927 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
4928 * util/grub.d/00_header.in (grub_lang): Include country part of
4929 locale.
4930 Reported by: Mario Limonciello.
4931
4932 2010-12-09 Robert Millan <rmh@gnu.org>
4933
4934 * NEWS: Document addition of ZFS support.
4935
4936 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
4937
4938 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
4939 rather than `/ 2', as the latter requires -Wa,--divide which would
4940 require bumping our minimum binutils version.
4941
4942 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
4943
4944 * util/grub-script-check.c (main): Print script line number on
4945 error.
4946
4947 2010-12-01 Robert Millan <rmh@gnu.org>
4948
4949 * grub-core/fs/zfs/zfs.c: New file.
4950 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
4951 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
4952 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
4953 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4954
4955 * include/grub/zfs/dmu.h: Likewise.
4956 * include/grub/zfs/dmu_objset.h: Likewise.
4957 * include/grub/zfs/dnode.h: Likewise.
4958 * include/grub/zfs/dsl_dataset.h: Likewise.
4959 * include/grub/zfs/dsl_dir.h: Likewise.
4960 * include/grub/zfs/sa_impl.h: Likewise.
4961 * include/grub/zfs/spa.h: Likewise.
4962 * include/grub/zfs/uberblock_impl.h: Likewise.
4963 * include/grub/zfs/vdev_impl.h: Likewise.
4964 * include/grub/zfs/zap_impl.h: Likewise.
4965 * include/grub/zfs/zap_leaf.h: Likewise.
4966 * include/grub/zfs/zfs.h: Likewise.
4967 * include/grub/zfs/zfs_acl.h: Likewise.
4968 * include/grub/zfs/zfs_znode.h: Likewise.
4969 * include/grub/zfs/zil.h: Likewise.
4970 * include/grub/zfs/zio.h: Likewise.
4971 * include/grub/zfs/zio_checksum.h: Likewise.
4972
4973 * Makefile.util.def: Build ZFS into libgrubmods.
4974 * grub-core/Makefile.core.def: Build zfs.mod.
4975
4976 2010-11-30 Szymon Janc <szymon@janc.net.pl>
4977
4978 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
4979 variable.
4980 * grub-core/commands/wildcard.c (match_files): Likewise.
4981
4982 2010-11-30 Robert Millan <rmh@gnu.org>
4983
4984 * grub-core/loader/i386/bsd.c
4985 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
4986 whether kernel is loaded using grub_loader_is_loaded(), rather
4987 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
4988 certain error conditions.
4989
4990 2010-11-30 Robert Millan <rmh@gnu.org>
4991
4992 * grub-core/commands/echo.c: Include `<grub/term.h>'.
4993 (grub_cmd_echo): Call grub_refresh() after printing a message.
4994
4995 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 Avoid using tricks for initialising endian variables.
4998
4999 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
5000 Make const.
5001 (GRUB_MOD_INIT): Don't byte-swap.
5002 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5003 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
5004 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
5005 (grub_swap_bytes32_compile_time): Likewise.
5006 (grub_cpu_to_le32_compile_time): Likewise.
5007 (grub_cpu_to_le16_compile_time): Likewise.
5008
5009 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * util/grub-setup.c (setup): Stop recommending --force. People who
5012 understand the dangers of blocklists are able to find this option
5013 anyway and the ones who don't shouldn't use it anyway.
5014
5015 2010-11-26 Robert Millan <rmh@gnu.org>
5016
5017 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
5018 Update all users.
5019
5020 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
5021
5022 Fix LVM-on-RAID probing.
5023
5024 * util/grub-probe.c (probe): Remember which disk was detected as
5025 RAID (perhaps an LVM physical volume). Use that disk's raidname
5026 rather than that of the top-level disk.
5027
5028 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
5029
5030 Fix cmdline argument quotes for setparams command of menuentry
5031 definitions.
5032
5033 * grub-core/commands/menuentry.c (setparams_prefix): Use single
5034 quotes for arguments.
5035 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
5036 grub_strchrsub function instead.
5037
5038 * include/grub/misc.h (grub_strchrsub): New function.
5039
5040 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5041
5042 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
5043 effort by skipping "." and ".." entries up-front.
5044 Suggested by: Michael Lazarev.
5045
5046 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5047
5048 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
5049 ldflags to ldadd, to fix link line ordering.
5050 (none_decompress): Likewise.
5051
5052 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5053
5054 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
5055 platforms.
5056 (grub-emu-lite): Remove kern/emu/cache.S.
5057
5058 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5059
5060 * util/deviceiter.c (compare_devices): If the by-id link for a
5061 device couldn't be resolved, fall back to sorting by the by-id link
5062 rather than segfaulting.
5063 Reported and tested by: Daniel Mierswa.
5064
5065 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5066
5067 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
5068 ldflags, to fix link line ordering.
5069
5070 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5071
5072 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
5073 linkers are picky about this.
5074
5075 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5076
5077 * grub-core/Makefile.am (command.lst): Adjust sed expression
5078 ordering so that extended and priority commands aren't treated as
5079 ordinary commands.
5080
5081 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5082
5083 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5084 Remove byte-swapping function calls, which are not valid in
5085 structure initialisers.
5086 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
5087 non-const.
5088 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
5089 grub_gpt_partition_type_bios_boot.
5090
5091 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5092
5093 Fix test program build on GNU/kFreeBSD.
5094
5095 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
5096 $(LIBNVPAIR)' library dependencies.
5097
5098 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5099
5100 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
5101
5102 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5103
5104 * util/grub-install.in: Remove excessive quoting that broke
5105 installations to RAID devices.
5106
5107 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
5110 bootloader version instead of 0.
5111
5112 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
5115 warning.
5116
5117 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
5120 retrieve the metadat sector if size isn't known.
5121 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5122
5123 2010-11-18 Robert Millan <rmh@gnu.org>
5124
5125 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
5126 with grub_memcmp().
5127
5128 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
5131 arrow.
5132 Reported by: Jordan Uggla.
5133
5134 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 Make better UTF compliant.
5137
5138 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
5139 sequences as incorrect.
5140 (grub_is_valid_utf8): Likewise.
5141 (grub_utf8_to_ucs4): Likewise.
5142 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
5143 (grub_ucs4_to_utf8_alloc): Likewise.
5144 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
5145
5146 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 Make legacy_source behave like source.
5149
5150 * grub-core/commands/legacycfg.c (legacy_file): Don't call
5151 grub_show_menu.
5152 (grub_cmd_legacy_source): Call grub_show_menu if needed.
5153
5154 2010-11-16 Colin Watson <cjwatson@debian.org>
5155
5156 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
5157 (-Wunused implies -Wunused-parameter, but not vice versa).
5158
5159 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
5160
5161 * configure.ac: Make error messages less confusing by testing for
5162 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
5163 accepted, but produces a diagnostic if something else is wrong).
5164
5165 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
5168 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
5169 (now unused).
5170 (grub_keyboard_controller_init)
5171 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
5172 read the initial state since controller isn't inited yet.
5173
5174 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
5177 allocate_regbeg may need to create new chunk header.
5178
5179 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 Fix quoting in legacy parser.
5182
5183 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
5184 single quotes.
5185 (grub_legacy_parse): Likewise.
5186 Reported by: Jordan Uggla.
5187 Tested by: Jordan Uggla.
5188
5189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 Don't add -lgcc on i386 and x86_64.
5192
5193 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
5194 * conf/Makefile.common (LDADD_KERNEL): Likewise.
5195 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
5196
5197 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * configure.ac: Add -Wno-trampolines when supported.
5200
5201 2010-11-14 Modestas Vainius <modax@debian.org>
5202
5203 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
5204 fakeraid.
5205
5206 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5207
5208 Add generic logical block size support for UDF.
5209
5210 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
5211 (GRUB_UDF_BLKSZ): Removed.
5212 (struct grub_udf_data): New field "lbshift" to hold the logical block
5213 size of the file system in log2 format. All users updated.
5214 (sblocklist): Change type to unsigned.
5215 (grub_udf_mount): Change type of "sblklist" to unsigned.
5216 Move AVDP search before VRS recognition, because the latter requires
5217 knowledge of the logical block size, which is detected during the
5218 former.
5219 Detect and validate logical block size during AVDP search, adding
5220 support for block sizes 512, 1024 and 4096.
5221 Make VRS recognition independent of block size.
5222
5223 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5224
5225 Properly handle deleted files on UDF.
5226
5227 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
5228 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
5229 set.
5230
5231 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5232
5233 Support reading files larger than 2 GiB.
5234
5235 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
5236 "offset" to grub_off_t.
5237 (grub_udf_read_file): Likewise for parameter "pos".
5238
5239 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
5242 unavailable.
5243 (Simple configuration): Refer to Changes from GRUB Legacy about
5244 save_env availability.
5245
5246 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * util/grub-install.in: Ignore empty partition table detection
5249 instead of trying to include part_ module.
5250
5251 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
5254 LVM on RAID support.
5255
5256 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 Properly define WORDS_BIGENDIAN in wrapped environments.
5259
5260 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
5261 definition.
5262 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
5263
5264 Reported by: Manoel Rebelo Abranches.
5265 Tested by: Manoel Rebelo Abranches.
5266
5267 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 * util/grub-mkconfig.in: Fix quoting.
5270
5271 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 Support big ext2 files.
5274
5275 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
5276 (grub_ext2_read_block): Support triple indirect blocks.
5277 (grub_ext2_read_file): Use 64-bit types and read size_high.
5278 (grub_ext2_open): Read size_high.
5279 Reported by: Ximin Luo.
5280 Tested by: Manoel Rebelo Abranches.
5281
5282 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * util/grub-install.in: Handle filenames containing spaces.
5285 Reported by: Jordan Uggla.
5286 Tested by: Jordan Uggla.
5287
5288 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * util/grub-mkconfig.in (grub_script_check): New variable.
5291 Use grub_script_check instead of grub-script-check.
5292 Reported by: Barry Jackson.
5293
5294 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * docs/grub.texi (menu): Correct the order.
5297 Reported by: D. Hugh Redelmeier.
5298
5299 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
5302 jump.
5303
5304 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
5305
5306 * include/grub/elfload.h (grub_elf32_size): New parameter.
5307 All users updated.
5308 Return maximum segments alignment.
5309 (grub_elf64_size): Likewise.
5310 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
5311 Return maximum segments alignment.
5312 (grub_elf64_size): Likewise.
5313 * grub-core/loader/powerpc/ieee1275/linux.c:
5314 (grub_linux_claimmap_iterate): New function. Uses the
5315 "available" property in the "memory" node for memory allocation
5316 for kernel in the PowerPC loader.
5317 (grub_linux_load32): Correctly find linux entry point offset.
5318 (grub_linux_load64): Likewise.
5319
5320 2010-11-07 Robert Millan <rmh@gnu.org>
5321
5322 On mips-yeeloong, build with -march=loongson2f when this flag is
5323 available (GCC >= 4.4).
5324 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
5325 `-march=mips3'.
5326 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
5327 or otherwise add -march=mips3.
5328
5329 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
5330
5331 Suppress shell expansion on echo '*' and echo "*" like cases.
5332 Reported by: Jordan Uggla.
5333
5334 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5335 string arguments before shell expansion.
5336 * tests/grub_cmd_echo.in: New testcases.
5337
5338 2010-11-07 Robert Millan <rmh@gnu.org>
5339
5340 * conf/mips-qemu-mips.rmk: Remove stale file from previous
5341 transition.
5342
5343 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * grub-core/kern/emu/hostdisk.c
5346 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
5347
5348 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
5351 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
5352 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
5353
5354 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
5357
5358 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * util/grub-install.in: Replace useless recomendation to pass
5361 --modules with a recomendation to report a bug.
5362
5363 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 Properly register serial terminfo.
5366 Reported by: Jordan Uggla
5367
5368 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
5369 const.
5370 (grub_serial_terminfo_output_template): Likewise.
5371 (grub_cmd_serial): Register "serial" with terminfo.
5372 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
5373 grub_serial_terminfo_output.
5374
5375 2010-11-05 Robert Millan <rmh@gnu.org>
5376
5377 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
5378 needed).
5379
5380 2010-11-05 Robert Millan <rmh@gnu.org>
5381
5382 On Yeeloong, pass machine type information to Linux.
5383
5384 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
5385 (LOONGSON_MACHTYPE): New macro, set to
5386 "machtype=lemote-yeeloong-2f-8.9inches".
5387 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
5388 additional argument to Linux.
5389
5390 2010-11-04 Robert Millan <rmh@gnu.org>
5391
5392 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
5393 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
5394 (its SATA disks are detected as slaveless IDE master drives on
5395 kFreeBSD).
5396 Reported by Carsten Aulbert.
5397
5398 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
5399
5400 * util/bin2h.c (main): Fix spelling error in generated output.
5401
5402 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
5403
5404 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
5405
5406 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
5409 vga= option is supplied.
5410
5411 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
5414 * util/grub.d/10_kfreebsd.in: Likewise.
5415 * util/grub.d/10_linux.in: Likewise.
5416 * util/grub.d/20_linux_xen.in: Likewise.
5417
5418 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
5421 argument as an argument to no-argument option.
5422
5423 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5424
5425 * util/grub.d/10_linux.in: Add missing load_video with explicit
5426 GRUB_GFXPAYLOAD_LINUX.
5427
5428 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
5431
5432 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5433
5434 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
5435 elements with invlid index.
5436 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5437 * grub-core/disk/raid.c (insert_array): Automatically reallocate
5438 members.
5439 * include/grub/raid.h (grub_raid_member): New struct.
5440 (grub_raid_array): Transform devices and start_sector into usage of
5441 grub_raid_member. All users updated
5442 (allocated_devs): New member.
5443
5444 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
5447 is modified
5448
5449 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
5450
5451 NetBSD build fix for getline function conflict from gnulib.
5452
5453 * Makefile.util.def (libgrubkern.a): New library for grub kernel
5454 components that depend on gnulib headers.
5455 (libgrubmods.a): Renamed from earlier libgrub.a.
5456 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
5457
5458 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
5461 install rather than creating a broken install.
5462
5463 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * util/grub-setup.c (argp): Remove misleading example of installing to
5466 a partition.
5467
5468 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * util/grub-setup.c (setup): Clarify the error message.
5471
5472 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
5475
5476 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 * grub-core/kern/emu/misc.c
5479 (grub_make_system_path_relative_to_its_root)
5480 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
5481
5482 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * grub-core/kern/emu/misc.c
5485 (grub_make_system_path_relative_to_its_root): Revert r2882.
5486
5487 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
5490 useless field head. All users updated.
5491 (free_subchunk): Correct handling of IN_REGION subchunk.
5492
5493 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
5494
5495 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
5496 (Supported kernels): Likewise.
5497
5498 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
5499
5500 Make mktemp invocations portable.
5501
5502 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
5503 exit if mktemp fails.
5504 * tests/grub_script_blockarg.in: Likewise.
5505 * tests/partmap_test.in: Likewise.
5506 * tests/util/grub-shell-tester.in: Likewise.
5507 * tests/util/grub-shell.in: Likewise.
5508 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5509 * Makefile.am: Likewise, and chain shell commands with `&&'
5510 instead of ';'.
5511 * util/grub-mkrescue.in: Use the same explicit template as above, and
5512 exit if mktemp fails.
5513
5514 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
5515
5516 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
5517 Linux kernel, reported by Dennis Schridde.
5518
5519 2010-10-17 Szymon Janc <szymon@janc.net.pl>
5520
5521 * grub-core/normal/auth.c (grub_auth_check_authentication):
5522 Set-but-not-used variable removed.
5523
5524 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * docs/grub.texi (GNU/Linux): Document APM unavailability with
5527 32-bit linux protocol.
5528
5529 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
5532 cursor shape for sanity.
5533
5534 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * docs/grub.texi (Installation): Document buggy BIOS install.
5537
5538 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 * docs/grub.texi (Installation): Indent.
5541
5542 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5543
5544 * util/grub-setup.c (setup): New parameter allow_floppy.
5545 (arguments): New member allow_floppy.
5546 (argp_parser): Handle --allow-floppy.
5547 (main): Pass allow_floppy.
5548 * util/grub-install.in: New option --allow-floppy passed though to
5549 grub-setup.
5550
5551 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * util/grub-install.in: Handle partitionless disks.
5554
5555 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * util/grub-setup.c (setup): Don't clean blocklists before readability
5558 verfification.
5559
5560 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * docs/grub.texi (Installation): Document embedding zone. Remove
5563 obsolete grub-install example.
5564
5565 2010-10-16 Szymon Janc <szymon@janc.net.pl>
5566
5567 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5568 Set-but-not-used variable ifdef'ed.
5569 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
5570 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
5571 variable removed.
5572 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
5573 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
5574 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5575 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
5576 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
5577 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
5578 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
5579 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
5580 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
5581 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
5582 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
5583 Likewise.
5584
5585 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
5588 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
5589 enum value.
5590
5591 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
5594 synonym to _S5_. Needed for some DSDTs.
5595
5596 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 Userspace ACPI parser debugging.
5599
5600 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
5601 headers and add relevant defines. Don't include standard headers.
5602 (main) [GRUB_DSDT_TEST]: New function.
5603 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
5604 Don't declare functions.
5605
5606 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 Remove dead grub_efi_mm_fini.
5609
5610 * grub-core/kern/efi/mm.c (allocated_page): Removed.
5611 (ALLOCATED_PAGES_SIZE): Likewise.
5612 (MAX_ALLOCATED_PAGES): Likewise.
5613 (allocated_pages): Likewise.
5614 (grub_efi_allocate_pages): Don't record allocated pages.
5615 (grub_efi_free_pages): Likewise.
5616 (grub_efi_mm_init): Likewise.
5617 (grub_efi_mm_fini): Removed.
5618
5619 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
5622 (grub_efi_mm_init): Take into account the memory map size increase.
5623
5624 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
5627 (serial_hw_put): Wait based on real time rather than port reads. Don't
5628 roken ports.
5629 * include/grub/serial.h (grub_serial_port): New field broken.
5630
5631 2010-10-16 Robert Millan <rmh@gnu.org>
5632
5633 * grub-core/kern/emu/misc.c
5634 (grub_make_system_path_relative_to_its_root): Fix premature return
5635 when processing non-root ZFS filesystems.
5636 Reported by Sergio Talens-Oliag.
5637
5638 2010-10-15 Robert Millan <rmh@gnu.org>
5639
5640 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
5641 guarantee compressed ones are processed first.
5642
5643 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
5646 grub_efiemu_autocore.
5647
5648 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
5651 rather than 0x1b.
5652 (grub_console_getkey): Use correct jae opcode rather than ja.
5653
5654 2010-10-12 Robert Millan <rmh@gnu.org>
5655
5656 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
5657 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
5658 variable. All references updated.
5659
5660 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
5661
5662 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 Correctly distinguish mdraid flavours.
5665
5666 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
5667 (insert_array): New argument raid.
5668 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
5669 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
5670 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
5671
5672 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
5675 handling of special keys.
5676
5677 2010-10-02 Aleš Nesrsta <starous@volny.cz>
5678
5679 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
5680 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
5681
5682 2010-10-02 Aleš Nesrsta <starous@volny.cz>
5683
5684 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
5685 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
5686 users updated.
5687 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
5688 Use right endpoint when querying descriptor.
5689
5690 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 Clear out 0x80 color bit on EFI.
5693 Tested by: decoder
5694 Reported by: decoder and meta tech.
5695
5696 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
5697 (grub_console_setcolorstate): Clear out 0x80 bit.
5698 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
5699 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
5700 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
5701
5702 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
5705 Set to "auto".
5706
5707 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5708
5709 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
5710 mo_file after freeing.
5711
5712 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
5715
5716 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
5719 flags.
5720
5721 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
5724 usage.
5725
5726 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 Put terminfo into core on ieee1275 and yeeloong (needed for console).
5729
5730 * gentpl.py: New groups terminfoinkernel and terminfomodule.
5731 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
5732 and terminfo.h when needed.
5733 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
5734 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
5735 (terminfo): Enable only on terminfokernel.
5736 (extcmd): Likewise.
5737 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
5738 * include/grub/lib/arg.h: Likewise.
5739 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
5740 incorrect usage of ->.
5741
5742 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
5745 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
5746
5747 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 Fix coreboot compilation.
5750
5751 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
5752 Take VBE info into account even if only text is supported.
5753 (fill_vbe_info): Take into account the case when only VGA text
5754 is supported.
5755 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
5756 on coreboot, multiboot and qemu.
5757
5758 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5759
5760 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
5761 debug messages.
5762 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
5763
5764 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
5767 parameters.
5768
5769 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
5772 if they were BSD-style.
5773
5774 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/boot/i386/pc/lnxboot.S: Replace
5777 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
5778 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
5779
5780 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 Write embedding zone using Reed-Solomon.
5783
5784 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
5785 * grub-core/Makefile.am (rs_decoder.S): New target.
5786 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
5787 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
5788 (multiboot): Move to RS part.
5789 (post_reed_solomon): New label.
5790 (grub_boot_drive): Move to non-RS part since it's modified in memory
5791 on boot.
5792 Include rs_decoder.S.
5793 * grub-core/lib/reed_solomon.c: New file.
5794 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
5795 New definition.
5796 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
5797 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
5798 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
5799 * include/grub/partition.h (grub_partition_map): Change prototype of
5800 embed to allow returning additional sectors.
5801 * include/grub/reed_solomon.h: New file.
5802 * util/grub-setup.c (setup): Handle Reed-Solomon.
5803
5804 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
5805
5806 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5807 i386 and x86-64 definedness tests.
5808
5809 2010-09-27 Yves Blusseau <blusseau@zetam.org>
5810
5811 Fix generation of kernel_syms.lst
5812
5813 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
5814 ASM_PREFIX
5815
5816 2010-09-26 Robert Millan <rmh@gnu.org>
5817
5818 Support degraded ZFS arrays in "grub-probe -t device" resolution.
5819
5820 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
5821 the pool is an array of devices, iterate through it and return the
5822 first device that passes a stat() test (instead of blindly returning
5823 the first one).
5824
5825 2010-09-26 Robert Millan <rmh@gnu.org>
5826
5827 Build fixes for GNU/kFreeBSD.
5828
5829 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
5830 to programs that require ZFS conversion.
5831 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
5832 kernels that don't have FLOPPY_MAJOR.
5833
5834 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5835
5836 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
5837
5838 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5839
5840 Fix grub-emu build.
5841
5842 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
5843 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
5844 mdraid09 and mdraid1x.
5845
5846 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
5847
5848 Re-enable grub-extras.
5849
5850 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
5851 avoid confusing Automake. Run autogen only twice, once for the top
5852 level and once for grub-core. Add Makefile.util.def and
5853 Makefile.core.def from extra modules to the appropriate autogen
5854 invocations. If Makefile.common exists in an extra module, include
5855 it in both Makefile.util.am and grub-core/Makefile.core.am;
5856 similarly, include any Makefile.util.common file in Makefile.util.am
5857 and any Makefile.core.common file in grub-core/Makefile.core.am.
5858 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
5859 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
5860 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
5861 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
5862
5863 * gentpl.py (gvar_add): Turn GVARS into a set.
5864 (global_variable_initializers): Sort global variables on output.
5865 (vars_init): New function.
5866 (first_time): Likewise.
5867 (library): Ensure that non-global variable initialisations are
5868 emitted before the first time we emit code for a library block.
5869 Append to variables rather than setting them. Only emit
5870 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
5871 each conditional path.
5872 (program): installdir() emits an Autogen macro, so must be passed to
5873 var_add rather than gvar_add.
5874 (data): Likewise.
5875 (script): Likewise.
5876 (rules): New function, centralising handling for different target
5877 types. Set up Guile association lists for first_time and vars_init,
5878 and send most output to a diversion so that variable initialisations
5879 can be emitted first.
5880 (module_rules): Use new rules function.
5881 (kernel_rules): Likewise.
5882 (image_rules): Likewise.
5883 (library_rules): Likewise.
5884 (program_rules): Likewise.
5885 (script_rules): Likewise.
5886 (data_rules): Likewise.
5887
5888 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
5889
5890 * .bzrignore: Add contrib and grub-core/contrib. Remove
5891 grub-core/Makefile.gcry.am.
5892
5893 2010-09-24 Yves Blusseau <blusseau@zetam.org>
5894
5895 * grub-core/lib/LzFind.c: Add missing include.
5896 * grub-core/lib/LzmaEnc.c: Likewise.
5897 * grub-core/script/lexer.c: Likewise.
5898 * grub-core/script/yylex.l: Likewise.
5899 * util/grub-macho2img.c: Likewise.
5900 * util/grub-menulst2cfg.c: Likewise.
5901 * util/grub-mklayout.c: Likewise.
5902 * util/grub-mkpasswd-pbkdf2.c
5903 * util/grub-mkrelpath.c: Likewise.
5904 * util/resolve.c: Likewise.
5905
5906 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
5907
5908 * Makefile.util.def (example_unit_test): Add
5909 grub-core/gnulib/libgnu.a.
5910
5911 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
5912
5913 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
5914
5915 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 Support xz compression on yeeloong.
5918
5919 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
5920 * configure.ac: Check for LZMA.
5921 * grub-core/Makefile.core.def (xz_decompress): New target.
5922 (none_decompress): Likewise.
5923 * grub-core/boot/decompressor/minilib.c: New file.
5924 * grub-core/boot/decompressor/none.c: Likewise.
5925 * grub-core/boot/decompressor/xz.c: Likewise.
5926 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
5927 * grub-core/kern/mips/cache_flush.S: Likewise.
5928 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
5929 * grub-core/kern/mips/startup.S: Move first stage to ...
5930 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
5931 nomacro.
5932 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
5933 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
5934 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
5935 Allocate statically.
5936 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
5937 Allocate statically or use scratch. Don't check CRC32.
5938 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
5939 Allocate statically. Don't check CRC32.
5940 * include/grub/decompressor.h: New file.
5941 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
5942 Removed.
5943 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
5944 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
5945 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
5946 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
5947 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
5948 * util/grub-mkimage.c (grub_compression_t): New type.
5949 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
5950 (image_target_desc): New field default_compression.
5951 (image_targets): Adjust yeeloong targets.
5952 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
5953 (compress_kernel): New parameter comp.
5954 (generate_image): Likewise. Handle new compression case.
5955 (options): New option --compression
5956 (help): Likewise.
5957 (main): Handle new option.
5958
5959 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
5960
5961 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
5962
5963 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
5964
5965 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5966 typo in __i386__ conditional.
5967
5968 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
5971 include.
5972
5973 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 Implement EFI and ACPI multiboot2 extensions.
5976
5977 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
5978 new tags as supported.
5979 (acpiv2_size): New function.
5980 (grub_multiboot_get_mbi_size): Take new tags into account.
5981 (grub_multiboot_make_mbi): Add new tags.
5982 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
5983
5984 2010-09-21 Aleš Nesrsta <starous@volny.cz>
5985
5986 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
5987 Added missing configuration of USB device.
5988
5989 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
5990
5991 * grub-core/normal/menu_entry.c (run): Make sure we always return
5992 a value.
5993
5994 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
5995
5996 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
5997 NumberOfPages is UINT64 according to the UEFI specification, not
5998 UINTN. Fix printf format.
5999
6000 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6001
6002 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
6003 `err' to grub_usb_err_t.
6004 Reported and tested by: KESHAV P.R.
6005
6006 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6007
6008 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
6009 tpart non-const, so that we can assign to it. (Since this is a
6010 typedef, the constness refers to the pointer rather than what it
6011 points to.)
6012
6013 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6014
6015 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
6016 $(top_srcdir)/grub-core/gnulib as well as
6017 $(top_builddir)/grub-core/gnulib.
6018 Reported by: KESHAV P.R.
6019
6020 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6021
6022 * util/grub-install.in: Fix the bootloader ID option to be
6023 consistently --bootloader-id, not --bootloader_id.
6024 Reported by: KESHAV P.R.
6025
6026 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6027
6028 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
6029 check hash checksum." consistently translatable.
6030
6031 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6032
6033 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
6034 $(top_builddir).
6035
6036 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6037
6038 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
6039 (GRUB_MOD_INIT): Register sha1sum command.
6040 (GRUB_MOD_FINI): Unregister sha1sum command.
6041
6042 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6043
6044 Keep boot and grub directory names in sync with utils scripts
6045
6046 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
6047 * config.h.in: Add previous macros.
6048 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
6049 * util/grub-install.in: Use $bootdir and $grubdir variables.
6050
6051 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6052
6053 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
6054 convert partition names to disk names if the new `convert' parameter
6055 is set.
6056 (grub_util_biosdisk_get_grub_dev): If opening the disk device
6057 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
6058 disk in its own right. This can happen with Xen disk images.
6059
6060 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6061
6062 * util/grub-editenv.c: Update strings to avoid warnings when generating
6063 grub.pot file.
6064 * util/grub-setup.c: Likewise.
6065
6066 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * configure.ac: Change version to 1.99~beta0.
6069
6070 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6073 Add BADRAM.
6074 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
6075 Likewise.
6076 * include/multiboot.h: Resynced with specification.
6077 * include/multiboot2.h: Likewise.
6078
6079 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6080
6081 Fix po directory handling.
6082
6083 * configure.ac: Create po/Makefile.in rather than po/Makefile.
6084 * grub-core/gnulib/Makefile.am: Import gettext module.
6085 * m4/gnulib-cache.m4: Likewise.
6086 * m4/gnulib-comp.m4: Likewise.
6087 * m4/gettext.m4: New file, from gnulib.
6088 * m4/glibc2.m4: Likewise.
6089 * m4/iconv.m4: Likewise.
6090 * m4/intdiv0.m4: Likewise.
6091 * m4/intl.m4: Likewise.
6092 * m4/intldir.m4: Likewise.
6093 * m4/intlmacosx.m4: Likewise.
6094 * m4/intmax.m4: Likewise.
6095 * m4/inttypes-pri.m4: Likewise.
6096 * m4/lcmessage.m4: Likewise.
6097 * m4/lib-ld.m4: Likewise.
6098 * m4/lib-link.m4: Likewise.
6099 * m4/lib-prefix.m4: Likewise.
6100 * m4/lock.m4: Likewise.
6101 * m4/nls.m4: Likewise.
6102 * m4/po.m4: Likewise.
6103 * m4/printf-posix.m4: Likewise.
6104 * m4/progtest.m4: Likewise.
6105 * m4/threadlib.m4: Likewise.
6106 * m4/uintmax_t.m4: Likewise.
6107 * m4/visibility.m4: Likewise.
6108 * po/Makefile.am: Remove.
6109 * po/Makefile.in.in: New file, from gettext.
6110 ($(DOMAIN).pot-update): Support POTFILES-shell.
6111 * po/Makevars: New file.
6112 * po/POTFILES-shell: Rename to ...
6113 * po/POTFILES-shell.in: ... this. Update.
6114 * po/POTFILES: Rename to ...
6115 * po/POTFILES.in: ... this. Update.
6116 * po/Rules-quot: New file, from gettext.
6117 * po/boldquot.sed: Likewise.
6118 * po/en@boldquot.header: Likewise.
6119 * po/en@quot.header: Likewise.
6120 * po/insert-header.sin: Likewise.
6121 * po/quot.sed: Likewise.
6122 * po/remove-potcdate.sin: Likewise.
6123
6124 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
6127
6128 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * util/grub.d/20_linux_xen.in: Use submenus.
6131
6132 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 Support submenus.
6135
6136 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
6137 parameter submenu. All users updated.
6138 * grub-core/normal/main.c (free_menu): Rename to ...
6139 (grub_normal_free_menu): ... this. Made global.
6140 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
6141 if requested.
6142 * grub-core/normal/menu_entry.c (screen): New field submenu.
6143 (make_screen): Set submenu.
6144 (run): Open new context if requested.
6145 * include/grub/menu.h (grub_menu_entry): New field submenu.
6146 * include/grub/normal.h (grub_normal_free_menu): New proto.
6147
6148 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 Menu entries extractor.
6151
6152 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
6153 variants.
6154 (GRUB_MOD_INIT): Register new variants.
6155 (GRUB_MOD_FINI): Unregister new variants.
6156 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
6157 into grub_cmd_legacy_source.
6158 (grub_cmd_legacy_source): Implement extractor variants.
6159 (GRUB_MOD_INIT): Register new variants.
6160 (GRUB_MOD_FINI): Unregister new variants.
6161 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
6162 as an extractor.
6163 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
6164 search as an extractor.
6165 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
6166 test as an extractor.
6167 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
6168 as an extractor.
6169 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
6170 (grub_env_new_context): New function.
6171 (grub_env_context_open): Likewise.
6172 (grub_env_extractor_open): Likewise.
6173 (grub_env_extractor_close): Likewise.
6174 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
6175 grub_extractor_level.
6176 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
6177 * include/grub/env.h (grub_env_extractor_open): New proto.
6178 (grub_env_extractor_close): Likewise.
6179 * include/grub/normal.h (grub_extractor_level): New external variable.
6180
6181 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 Make cutmem accept a region specification.
6184 Suggested by: Samuel Thibault
6185
6186 * grub-core/mmap/mmap.c (parsemem): New function.
6187 (grub_cmd_cutmem): Handle new arguments.
6188
6189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 New command cutmem.
6192
6193 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
6194 (GRUB_MOD_INIT): Register new command.
6195 (GRUB_MOD_FINI): Unregister new command.
6196
6197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 Support some annoying BSD and Minix subpartitions.
6200
6201 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
6202 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
6203 Properly handle concatenation.
6204 * grub-core/kern/device.c (grub_device_iterate): Likewise.
6205 * grub-core/normal/completion.c (iterate_partition): Likewise.
6206 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
6207 contain partition. All users updated.
6208 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
6209 struct.
6210 (grub_openbsdlabel_partition_map): Likewise.
6211 (bsdlabel_partition_map_iterate): Rename to ..
6212 (iterate_real): ... this. New arguments sector, freebsd and pmap.
6213 (bsdlabel_partition_map_iterate): New function.
6214 (netopenbsdlabel_partition_map_iterate): Likewise.
6215 (netbsdlabel_partition_map_iterate): Likewise.
6216 (openbsdlabel_partition_map_iterate): Likewise.
6217 (GRUB_MOD_INIT): Register new partmaps.
6218 (GRUB_MOD_FINI): Unregister new partmaps.
6219 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
6220 (grub_partition_msdos_iterate): ... this. All users updated.
6221 Don't support embedding other than in a minix partition.
6222 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
6223 proto.
6224 * include/grub/partition.h (grub_partition): New field msdostype.
6225 * util/grub-install.in: Handle openbsd and netbsd types being in
6226 part_bsd module.
6227
6228 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
6231
6232 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
6233 * grub-core/Makefile.core.def (mdraid): Renamed to ...
6234 (mdraid09): ... this.
6235 (mdraid1x): New module.
6236 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
6237 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
6238
6239 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
6242 vsprintf.
6243
6244 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6245
6246 * grub-core/commands/efi/lsefimmap.c: Correct header.
6247 * NEWS: Update.
6248
6249 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6250
6251 * util/grub-editenv.c (argp_parser): Don't pass translated strings
6252 as printf format strings; the translations might contain '%' which
6253 could cause a crash.
6254 (main): Likewise.
6255 * util/grub-fstest.c (argp_parser): Likewise.
6256 * util/grub-setup.c (argp_parser): Likewise.
6257 (main): Likewise.
6258
6259 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 Use argp in grub-fstest.
6262
6263 * util/grub-fstest.c: Don't include getopt.h.
6264 Include argp.h.
6265 (root): New variable.
6266 (args_count): Likewise.
6267 (nparm): Likewise.
6268 (num_disks): Likewise.
6269 (images): Likewise.
6270 (cmd): Likewise.
6271 (debug_str): Likewise.
6272 (args): Likewise.
6273 (options): Transformed to argp.
6274 (usage): Removed.
6275 (main): Split argument parsing into ...
6276 (argp_parser): ... this. Changed to argp format.
6277 (argp): New variable.
6278 (main): Use argp_parse.
6279
6280 2010-09-20 Tristan Gingold <gingold@free.fr>
6281 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
6282 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * grub-core/commands/efi/lsefimmap.c: New file.
6285 * grub-core/Makefile.core.def (lsefimmap): New module.
6286 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
6287
6288 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 Pause the execution (10s max) if any errors are displayed so the user
6291 has a chance to see them.
6292
6293 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
6294 (grub_print_error): Increment grub_err_printed_errors.
6295 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
6296 execution if any errors were displayed.
6297 (show_menu): Remove old code for pause.
6298 * grub-core/normal/menu_entry.c (run): Likewise.
6299 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
6300 users updated.
6301 (grub_normal_get_char_counter): Likewise.
6302 * include/grub/err.h (grub_err_printed_errors): New external variable.
6303 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
6304
6305 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 Support multiboot VBE info.
6308
6309 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6310 Take VBE info into account.
6311 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
6312 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6313 Call fill_vbe_info when appropriate.
6314 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
6315 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
6316 as supported.
6317 (grub_multiboot_get_mbi_size): Take new tags into account.
6318 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
6319 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6320 Call fill_vbe_tag when appropriate.
6321 (grub_multiboot_make_mbi): Properly align tags.
6322 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
6323 function.
6324 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
6325 proto.
6326 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
6327
6328 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6329
6330 Suport manual terminal geometry specification.
6331
6332 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
6333 Save state in grub_ofconsole_terminfo_output.
6334 (grub_ofconsole_term): Use grub_terminfo_getwh.
6335 (grub_ofconsole_getwh): Removed.
6336 * grub-core/term/serial.c (grub_serial_getwh): Removed.
6337 (grub_serial_term): Use grub_terminfo_getwh.
6338 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
6339 (options): New struct.
6340 (OPTION_*): New enum.
6341 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
6342 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
6343 width and height.
6344 (grub_terminfo_getwh): New proto.
6345 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
6346
6347 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 Handle legacy "terminal" command.
6350
6351 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
6352 and FLAG_TERMINAL.
6353 (legacy_commands): Add terminal and title.
6354 (grub_legacy_parse): Handle terminal. Simplify title handling.
6355
6356 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
6359 parameters overflow.
6360
6361 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6362
6363 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
6364 widthspec.h.
6365
6366 * docs/grub.texi (Shell-like scripting): Document `!'.
6367 (Network): Simplify using new i386-pc-pxe format. Mention
6368 grub-mknetdir.
6369
6370 * NEWS: Update.
6371
6372 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6373
6374 * Makefile.am (SUBDIRS): Restore "."; it's important to force
6375 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
6376 when needed.
6377
6378 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6379
6380 * grub-core/commands/efi/lsefisystab.c: Correct header.
6381 * grub-core/commands/efi/lssal.c: Likewise.
6382 * grub-core/commands/testload.c: Likewise.
6383
6384 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6385
6386 * util/grub-mkrescue.in: Add explicit root argument to --set to
6387 prevent the UUID being interpreted as an argument to --set (matches
6388 previous change to prepare_grub_to_access_device).
6389
6390 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6391
6392 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
6393 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
6394 the verbosity of later #ifs.
6395 (find_partition_start): Define this function on FreeBSD too.
6396 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
6397 function.
6398 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
6399 on FreeBSD.
6400
6401 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6402
6403 * util/grub-editenv.c: Use argp instead of getopt.
6404
6405 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6406
6407 * util/grub-setup.c: Use argp instead of getopt.
6408
6409 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6410
6411 Use gnulib-tool to create gnulib source files.
6412
6413 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
6414 grub-core/gnulib directories
6415 * .bzignore: Add **/.deps and autogenerated gnulib files
6416 * configure.ac: Assign auxiliary directory to build-aux, add invocation
6417 of gnulib macros, add grub-core/gnulib/Makefile
6418 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
6419 include m4 directory to aclocal.
6420 * Makefile.util.def: Remove direct compilation of gnulib source files
6421 and use the new grub-core/gnulib/libgnu.a.
6422 * build-aux/config.rpath: move config.rpath from top directory to
6423 build-aux
6424 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
6425 in gnulib headers
6426 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
6427 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
6428 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
6429 header.
6430 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
6431 string.
6432
6433 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6434
6435 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
6436 grub-core/genmod.sh and grub-core/gensyminfo.sh
6437
6438 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
6439
6440 Add a test for echo command options.
6441
6442 * tests/grub_cmd_echo.in: New test.
6443 * Makefile.util.def: Rules for new test.
6444
6445 2010-09-20 Szymon Janc <szymon@janc.net.pl>
6446
6447 Remove crc.mod and move crc command to hashsum.mod.
6448 Remove lib/crc.c - users updated to use gcrypt implementation.
6449
6450 * grub-core/commands/crc.c: Removed.
6451 * grub-core/Makefile.core.def (crc): Module removed.
6452 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
6453 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
6454 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
6455 * grub-core/lib/crc.c: Removed.
6456 * include/grub/lib/crc.h: Removed.
6457 * Makefile.util.def (crc): Remove lib/crc.c
6458 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
6459 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
6460 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
6461 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
6462 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
6463 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
6464
6465 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
6468
6469 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 Split config.h for util and core.
6472
6473 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
6474 (ADDR32): Likewise.
6475 (DATA32): Likewise.
6476 (BSS_START_SYMBOL): Likewise.
6477 (END_SYMBOL): Likewise.
6478 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
6479 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
6480 * config.h.in: New file.
6481 * configure.ac: Use config-util.h as config define file.
6482 Rename MACHINE into GRUB_MACHINE. All users updated.
6483 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
6484 updated.
6485 (NESTED_FUNC_ATTR): Likewise.
6486 Substitue new variables.
6487 (COND_HAVE_ASM_USCORE): New conditional.
6488 * grub-core/Makefile.am (ASM_PREFIX): New variable.
6489 (kernel_syms.lst): Use ASM_PREFIX.
6490 * grub-core/kern/emu/console.c: Include config-util.h.
6491 * grub-core/kern/emu/misc.c: Likewise.
6492 * grub-core/kern/emu/mm.c: Likewise.
6493 * include/grub/emu/misc.h: Likewise.
6494 * include/grub/libgcc.h: Likewise.
6495
6496 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
6499 constants usage.
6500 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
6501 Fix GRUB_TERM_KEY_* constants usage.
6502 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
6503
6504 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
6507 print pointer.
6508 * grub-core/bus/usb/uhci.c: Remove empty define.
6509 (grub_uhci_check_transfer): Add missing cast.
6510 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
6511 print pointer.
6512 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
6513 PRIuGRUB_SIZE.
6514 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
6515
6516 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 * grub-core/Makefile.core.def (legacycfg): Add
6519 lib/i386/pc/vesa_modes_table.c on emu.
6520
6521 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6522
6523 Reduce number of temporary files generated by build system.
6524
6525 * grub-core/gencmdlist.sh: Removed.
6526 * grub-core/genfslist.sh: Removed.
6527 * grub-core/genhandlerlist.sh: Removed.
6528 * grub-core/genmodsrc.sh: Removed.
6529 * grub-core/genpartmaplist.sh: Removed.
6530 * grub-core/genparttoollist.sh: Removed.
6531 * grub-core/gentermiinallist.sh: Removed.
6532 * grub-core/genvideolist.sh: Removed.
6533
6534 * grub-core/genmod.sh.in: New file.
6535 * grub-core/gensyminfo.sh.in: New file.
6536
6537 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
6538 * conf/Makefile.extra-dist: Update with new files.
6539 * gentpl.py: Remove rules related to unnecessary temporary files.
6540 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
6541 and und-* files.
6542 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
6543 genmod.sh scripts.
6544 * grub-core/bus/usb/uhci.c: Remove empty #define.
6545 * grub-core/genmoddep.awk: Updated with new syminfo format.
6546 * util/bash-completion.d/Makefile.am: Add config.log to
6547 CLEANFILES.
6548
6549 2010-09-19 Yves Blusseau <blusseau@zetam.org>
6550
6551 * Makefile.util.def: Add forgotten $(LIBINTL) library.
6552
6553 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6554
6555 * util/grub-mkconfig.in: Check the config script for syntax errors
6556 before saving.
6557
6558 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
6559 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * Makefile.util.def (grub-install): Use util/grub-install.in on all
6562 platforms.
6563 * util/grub-install.in: Add EFI and IEEE1275 support.
6564 * util/i386/efi/grub-install.in: Removed.
6565 * util/ieee1275/grub-install.in: Likewise.
6566
6567 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
6570 (grub_cmd_cmosclean): Likewise.
6571 (GRUB_MOD_INIT): Register command cmosclean.
6572 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
6573 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
6574
6575 2010-09-18 Carles Pina i Estany <carles@pina.cat>
6576 2010-09-18 Aleš Nesrsta <starous@volny.cz>
6577 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 Add keyboard layouts support.
6580
6581 * Makefile.util.def (grub-mklayout): New file.
6582 (grub-kbdcomp): New script.
6583 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
6584 Add keyboard_layouts.h.
6585 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
6586 commands/boot.c on yeeloong.
6587 (keylayouts): New module.
6588 * grub-core/bus/usb/ohci.c
6589 * grub-core/bus/usb/uhci.c
6590 * grub-core/bus/usb/usbhub.c (rescan): New variable.
6591 (grub_usb_add_hub): Poll interrupt pipe for device handling.
6592 (attach_root_port): Likewise.
6593 (poll_nonroot_hub): Likewise.
6594 (grub_usb_poll_devices): Likewise.
6595 (detach_device): Close transfer.
6596 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
6597 function.
6598 (grub_usb_bulk_setup_readwrite): Likewise.
6599 (grub_usb_bulk_finish_readwrite): Likewise.
6600 * grub-core/commands/keylayouts.c: New file.
6601 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
6602 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
6603 aliases.
6604 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
6605 support scancode 2.
6606 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
6607 * include/grub/keyboard_layouts.h: New file.
6608 * util/grub-mklayout.c: New file.
6609 * util/grub-kbdcomp.in: Likewise.
6610
6611 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 Unify memory types.
6614
6615 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
6616 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
6617 types.
6618 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
6619 (grub_upper_mem): Likewise.
6620 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
6621 * include/grub/memory.h (grub_memory_type_t): New enum.
6622 All users updated.
6623
6624 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6625
6626 * grub-core/Makefile.core.def (lsapm): New module.
6627 * grub-core/commands/i386/pc/lsapm.c: New file.
6628 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
6629 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
6630 Likewise.
6631 * include/grub/i386/pc/apm.h: New file.
6632 * include/multiboot.h (multiboot_apm_info): New struct.
6633
6634 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 GRUB-legacy configuration file support.
6637
6638 * Makefile.util.def (grub-menulst2cfg): New util.
6639 * docs/man/grub-menulst2cfg.h2m: New file.
6640 * grub-core/Makefile.core.def (legacycfg): New module.
6641 * grub-core/commands/legacycfg.c: New file.
6642 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
6643 (grub_normal_add_menu_entry): ... this.
6644 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
6645 (grub_normal_set_password): ...this.
6646 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
6647 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
6648 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
6649 * grub-core/lib/legacy_parse.c: New file.
6650 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
6651 * include/grub/i386/pc/vesa_modes_table.h: New file.
6652 * include/grub/legacy_parse.h: Likewise.
6653 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
6654 * util/grub-menulst2cfg.c: New file.
6655
6656 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6657
6658 * grub-core/kern/emu/hostdisk.c
6659 (convert_system_partition_to_system_disk): Initialise node.
6660
6661 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6662
6663 * grub-core/kern/emu/hostdisk.c
6664 (convert_system_partition_to_system_disk): Fix devmapper memory pool
6665 leak.
6666 Reported and based on patch by: Modestas Vainius.
6667
6668 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
6669
6670 Fix DM-RAID probing with recent versions of device-mapper udev
6671 rules.
6672
6673 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
6674 canonicalise device paths under /dev/mapper/.
6675 (convert_system_partition_to_system_disk): Compare the
6676 uncanonicalised path to /dev/mapper/ rather than the canonicalised
6677 path, since device nodes under /dev/mapper/ are often symlinks.
6678
6679 2010-09-17 Yves Blusseau <blusseau@zetam.org>
6680
6681 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
6682
6683 2010-09-16 Yves Blusseau <blusseau@zetam.org>
6684
6685 * configure.ac: Avoid some annoying error messages if freetype-config
6686 program is not found.
6687
6688 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6689
6690 Support RAID on virtio devices, and others.
6691
6692 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
6693 Rename to ...
6694 [__MINGW32__] (grub_find_device): ... this.
6695 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
6696 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
6697 reasonable default if dir is NULL.
6698 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
6699 ...
6700 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
6701 (grub_guess_root_device): Update callers.
6702 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
6703
6704 * util/raid.c (grub_util_getdiskname): Remove.
6705 (grub_util_raid_getmembers): Use grub_find_device rather than
6706 grub_util_getdiskname.
6707
6708 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6709
6710 * docs/grub.texi (serial): Remove obsolete comment about GRUB
6711 needing to be compiled with serial support.
6712 (ls): Indicate that multiple files are accepted.
6713 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
6714 indicate that multiple files are accepted.
6715
6716 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
6717
6718 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
6719 libgrub_a_init.c, and util/bash-completion.d/grub.
6720
6721 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * util/grub-setup.c (setup): Fix incorrect container semantics.
6724
6725 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
6728 misusage.
6729 Reported by: J. Nick Terry
6730
6731 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 Move embedding routines to partmap sources files.
6734
6735 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
6736 [GRUB_UTIL]: New variable.
6737 (gpt_partition_map_iterate): Set part.parent.
6738 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
6739 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
6740 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
6741 New function.
6742 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
6743 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
6744 (grub_partition_map) [GRUB_UTIL]: New field embed.
6745 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
6746 (setup): Use ->embed.
6747
6748 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
6751 function.
6752 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
6753 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
6754
6755 2010-09-15 Yves Blusseau <blusseau@zetam.org>
6756
6757 Add function to get completions from usage.
6758
6759 * util/bash-completion.d/grub-completion.bash.in: Add function to get
6760 completions from usage. Use LC_ALL=C to get options properly.
6761
6762 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/gnulib/basename-lgpl.c: Imported.
6765 * grub-core/gnulib/basename.c: Likewise.
6766 * grub-core/gnulib/dirname-lgpl.c: Likewise.
6767 * grub-core/gnulib/dirname.c: Likewise.
6768 * grub-core/gnulib/dirname.h: Likewise.
6769 * grub-core/gnulib/stripslash.c: Likewise.
6770
6771 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 * grub-core/gnulib/error.c: Resynced.
6774 * grub-core/gnulib/getopt.c: Likewise.
6775 * grub-core/gnulib/getopt_int.h: Likewise.
6776 * grub-core/gnulib/regex.h: Likewise.
6777 * grub-core/gnulib/regex_internal.c: Likewise.
6778 * grub-core/gnulib/regex_internal.h: Likewise.
6779
6780 2010-09-15 Szymon Janc <szymon@janc.net.pl>
6781
6782 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
6783 CRC calculations and validity checks.
6784 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
6785 calculations.
6786
6787 2010-09-15 Szymon Janc <szymon@janc.net.pl>
6788
6789 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
6790
6791 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 Fix incorrect echo options handling.
6794 Reported by: Yves Blusseau.
6795
6796 * include/grub/command.h (grub_command_flags_t): New flags
6797 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
6798 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
6799 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
6800
6801 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
6804 users updated.
6805 (GRUB_COMMAND_FLAG_MENU): Likewise.
6806 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6807 (GRUB_COMMAND_FLAG_TITLE): Removed.
6808 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6809 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
6810 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
6811 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
6812 (grub_command_flags_t): New enum. All users updated.
6813
6814 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
6815
6816 Fix solaris compilation.
6817
6818 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
6819 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
6820 (grub-emu-list): Likewise.
6821
6822 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 Remove deprecated root command.
6825
6826 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
6827 updated.
6828
6829 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * util/i386/pc/grub-setup.c: Merge this ...
6832 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
6833 * util/grub-setup.c: ... into this.
6834 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
6835 New struct.
6836
6837 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
6840 possible.
6841
6842 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
6845 allocate p.
6846
6847 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6850 explicit root argument to set to prevent UUID to be interpreted as
6851 argument to set.
6852
6853 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
6856
6857 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 Don't export grub_gate_a20.
6860
6861 * grub-core/kern/i386/pc/init.c: Remove leftovers.
6862 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
6863 to ...
6864 (grub_gate_a20): ... this. All users updated.
6865 * include/grub/i386/pc/init.h: Removed. All users updated.
6866
6867 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 Create euro.pf2 which supports most European languages.
6870
6871 * Makefile.am (grubdata_DATA): Add euro.pf2.
6872 (euro.pf2): New target.
6873 (CLEANFILES): Add euro.pf2.
6874
6875 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6876
6877 * configure.ac: Disable emu-usb by default to prevent inadvertent
6878 device takeover.
6879
6880 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 Disable usbserial on grub-emu since our libusb code isn't good enough
6883 yet.
6884
6885 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
6886 (usbserial_pl2303): Likewise.
6887 (usbserial_ftdi): Likewise.
6888
6889 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * include/grub/disk.h (grub_disk): Remove has_partitions.
6892 All users updated.
6893 * disk/loopback.c (grub_loopback): Remove has_partitions.
6894 All users updated.
6895 (options): Remove partitions. All users updated.
6896 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
6897 * util/i386/pc/grub-setup.c (setup): copy partition table only when
6898 actual partition table is found.
6899
6900 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Remove readability checks (too many false negatives).
6903
6904 * util/grub-install.in: Remove readability checks.
6905 * util/grub-mkconfig.in: Likewise.
6906 * util/grub.d/10_hurd.in: Likewise.
6907 * util/grub.d/10_kfreebsd.in: Likewise.
6908 * util/grub.d/10_linux.in: Likewise.
6909 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
6910 way.
6911
6912 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 Enable acpi shutdown on all ACPI platforms.
6915
6916 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
6917 on coreboo, multiboot and EFI.
6918 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
6919 (grub_acpi_halt): Likewise.
6920 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
6921 (grub_cmd_halt): Don't call grub_acpi_halt directly.
6922 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
6923 * grub-core/lib/i386/halt.c (grub_halt)
6924 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
6925
6926 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
6929 context.
6930
6931 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6932
6933 * grub-core/video/efi_gop.c: Fix over-80-chars line.
6934 * grub-core/video/efi_uga.c: Likewise.
6935
6936 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6937
6938 Filter devaliases and never open same device twice.
6939
6940 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
6941 (last_ihandle): Likewise.
6942 (ofdisk_hash_ent): New member shortest.
6943 (ofdisk_hash_add): Add canonical path too.
6944 (scan): New function.
6945 (grub_ofdisk_iterate): Iterate over hashed entries.
6946 (compute_dev_path): Don't add :0.
6947 (grub_ofdisk_open): Don't really open the disk.
6948 (grub_ofdisk_close): Avoid closing unrelated disk.
6949 (grub_ofdisk_read): Implement reopen logic.
6950 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
6951 New function.
6952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
6953 New proto.
6954
6955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 Fix sparc64.
6958
6959 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
6960 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
6961 right address. Add sparc64_ieee1275_ldflags.
6962 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
6963 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
6964 to grub_host_to_target_addr
6965 (load_image): Likewise.
6966
6967 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * grub-core/normal/completion.c (complete_file): Handle device
6970 containing slash.
6971 Fix based on patch by Doug Nazar.
6972
6973 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 grub-mknetdir script.
6976
6977 * Makefile.util.def (grub-mknetdir): New module.
6978 * tests/util/grub-shell.in: Support boot=net
6979 * util/grub-mknetdir.in: New file.
6980
6981 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6982
6983 videoinfo on non-vbe.
6984
6985 * grub-core/Makefile.core.def (vbeinfo): Removed.
6986 (vbetest): Removed.
6987 (videoinfo): New module.
6988 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
6989 * grub-core/commands/i386/pc/vbetest.c: Removed.
6990 * grub-core/commands/videoinfo.c: New file.
6991 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
6992 specification.
6993 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
6994 as vbetest.
6995 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
6996 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
6997 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
6998 mode_number. New parameter mode. All users updated.
6999 (grub_video_gop_iterate): New function.
7000 (grub_video_efi_gop): New member iterate.
7001 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
7002 (grub_vbe_set_video_mode): Remove setting useless fields.
7003 (vbe2videoinfo): New function.
7004 (grub_video_vbe_iterate): Likewise.
7005 (grub_video_vbe_setup): Use vbe2videoinfo.
7006 (grub_video_vbe_print_adapter_specific_info): New function.
7007 (grub_video_vbe_adapter): New fields iterate and
7008 print_adapter_specific_info.
7009 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
7010 All users updated.
7011 (grub_video_mode_info): New field mode_number.
7012 (grub_video_adapter): New fields iterate and
7013 print_adapter_specific_info.
7014
7015 2010-09-13 Tristan Gingold <gingold@free.fr>
7016 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
7017 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * grub-core/commands/efi/lsefisystab.c: New file.
7020 * grub-core/commands/efi/lssal.c: Likewise.
7021 * grub-core/Makefile.core.def (lsacpi): New module.
7022 (lsefisystab): Likewise.
7023 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
7024 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
7025 (grub_efi_sal_system_table): New struct.
7026 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
7027 (grub_efi_sal_system_table_memory_descriptor): Likewise.
7028 (grub_efi_sal_system_table_platform_features): Likewise.
7029 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
7030 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
7031 (grub_efi_sal_system_table_ap_wakeup): Likewise.
7032 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
7033
7034 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 Support explicit user claim that a device is BIOS-visible.
7037
7038 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
7039 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
7040 * grub-core/kern/emu/hostdisk.c
7041 (convert_system_partition_to_system_disk): Support mdX.
7042 (find_system_device): New parameter add. All users updated.
7043 (grub_util_biosdisk_is_present): New function.
7044 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
7045 proto.
7046
7047 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 Search hints support.
7050
7051 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
7052 All users updated.
7053
7054 2010-09-13 Yves Blusseau <blusseau@zetam.org>
7055
7056 Bash completion script for util commands
7057
7058 * Makefile.am: Add util/bash-completion.d directory
7059 * configure.ac: Likewise.
7060 * util/bash-completion.d/Makefile.am: New file.
7061 * util/bash-completion.d/grub-completion.bash.in: Likewise.
7062
7063 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
7066 (print_backlog): set backlog_ucs4 and backlog_glyphs.
7067 Reported by: Yves Blusseau.
7068
7069 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
7072 partition size and offset.
7073
7074 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
7077
7078 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
7081
7082 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
7085 (grub_xvasprintf): Likewise.
7086
7087 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
7090
7091 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
7094 args ending with NULL.
7095
7096 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
7099 pointer.
7100
7101 2010-09-11 Szymon Janc <szymon@janc.net.pl>
7102
7103 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
7104
7105 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 Shutdown using ACPI.
7108
7109 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
7110 * grub-core/commands/acpihalt.c: New file.
7111 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
7112 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
7113 (grub_acpi_halt): New proto.
7114 (GRUB_ACPI_SLP_EN): New const.
7115 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
7116 (GRUB_ACPI_OPCODE_*): New enum.
7117 (GRUB_ACPI_EXTOPCODE_*): Likewise.
7118
7119 2010-09-11 Tristan Gingold <gingold@free.fr>
7120 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
7121 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7122
7123 * commands/lsacpi.c: New file.
7124 * grub-core/Makefile.core.def (lsacpi): New module.
7125 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
7126 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
7127 (grub_acpi_madt_entry_header): New struct.
7128 (grub_acpi_madt): Likewise.
7129 (grub_acpi_madt_entry_interrupt_override): Likewise.
7130 (grub_acpi_madt_entry_sapic): Likewise.
7131 (grub_acpi_madt_entry_lsapic): Likewise.
7132 (grub_acpi_madt_entry_platform_int_source): Likewise.
7133 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
7134 (PRIuGRUB_UINT32_T): Likewise.
7135 (PRIxGRUB_UINT64_T): Likewise.
7136
7137 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 Implement loading palette on ieee1275_fb.
7140
7141 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
7142 (have_setcolors): Likewise.
7143 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
7144 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
7145 (grub_video_ieee1275_set_palette): Implement.
7146
7147 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7148 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
7149
7150 * util/grub-install.in (grub_partition): New variable.
7151 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
7152 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
7153 Fixes a bug reported by Yves Blusseau.
7154
7155 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 Fix emu on mipsel.
7158
7159 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
7160 =grub_cpu_flush_cache on all mips and not only yeeloong.
7161 * configure.ac (COND_mips): New conditional.
7162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
7163 platforms.
7164 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
7165 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
7166 [GRUB_LINKER_HAVE_INIT]: New function.
7167 (grub_emu_post_init): Likewise.
7168 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
7169 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
7170 * include/grub/cache.h (_mips): Include mips/cache.h.
7171 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
7172 LVM and RAID prototypes.
7173 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
7174 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
7175 function.
7176
7177 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7178
7179 * util/grub-install.in: Don't try to verify core.img until after
7180 running grub-mkimage to create it.
7181
7182 2010-09-10 Robert Millan <rmh@gnu.org>
7183
7184 * util/grub.d/10_hurd.in: Add misc readability checks.
7185 * util/grub.d/10_kfreebsd.in: Likewise.
7186 * util/grub.d/10_linux.in: Likewise.
7187
7188 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7189
7190 * util/grub-install.in: ${imgext} won't be defined here until the
7191 install branch is merged. For the meantime, only verify core.img on
7192 i386-pc and sparc64-ieee1275 platforms.
7193
7194 2010-09-10 Robert Millan <rmh@gnu.org>
7195
7196 Solaris support in grub_find_zpool_from_dir(). Thanks
7197 Seth Goldberg for referring to getextmntent() facility.
7198
7199 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
7200 `sys/mkdev.h'.
7201 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
7202 `<sys/mnttab.h>'.
7203 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
7204 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
7205 method for finding zpool name.
7206
7207 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7208
7209 grub-fstest needs the host and hostfs modules while other utilities
7210 actively require those modules to be absent, so grub-fstest needs
7211 its own initialisation and finalisation code.
7212
7213 * Makefile.am (grub_fstest.pp): New target.
7214 (grub_fstest_init.lst): Likewise.
7215 (grub_fstest_init.c): Likewise.
7216 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
7217
7218 2010-09-10 Robert Millan <rmh@gnu.org>
7219
7220 * configure.ac: Check for `struct statfs.f_fstypename' and
7221 `struct statfs.f_mntfromname'.
7222
7223 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
7224 kFreeBSD-specific code.
7225
7226 2010-09-10 Robert Millan <rmh@gnu.org>
7227
7228 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
7229 on ZFS. Now non-main filesystems are supported as / too.
7230
7231 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
7232
7233 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
7234 and grub-core/disk/host.c to ...
7235 (grub-fstest): ... here. Having the host disk implementation
7236 present confuses grub-probe and other utility programs.
7237
7238 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
7239 when writing to a file, not when writing to stdout.
7240
7241 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
7242
7243 * tests/partmap_test.in: New test for partitions.
7244 * Makefile.util.def: Rules for new test.
7245
7246 2010-09-09 Robert Millan <rmh@gnu.org>
7247
7248 * util/grub-probe.c (probe): Fix a pair of unhandled error
7249 conditions.
7250
7251 2010-09-09 Robert Millan <rmh@gnu.org>
7252
7253 Basic Btrfs support (detection and UUID).
7254
7255 * grub-core/fs/btrfs.c: New file.
7256 * Makefile.util.def (library): Register btrfs.c.
7257 * grub-core/Makefile.core.def: Likewise.
7258
7259 2010-09-08 Robert Millan <rmh@gnu.org>
7260
7261 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
7262 with (optional) parameters to specify device and relative path.
7263 * util/grub-install.in: Use is_path_readable_by_grub() to
7264 verify readability of a few critical files.
7265 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
7266 verify readability of grub.cfg.new.
7267
7268 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 Split minix.mod into minix.mod and minix2.mod.
7271
7272 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
7273 * grub-core/Makefile.core.def (minix2): New module.
7274 * grub-core/fs/minix.c: Use definitions instead of runtime version
7275 checking.
7276 * grub-core/fs/minix2.c: New file.
7277
7278 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7279
7280 Add new --boot-directory option to replace --root-directory
7281
7282 * util/grub-install.in: Add new --boot-directory option
7283 * util/grub-reboot.in: Likewise.
7284 * util/grub-set-default.in: Likewise.
7285
7286 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7287
7288 * util/grub-mkconfig.in: Use new variable.
7289
7290 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7291
7292 * configure.ac: Define some useful variables.
7293
7294 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7297 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
7298 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
7299 Use terminfo and don't use cursor-on/cursor-off unless it's known
7300 to work.
7301 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
7302 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
7303
7304 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
7305
7306 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
7307 starts with "(,", fill the drive containing the loaded image in
7308 between those two characters, but expect that a full partition
7309 specification including partition map names will follow.
7310
7311 2010-09-08 Robert Millan <rmh@gnu.org>
7312
7313 * configure.ac: Remove `--enable-grub-fstest' option.
7314 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
7315
7316 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
7317 `grub-fstest' instead of `grub-probe' for readability verification.
7318 * util/grub-probe.c (probe): Remove readability verification kludge.
7319
7320 2010-09-08 Robert Millan <rmh@gnu.org>
7321
7322 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
7323 initializing `GRUB_FS'.
7324
7325 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
7326
7327 Not command (!) support to GRUB script.
7328
7329 * tests/grub_script_not.in: New test.
7330 * Makefile.util.def: Rules for new test.
7331
7332 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
7333 ! command as a special case.
7334 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
7335
7336 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7337
7338 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
7339 grub_free.
7340
7341 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7342
7343 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
7344
7345 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7346
7347 * docs/grub.texi (Shell-like scripting): Documentation for break,
7348 continue, shift and return commands.
7349
7350 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 Rename CD-ROM to cd on BIOS.
7353
7354 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
7355 "cd".
7356 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
7357
7358 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
7361 * util/grub-probe.c (main): Likewise.
7362 * util/i386/pc/grub-setup.c (main): Likewise.
7363 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7364 Reported and debugged by: alexxy
7365
7366 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
7369 diagnostic info.
7370
7371 2010-09-05 Jo Shields <directhex@apebox.org>
7372
7373 * util/grub.d/30_os-prober.in: Add missing classes.
7374
7375 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * docs/grub.texi (Theme file format): Document new position format.
7378
7379 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
7382 a table. Use @code instead of @verbatim.
7383
7384 2010-09-05 Colin D Bennett <colin@gibibit.com>
7385
7386 Gfxmenu documentation.
7387
7388 * docs/grub.texi (Theme file format): New chapter.
7389
7390 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7391
7392 * grub-core/Makefile.core.def (xzio): New module.
7393 * grub-core/io/xzio.c: New file.
7394 * grub-core/lib/xzembed/xz.h: New file (from xembed).
7395 * grub-core/lib/xzembed/xz_config.h: Likewise.
7396 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
7397 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
7398 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
7399 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
7400 * grub-core/lib/xzembed/xz_private.h: Likewise.
7401 * grub-core/lib/xzembed/xz_stream.h: Likewise.
7402 * include/grub/file.h (grub_file_filter_id): New compression filter
7403 GRUB_FILE_FILTER_XZIO.
7404
7405 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
7408 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
7409 size.
7410
7411 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
7414 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
7415
7416 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 Uncompressed checksum support.
7419
7420 * grub-core/commands/hashsum.c (options): Add option --uncompress.
7421 (check_list): New parameter uncompress.
7422 (grub_cmd_hashsum): Handle --uncompress.
7423
7424 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 Reintroduce testload.
7427
7428 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
7429 from here ...
7430 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
7431 (GRUB_MOD_INIT): New function.
7432 (GRUB_MOD_FINI): Likewise.
7433 * grub-core/Makefile.core.def (testload): New module.
7434
7435 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7436
7437 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
7438 (uint8_t): New type.
7439 (uint16_t): Likewise.
7440 (uint32_t): Likewise.
7441 (uint64_t): Likewise.
7442
7443 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7444
7445 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
7446
7447 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
7450 Made static.
7451 (grub_gzfile_open): Removed. All users updated.
7452 (GRUB_MOD_INIT): New function.
7453 (GRUB_MOD_FINI): Likewise.
7454 * grub-core/kern/file.c (grub_file_filters_all): New variable.
7455 (grub_file_filters_enabled): Likewise.
7456 (grub_file_open): Handle filters.
7457 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
7458 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
7459 * include/grub/file.h (grub_file_filter_id_t): New type.
7460 (grub_file_filter_t): Likewise.
7461 (grub_file_filters_all): New extern variable.
7462 (grub_file_filters_enabled): Likewise.
7463 (grub_file_filter_register): New inline function.
7464 (grub_file_filter_unregister): Likewise.
7465 (grub_file_filter_disable): Likewise.
7466 (grub_file_filter_disable_compression): Likewise.
7467 * include/grub/gzio.h: Removed.
7468
7469 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7470
7471 Filename expansion support for wildcards in GRUB script.
7472
7473 * tests/grub_script_expansion.in: New test.
7474 * Makefile.util.def: Rule for new test.
7475
7476 * grub-core/commands/wildcard.c: New file, implements filename
7477 expansion support for GRUB script.
7478 * grub-core/Makefile.core.def: Rule update for regexp.mod.
7479 * grub-core/script/argv.c: Cosmetic changes.
7480 * grub-core/script/execute.c (grub_script_arglist_to_argv):
7481 Refactored to perform wildcard expansion on arguments.
7482 * include/grub/script_sh.h (grub_script_wildcard_translator): New
7483 struct.
7484
7485 * tests/util/grub-shell.in: Fix quoting for read input.
7486
7487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7488
7489 Support for updating environment variables with matched substrings
7490 of regexp.
7491
7492 * tests/grub_cmd_regexp.in: New test.
7493 * Makefile.util.def: Rule for new test.
7494
7495 * grub-core/commands/regexp.c: New option -s to update environment
7496 variables with regexp matches.
7497
7498 2010-09-04 Szymon Janc <szymon@janc.net.pl>
7499
7500 * include/grub/file.h (grub_file): New member not_easly_seekable.
7501 (grub_file_seekable): New inline function.
7502 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
7503 easily seekable.
7504 (grub_gzio_open): Set not_easly_seekable.
7505 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
7506 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
7507
7508 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7509
7510 Support for options to appear multiple times on cmdline.
7511
7512 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
7513 * grub-core/commands/extcmd.c: Support for repeatable option.
7514 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
7515 repeatable option support.
7516
7517 Refactor menuentry into a regular command.
7518
7519 * grub-core/commands/menuentry.c: New file, menuentry command
7520 implementation.
7521 * grub-core/Makefile.core.def: Rule update for normal.mod.
7522 * grub-core/normal/main.c: Moved menuentry creation to
7523 grub-core/commands/menuentry.c.
7524 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
7525 (grub_menu_execute_entry_real): Removed.
7526 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
7527 function.
7528 (grub_script_execute_menuentry): Removed.
7529 * grub-core/script/parser.y (menuentry): Removed.
7530 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
7531 * grub-core/script/yylex.l (menuentry): Removed.
7532 * include/grub/menu.h (grub_menu_init): New prototype.
7533 (grub_menu_fini): New prototype.
7534 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
7535 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
7536 (grub_script_execute_sourcecode): New prototype.
7537
7538 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7539
7540 "return" command for GRUB script functions.
7541
7542 * tests/grub_script_return.in: New test.
7543 * Makefile.util.def: Rules for new test.
7544
7545 * grub-core/script/execute.c (grub_script_return): New function.
7546 * grub-core/script/main.c: Register/unregister return commaond.
7547 * include/grub/script_sh.h (grub_script_return): New prototype.
7548
7549 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7550
7551 "setparams" command to update positional parameters.
7552
7553 * tests/grub_script_setparams.in: New test.
7554 * Makefile.util.def: Rules for new test.
7555
7556 * grub-core/script/argv.c (grub_script_argv_make): New function.
7557 * grub-core/script/execute.c (replace_scope): New function.
7558 (grub_script_setparams): New function.
7559 * grub-core/script/lexer.c: Remove unused variables.
7560 * grub-core/script/main.c: Register/unregister setparams command.
7561 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
7562 (grub_script_setparams): New prototype.
7563
7564 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7565
7566 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
7567 grub_free order.
7568
7569 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7570
7571 Support for passing block of commands as an argument to extcmds.
7572
7573 * Makefile.util.def: Rules for new test.
7574 * tests/grub_script_blockarg.in: New test.
7575 * grub-core/tests/test_blockarg.c: New file, block argument
7576 command used in the test.
7577
7578 * include/grub/extcmd.h (grub_extcmd_context): New struct.
7579 (grub_register_extcmd_prio): New function prototype.
7580 (grub_extcmd_dispatcher): New function prototype.
7581 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
7582 type.
7583 * include/grub/script_sh.h (struct grub_script): New members
7584 `children', `next_siblings' and `refcnt' for block arguments and
7585 reference counting.
7586 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
7587 (grub_script_arg): New member `script' for block argument.
7588 (grub_script_argv): New member `script' for block argument.
7589 (grub_parser_param): New member `scripts' for block argument.
7590 (grub_script_mem_free): New extern function prototype.
7591 (grub_script_ref): New function prototype.
7592 (grub_script_unref): New function prototype.
7593
7594 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
7595 extcmd form to support block arguments.
7596 * grub-core/script/argv.c: Block arguments support.
7597 * grub-core/script/execute.c: Likewise.
7598 * grub-core/script/lexer.c: Likewise.
7599 * grub-core/script/main.c: Likewise.
7600 * grub-core/script/script.c: Likewise.
7601 * grub-core/script/parser.y: Likewise. New `block' and `block0'
7602 non-terminals.
7603
7604 * grub-core/commands/acpi.c: Update extcmd implementations with
7605 grub_extcmd_context_t.
7606 * grub-core/commands/cat.c: Likewise.
7607 * grub-core/commands/echo.c: Likewise.
7608 * grub-core/commands/extcmd.c: Likewise.
7609 * grub-core/commands/hashsum.c: Likewise.
7610 * grub-core/commands/hdparm.c: Likewise.
7611 * grub-core/commands/help.c: Likewise.
7612 * grub-core/commands/hexdump.c: Likewise.
7613 * grub-core/commands/i386/cpuid.c: Likewise.
7614 * grub-core/commands/i386/pc/drivemap.c: Likewise.
7615 * grub-core/commands/i386/pc/halt.c: Likewise.
7616 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7617 * grub-core/commands/iorw.c: Likewise.
7618 * grub-core/commands/keystatus.c: Likewise.
7619 * grub-core/commands/loadenv.c: Likewise.
7620 * grub-core/commands/ls.c: Likewise.
7621 * grub-core/commands/lspci.c: Likewise.
7622 * grub-core/commands/memrw.c: Likewise.
7623 * grub-core/commands/probe.c: Likewise.
7624 * grub-core/commands/search_wrap.c: Likewise.
7625 * grub-core/commands/setpci.c: Likewise.
7626 * grub-core/commands/sleep.c: Likewise.
7627 * grub-core/disk/loopback.c: Likewise.
7628 * grub-core/hello/hello.c: Likewise.
7629 * grub-core/loader/i386/bsd.c: Likewise.
7630 * grub-core/loader/xnu.c: Likewise.
7631 * grub-core/term/gfxterm.c: Likewise.
7632 * grub-core/term/serial.c: Likewise.
7633 * grub-core/tests/lib/functional_test.c: Likewise.
7634
7635 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7636
7637 Multi-line quoted strings support.
7638
7639 * grub-core/script/lexer.c (append_newline): Removed.
7640 (grub_script_lexer_yywrap): Refactored.
7641 (grub_script_lexer_init): Refactored.
7642 * grub-core/script/yylex.l (yywrap): New function.
7643 (grub_lexer_resplit): New function.
7644 (grub_lexer_unput): New function.
7645 * include/grub/script_sh.h (grub_lexer_param): New members, unput
7646 and resplit.
7647 * tests/grub_script_echo1.in: Added few more testcases.
7648
7649 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * grub-core/kern/misc.c: Don't add abort alias in utils.
7652 Reported by: echoline.
7653
7654 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
7655
7656 Add missing files into "make dist" tarball for other platforms.
7657
7658 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
7659 * conf/Makefile.common (dist_noinst_DATA): New variable.
7660 * conf/Makefile.extra-dist: Added missing make dist files.
7661 * grub-core/Makefile.core.def: Likewise.
7662
7663 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 Compress grub_prefix.
7666
7667 * grub-core/boot/i386/pc/lnxboot.S: Use
7668 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
7669 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
7670 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
7671 GRUB_MACHINE_PREFIX_END. All users updated.
7672 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
7673 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
7674 + 0x40.
7675 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
7676 * util/grub-mkimage.c (image_target_desc): Change data_end to
7677 prefix_end. All users updated.
7678
7679 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
7680
7681 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
7682 value.
7683 (grub_openbsd_boot): Likewise.
7684 (grub_netbsd_boot): Likewise.
7685 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
7686 (grub_xnu_boot): Likewise.
7687
7688 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 * configure.ac: Clean LIBS variable after tests.
7691
7692 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7693
7694 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
7695
7696 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
7699 echo if libdevmapper will be used.
7700
7701 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
7702
7703 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
7704 constant for the same file.
7705
7706 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
7709
7710 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7711
7712 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
7713 grub-core/*.pp.
7714
7715 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
7716
7717 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
7718 required by the boot protocol.
7719
7720 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
7721 ebp and edi members.
7722 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
7723 state.ebp and state.edi.
7724 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
7725 %ebp and %edi according to grub_relocator32_ebp and
7726 grub_relocator32_edi respectively.
7727 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
7728 and state.edi.
7729
7730 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 Add i386-pc-pxe image target.
7733
7734 * util/grub-mkimage.c (image_target_desc): New enum value
7735 IMAGE_I386_PC_PXE.
7736 (image_targets): New target i386-pc-pxe.
7737 (generate_image): Handle i386-pc-pxe image.
7738
7739 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 Fix grub_pxe_scan.
7742
7743 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
7744 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
7745 All users updated.
7746 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
7747 (grub_pxe_pxenv): Correct type.
7748
7749 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7750
7751 * NEWS: Document most of the important changes since 1.98.
7752
7753 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7754
7755 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
7756 generated manual page) a little.
7757
7758 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
7759
7760 * docs/grub.texi: Add myself as an author.
7761
7762 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7763
7764 * Makefile.util.def (libgrub.a): Add missing sunpc.
7765 Reported by: Seth Goldberg.
7766
7767 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 Interrupt wrapping and code simplifications.
7770
7771 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
7772 x86_noieee1275 which are functionaly equivalent in this case.
7773 (grub-install): Make source on each platform explicit. Enable on
7774 all noemu.
7775 * gentpl.py (x86_efi_pc): Removed group.
7776 (x86_noefi): Likewise.
7777 (i386_noefi): Likewise.
7778 (x86_noieee1275): Likewise.
7779 (i386_noieee1275): Likewise.
7780 (i386_noefi_noieee1275): Likewise.
7781 (i386_pc_qemu_coreboot): Likewise.
7782 (i386_coreboot_multiboot): Likewise.
7783 (i386_pc_coreboot_multiboot_qemu): Likewise.
7784 (x86_noefi_mips): Likewise.
7785 (noieee1275): Likewise.
7786 (ieee1275_mips): Likewise.
7787 (noemu_noieee1275): Likewise.
7788 (cmos): New group.
7789 (usb): Likewise.
7790 (videoinkernel): Likewise.
7791 (videomodules): Likewise.
7792 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
7793 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
7794 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
7795 include/grub/loader.h, include/grub/msdos_partition.h,
7796 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
7797 include/grub/machine/console.h, include/grub/machine/vga.h,
7798 include/grub/machine/vbe.h, include/grub/machine/init.h,
7799 include/grub/machine/kernel.h, include/grub/cpu/time.h,
7800 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
7801 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
7802 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
7803 * grub-core/Makefile.core.def (kernel): Explicit the source for
7804 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
7805 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
7806 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
7807 Use videoinkernel tag.
7808 (usb): Enable on all usb.
7809 (usbserial_common): Likewise.
7810 (usbserial_pl2303): Likewise.
7811 (usbserial_ftdi): Likewise.
7812 (uhci): Enable on all x86.
7813 (ohci): Enable on all pci.
7814 (cmostest): Enable on all CMOS.
7815 (acpi): Include commands/acpi.c on all platforms.
7816 (halt): Add relevant lib/*/halt.c.
7817 (hdparm): Enable on all pci.
7818 (lspci): Likewise.
7819 (usbtest): Enable on all usb.
7820 (ata): Enable on all pci.
7821 (ata_pthru): Likewise.
7822 (usbms): Enable on all usb.
7823 (usb_keyboard): Likewise.
7824 (font): Use tag videomodules.
7825 (bufio): Likewise.
7826 (datetime): Use tag cmos. Enable on all noemu.
7827 (mmap): Use tags common and x86.
7828 (gfxterm): Use tag videomodules.
7829 (bitmap): Likewise.
7830 (bitmap_scale): Likewise.
7831 (video_fb): Likewise.
7832 (video): Likewise.
7833 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
7834 adjust padding accordingly. All users updated.
7835 (grub_ohci_transaction): Fix bad format specification.
7836 (GRUB_MOD_INIT): Add asserts for struct size.
7837 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
7838 (grub_alloc_td): Likewise.
7839 (grub_free_queue): Likewise.
7840 (grub_uhci_transfer): Likewise.
7841 (grub_uhci_transaction): Fix bad format specification.
7842 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
7843 (grub_usb_bulk_readwrite): Likewise.
7844 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
7845 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
7846 Made static.
7847 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
7848 Made static.
7849 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
7850 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
7851 Transformed into C.
7852 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
7853 Moved from here ...
7854 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
7855 ... here. Transformed into C. Made static.
7856 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
7857 Moved from here ...
7858 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
7859 ... here. Transformed into C. Made static.
7860 * grub-core/kern/i386/pc/startup.S
7861 (grub_biosdisk_check_int13_extensions): Moved from here ...
7862 * grub-core/disk/i386/pc/biosdisk.c
7863 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
7864 Made static.
7865 * grub-core/kern/i386/pc/startup.S
7866 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
7867 * grub-core/disk/i386/pc/biosdisk.c
7868 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
7869 Transformed into C. Made static.
7870 * grub-core/kern/i386/pc/startup.S
7871 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
7872 * grub-core/disk/i386/pc/biosdisk.c
7873 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
7874 Transformed into C. Made static.
7875 * grub-core/kern/i386/pc/startup.S
7876 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
7877 * grub-core/disk/i386/pc/biosdisk.c
7878 (grub_biosdisk_get_diskinfo_standard): ... here.
7879 Transformed into C. Made static.
7880 * grub-core/kern/i386/pc/startup.S
7881 (grub_biosdisk_get_num_floppies): Moved from here ...
7882 * grub-core/disk/i386/pc/biosdisk.c
7883 (grub_biosdisk_get_num_floppies): ... here.
7884 Transformed into C. Made static.
7885 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
7886 New function.
7887 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
7888 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
7889 Transformed into C. Made static.
7890 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
7891 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
7892 Transformed into C. Made static.
7893 * grub-core/kern/i386/ieee1275/init.c: Removed.
7894 * grub-core/kern/i386/misc.S: Likewise.
7895 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
7896 Splitted from here ...
7897 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
7898 Transformed into C. Made static. All users updated.
7899 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
7900 Transformed into C. Made static. All users updated.
7901 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
7902 Moved from here...
7903 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
7904 Transformed into C. Made static. All users updated.
7905 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
7906 Moved from here...
7907 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
7908 Transformed into C. Made static. All users updated.
7909 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
7910 Removed (replaced by C version).
7911 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
7912 Moved from here...
7913 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
7914 Transformed into C. Made static.
7915 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
7916 Moved from here...
7917 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
7918 ... here. Transformed into C.
7919 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
7920 Moved from here...
7921 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
7922 ... here. Transformed into C.
7923 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
7924 Moved from here...
7925 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
7926 ... here. Transformed into C. Made static.
7927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
7928 Moved from here...
7929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
7930 ... here. Transformed into C.
7931 * grub-core/kern/i386/pc/startup.S
7932 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
7933 * grub-core/video/i386/pc/vbe.c
7934 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
7935 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
7936 Moved from here...
7937 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
7938 ... here. Transformed into C.
7939 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
7940 Moved from here...
7941 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
7942 ... here. Transformed into C.
7943 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
7944 Moved from here...
7945 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
7946 ... here. Transformed into C.
7947 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
7948 Moved from here...
7949 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
7950 ... here. Transformed into C.
7951 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
7952 Moved from here...
7953 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
7954 ... here. Transformed into C. Made static.
7955 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
7956 Moved from here...
7957 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
7958 ... here. Transformed into C. Made static.
7959 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
7960 Moved from here...
7961 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
7962 ... here. Transformed into C. Made static.
7963 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
7964 pxe_rm_entry as third argument.
7965 (grub_bios_interrupt): New function.
7966 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
7967 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
7968 of calling grub_stop.
7969 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
7970 * grub-core/lib/efi/halt.c (grub_halt): ...here.
7971 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
7972 * grub-core/lib/emu/halt.c (grub_halt): ... here.
7973 * grub-core/lib/i386/halt.c: Moved from here ...
7974 * grub-core/lib/i386/halt.c: ... here.
7975 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
7976 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
7977 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
7978 grub_stop_floppy.
7979 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
7980 * include/grub/i386/coreboot/init.h: Removed.
7981 * include/grub/i386/multiboot/init.h: Likewise.
7982 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
7983 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
7984 * include/grub/i386/pc/int.h: New file.
7985 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
7986 (grub_pxe_scan): Removed.
7987 (grub_pxe_call): Update prototype.
7988 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
7989 prototypes.
7990 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
7991 * include/grub/i386/qemu/init.h: Removed.
7992 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
7993 noreturn.
7994 (grub_halt): Likewise.
7995 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
7996 (grub_reboot): Likewise.
7997 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
7998 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
7999 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
8000
8001 2010-08-30 Robert Millan <rmh@gnu.org>
8002
8003 * NEWS: Document addition of ZFS support in `grub-install' and
8004 `grub-mkconfig'.
8005
8006 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
8007
8008 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
8009 dprintf output.
8010
8011 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 Remove leftover embedding of font objects.
8014
8015 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8016 * util/grub-install.in (font): Removed.
8017 * util/grub-mkimage.c (generate_image): Remove font support. All users
8018 updated.
8019
8020 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 Remove leftover embedding of font objects.
8023
8024 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8025 * util/grub-install.in (font): Removed.
8026 * util/grub-mkimage.c (generate_image): Remove font support. All users
8027 updated.
8028
8029 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * docs/grub.texi (Network): Fix reference to pxe_blksize.
8032 Reported by: Ian Turner
8033
8034 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
8037 timeout to avoid indefinite boot stalling.
8038
8039 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
8042 (grub_env_write_color_highlight): Likewise.
8043
8044 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8045
8046 * grub-core/normal/term.c (print_more): Return to normal and not
8047 to standard state after printing "---MORE---".
8048
8049 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
8052 Mask out the bit 0x80 since it has other meaning that specifiing color.
8053
8054 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 New relocator. Allows for more kernel support and more straightforward
8057 loader writing.
8058
8059 * Makefile.am (BOOTTARGET): New variable.
8060 (QEMU32): Likewise.
8061 (linux.init.x86_64): New target.
8062 (linux.init.i386): Likewise.
8063 (multiboot.elf): Likewise.
8064 (kfreebsd.elf): Likewise.
8065 (kfreebsd.aout): Likewise.
8066 (pc-chainloader.elf): Likewise.
8067 (pc-chainloader.bin): Likewise.
8068 (ntldr.elf): Likewise.
8069 (ntldr.bin): Likewise.
8070 (multiboot2.elf): Likewise.
8071 (kfreebsd.init.x86_64): Likewise.
8072 (kfreebsd.init.i386): Likewise.
8073 (knetbsd.init.i386): Likewise.
8074 (kopenbsd.init.i386): Likewise.
8075 (knetbsd.init.x86_64): Likewise.
8076 (kopenbsd.init.x86_64): Likewise.
8077 (linux-initramfs.i386): Likewise.
8078 (linux-initramfs.x86_64): Likewise.
8079 (kfreebsd-mfsroot.i386.img): Likewise.
8080 (knetbsd.image.i386): Likewise.
8081 (kopenbsd.image.i386): Likewise.
8082 (kopenbsd.image.x86_64): Likewise.
8083 (knetbsd.miniroot-image.i386.img): Likewise.
8084 (kfreebsd-mfsroot.x86_64.img): Likewise.
8085 (knetbsd.image.x86_64): Likewise.
8086 (knetbsd.miniroot-image.x86_64.img): Likewise.
8087 (kfreebsd-mfsroot.i386.gz): Likewise.
8088 (bootcheck-kfreebsd-i386): Likewise.
8089 (kfreebsd-mfsroot.x86_64.gz): Likewise.
8090 (bootcheck-kfreebsd-x86_64): Likewise.
8091 (knetbsd.miniroot-image.i386.gz): Likewise.
8092 (bootcheck-knetbsd-i386): Likewise.
8093 (bootcheck-kopenbsd-i386): Likewise.
8094 (bootcheck-kopenbsd-x86_64): Likewise.
8095 (knetbsd.miniroot-image.x86_64.gz): Likewise.
8096 (bootcheck-knetbsd-x86_64): Likewise.
8097 (bootcheck-linux-i386): Likewise.
8098 (bootcheck-linux-x86_64): Likewise.
8099 (bootcheck-linux16-i386): Likewise.
8100 (bootcheck-linux16-x86_64): Likewise.
8101 (bootcheck-multiboot): Likewise.
8102 (bootcheck-multiboot2): Likewise.
8103 (bootcheck-kfreebsd-aout): Likewise.
8104 (bootcheck-pc-chainloader): Likewise.
8105 (bootcheck-ntldr): Likewise.
8106 (CLEANFILES): Add new targets.
8107 (BOOTCHECKS): New variable.
8108 (.PHONY): Add bootchecks.
8109 (SUCCESSFUL_BOOT_STRING): New variable.
8110 (BOOTCHECK_TIMEOUT): Likewise.
8111 (bootcheck): New target
8112 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
8113 * configure.ac: Correct efiemu excuse.
8114 * docs/grub.texi (Supported kernels): New chapter.
8115 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
8116 include/grub/mm_private.h. Simplify inclusion of
8117 include/grub/boot.h, include/grub/loader.h
8118 and include/grub/msdos_partition.h
8119 (KERNEL_HEADER_FILES) [i386_coreboot]:
8120 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
8121 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
8122 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
8123 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
8124 include/grub/machine/loader.h.
8125 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
8126 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
8127 extra_dist.
8128 (pci.mod): Enable on i386-multiboot.
8129 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
8130 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
8131 i386-qemu.
8132 (relocator.mod): Rewritten.
8133 (aout.mod): Enable on all x86.
8134 (bsd.mod): Likewise.
8135 (ntldr.mod): New module.
8136 (linux.mod): Use loader/i386/linux.c on all x86.
8137 (xnu.mod): Enable on all x86.
8138 (vga_text.mod): disable on EFI and QEMU.
8139 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
8140 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
8141 * grub-core/efiemu/loadcore.c: Likewise.
8142 * grub-core/efiemu/main.c: Likewise.
8143 (grub_efiemu_exit_boot_services): Removed.
8144 (grub_efiemu_finish_boot_services): Likewise.
8145 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
8146 function.
8147 * grub-core/efiemu/i386/nocfgtables.c: New file.
8148 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
8149 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
8150 (grub_efi_finish_boot_services): Moved from here ...
8151 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
8152 Fille finish memory map and related data.
8153 (finish_mmap_buf): New variable.
8154 (grub_efi_uintn_t finish_mmap_size): Likewise.
8155 (grub_efi_uintn_t finish_key): Likewise.
8156 (grub_efi_uintn_t finish_desc_size): Likewise.
8157 (grub_efi_uint32_t finish_desc_version): Likewise.
8158 (grub_efi_is_finished): Likewise.
8159 (grub_efi_get_memory_map): Use saved memory map if EFI is already
8160 finished.
8161 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
8162 (grub_elf64_phdr_iterate): Likewise.
8163 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
8164 (grub_os_area_size): Likewise.
8165 (grub_machine_init): Don't reserve os area.
8166 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
8167 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
8168 * grub-core/kern/i386/loader.S: Removed.
8169 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
8170 (grub_os_area_size): Likewise.
8171 (grub_machine_init): Don't reserve os area.
8172 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8173 Don't call grub_dl_unload_all.
8174 Don't include loader.S.
8175 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8176 Declare the memory after _end as available.
8177 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
8178 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
8179 (GRUB_MM_ALLOC_MAGIC): Moved from here...
8180 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
8181 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
8182 * include/grub/mm_private.h (grub_mm_header): ... here.
8183 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
8184 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
8185 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
8186 (grub_mm_region): ..here. Removed addr. Added pre_size.
8187 All users updated.
8188 * grub-core/kern/mm.c (base): Renamed to ...
8189 (grub_mm_base): ... this. Made global.
8190 (grub_real_malloc): Alloc from end of region.
8191 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
8192 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
8193 * grub-core/kern/powerpc/cache_flush.S: ... here.
8194 * grub-core/lib/efi/relocator.c: New file.
8195 * grub-core/lib/i386/relocator.c: Rewritten.
8196 * grub-core/lib/i386/relocator16.S: New file.
8197 * grub-core/lib/i386/relocator32.S: Likewise.
8198 * grub-core/lib/i386/relocator64.S: Likewise.
8199 * grub-core/lib/i386/relocator_asm.S: Rewritten.
8200 * grub-core/lib/i386/relocator_common.S: New file.
8201 * grub-core/lib/ieee1275/relocator.c: Likewise.
8202 * grub-core/lib/mips/relocator.c: Rewritten.
8203 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
8204 stylistic adjustments.
8205 * grub-core/lib/powerpc/relocator.c: New file.
8206 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
8207 * grub-core/lib/relocator.c: Rewritten.
8208 * grub-core/lib/x86_64/relocator_asm.S: New file.
8209 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
8210 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
8211 (bsd_tag): New struct.
8212 (tags): New variable.
8213 (tags_last): Likewise.
8214 (netbsd_module): New struct.
8215 (netbsd_mods): New variable.
8216 (netbsd_mods_last): Likewise.
8217 (openbsd_opts): New parameter "serial".
8218 (OPENBSD_SERIAL_ARG): New definition.
8219 (netbsd_opts): New parameter "serial".
8220 (NETBSD_SERIAL_ARG): New definition.
8221 (grub_freebsd_add_meta): Reorganised into ...
8222 (grub_bsd_add_meta): ...this. All users updated.
8223 (grub_freebsd_add_mmap): Reorganised into ...
8224 (generate_e820_mmap): ...this...
8225 (grub_bsd_add_mmap): ...and this. All users updated.
8226 (grub_freebsd_list_modules): Use tags.
8227 (grub_netbsd_add_meta_module): New function.
8228 (grub_netbsd_list_modules): Likewise.
8229 (grub_freebsd_boot): Use relocator and finish EFI.
8230 (grub_openbsd_boot): Likewise.
8231 (grub_netbsd_setup_video): New function.
8232 (grub_netbsd_add_modules): Likewise.
8233 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
8234 and finish EFI.
8235 (grub_bsd_unload): Unload tags.
8236 (grub_bsd_load_aout): Use relocator.
8237 (grub_bsd_elf32_size_hook): New function.
8238 (grub_bsd_elf32_hook): Use relocator.
8239 (grub_bsd_elf64_size_hook): New function.
8240 (grub_bsd_elf64_hook): Use relocator.
8241 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
8242 (grub_bsd_load): Zero-out openbsd_ramdisk.
8243 (grub_bsd_load): Use relocator.
8244 (grub_cmd_openbsd): Support serial.
8245 (grub_cmd_netbsd): Support modules.
8246 (grub_cmd_freebsd_module): Use relocator.
8247 (grub_netbsd_module_load): New function.
8248 (grub_cmd_netbsd_module): Likewise.
8249 (grub_cmd_openbsd_ramdisk): Likewise.
8250 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
8251 kopenbsd_ramdisk.
8252 (GRUB_MOD_FINI): Unregister new commands.
8253 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
8254 (grub_freebsd_load_elfmodule_obj): Use relocator.
8255 (grub_freebsd_load_elfmodule): Likewise.
8256 (grub_freebsd_load_elf_meta): Likewise.
8257 (grub_netbsd_load_elf_meta): New function.
8258 (grub_openbsd_find_ramdisk): Likewise.
8259 * grub-core/loader/i386/bsd_helper.S: Removed.
8260 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
8261 * grub-core/loader/i386/bsd_trampoline.S: Removed.
8262 * grub-core/loader/i386/efi/linux.c: Likewise.
8263 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
8264 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
8265 (DEFAULT_VIDEO_MODE): Likewise.
8266 (real_mode_target): New variable.
8267 (prot_mode_target): Likewise.
8268 (initrd_mem_target): Likewise.
8269 (relocator): Likewise.
8270 (efi_mmap_buf): Likewise.
8271 (efi_mmap_size): Likewise.
8272 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
8273 (free_pages): Use relocator.
8274 (allocate_pages): Account for efi_mmap and use relocator. Return error.
8275 (grub_linux_setup_video): Return error.
8276 (grub_linux_trampoline_start): Removed.
8277 (grub_linux_trampoline_end): Likewise.
8278 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
8279 andd video parameters depending on firmware.
8280 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
8281 [GRUB_MACHINE_EFI]: Pass EFI parameters.
8282 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
8283 (grub_cmd_initrd): Use relocator.
8284 * grub-core/loader/i386/linux_trampoline.S: Removed.
8285 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
8286 (elf_sec_entsize): Likewise.
8287 (elf_sec_shstrndx): Likewise.
8288 (elf_sections): Likewise.
8289 (grub_multiboot_load): Use relocator.
8290 (grub_multiboot_get_mbi_size): Account for sections.
8291 (grub_multiboot_make_mbi): Use relocator and support sections.
8292 (grub_multiboot_add_elfsyms): New function.
8293 (grub_multiboot_free_mbi): Free sections.
8294 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
8295 (grub_linux_real_target): Likewise.
8296 (grub_linux_real_chunk): Likewise.
8297 (grub_linux16_prot_size): Likewise.
8298 (grub_linux16_boot): Use relocator.
8299 (grub_linux_unload): Unload relocator.
8300 (grub_cmd_linux): Use relocator.
8301 (grub_cmd_initrd): Likewise.
8302 * grub-core/loader/i386/pc/ntldr.c: New file.
8303 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
8304 Don't try to guess CPU frequency.
8305 (grub_xnu_set_video): Stretch bitmap.
8306 (grub_xnu_boot): Use relocator.
8307 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
8308 (grub_linux_unload): Free relocator.
8309 (grub_linux_load32): Use relocator.
8310 (grub_linux_load64): Likewise.
8311 (grub_cmd_initrd): Likewise.
8312 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
8313 (grub_multiboot_unload): Unload relocator.
8314 (grub_cmd_multiboot): Use relocator.
8315 (grub_cmd_module): Likewise.
8316 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
8317 Use relocator and support sections.
8318 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
8319 (elf_sec_entsize): Likewise.
8320 (elf_sec_shstrndx): Likewise.
8321 (elf_sections): Likewise.
8322 (grub_multiboot_load): Use relocator.
8323 (grub_multiboot_get_mbi_size): Account for sections.
8324 (grub_multiboot_make_mbi): Use relocator and support sections.
8325 (grub_multiboot_add_elfsyms): New function.
8326 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
8327 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
8328 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
8329 Prototype changed. All users updated.
8330 (grub_xnu_align_heap): Simplified.
8331 (grub_xnu_writetree_toheap): Likewise.
8332 (grub_xnu_unload): Unload relocator.
8333 (grub_cmd_xnu_kernel): Use relocator.
8334 (grub_cmd_xnu_kernel64): Likewise.
8335 (grub_xnu_register_memory): Simplified.
8336 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
8337 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
8338 EFI is finished.
8339 (grub_console_checkkey): Likewise.
8340 (grub_console_getkey): Likewise.
8341 (grub_console_getwh): Likewise.
8342 (grub_console_getxy): Likewise.
8343 (grub_console_gotoxy): Likewise.
8344 (grub_console_cls): Likewise.
8345 (grub_console_setcolorstate): Likewise.
8346 (grub_console_setcursor): Likewise.
8347 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
8348 * grub-core/tests/boot/kbsd.init-i386.S: New file.
8349 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
8350 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
8351 * grub-core/tests/boot/kernel-8086.S: Likewise.
8352 * grub-core/tests/boot/kernel-i386.S: Likewise.
8353 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
8354 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
8355 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
8356 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
8357 * grub-core/tests/boot/knetbsd.cfg: Likewise.
8358 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
8359 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
8360 * grub-core/tests/boot/linux.cfg: Likewise.
8361 * grub-core/tests/boot/linux.init-i386.S: Likewise.
8362 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
8363 * grub-core/tests/boot/linux16.cfg: Likewise.
8364 * grub-core/tests/boot/multiboot.cfg: Likewise.
8365 * grub-core/tests/boot/multiboot2.cfg: Likewise.
8366 * grub-core/tests/boot/ntldr.cfg: Likewise.
8367 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
8368 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
8369 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
8370 New definition.
8371 * include/grub/dl.h (grub_dl_unload_all): Removed.
8372 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
8373 (grub_efi_finish_boot_services): Change prototype.
8374 (grub_efi_is_finished): New variable.
8375 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
8376 Changed prototype.
8377 (grub_efiemu_finish_boot_services): Removed.
8378 (grub_machine_efiemu_init_tables): New prototype.
8379 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
8380 (grub_elf64_phdr_iterate): Likewise.
8381 * include/grub/i386/bsd.h: Include relocator.h.
8382 (freebsd_tag_header): New struct.
8383 (grub_openbsd_bios_mmap): Removed.
8384 (grub_unix_real_boot): Removed.
8385 (grub_freebsd_load_elfmodule32): Changed prototype.
8386 (grub_freebsd_load_elfmodule_obj64): Likewise.
8387 (grub_freebsd_load_elf_meta32): Likewise.
8388 (grub_freebsd_load_elf_meta64): Likewise.
8389 (grub_freebsd_add_meta): Removed.
8390 (grub_netbsd_load_elf_meta32): New prototype.
8391 (grub_netbsd_load_elf_meta64): Likewise.
8392 (grub_bsd_add_meta): Likewise.
8393 (grub_openbsd_ramdisk_descriptor): New struct.
8394 (grub_openbsd_find_ramdisk32): New prototype.
8395 (grub_openbsd_find_ramdisk64): Likewise.
8396 * include/grub/i386/coreboot/loader.h: Removed.
8397 * include/grub/i386/efi/loader.h: Likewise.
8398 * include/grub/i386/ieee1275/loader.h: Likewise.
8399 * include/grub/i386/linux.h (linux_kernel_header): Change void *
8400 to grub_uint32_t.
8401 * include/grub/i386/loader.h: Removed.
8402 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
8403 value.
8404 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
8405 (grub_phys_addr_t): New type.
8406 (grub_vtop): New inline function.
8407 (grub_map_memory): Likewise.
8408 (grub_unmap_memory): Likewise.
8409 * include/grub/i386/multiboot/loader.h: Removed.
8410 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
8411 (NETBSD_BTINFO_CONSOLE): New definition.
8412 (NETBSD_BTINFO_SYMTAB): Likewise.
8413 (NETBSD_BTINFO_MODULES): Likewise.
8414 (NETBSD_BTINFO_FRAMEBUF): Likewise.
8415 (grub_netbsd_bootinfo): New struct.
8416 (grub_netbsd_btinfo_common): Use explicit bitsize.
8417 (grub_netbsd_btinfo_mmap_entry): Removed.
8418 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
8419 (grub_netbsd_btinfo_bootdisk): New struct.
8420 (grub_netbsd_btinfo_symtab): Likewise.
8421 (grub_netbsd_btinfo_serial): Likewise.
8422 (grub_netbsd_btinfo_modules): Likewise.
8423 (grub_netbsd_btinfo_framebuf): Likewise.
8424 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
8425 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
8426 Likewise.
8427 (grub_openbsd_bootargs): Use explicit bitsize.
8428 (grub_openbsd_bootarg_console): New struct.
8429 (GRUB_OPENBSD_COM_MAJOR): New definition.
8430 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
8431 * include/grub/i386/pc/efiemu.h: Removed.
8432 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
8433 * include/grub/i386/qemu/loader.h: Removed.
8434 * include/grub/i386/relocator.h: Rewritten.
8435 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
8436 * include/grub/mips/memory.h: New file.
8437 * include/grub/mips/multiboot.h: Rewritten.
8438 * include/grub/mips/relocator.h: Rewritten.
8439 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
8440 (grub_vtop): New function.
8441 (grub_map_memory): Likewise.
8442 (grub_unmap_memory): Likewise.
8443 * include/grub/misc.h (ALIGN_DOWN): New definition.
8444 * include/grub/mm.h (grub_mm_check_real): New proto.
8445 (GRUB_MM_CHECK): New definition.
8446 * include/grub/mm_private.h: New file.
8447 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
8448 (grub_multiboot_get_mbi_size): Removed.
8449 (grub_multiboot_make_mbi): Change prottype.
8450 (grub_multiboot_set_accepts_video): New proto.
8451 (grub_multiboot_add_elfsyms): Likewise.
8452 (grub_multiboot_payload_eip): New variable.
8453 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
8454 New prototype.
8455 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
8456 New definition.
8457 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
8458 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
8459 * include/grub/powerpc/ieee1275/loader.h: Removed.
8460 * include/grub/powerpc/memory.h: New file.
8461 * include/grub/powerpc/relocator.h: Likewise.
8462 * include/grub/relocator.h: Likewise.
8463 * include/grub/relocator_private.h: Likewise.
8464 * include/grub/sparc64/ieee1275/loader.h: Removed.
8465 * include/grub/x86_64/memory.h: New file.
8466 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
8467 (grub_xnu_heap_malloc): Likewise.
8468 (grub_xnu_heap_real_start): Removed.
8469 (grub_xnu_heap_start): Likewise.
8470 (grub_xnu_relocator): New variable.
8471 (grub_xnu_heap_target_start): Likewise.
8472 * tests/util/grub-shell.in: Support non-pc.
8473 * util/grub-mkimage.c (image_targets): Fix multiboot target.
8474
8475 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
8478 on malloc error.
8479 (grub_bidi_logical_to_visual): Check that malloc succeded.
8480 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
8481 puts.
8482 (grub_xputs_normal): Likewise.
8483
8484 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8485
8486 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
8487 extra_dist.
8488
8489 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/efiemu/runtime/efiemu.sh: Removed.
8492
8493 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
8496
8497 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
8500 dprintf.
8501
8502 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
8503
8504 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
8505
8506 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * grub-core/normal/term.c (print_more): Fix a memory leak.
8509 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
8510 (grub_xputs_normal): Likewise.
8511
8512 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
8515 the begining of the string
8516
8517 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * grub-core/script/script.c (grub_script_parse): Free parsed on
8520 failure.
8521
8522 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
8525 on failure.
8526
8527 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
8530 return.
8531
8532 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
8535 (scroll_up): Fix a memory leak.
8536
8537 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
8540 errors.
8541
8542 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
8543
8544 Handle USB pendrives exposed as floppies.
8545
8546 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
8547 floppy.
8548 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8549 Check for partitions on all devices.
8550
8551 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8552
8553 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
8554 (readkey): Likewise.
8555
8556 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
8557
8558 Multiple variable names support to "export" command.
8559
8560 * normal/context.c (grub_cmd_export): "export" command supports
8561 multiple variable names.
8562
8563 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
8564
8565 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
8566 --target=drive output to Mach device name.
8567
8568 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
8569
8570 New Automake based build system for GRUB.
8571
8572 * ABOUT-NLS: New file.
8573 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
8574 in Makefile.util.def file.
8575 * Makefile.util.def: New file. Autogen build definitions file for
8576 GRUB host utils.
8577 * conf/Makefile.common: New file. Common variables for GRUB host
8578 utils and target modules.
8579 * conf/Makefile.extra-dist: New file. Extra files for make dist.
8580 * docs/Makefile.am: New file. Automake file for docs.
8581 * gentpl.py: New file. Python script to generate Autogen
8582 template.
8583 * grub-core/Makefile.am: New file. GRUB target modules' rules
8584 that doesn't fit in Makefile.core.def file.
8585 * grub-core/Makefile.core.def: New file. Autogen build
8586 definitions file for GRUB target modules.
8587 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
8588 specific setjmp.S file.
8589 * po/Makefile.am: New file.
8590
8591 * .bzrignore: New ignores.
8592 * INSTALL: New requirements, without Ruby.
8593 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
8594 * autogen.sh: Updated to invoke autogen as necessary.
8595 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
8596 and defines for Automake conditionals.
8597 * geninit.sh: Refactoring.
8598
8599 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
8600 necessary.
8601 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
8602 New prototype.
8603
8604 * include/grub/test.h: Fix functional test modules' naming.
8605 * grub-core/tests/example_functional_test.c: Fix test module name.
8606
8607 * util/misc.c: Hosted versions' of grub functions for libgrub.a
8608 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
8609 * util/grub-editenv.c: Likewise.
8610 * util/grub-fstest.c: Likewise.
8611 * util/grub-mkdevicemap.c: Likewise.
8612 * util/grub-mkfont.c: Likewise.
8613 * util/grub-mkimage.c: Likewise.
8614 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8615 * util/grub-probe.c: Likewise.
8616 * util/grub-script-check.c: Likewise.
8617 * util/i386/pc/grub-setup.c: Likewise.
8618 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8619
8620 * tests/util/grub-shell.in: Fix override directory path.
8621 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
8622 * util/import_gcry.py: Create Makefile.gcry.def file instead.
8623
8624 * util/lvm.c: Update #includes.
8625 * util/raid.c: Likewise.
8626 * util/resolve.c: Likewise.
8627 * grub-core/bus/emu/pci.c: Likewise.
8628 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
8629 * grub-core/lib/posix_wrap/string.h: Likewise.
8630 * grub-core/kern/emu/main.c: Likewise.
8631
8632 * grub-core/gensymlist.sh: New file. Script for generating kernel
8633 symbols file.
8634 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
8635
8636 * grub-core/gentrigtables.c: Fix unused variable warnings.
8637
8638 * Makefile.in: Removed.
8639 * conf/any-emu.rmk: Removed.
8640 * conf/common.rmk: Removed.
8641 * conf/i386-coreboot.rmk: Removed.
8642 * conf/i386-efi.rmk: Removed.
8643 * conf/i386-ieee1275.rmk: Removed.
8644 * conf/i386-multiboot.rmk: Removed.
8645 * conf/i386-pc.rmk: Removed.
8646 * conf/i386-qemu.rmk: Removed.
8647 * conf/i386.rmk: Removed.
8648 * conf/mips-yeeloong.rmk: Removed.
8649 * conf/mips.rmk: Removed.
8650 * conf/powerpc-ieee1275.rmk: Removed.
8651 * conf/sparc64-ieee1275.rmk: Removed.
8652 * conf/tests.rmk: Removed.
8653 * conf/x86-efi.rmk: Removed.
8654 * conf/x86_64-efi.rmk: Removed.
8655 * gendistlist.sh: Removed.
8656 * geninitheader.sh: Removed.
8657 * genkernsyms.sh.in: Removed.
8658 * genmk.rb: Removed.
8659 * gensymlist.sh.in: Removed.
8660 * mkinstalldirs: Removed.
8661 * boot: Moved ...
8662 * grub-core/boot: ... to here.
8663 * bus: Moved ...
8664 * grub-core/bus: ... to here.
8665 * commands: Moved ...
8666 * grub-core/commands: ... to here.
8667 * disk: Moved ...
8668 * grub-core/disk: ... to here.
8669 * efiemu: Moved ...
8670 * grub-core/efiemu: ... to here.
8671 * font: Moved ...
8672 * grub-core/font: ... to here.
8673 * fs: Moved ...
8674 * grub-core/fs: ... to here.
8675 * gencmdlist.sh: Moved ...
8676 * grub-core/gencmdlist.sh: ... to here.
8677 * genemuinit.sh: Moved ...
8678 * grub-core/genemuinit.sh: ... to here.
8679 * genemuinitheader.sh: Moved ...
8680 * grub-core/genemuinitheader.sh: ... to here.
8681 * genfslist.sh: Moved ...
8682 * grub-core/genfslist.sh: ... to here.
8683 * genhandlerlist.sh: Moved ...
8684 * grub-core/genhandlerlist.sh: ... to here.
8685 * genmoddep.awk: Moved ...
8686 * grub-core/genmoddep.awk: ... to here.
8687 * genmodsrc.sh: Moved ...
8688 * grub-core/genmodsrc.sh: ... to here.
8689 * genpartmaplist.sh: Moved ...
8690 * grub-core/genpartmaplist.sh: ... to here.
8691 * genparttoollist.sh: Moved ...
8692 * grub-core/genparttoollist.sh: ... to here.
8693 * genterminallist.sh: Moved ...
8694 * grub-core/genterminallist.sh: ... to here.
8695 * gentrigtables.c: Moved ...
8696 * grub-core/gentrigtables.c: ... to here.
8697 * genvideolist.sh: Moved ...
8698 * grub-core/genvideolist.sh: ... to here.
8699 * gettext: Moved ...
8700 * grub-core/gettext: ... to here.
8701 * gfxmenu: Moved ...
8702 * grub-core/gfxmenu: ... to here.
8703 * gnulib: Moved ...
8704 * grub-core/gnulib: ... to here.
8705 * hello: Moved ...
8706 * grub-core/hello: ... to here.
8707 * hook: Moved ...
8708 * grub-core/hook: ... to here.
8709 * io: Moved ...
8710 * grub-core/io: ... to here.
8711 * kern: Moved ...
8712 * grub-core/kern: ... to here.
8713 * lib: Moved ...
8714 * grub-core/lib: ... to here.
8715 * loader: Moved ...
8716 * grub-core/loader: ... to here.
8717 * mmap: Moved ...
8718 * grub-core/mmap: ... to here.
8719 * normal: Moved ...
8720 * grub-core/normal: ... to here.
8721 * partmap: Moved ...
8722 * grub-core/partmap: ... to here.
8723 * parttool: Moved ...
8724 * grub-core/parttool: ... to here.
8725 * script: Moved ...
8726 * grub-core/script: ... to here.
8727 * term: Moved ...
8728 * grub-core/term: ... to here
8729 * tests/example_functional_test.c: Moved ...
8730 * grub-core/tests/example_functional_test.c: ... to here.
8731 * tests/lib/functional_test.c: Moved ...
8732 * grub-core/tests/lib/functional_test.c: ... to here.
8733 * tests/lib/test.c: Moved ...
8734 * grub-core/tests/lib/test.c: ... to here.
8735 * video: Moved ...
8736 * grub-core/video: ... to here.
8737
8738 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
8739
8740 Replace --enable-grub-emu-modules with grub-emu-lite.
8741
8742 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
8743 cache.S.
8744
8745 * include/grub/emu/misc.h (grub_emu_init): New prototype.
8746 * kern/emu/full.c: New file. For grub-emu specific initialization.
8747 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
8748 * kern/emu/main.c: Call initialization function grub_emu_init.
8749
8750 * Makefile.in: Include grub-emu-lite in install.
8751 * commands/parttool.c: Use grub_no_autoload to differentiate
8752 between grub-emu and grub-emu-lite.
8753 * include/grub/misc.h: New variable grub_no_autoload.
8754
8755 * conf/any-emu.rmk: New rules for grub-emu-lite.
8756 * configure.ac: Remove --enable-grub-emu-modules.
8757 * genmk.rb: Cleanup unnecessary rules.
8758 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
8759
8760 * normal/main.c: Don't load list files on grub-emu-lite.
8761 * util/misc.c (grub_arch_sync_caches): Removed.
8762
8763 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
8764
8765 * kern/mips/startup.S (grub_prefix): Update comment to refer to
8766 grub-mkimage rather than grub-mkelfimage.
8767 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
8768
8769 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
8772 a key after CapsLock or NumLock. It's just a qemu bug.
8773
8774 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
8777 needed by libusb wrapper.
8778
8779 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8780
8781 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
8782
8783 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
8786 --nounzip is passed.
8787
8788 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 USB hotunplugging and USB serial support.
8791
8792 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
8793 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
8794 (grub_uhci_transfer): Respect timeout and set *actual.
8795 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
8796 non-standard length.
8797 (grub_usb_device_attach): Autoload modules.
8798 (GRUB_MOD_INIT): Set grub_term_poll_usb.
8799 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
8800 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
8801 users updated.
8802 (grub_usb_add_hub): Fill nports and children.
8803 (attach_root_port): Receive hub instead of controller.
8804 All users updated. Fill hub->devices.
8805 (grub_usb_root_hub): Allocate hub->devices.
8806 (detach_device): New function.
8807 (poll_nonroot_hub): Fill children and detach devices.
8808 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
8809 actual arguments. All users updated.
8810 (grub_usb_bulk_read_extended): New function.
8811 * bus/usb/serial/common.c: New file.
8812 * bus/usb/serial/ftdi.c: Likewise.
8813 * bus/usb/serial/pl2303.c: Likewise.
8814 * commands/terminal.c (handle_command): Support wildcard.
8815 * commands/usbtest.c: Output "Unknown" instead of empty string.
8816 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
8817 (usbserial_common_mod_SOURCES): New variable.
8818 (usbserial_common_mod_CFLAGS): Likewise.
8819 (usbserial_common_mod_LDFLAGS): Likewise.
8820 (pkglib_MODULES): Add usbserial_pl2303.mod.
8821 (usbserial_pl2303_mod_SOURCES): New variable.
8822 (usbserial_pl2303_mod_CFLAGS): Likewise.
8823 (usbserial_pl2303_mod_LDFLAGS): Likewise.
8824 (pkglib_MODULES): Add usbserial_ftdi.mod.
8825 (usbserial_ftdi_mod_SOURCES): New variable.
8826 (usbserial_ftdi_mod_CFLAGS): Likewise.
8827 (usbserial_ftdi_mod_LDFLAGS): Likewise.
8828 (pkglib_MODULES): Add serial.mod.
8829 (serial_mod_SOURCES): New variable.
8830 (serial_mod_CFLAGS): Likewise.
8831 (serial_mod_LDFLAGS): Likewise.
8832 * conf/i386-pc.rmk: Likewise.
8833 * conf/mips-yeeloong.rmk: Likewise.
8834 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
8835 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8836 * disk/usbms.c (first_available_slot): New variable.
8837 (grub_usbms_attach): Don't reuse free slots due to potential cache
8838 problems.
8839 * include/grub/serial.h: Moved to ..
8840 * include/grub/ns8250.h: ...this.
8841 * include/grub/serial.h: New file.
8842 * include/grub/term.h (grub_term_poll_usb): New variable.
8843 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
8844 readkey. All users updated.
8845 (grub_terminfo_output_state): Pass term to put.
8846 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
8847 (grub_usb_controller_dev): Add timeout and actual arguments to
8848 transfer. All users updated.
8849 (grub_usb_interface): New field detach_data.
8850 (grub_usb_device): New fields children and nports.
8851 (grub_usb_ep_type_t): New type.
8852 (grub_usb_get_ep_type): New function.
8853 (grub_usb_bulk_read_extended): Likewise.
8854 * include/grub/usbdesc.h (grub_usb_desc): New type.
8855 * include/grub/usbserial.h: New file.
8856 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
8857 * kern/term.c (grub_term_poll_usb): New variable.
8858 (grub_getkey): Call grub_term_poll_usb if set.
8859 (grub_checkkey): Likewise.
8860 (grub_getkeystatus): Likewise.
8861 * term/serial.c: Moved controller-specific parts to ...
8862 * term/ns8250.c: ... here.
8863 * term/serial.c: Mostly rewritten.
8864 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
8865 according to spec.
8866
8867 2010-08-20 Robert Millan <rmh@gnu.org>
8868
8869 Make kFreeBSD code more generic to support ext2fs as root, ufs as
8870 a separate module and maybe other interesting combinations.
8871
8872 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
8873 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
8874 (kfreebsd_entry): Add generic filesystem module load routine.
8875 Map GRUB `ext2' to kFreeBSD `ext2fs'.
8876
8877 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
8878
8879 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
8880 "numcenter" (I misunderstood the purpose of this entry).
8881 * docs/grub.texi (sendkey): Likewise.
8882
8883 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
8884
8885 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
8886 status flag options; simply omitting the option is equivalent and
8887 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
8888 (keysym_table): Rename "num5numlock" to "numlock".
8889 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
8890 can uniformly say that only the last of multiple `sendkey'
8891 invocations has any effect.
8892 * docs/grub.texi (sendkey): New section.
8893
8894 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
8895
8896 * commands/i386/pc/sendkey.c (options): Fix three typos.
8897
8898 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
8899
8900 Implement sendkey support.
8901
8902 * commands/i386/pc/sendkey.c: New file.
8903 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
8904 (sendkey_mod_SOURCES): New variable.
8905 (sendkey_mod_CFLAGS): Likewise.
8906 (sendkey_mod_LDFLAGS): Likewise.
8907
8908 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
8909
8910 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
8911 fix warnings from Autoconf.
8912
8913 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
8914
8915 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
8916 to avoid false positives with some assemblers that output things
8917 like "someprefix_func" as part of their output.
8918
8919 2010-08-15 Robert Millan <rmh@gnu.org>
8920
8921 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
8922 errors.
8923 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
8924 grub_get_libzfs_handle() errors.
8925
8926 2010-08-14 Robert Millan <rmh@gnu.org>
8927
8928 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
8929 filesystem is not ZFS.
8930
8931 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8932
8933 Fix for misspelled color names defaulting to black/black (bug
8934 reported by Doug Nazar)
8935
8936 * include/grub/normal.h (grub_parse_color_name_pair): Add return
8937 status to prototype.
8938 * normal/color.c (grub_parse_color_name_pair): Return failure
8939 status.
8940 (grub_env_write_color_normal): Ignore bad color names.
8941 (grub_env_write_color_highlight): Likewise.
8942 * normal/main.c (GRUB_MOD_INIT): Set default color names.
8943
8944 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8945
8946 "shift" command support to GRUB script.
8947
8948 * include/grub/script_sh.h (grub_script_shift): New prototype.
8949 * script/execute.c (grub_script_shift): New function.
8950 * script/main.c (grub_script_init): Register shift command.
8951 (grub_script_fini): Unregister shift command.
8952 * util/grub-script-check.c (grub_script_cmd_shift): New function.
8953
8954 * tests/grub_script_shift.in: New testcase.
8955 * conf/tests.rmk: Rules for new testcase.
8956
8957 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8958
8959 "continue" command support to GRUB script.
8960
8961 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
8962 (grub_script_break): Continue support.
8963 * script/main.c (grub_script_init): Register continue command.
8964 (grub_script_fini): Unregister continue command.
8965
8966 * tests/grub_script_continue.in: New testcase.
8967 * conf/tests.rmk: Rules for new testcase.
8968
8969 2010-08-12 BVK Chaitanya <bvk@dbook>
8970
8971 "break" command support to GRUB script.
8972
8973 * conf/common.rmk: Rule updates to grub-script-check.
8974 * include/grub/misc.h (grub_min): New function.
8975 * include/grub/script_sh.h (grub_script_init): New prototype.
8976 (grub_script_fini): New prototype.
8977 (grub_script_break): New prototype.
8978 * script/main.c (grub_script_init): New function.
8979 (grub_script_fini): New function.
8980 * script/execute.c (grub_script_break): New function.
8981 * normal/main.c: Calls to grub_script_{init,fini}.
8982 * util/grub-script-check.c (grub_script_break): New function.
8983
8984 * tests/grub_script_break.in: New testcase.
8985 * conf/tests.rmk: Rules for new test case.
8986
8987 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8988
8989 Function parameters support to GRUB script.
8990
8991 * script/yylex.l (VARIABLE): Regular expression update.
8992 * script/function.c (grub_script_function_call): Moved ...
8993 * script/execute.c (grub_script_function_call): ... to here.
8994 (grub_script_execute_arglist_to_argv): Removed.
8995 (grub_script_arglist_to_argv): New function.
8996 * script/argv.c: New file.
8997 (grub_script_argv_free): New function.
8998 (grub_script_argv_next): Likewise.
8999 (grub_script_argv_append): Likewise.
9000 (grub_script_argv_split_append): Likewise.
9001 * include/grub/script_sh.h (grub_script_argv): New struct.
9002 (grub_script_argv_free): New function.
9003 (grub_script_argv_next): Likewise.
9004 (grub_script_argv_append): Likewise.
9005 (grub_script_argv_split_append): Likewise.
9006
9007 * conf/common.rmk (normal.mod): New source script/argv.c.
9008
9009 * tests/grub_script_echo1.in: More tests.
9010 * tests/grub_script_vars1.in: Likewise.
9011 * tests/grub_script_functions.in: New test case.
9012 * conf/tests.rmk: Rules for new testcase.
9013
9014 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9015
9016 Remove grub_script_cmdblock struct.
9017
9018 * include/grub/script_sh.h: Remove grub_script_cmdblock.
9019 * script/parser.y: Likewise.
9020 * script/execute.c: Rename cmdblock suffix to cmdlist.
9021 * script/script.c: Likewise.
9022 * util/grub-script-check.c: Likewise.
9023
9024 2010-08-11 Yves Blusseau <blusseau@zetam.org>
9025
9026 * .bzrignore: add grub-macho2img
9027
9028 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
9031
9032 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 Remove the dump of sm712 initialisation sequence.
9035
9036 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
9037 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
9038 (GRUB_VGA_IO_MISC_WRITE): Likewise.
9039 (GRUB_VGA_CR_*): Added many registers.
9040 (GRUB_VGA_SR_*): Likewise.
9041 (GRUB_VGA_GR_*): Likewise.
9042 (grub_vga_write_arx): New function.
9043 (grub_video_hw_config): New struct.
9044 (grub_vga_set_geometry): New function.
9045 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
9046 GRUB_PCI_CLASS_SUBCLASS_VGA.
9047 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
9048 * video/sm712.c (grub_sm712_write_reg): New function
9049 (grub_sm712_read_reg): Likewise.
9050 (grub_sm712_sr_write): Likewise.
9051 (grub_sm712_gr_write): Likewise.
9052 (grub_sm712_cr_write): Likewise.
9053 (grub_sm712_write_arx): Likewise.
9054 (grub_sm712_cr_shadow_write): Likewise.
9055 (grub_sm712_write_dda_lookup): Likewise.
9056 (grub_video_sm712_setup): Initialise the video rather then
9057 blindly replay the dump.
9058 (main) [TEST]: Add a routine to be able to compile as standalone for
9059 tests.
9060 * video/sm712_init.c (sm712_init): Removed.
9061 (sm712_sr_seq1): New array.
9062 (sm712_sr_seq2): Likewise.
9063
9064 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * include/grub/vga.h: Add missing grub/pci.h include.
9067
9068 2010-08-10 Yves Blusseau <blusseau@zetam.org>
9069
9070 * util/grub-macho2img.c (main): fix typo
9071
9072 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
9075 (grub_vga_gr_read): Likewise.
9076 (grub_vga_cr_write): Likewise.
9077 (grub_vga_cr_read): Likewise.
9078 (grub_vga_sr_write): Likewise.
9079 (grub_vga_sr_read): Likewise.
9080 (grub_vga_palette_read): Likewise.
9081 (grub_vga_palette_write): Likewise.
9082 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
9083 (grub_sm712_sr_read): New function.
9084 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
9085 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
9086
9087 2010-08-09 Robert Millan <rmh@gnu.org>
9088
9089 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
9090 out unused variables on non-ZFS build.
9091
9092 2010-08-08 Robert Millan <rmh@gnu.org>
9093
9094 Fix path generation for sub-filesystems in ZFS.
9095
9096 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
9097 missing slash.
9098
9099 2010-08-08 Robert Millan <rmh@gnu.org>
9100
9101 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
9102
9103 2010-08-08 Robert Millan <rmh@gnu.org>
9104
9105 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
9106 exist, issue a proper error message (rely on `ls' for translated
9107 strings).
9108
9109 2010-08-08 Robert Millan <rmh@gnu.org>
9110
9111 Fix grub-probe invocation.
9112
9113 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
9114
9115 2010-08-04 Robert Millan <rmh@gnu.org>
9116
9117 * configure.ac: Remove checks for getfsstat() and getmntany().
9118 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
9119 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
9120 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
9121 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
9122 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
9123 function.
9124 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
9125 via find_mount_point_from_dir() and getfsstat() / getmntany().
9126
9127 2010-08-04 Robert Millan <rmh@gnu.org>
9128
9129 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9130 (grub_find_zpool_from_mount_point): Merge into ...
9131 (grub_find_zpool_from_dir): ... this.
9132 * kern/emu/misc.c: Likewise.
9133
9134 * kern/emu/misc.c
9135 (grub_make_system_path_relative_to_its_root): Replace
9136 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
9137 with grub_find_zpool_from_dir().
9138 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
9139
9140 2010-08-04 Robert Millan <rmh@gnu.org>
9141
9142 Support OpenSolaris in ZFS device resolution.
9143
9144 * configure.ac: Check for getmntany().
9145 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
9146 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
9147 support.
9148
9149 2010-08-03 Robert Millan <rmh@gnu.org>
9150
9151 Fix grub-emu build.
9152
9153 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
9154 * include/grub/emu/misc.h: ... here.
9155
9156 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
9157 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
9158
9159 * util/misc.c: Remove `<grub/util/libzfs.h>'.
9160 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
9161 (grub_get_libzfs_handle): Move to ...
9162 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
9163 (grub_get_libzfs_handle): ... here.
9164
9165 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
9166
9167 * script/execute.c (grub_script_execute_cmdline): Check for NULL
9168 as command name case.
9169
9170 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
9171
9172 * disk/raid.c (insert_array): Select unique numbers for named arrays
9173 as well, for use as keys in the disk cache.
9174
9175 2010-08-01 Robert Millan <rmh@gnu.org>
9176
9177 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
9178 kFreeBSD device name, except on ZFS where the filesystem label is
9179 used.
9180 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
9181 `/boot/zfs/zpool.cache'.
9182 Set mountfrom kernel variable using ${kfreebsd_device}.
9183
9184 2010-08-01 Robert Millan <rmh@gnu.org>
9185
9186 Make it even harder to use uninitialized `libzfs_handle' (and
9187 make the interface a bit simpler).
9188
9189 * include/grub/util/misc.h (grub_util_init_libzfs)
9190 (libzfs_handle): Remove.
9191 (grub_get_libzfs_handle): New prototype.
9192
9193 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
9194 attribute.
9195 (grub_util_init_libzfs): Remove.
9196 (grub_get_libzfs_handle): New function.
9197
9198 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
9199 grub_get_libzfs_handle() to obtain a libzfs handle instead of
9200 accessing `libzfs_handle' directly.
9201
9202 2010-08-01 Robert Millan <rmh@gnu.org>
9203
9204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9205 (grub_find_zpool_from_mount_point): New function prototypes.
9206
9207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9209
9210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9212 `static' attribute.
9213
9214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9215 finding zpool from mount point into ...
9216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9217
9218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9219 requested path is part of a ZFS pool, use
9220 grub_find_zpool_from_mount_point() to detect its filesystem name,
9221 and generate a path with `/fsname@path' syntax.
9222
9223 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9224
9225 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
9226 (void) rather than () so that this is a proper prototype.
9227
9228 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
9231
9232 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
9235 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
9236
9237 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9238
9239 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
9240
9241 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9242
9243 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
9244
9245 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9246
9247 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
9248 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
9249 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
9250 disable gfxpayload.
9251 (Shell-like scripting): Add real content.
9252 (Serial terminal): Suggest `terminal_input serial; terminal_output
9253 serial' rather than putting the two commands on separate lines,
9254 since console input will be inoperative after the first command.
9255 (menuentry): Document --class, --users, and --hotkey options.
9256 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
9257 Vladimir Serbinenko).
9258
9259 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9260 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9261
9262 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
9263
9264 2010-08-01 Robert Millan <rmh@gnu.org>
9265
9266 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9267 (grub_find_zpool_from_mount_point): New function prototypes.
9268
9269 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9270 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9271
9272 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9273 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9274 `static' attribute.
9275
9276 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9277 finding zpool from mount point into ...
9278 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9279
9280 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9281 requested path is part of a ZFS pool, use
9282 grub_find_zpool_from_mount_point() to detect its filesystem name,
9283 and generate a path with `/fsname@path' syntax.
9284
9285 2010-08-01 Robert Millan <rmh@gnu.org>
9286
9287 Prevent accidental use of uninitialized libzfs_handle.
9288
9289 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
9290 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
9291 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
9292
9293 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9294
9295 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
9296 util/grub.d/10_linux.in). Fixes Debian bug #591093.
9297
9298 2010-08-01 Robert Millan <rmh@gnu.org>
9299
9300 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
9301
9302 2010-07-31 Robert Millan <rmh@gnu.org>
9303
9304 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
9305
9306 2010-07-31 Robert Millan <rmh@gnu.org>
9307
9308 * kern/emu/misc.c: Add missing license header.
9309
9310 2010-07-31 Robert Millan <rmh@gnu.org>
9311
9312 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
9313
9314 * include/grub/util/libnvpair.h: Include `<config.h>'.
9315 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
9316 declaring libnvpair prototypes ourselves.
9317 * include/grub/util/libzfs.h: Include `<config.h>'.
9318 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
9319 declaring libzfs prototypes ourselves.
9320
9321 (libzfs_handle): Moved to ...
9322 * include/grub/util/misc.h (libzfs_handle): ... here.
9323 Include `<grub/util/libzfs.h>'.
9324
9325 2010-07-30 Robert Millan <rmh@gnu.org>
9326
9327 * include/grub/emu/misc.h: Add missing license header.
9328
9329 2010-07-30 Robert Millan <rmh@gnu.org>
9330
9331 Enable `grub-probe -t device' resolution on ZFS.
9332
9333 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
9334 * include/grub/util/libnvpair.h: New file.
9335 * include/grub/util/libzfs.h: New file.
9336
9337 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
9338 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
9339 `<grub/util/libnvpair.h>'.
9340 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
9341
9342 (find_mount_point_from_dir): New static function.
9343 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
9344 function.
9345 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
9346 find_root_device_from_libzfs() before ressorting to find_root_device().
9347
9348 * include/grub/util/misc.h (grub_util_init_libzfs): New function
9349 prototype.
9350 * util/misc.c: Include `<grub/util/libzfs.h>'.
9351 (grub_util_init_libzfs): New function.
9352 [HAVE_LIBZFS] (libzfs_handle): New global variable.
9353 [HAVE_LIBZFS] (fini_libzfs): New static function.
9354 (grub_util_init_libzfs): New function.
9355 * util/grub-probe.c (main): Call grub_util_init_libzfs().
9356
9357 2010-07-30 Robert Millan <rmh@gnu.org>
9358
9359 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
9360 (xmalloc, xrealloc, xstrdup, xasprintf): Add
9361 `warn_unused_result' attribute.
9362 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
9363 (grub_xasprintf, grub_xvasprintf): Likewise.
9364 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
9365
9366 2010-07-29 Robert Millan <rmh@gnu.org>
9367
9368 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
9369 (probe): Handle `PRINT_FS_LABEL'.
9370 (main): Handle `-t fs_label'.
9371
9372 2010-07-29 Robert Millan <rmh@gnu.org>
9373
9374 * configure.ac: Remove grub-mkisofs checks.
9375
9376 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * util/ieee1275/grub-install.in: Don't use empty grub_device.
9379 Reported by: Lennart Sorensen.
9380
9381 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
9384 prior to terminal_input/terminal_output separation. It's been over 1.5
9385 years and those versions weren't widely deployed.
9386
9387 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
9388
9389 * disk/raid.c (insert_array): Don't count named arrays when looking
9390 for unused array numbers.
9391 Reported and tested by: Michael Guntsche.
9392
9393 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9394
9395 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
9396 implementation of this so that grub-emu links again, with a note
9397 that this should support hotplugging in the future.
9398
9399 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9400
9401 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9402
9403 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9404
9405 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
9406 handle on failure.
9407 (grub_loopback_close): Remove empty function.
9408 (grub_loopback_dev): Remove close method.
9409
9410 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9411
9412 Disable EFI cursor when the EFI console becomes inactive.
9413
9414 * term/efi/console.c (grub_efi_console_init): New function.
9415 (grub_efi_console_fini): New function.
9416 (grub_console_term_output): Register init and fini methods.
9417
9418 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * tests/util/grub-shell-tester.in: Remove bashism and declare as
9421 sh script.
9422
9423 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * disk/loopback.c (grub_loopback): Replace filename with file.
9426 (delete_loopback): Handle new semantics.
9427 (grub_cmd_loopback): Likewise.
9428 (grub_loopback_iterate): Likewise.
9429 (grub_loopback_close): Likewise.
9430
9431 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
9434 with -p "".
9435 Reported by: Tito Keitel.
9436
9437 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * docs/grub.texi (Naming convention): Document new naming convention.
9440
9441 2010-07-20 Vadim Solomin <vadic052@gmail.com>
9442 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9443
9444 Generate device.map in something closer to the old ordering.
9445
9446 * util/deviceiter.c (struct device): New declaration.
9447 (compare_file_names): Rename to ...
9448 (compare_devices): ... this. Sort by kernel name in preference to
9449 the stable by-id name, but keep the latter as a fallback comparison.
9450 Update header comment.
9451 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
9452 of `struct device' rather than of plain file names.
9453
9454 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
9455
9456 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
9457 on i386.
9458
9459 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9460
9461 * commands/acpi.c (setup_common_tables): Use sizeof instead of
9462 hardcoding size.
9463 (setv1table): Likewise.
9464
9465 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9466
9467 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
9468 removing the homehost if present.
9469 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
9470 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
9471 removing the homehost if present.
9472 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
9473 if possible.
9474 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
9475
9476 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
9477 parameter. Set its pointer target to 0.
9478 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
9479 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
9480 `data_offset' value from the superblock for 1.x metadata.
9481 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
9482 data on the device.
9483 (insert_array): Record the start sector of data on the device.
9484 (grub_raid_register): Pass start_sector parameters to
9485 grub_raid_list->detect and insert_array.
9486 * include/grub/raid.h (struct grub_raid_array): Add start_sector
9487 member.
9488 (struct grub_raid): Add start_sector parameter to `detect'.
9489
9490 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
9491 __attribute__ ((packed)), leaving a comment.
9492 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
9493 (grub_mdraid_detect_09): ... here and ...
9494 (grub_mdraid_detect_1x): ... here.
9495
9496 2010-07-20 Peter Henn <peter.henn@web.de>
9497
9498 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
9499 chunk size and disk size, which are already given as sector counts
9500 as distinct from the 0.90 units. Fetch the correct device number
9501 from the role table instead of using the table index.
9502
9503 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
9504
9505 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
9506 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
9507 (WriteMostly1): New macro.
9508 Set array->name to NULL for metadata format 0.90. Add support for
9509 metadata 1.x. Fix some comments.
9510 * disk/raid.c (): Add support for name based RAID arrays. Fix a
9511 few comments.
9512 * util/getroot.c (grub_util_get_grub_dev): Add support for
9513 /dev/md/name style devices.
9514
9515 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9516
9517 * .bzrignore: Ignore 20_linux_xen.
9518
9519 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
9520
9521 * util/import_unicode.py: Remove unnecessary imports.
9522
9523 2010-07-17 Aleš Nesrsta <starous@volny.cz>
9524
9525 Hotplugging and USB hub support.
9526
9527 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
9528 (grub_ohci): Likewise.
9529 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
9530 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
9531 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
9532 (GRUB_OHCI_CTRL_EDS): Likewise.
9533 (GRUB_OHCI_BULK_EDS): Likewise.
9534 (GRUB_OHCI_TDS): Likewise.
9535 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
9536 (grub_ohci_ed_phys2virt): New function.
9537 (grub_ohci_virt_to_phys): Likewise.
9538 (grub_ohci_td_phys2virt): Likewise.
9539 (grub_ohci_td_virt2phys): Likewise.
9540 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
9541 attachment.
9542 (grub_ohci_find_ed): New function.
9543 (grub_ohci_alloc_td): Likewise.
9544 (grub_ohci_free_td): Likewise.
9545 (grub_ohci_free_tds): Likewise.
9546 (grub_ohci_transfer): Use previously allocated memory.
9547 (grub_ohci_portstatus): Reset status changed bit.
9548 (grub_ohci_detect_dev): Supply status changed.
9549 (grub_ohci_fini_hw): Free memory.
9550 (grub_ohci_restore_hw): Reallocate memory.
9551 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
9552 Reset status change.
9553 (grub_uhci_detect_dev): Supply status_change.
9554 * bus/usb/usb.c (attach_hooks): New var.
9555 (grub_usb_device_attach): New function.
9556 (grub_usb_register_attach_hook_class): Likewise.
9557 (grub_usb_unregister_attach_hook_class): Likewise.
9558 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
9559 (grub_usb_add_hub): Reset connection changed bit.
9560 (attach_root_port): New function.
9561 (grub_usb_root_hub): Likewise.
9562 (poll_nonroot_hub): Likewise.
9563 (grub_usb_poll_devices): Likewise.
9564 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
9565 * disk/usbms.c (grub_usbms_open): Use device hooks.
9566 (grub_usbms_iterate) :Poll devices.
9567 (grub_usbms_finddevs): Split into ...
9568 (grub_usbms_attach): ... this ...
9569 (grub_usbms_attach): ... and this.
9570 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
9571 in detect_dev.
9572 (grub_usb_interface): New fields attached and detach_hook.
9573 (grub_usb_attach_hook_class): New type.
9574 (grub_usb_attach_desc): New struct.
9575 (grub_usb_register_attach_hook_class): New function.
9576 (grub_usb_unregister_attach_hook_class): Likewise.
9577 (grub_usb_poll_devices): Likewise.
9578 (grub_usb_device_attach): Likewise.
9579 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
9580 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
9581
9582 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
9585 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
9586 delta determination style. Works with most NetBSD partitions too.
9587
9588 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
9591 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
9592
9593 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
9596
9597 2010-07-14 Anton Blanchard <anton@samba.org>
9598
9599 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
9600 ET_DYN files.
9601
9602 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9603
9604 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
9605
9606 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9607
9608 * kern/partition.c (grub_partition_check_containment): New function to
9609 check that a partition is physically contained in a parent. Since
9610 offsets are relative (and non-negative), this reduces to checking that
9611 the partition ends before its parent.
9612 (grub_partition_map_probe): Discard out-of-range sub-partitions.
9613 (grub_partition_iterate): Likewise.
9614 * include/grub/partition.h (grub_partition_map): Slightly more detailed
9615 comments.
9616 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
9617 partitions that start before their parent, and add debug printfs.
9618
9619 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
9620
9621 * Makefile.in (.SUFFIX): Spell correctly, as ...
9622 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
9623 bare module name without `.mod', e.g. `test') tried to invoke a
9624 Modula-2 compiler.
9625
9626 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
9627
9628 * README: Point to the Info manual.
9629
9630 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
9631
9632 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
9633 2nd superblock position from partition size.
9634
9635 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
9636
9637 * Makefile.in (MAINTAINER_CLEANFILES): Remove
9638 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
9639 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
9640 outputs.
9641
9642 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 Restructure SCSI .id handling.
9645 Reported and tested by: Aleš Nesrsta.
9646
9647 * disk/ata.c (grub_atapi_close): Removed. All users updated.
9648 (grub_atapi_dev): Changed .name to "ata". New field .id.
9649 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
9650 (grub_usbms_dev): New field .id.
9651 * disk/scsi.c (grub_scsi_iterate): Generate name.
9652 (grub_scsi_open): Parse name.
9653 * include/grub/scsi.h (grub_make_scsi_id): New function.
9654 (grub_scsi_dev): Change iterate and open to number instead of naming
9655 busses. All users updated.
9656 (grub_scsi): Remove name. Add .bus.
9657
9658 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * commands/help.c (grub_cmd_help): Fix a typo.
9661
9662 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
9665 Reported and tested by: Colin Watson.
9666
9667 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
9670 in this context.
9671
9672 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
9675
9676 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
9677
9678 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
9679 indentation.
9680
9681 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9682
9683 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
9684 and disk/raid6_recover.c.
9685 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9686 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
9687
9688 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9689
9690 * term/gfxterm.c (repaint_schedulded): Rename to ...
9691 (repaint_scheduled): ... this. Update all callers.
9692 (repaint_was_schedulded): Rename to ...
9693 (repaint_was_scheduled): ... this. Update all callers.
9694
9695 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9696
9697 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
9698 which we expect to be handled by upper layers.
9699
9700 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
9701
9702 * bus/usb/usbhub.c: #include time.h header.
9703
9704 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9705
9706 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
9707 entry_name also for entries without stat blocks (e.g. ".."); fixes
9708 corruption of the first entry in a directory.
9709
9710 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
9711
9712 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
9713 after setting gfxterm as the active terminal. GRUB_BACKGROUND
9714 doesn't work otherwise.
9715
9716 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9717
9718 * docs/grub.texi (Features): Update list of supported file systems.
9719 (GNU/Linux): Update for GRUB 2.
9720 (Serial terminal): Remove mention of --disable-serial, which was a
9721 GRUB Legacy configure option. Update instructions to use
9722 `terminal_input' and `terminal_output' rather than `terminal'.
9723 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
9724 configuration' and `Installing GRUB using grub-install'.
9725 (Menu entry editor): Update for GRUB 2.
9726 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
9727 Document new -a, -u, and -v options.
9728 (initrd): New section.
9729 (initrd16): New section.
9730 (linux): New section.
9731 (linux16): New section.
9732 (search): The `var' argument to `--set' is optional.
9733 (GRUB only offers a rescue shell): Go into a little more detail on
9734 drive ordering.
9735
9736 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9737
9738 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
9739
9740 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9741
9742 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
9743 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
9744
9745 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
9746
9747 * util/i386/pc/grub-setup.c (setup): Rename prefix to
9748 install_prefix, in line with install_dos_part and install_bsd_part.
9749 Add new prefix variable, which is copied to install_prefix after
9750 comparing core.img in memory with the one read from disk in the
9751 no-embedding case, and use that rather than overwriting
9752 install_prefix immediately when installing to a partition.
9753 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
9754 Bicakci.
9755
9756 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9757
9758 * configure.ac: Avoid == in test command, it's not portable.
9759 * util/grub.d/30_os-prober.in: Likewise.
9760
9761 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
9762
9763 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
9764
9765 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9766
9767 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
9768 multiple (top-level) partmaps.
9769
9770 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * util/i386/efi/grub-install.in: Don't use empty grub_device.
9773 Reported by: Tino Keitel.
9774
9775 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 Bidi and diacritics support.
9778
9779 * Makefile.in (widthspec.bin): New target.
9780 (widthspec.h): Likewise.
9781 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
9782 * autogen.sh: Generate unidata.c.
9783 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
9784 * commands/ls.c (grub_ls_list_devices): Likewise.
9785 (grub_ls_list_files): Likewise.
9786 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
9787 (grub_mini_cmd_lsmod): Likewise.
9788 * commands/read.c: Likewise.
9789 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
9790 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
9791 * lib/arg.c (grub_arg_show_help): Likewise.
9792 * lib/crypto.c (grub_password_get): Likewise.
9793 * normal/auth.c (grub_username_get): Likewise.
9794 * normal/misc.c (grub_normal_print_device_info): Likewise.
9795 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
9796 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
9797 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
9798 (normal/charset.c_DEPENDENCIES): New variable.
9799 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
9800 (pkglib_MODULES): Remove charset.mod.
9801 (charset_mod_SOURCES): Removed.
9802 (charset_mod_CFLAGS): Likewise.
9803 (charset_mod_LDFLAGS): Likewise.
9804 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
9805 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
9806 and term/tparm.c.
9807 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9808 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9809 (kernel_img_HEADERS): Add terminfo.h.
9810 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
9811 Fill ->font. Reverse ascii bitmaps.
9812 (grub_font_get_xheight): New function.
9813 * font/font.c (grub_font_get_string_width): Moved from here ...
9814 * gfxmenu/font.c (grub_font_get_string_width): ... here.
9815 * font/font.c (grub_font_draw_string): Moved from here ...
9816 * gfxmenu/font.c (grub_font_draw_string): ... here.
9817 * font/font.c (grub_font_dup_glyph): New function.
9818 (grub_font_blit_glyph): Likewise.
9819 (grub_font_blit_glyph_mirror): Likewise.
9820 (blit_comb): Likewise.
9821 (grub_font_construct_dry_run): Likewise.
9822 (grub_font_get_constructed_device_width): Likewise.
9823 (grub_font_construct_glyph): Likewise.
9824 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
9825 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
9826 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
9827 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
9828 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
9829 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
9830 (grub_font_get_xheight): New proto.
9831 (grub_font_get_constructed_device_width): Likewise.
9832 (grub_font_construct_glyph): Likewise.
9833 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
9834 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
9835 * include/grub/font.h (grub_font_draw_string): Moved from here ...
9836 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
9837 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
9838 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
9839 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
9840 (grub_console_getcharwidth): Likewise.
9841 * include/grub/misc.h (grub_xputs): New proto.
9842 (grub_puts): Inlined.
9843 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
9844 (grub_normal_get_line_counter): Removed.
9845 (grub_install_newline_hook): Likewise.
9846 (grub_normal_get_char_counter): New proto.
9847 (grub_normal_reset_more): Likewise.
9848 (grub_xputs_normal): Likewise.
9849 * include/grub/powerpc/ieee1275/console.h: Removed.
9850 * include/grub/sparc64/ieee1275/console.h: Likewise.
9851 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
9852 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
9853 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
9854 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
9855 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
9856 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
9857 (grub_term_input): Pass reference to self. All users updated.
9858 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
9859 Pass reference to self. New fields normal_color, highlight_color and
9860 data. All users updated.
9861 (grub_putchar): Removed.
9862 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
9863 (grub_unicode_estimate_width): New function.
9864 (grub_term_getcharwidth): Add defaults.
9865 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
9866 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
9867 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
9868 (grub_cls): Remove EXPORT_FUNC.
9869 (grub_setcolorstate): Inline.
9870 (grub_newline_hook): Removed.
9871 * include/grub/terminfo.h: Rewritten. All users updated.
9872 * include/grub/unicode.h: New file.
9873 * include/grub/video.h (grub_video_signed_rect): New type.
9874 * kern/emu/console.c (grub_console_highlight_color): Removed.
9875 (grub_console_normal_color): Likewise.
9876 (grub_console_standard_color): Made static.
9877 (grub_ncurses_putchar): Remove mapping.
9878 (grub_ncurses_getcharwidth): Removed.
9879 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
9880 (grub_ncurses_setcolor): Removed.
9881 (grub_ncurses_getcolor): Likewise.
9882 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
9883 (grub_console_putchar): ... this.
9884 (grub_console_putchar): Handle argument difference.
9885 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
9886 console_init_early and console_init_lately.
9887 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
9888 * kern/misc.c (grub_puts): Removed.
9889 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
9890 (grub_vsnprintf_real): Remove str = NULL support.
9891 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
9892 * normal/charset.c (grub_utf8_to_ucs4): ... here.
9893 * kern/term.c (grub_putcode): Renamed to ...
9894 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
9895 (grub_putchar): Removed.
9896 (grub_xputs_dumb): New function.
9897 (grub_xputs): New variable.
9898 * lib/charset.c: Move from here ...
9899 * normal/charset.c: ... to here.
9900 (grub_ucs4_to_utf8): New function.
9901 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
9902 (join_types): New variable.
9903 (unpack_join): New function.
9904 (bidi_types): New variable.
9905 (unpack_bidi): New function.
9906 (get_bidi_type): Likewise.
9907 (get_join_type): Likewise.
9908 (is_mirrored): Likewise.
9909 (grub_unicode_get_comb_type): Likewise.
9910 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
9911 (is_type_after): Likewise.
9912 (grub_unicode_aglomerate_comb): Likewise.
9913 (bidi_line_wrap): Likewise.
9914 (grub_bidi_line_logical_to_visual): Likewise.
9915 (grub_bidi_logical_to_visual): Likewise.
9916 (grub_unicode_mirror_code): Likewise.
9917 (grub_unicode_shape_code): Likewise.
9918 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
9919 Don't use grub_putchar.
9920 * normal/main.c (grub_normal_init_page): Use grub_putcode.
9921 (grub_normal_reader_init): Likewise.
9922 (grub_xputs_saved): New variable.
9923 (GRUB_MOD_INIT): Set grub_xputs.
9924 (GRUB_MOD_FINI): Restore grub_xputs.
9925 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
9926 (menu_init): Avoid printing gfxmenu error.
9927 (show_menu): Use grub_normal_get_char_counter.
9928 * normal/menu_entry.c (update_screen): Fix out-of-array.
9929 (complete): Avoid NULL dereferencing.
9930 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
9931 * normal/menu_text.c (print_spaces): Removed.
9932 (grub_print_ucs4): Likewise.
9933 (grub_print_message_indented): Use grub_print_ucs4.
9934 (print_message): Use grub_putcode.
9935 (print_entry): Hanlde diacritics.
9936 * normal/term.c (term_state): New type.
9937 (grub_more_lines): Removed.
9938 (term_states): New variable.
9939 (grub_normal_line_counter): Renamed to ..
9940 (grub_normal_char_counter): ...this. All users updated.
9941 (grub_normal_get_line_counter): Renamed to ...
9942 (grub_normal_get_char_counter): ... this.
9943 (grub_normal_reset_more): New function.
9944 (process_newline): Removed.
9945 (print_more): New function.
9946 (grub_install_newline_hook): Removed.
9947 (map_code): New function.
9948 (grub_puts_terminal): Use grub_print_ucs4.
9949 (putglyph): New function.
9950 (putcode_real): Likewise.
9951 (grub_putcode): Use putcode_real.
9952 (get_maxwidth): New function.
9953 (get_startwidth): Likewise.
9954 (print_ucs4_terminal): Likewise.
9955 (find_term_state): Likewise.
9956 (put_glyphs_terminal): Likewise.
9957 (print_backlog): Likewise.
9958 (print_ucs4_real): Likewise.
9959 (grub_print_ucs4): Likewise.
9960 (grub_xputs_normal): Likewise.
9961 * term/efi/console.c (grub_console_putchar): Output diacritics.
9962 (grub_console_getcharwidth): Removed.
9963 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9964 * term/gfxterm.c (clear_char): Free chars.
9965 (scroll_up): Avoid leaking memory.
9966 (grub_gfxterm_putchar): Support diacritics.
9967 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9968 * term/i386/pc/console.c (grub_console_term_output): Declare as
9969 GRUB_TERM_CODE_TYPE_VGA.
9970 * term/i386/pc/vga.c (grub_vga_term): Declare as
9971 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
9972 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
9973 GRUB_TERM_CODE_TYPE_VGA.
9974 * term/i386/vga_common.c (map_char): Removed.
9975 (grub_console_putchar): Likewise.
9976 (grub_console_getcharwidth): Likewise.
9977 * term/ieee1275/ofconsole.c: Simplify using terminfo.
9978 (colors): Reordered to match terminfo.
9979 (grub_ofconsole_normal_color): Removed.
9980 (grub_ofconsole_writeesc): Likewise.
9981 (grub_ofconsole_highlight_color): Likewise.
9982 (grub_ofconsole_getcharwidth): Likewise.
9983 (grub_ofconsole_setcolorstate): Likewise.
9984 (grub_ofconsole_setcolor): Likewise.
9985 (grub_ofconsole_getcolor): Likewise.
9986 (grub_ofconsole_readkey): Renamed to ...
9987 (readkey): ... this. Remove escape sequence handling. Return -1 on no
9988 key.
9989 (grub_ofconsole_checkkey): Removed.
9990 (grub_ofconsole_getkey): Likewise.
9991 (grub_ofconsole_getxy): Likewise.
9992 (grub_ofconsole_gotoxy): Likewise.
9993 (grub_ofconsole_cls): Likewise.
9994 (grub_ofconsole_refresh): Likewise.
9995 (grub_ofconsole_terminfo_input): New struct.
9996 (grub_ofconsole_terminfo_output): Likewise.
9997 (grub_ofconsole_term_input): Use terminfo.
9998 (grub_ofconsole_term_output): Likewise.
9999 (grub_console_init): Split into ...
10000 (grub_console_init_early): ...this and ...
10001 (grub_console_init_lately): ...this. Use terminfo.
10002 (grub_ofconsole_putchar): Renamed to ...
10003 (put): ... this. Remove mapping.
10004 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10005 * term/serial.c: Simplify using terminfo.
10006 (xpos): Removed.
10007 (ypos): Likewise.
10008 (keep_track): Likewise.
10009 (registered): Likewise.
10010 (input_buf): Likewise.
10011 (npending): Likewise.
10012 (serial_translate_key_sequence): Likewise.
10013 (fill_input_buf): Likewise.
10014 (grub_serial_checkkey): Likewise.
10015 (grub_serial_getkey): Likewise.
10016 (grub_serial_getxy): Likewise.
10017 (grub_serial_gotoxy): Likewise.
10018 (grub_serial_putchar): Likewise.
10019 (grub_serial_cls): Likewise.
10020 (grub_serial_setcolorstate): Likewise.
10021 (grub_serial_setcursor): Likewise.
10022 (serial_hw_init): Use serial_hw_fetch.
10023 (grub_serial_terminfo_input): New variable.
10024 (grub_serial_terminfo_output): Likewise.
10025 (grub_serial_term_input): Use terminfo.
10026 (grub_serial_term_output): Likewise.
10027 * term/terminfo.c (putstr): Use put.
10028 (grub_terminfo_all_free): New function
10029 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
10030 (grub_terminfo_output_register): New function.
10031 (grub_terminfo_output_unregister): Likewise.
10032 (grub_terminfo_getxy): Likewise.
10033 (grub_terminfo_readkey): Likewise.
10034 (grub_terminfo_checkkey): Likewise.
10035 (grub_terminfo_getkey): Likewise.
10036 (grub_terminfo_input_init): Likewise.
10037 (print_terminfo): Likewise.
10038 (grub_cmd_terminfo): Handle encoding.
10039 (grub_terminfo_gotoxy): Track position.
10040 (grub_terminfo_cls): Likewise.
10041 (grub_terminfo_putchar): Likewise.
10042 (grub_terminfo_setcolorstate): Handle colors
10043 (grub_terminfo_cursor_on): This ...
10044 (grub_terminfo_cursor_off): ... and this merged into ...
10045 (grub_terminfo_setcursor): ... this.
10046 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
10047 * unicode/ArabicShaping.txt: New file (imported from Unicode).
10048 * unicode/BidiMirroring.txt: Likewise.
10049 * unicode/UnicodeData.txt: Likewise.
10050 * unicode/COPYING: Likewise.
10051 * util/grub-editenv.c (grub_putchar): Removed.
10052 (grub_xputs_real): New function.
10053 (grub_xputs): New variable.
10054 * util/grub-fstest.c (grub_putchar): Removed.
10055 (grub_xputs_real): New function.
10056 (grub_xputs): New variable.
10057 * util/grub-mkdevicemap.c (grub_putchar): Removed.
10058 (grub_xputs_real): New function.
10059 (grub_xputs): New variable.
10060 * util/grub-probe.c (grub_putchar): Removed.
10061 (grub_xputs_real): New function.
10062 (grub_xputs): New variable.
10063 * util/grub-script-check.c (grub_putchar): Removed.
10064 (grub_xputs_real): New function.
10065 (grub_xputs): New variable.
10066 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
10067 (grub_xputs_real): New function.
10068 (grub_xputs): New variable.
10069 * util/import_unicode.py: New file.
10070 * util/grub-mkfont.c (ft_errmsgs): New array.
10071 (grub_glyph_info): Make bitmap a pointer.
10072 (file_formats): New type WIDTH_SPEC.
10073 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
10074 (options): Add width-spec.
10075 (help): Likewise.
10076 (add_char): Renamed to ...
10077 (add_glyph): ... this.
10078 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
10079 (glyph_replace): New type.
10080 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
10081 (add_char): New function.
10082 (add_subst): Likewise.
10083 (process_cursive): Likewise.
10084 (add_font): Handle GSUB.
10085 (write_font_width_spec): New function.
10086 (main): Sort glyphs.
10087 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
10088 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
10089 * kern/term.c (grub_cls): Moved from here...
10090 * normal/term.c (grub_cls): ... here.
10091
10092 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10093
10094 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
10095 suitable for using within the format argument of printf when
10096 converting grub_size_t.
10097 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
10098 "x" to convert grub_size_t arguments.
10099
10100 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
10103 too long captions.
10104 (list_get_minimal_size): Take selection box into account.
10105
10106 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
10109 NULL font.
10110
10111 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10112
10113 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
10114 devices when iterating over /dev/disk/by-id; they will be handled
10115 later if appropriate, which they aren't always (e.g. LVM).
10116
10117 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10118
10119 * include/grub/misc.h (grub_reboot): Declare as noreturn.
10120 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
10121 fails.
10122 (grub_halt): Likewise.
10123 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
10124 reset-all fails.
10125 (grub_halt): Don't return, even if all of shut-down, power-off, and
10126 poweroff fail.
10127
10128 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10129
10130 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
10131 arguments, not three.
10132
10133 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10134
10135 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
10136 * util/grub.d/10_linux.in: Use it to check for LVM, so that
10137 LVM-on-RAID is handled correctly.
10138
10139 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10140
10141 * docs/grub.texi (Changes from GRUB Legacy): New section.
10142 (Future): Fix typo.
10143
10144 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10145
10146 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
10147 grub.d/README accidentally ends up executable for one reason or
10148 another. Ignore it.
10149
10150 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
10153 (gpt_partition_map_iterate): Support non-512B sectors.
10154
10155 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * kern/efi/init.c (grub_efi_init): Disable watchdog.
10158 Tested by: Seth Goldberg.
10159
10160 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
10163 Properly align mbi.
10164 Reported by: Seth Goldberg.
10165
10166 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * util/grub-mkrescue.in: Avoid module duplication.
10169
10170 2010-07-01 Sean Finney <seanius@seanius.net>
10171
10172 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
10173
10174 2010-07-01 Sean Finney <seanius@seanius.net>
10175
10176 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
10177
10178 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * disk/lvm.c (grub_lvm_checkvalue): New function.
10181 (grub_lvm_check_flag): Likewise.
10182
10183 2010-07-01 Robert Millan <rmh@gnu.org>
10184
10185 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
10186 Support 'p' as partition separator on kernel of FreeBSD (used
10187 with GPT labels).
10188 (grub_util_biosdisk_get_grub_dev): Likewise.
10189
10190 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 Yeeloong firmware port.
10193
10194 * boot/mips/yeeloong/fwstart.S: New file.
10195 * bus/cs5536.c (gpiodump): New const.
10196 (set_io_space): New function.
10197 (set_iod): Likewise.
10198 (set_p2d): Likewise.
10199 (grub_cs5536_init_geode): Likewise.
10200 * commands/mips/yeeloong/lsspd.c: New file.
10201 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
10202 (serial_mod_SOURCES): New variable.
10203 (serial_mod_CFLAGS): Likewise.
10204 (serial_mod_LDFLAGS): Likewise.
10205 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
10206 term/terminfo.c and term/tparm.c.
10207 (pkglib_IMAGES): Add fwstart.img.
10208 (fwstart_img_SOURCES): New variable.
10209 (fwstart_img_CFLAGS): Likewise.
10210 (fwstart_img_ASFLAGS): Likewise.
10211 (fwstart_img_LDFLAGS): Likewise.
10212 (fwstart_img_FORMAT): Likewise.
10213 (pkglib_MODULES): Add lsspd.mod.
10214 (lsspd_mod_SOURCES): New variable.
10215 (lsspd_mod_CFLAGS): Likewise.
10216 (lsspd_mod_LDFLAGS): Likewise.
10217 (pkglib_MODULES): Add halt.mod.
10218 (halt_mod_SOURCES): New variable.
10219 (halt_mod_CFLAGS): Likewise.
10220 (halt_mod_LDFLAGS): Likewise.
10221 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
10222 (serial_mod_SOURCES): Removed.
10223 (serial_mod_CFLAGS): Likewise.
10224 (serial_mod_LDFLAGS): Likewise.
10225 * disk/ata.c (check_device): New function.
10226 (grub_ata_device_initialize): Use check_device.
10227 (grub_ata_iterate): Recheck devices.
10228 (grub_ata_open): Likewise.
10229 (grub_atapi_iterate): Likewise.
10230 (grub_atapi_open): Likewise.
10231 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
10232 (GRUB_ATA_CH1_PORT1): Likewise.
10233 (GRUB_ATA_CH0_PORT2): Likewise.
10234 (GRUB_ATA_CH1_PORT2): Likewise.
10235 * include/grub/mips/loongson.h: New file.
10236 * include/grub/mips/yeeloong/ec.h: Likewise.
10237 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
10238 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
10239 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
10240 * include/grub/misc.h (grub_halt): Declare as noreturn.
10241 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
10242 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
10243 (UART_ENABLE_FIFO_TRIGGER1): New definition.
10244 (UART_ENABLE_DTRRTS): Likewise.
10245 (UART_ENABLE_MODEM): Removed.
10246 (UART_ENABLE_OUT2): New const.
10247 * include/grub/term.h (grub_term_register_input_active): New function.
10248 (grub_term_register_output_active): Likewise.
10249 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
10250 argument.
10251 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
10252 (init_pci): New function.
10253 (grub_machine_init): Execute platform init when firmware. Init serial.
10254 (grub_halt): Implement.
10255 (grub_exit): Likewise.
10256 (grub_reboot): Likewise.
10257 * term/serial.c (serial_hw_init): Update macros.
10258 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
10259 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
10260 (image_targets): New target mipsel-yeeloong-flash.
10261 (generate_image): Support IMAGE_YEELOONG_FLASH.
10262 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
10263 (grub_video_sm712_setup): Init card.
10264 (grub_video_sm712_set_palette): Removed.
10265 * video/sm712_init.c: New file.
10266
10267 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
10268
10269 * Makefile.in (install-local): Temporarily prepend $(builddir) to
10270 PATH when running help2man and then run it on the unadorned
10271 executable names, rather than passing $(builddir)/* paths to
10272 help2man. This avoids the build directory ending up in generated
10273 manual pages.
10274
10275 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10276
10277 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
10278 to avoid accidents when debugging with 'sh -x'.
10279 * util/grub-mkrescue.in: Likewise.
10280 * util/grub.d/00_header.in: Likewise.
10281 * util/grub.d/10_hurd.in: Likewise.
10282 * util/grub.d/10_kfreebsd.in: Likewise.
10283 * util/grub.d/10_linux.in: Likewise.
10284 * util/grub.d/10_netbsd.in: Likewise.
10285 * util/grub.d/10_windows.in: Likewise.
10286 * util/grub.d/20_linux_xen.in: Likewise.
10287 * util/grub.d/30_os-prober.in: Likewise.
10288 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10289
10290 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10291
10292 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
10293 last character in the buffer.
10294 Reported by: Vladimir Serbinenko.
10295
10296 2010-06-29 Robert Millan <rmh@gnu.org>
10297
10298 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
10299 (Command-line and menu entry commands): Document `badram' command.
10300
10301 2010-06-28 Robert Millan <rmh@gnu.org>
10302
10303 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
10304 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
10305 command using ${GRUB_BADRAM} as parameter.
10306
10307 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10308
10309 * docs/grub.texi (Device map): New section.
10310 (Themes): New section (stub).
10311 * Makefile.in (docs/grub.info): The info documentation now builds
10312 without errors. Make sure it stays that way.
10313
10314 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 Use normal parser for menu entries.
10317 Reported by: Thomas Frauendorfer
10318
10319 * include/grub/parser.h (grub_parser_execute): Don't export.
10320 * normal/menu.c (grub_menu_execute_entry_real): New function.
10321 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
10322
10323 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10324
10325 * docs/grub.texi (Embedded configuration): New section (replacing
10326 old "Preset Menu" stub).
10327 (Images): New section.
10328 (configfile): Note that any menu entries defined in `file' are shown
10329 immediately.
10330
10331 2010-06-28 Josh Triplett <josh@joshtriplett.org>
10332
10333 * mmap/i386/pc/mmap_helper.S: Set CF on return.
10334
10335 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10336
10337 * util/grub-install.in: Add --debug-image= option.
10338
10339 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10340
10341 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
10342 possible on Linux.
10343
10344 * util/deviceiter.c (check_device): Rename to ...
10345 (check_device_readable_unique): ... this. Update all callers.
10346 Maintain and check a list of which devices (by canonicalized name)
10347 have already been seen.
10348 (clear_seen_devices): New function.
10349 (compare_file_names) [__linux__]: New function.
10350 (grub_util_iterate_devices): Clear the list of seen devices on exit
10351 and (just in case) on entry.
10352 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
10353 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
10354 seen-devices list, superseded by general code in check_device.
10355
10356 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10357
10358 * commands/cat.c (options): New variable.
10359 (grub_cmd_cat): Parse options. If the --dos option is given, print
10360 DOS-style "\r\n" line endings as simple newlines (Debian bug
10361 #586358).
10362 (GRUB_MOD_INIT): Use extcmd.
10363 (GRUB_MOD_FINI): Likewise.
10364 * docs/grub.texi (cat): Document --dos.
10365
10366 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 XEN with Linux grub-mkconfig support.
10369
10370 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
10371 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
10372 GRUB_CMDLINE_XEN_DEFAULT.
10373 * util/grub.d/20_linux_xen.in: New file.
10374
10375 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 Initialise VGA video on qemu ourselves.
10378
10379 * boot/i386/qemu/boot.S: Don't call 0xc000.
10380 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
10381 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
10382 (kernel_img_HEADERS): Add pci.h.
10383 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
10384 * configure.ac: Force unifont on qemu and yeeloong.
10385 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
10386 (grub_vga_palette_write): Use correct register.
10387 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
10388 Call grub_qemu_init_cirrus.
10389 * kern/i386/qemu/init.c: New file.
10390 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
10391
10392 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
10393
10394 2010-06-26 Pavel Roskin <proski@gnu.org>
10395
10396 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
10397 13.
10398
10399 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10400
10401 * docs/grub.texi (Simple configuration): Explain that
10402 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
10403 set to `true' to disable their respective recovery entries, not
10404 merely set.
10405
10406 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10407
10408 Make the `source' command slightly faster.
10409
10410 * normal/main.c (grub_normal_execute): Don't re-read list files when
10411 nested.
10412
10413 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10414
10415 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
10416 field position and mask size to red fields from mode_info, not
10417 green.
10418 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
10419 Remove redundant tag->common.framebuffer_type assignment.
10420 Reported by: Seth Goldberg.
10421
10422 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10423
10424 Sync up other versions of the Linux loader with Robert Millan's
10425 change of 2010-01-09, "Make loader output a bit more user-friendly".
10426
10427 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
10428 grub_dprintf().
10429 (grub_cmd_linux): Likewise.
10430 (grub_cmd_initrd): Likewise.
10431 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
10432 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10433
10434 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
10435
10436 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
10437 larger than MEMORY_MAP_SIZE.
10438
10439 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
10440
10441 Fix parallel build.
10442
10443 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
10444 dependency.
10445 * script/parser.y: #include grub_script.tab.h header.
10446
10447 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 Support >3GiB and <16MiB RAM in i386-qemu.
10450
10451 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
10452 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
10453 (grub_lower_mem): Removed.
10454 (grub_upper_mem): Likewise.
10455 (mem_size): Made static.
10456 (above_4g): New variable.
10457 (grub_machine_mmap_init): Detect small mem_size and above_4g.
10458 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
10459 support.
10460
10461 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 Cirrus 5446 and Bochs video cards support.
10464
10465 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
10466 video_bochs.mod
10467 (video_cirrus_mod_SOURCES): New variable.
10468 (video_cirrus_mod_CFLAGS): Likewise.
10469 (video_cirrus_mod_LDFLAGS): Likewise.
10470 (video_bochs_mod_SOURCES): Likewise.
10471 (video_bochs_mod_CFLAGS): Likewise.
10472 (video_bochs_mod_LDFLAGS): Likewise.
10473 * include/grub/vga.h: New file.
10474 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
10475 (grub_video_fb_set_page_t): New type.
10476 (grub_video_fb_setup): New prototype.
10477 (grub_video_fb_swap_buffers): Likewise.
10478 (grub_video_fb_get_info_and_fini): Likewise.
10479 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
10480 (CRTC_DATA_PORT): Likewise.
10481 (CRTC_CURSOR): Likewise.
10482 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10483 (CRTC_CURSOR_ADDR_LOW): Likewise.
10484 (CRTC_CURSOR_DISABLE): Likewise.
10485 (update_cursor): Use grub_vga_cr_write.
10486 (grub_vga_text_setcursor): Likewise.
10487 * video/bochs.c: New file.
10488 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
10489 (palette): Likewise.
10490 (palette_size): Likewise.
10491 (framebuffer): New variable.
10492 (grub_video_fb_init): Use 'framebuffer'.
10493 (grub_video_fb_fini): Likewise.
10494 (grub_video_fb_get_info): Likewise.
10495 (grub_video_fb_get_palette): Likewise.
10496 (grub_video_fb_set_palette): Likewise.
10497 (grub_video_fb_set_viewport): Likewise.
10498 (grub_video_fb_get_viewport): Likewise.
10499 (grub_video_fb_map_color): Likewise.
10500 (grub_video_fb_map_rgb): Likewise.
10501 (grub_video_fb_map_rgba): Likewise.
10502 (grub_video_fb_unmap_color): Likewise.
10503 (grub_video_fb_unmap_color_int): Likewise.
10504 (grub_video_fb_fill_rect): Likewise.
10505 (grub_video_fb_blit_bitmap): Likewise.
10506 (grub_video_fb_blit_render_target): Likewise.
10507 (grub_video_fb_scroll): Likewise.
10508 (grub_video_fb_create_render_target): Likewise.
10509 (grub_video_fb_doublebuf_blit_init): Likewise.
10510 (grub_video_fb_set_active_render_target): Handle doublebuffering.
10511 (doublebuf_pageflipping_update_screen): New function.
10512 (doublebuf_pageflipping_init): Likewise.
10513 (grub_video_fb_setup): Likewise.
10514 (grub_video_fb_swap_buffers): Likewise.
10515 (grub_video_fb_get_info_and_fini): Likewise.
10516 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
10517 All users updated.
10518 (doublebuf_pageflipping_commit): Restructured into ...
10519 (doublebuf_pageflipping_set_page): ... this.
10520 (doublebuf_pageflipping_update_screen): Removed.
10521 (doublebuf_pageflipping_init): Likewise.
10522 (double_buffering_init): Likewise.
10523 (grub_video_vbe_setup): Use grub_video_fb_setup.
10524 (grub_video_vbe_swap_buffers): Removed.
10525 (grub_video_vbe_set_active_render_target): Likewise.
10526 (grub_video_vbe_get_active_render_target): Likewise.
10527 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
10528 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
10529 grub_video_fb_set_active_render_target and
10530 grub_video_fb_get_active_render_target.
10531 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
10532 (SEQUENCER_DATA_PORT): Likewise.
10533 (MAP_MASK_REGISTER): Likewise.
10534 (CRTC_ADDR_PORT): Likewise.
10535 (CRTC_DATA_PORT): Likewise.
10536 (START_ADDR_HIGH_REGISTER): Likewise.
10537 (START_ADDR_LOW_REGISTER): Likewise.
10538 (GRAPHICS_ADDR_PORT): Likewise.
10539 (GRAPHICS_DATA_PORT): Likewise.
10540 (READ_MAP_REGISTER): Likewise.
10541 (INPUT_STATUS1_REGISTER): Likewise.
10542 (INPUT_STATUS1_VERTR_BIT): Likewise.
10543 (get_map_mask): Use grub_vga_sr_read.
10544 (set_map_mask): Use grub_vga_sr_write.
10545 (set_read_map): Use grub_vga_gr_write.
10546 (set_start_address): Use grub_vga_cr_write.
10547 * video/sm712.c (framebuffer): Remove leftover fields.
10548
10549 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
10550
10551 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
10552 setting GRUB_VIDEO_BACKEND. Make it available as a user override
10553 instead. Replace the gfxterm backend check with a check that
10554 ${GRUB_PREFIX}/video.lst is non-empty.
10555 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
10556 again.
10557 (load_video): New generated function. Call it before loading
10558 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
10559 * util/grub.d/10_linux.in (linux_entry): Call load_video.
10560 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
10561 * docs/grub.texi (Simple configuration): Document
10562 GRUB_VIDEO_BACKEND.
10563
10564 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 Use video functions in linux and xnu loaders.
10567
10568 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
10569 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
10570 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
10571 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
10572 loader/i386/pc/linux.c.
10573 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
10574 (find_line_len): Removed.
10575 (find_framebuf): Likewise.
10576 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
10577 * loader/i386/efi/xnu.c: Removed.
10578 * loader/i386/pc/xnu.c: Moved from here...
10579 * loader/i386/xnu.c: ...here.
10580
10581 Enable priorities in video drivers.
10582
10583 * include/grub/video.h (grub_video_adapter_prio_t): New type.
10584 (grub_video_adapter): New field prio.
10585 (grub_video_register): Respect prio when inserting.
10586 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
10587 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
10588 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
10589 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
10590 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
10591 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
10592 * video/sm712.c (grub_video_sm712_adapter): Likewise.
10593
10594 Fix SDL driver ID.
10595
10596 * include/grub/video.h (grub_video_driver_id_t): New value
10597 GRUB_VIDEO_DRIVER_SDL.
10598 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
10599
10600 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10601
10602 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
10603 argument to printf.
10604 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10605
10606 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10607
10608 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
10609 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10610
10611 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10612
10613 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
10614 directly, and recommend grub-install instead.
10615 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
10616
10617 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
10618
10619 Fix i386-pc prefix handling with nested partitions (Debian bug
10620 #585068). Note that the case where the core image is booted using
10621 multiboot and relocated from its original location still requires
10622 more work.
10623
10624 * kern/i386/pc/init.c (make_install_device): If the prefix starts
10625 with "(,", fill the boot drive in between those two characters, but
10626 expect that a full partition specification including partition map
10627 names will follow.
10628 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
10629 specified, write a prefix without the drive name but including a
10630 full partition specification.
10631
10632 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
10633
10634 * util/grub-mkconfig.in: Ignore non-option arguments, for
10635 compatibility with older versions (before 2010-06-12) which did the
10636 same. In particular, this makes it easier to ship an update-grub
10637 wrapper which is compatible with that used with GRUB Legacy (Debian
10638 bug #586056).
10639
10640 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10641
10642 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
10643 for manual page generation.
10644
10645 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10646
10647 * po/POTFILES: Remove leftover commands/handler.c.
10648
10649 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
10650
10651 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
10652 left this script non-functional.
10653
10654 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
10655
10656 * docs/man/grub-emu.h2m: New file.
10657
10658 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
10659
10660 * docs/grub.texi (Commands): Document reduced command set in rescue
10661 mode.
10662 (cpuid): New section.
10663
10664 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
10665
10666 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
10667 new partition naming style.
10668 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
10669
10670 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
10671
10672 Add "-o grub.iso" like cmdline options support.
10673
10674 * util/grub-install.in: Improve cmdline option parsing.
10675 * util/grub-mkconfig.in: Likewise.
10676 * util/grub-mkrescue.in: Likewise.
10677 * util/grub-reboot.in: Likewise.
10678 * util/grub-set-default.in: Likewise.
10679 * util/i386/efi/grub-install.in: Likewise.
10680 * util/ieee1275/grub-install.in: Likewise.
10681 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10682
10683 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10684
10685 * .bzrignore: Ignore 41_custom.
10686
10687 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
10688
10689 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
10690
10691 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10692
10693 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
10694 prototype declarations.
10695
10696 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
10697 generating fs, partmap, and video lists.
10698 * include/grub/fs.h (grub_fs_register): Omit prototype if
10699 GRUB_LST_GENERATOR is defined.
10700 * include/grub/partition.h (grub_partition_map_register): Likewise.
10701 * include/grub/video.h (grub_video_register): Likewise.
10702
10703 2010-06-12 Javier Martín <lordhabbit@gmail.com>
10704
10705 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
10706
10707 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
10708
10709 * util/grub-mkrescue.in: Support --xorriso argument.
10710
10711 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
10714 Suggested by: Thomas Schmitt.
10715
10716 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
10719 Suggested by: Thomas Schmitt.
10720
10721 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 custom.cfg support.
10724
10725 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
10726 * util/grub.d/41_custom.in: New file.
10727
10728 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
10729
10730 * util/grub-mkrescue.in (make_image): Remove sh module, which has
10731 been merged back into normal.
10732
10733 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
10734
10735 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
10736 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
10737
10738 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
10739
10740 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
10741 when generating manual pages.
10742 * docs/man/grub-bin2h.h2m: New file.
10743 * docs/man/grub-editenv.h2m: New file.
10744 * docs/man/grub-fstest.h2m: New file.
10745 * docs/man/grub-install.h2m: New file.
10746 * docs/man/grub-macho2img.h2m: New file.
10747 * docs/man/grub-mkconfig.h2m: New file.
10748 * docs/man/grub-mkdevicemap.h2m: New file.
10749 * docs/man/grub-mkfont.h2m: New file.
10750 * docs/man/grub-mkimage.h2m: New file.
10751 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
10752 * docs/man/grub-mkrelpath.h2m: New file.
10753 * docs/man/grub-mkrescue.h2m: New file.
10754 * docs/man/grub-ofpathname.h2m: New file.
10755 * docs/man/grub-pe2elf.h2m: New file.
10756 * docs/man/grub-probe.h2m: New file.
10757 * docs/man/grub-reboot.h2m: New file.
10758 * docs/man/grub-script-check.h2m: New file.
10759 * docs/man/grub-set-default.h2m: New file.
10760 * docs/man/grub-setup.h2m: New file.
10761
10762 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 Use FOR_* macros instead of *_iterate whenever possible.
10765
10766 * commands/handler.c: Removed.
10767 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
10768 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
10769 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10770 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
10771 (grub_probe_SOURCES): Remove kern/parser.c.
10772 (util/grub-script-check.c_DEPENDENCIES): Removed.
10773 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
10774 and grub_script_check_init.c.
10775 (grub_script_check_init.lst): Removed.
10776 (grub_script_check_init.h): Likewise.
10777 (grub_script_check_init.c): Likewise.
10778 (pkglib_MODULES): Remove handler.mod and sh.mod.
10779 (handler_mod_SOURCES): Removed.
10780 (handler_mod_CFLAGS): Likewise.
10781 (handler_mod_LDFLAGS): Likewise.
10782 (normal_mod_SOURCES): Remove normal/handler.c.
10783 Add script/main.c, script/script.c, script/execute.c,
10784 script/function.c, script/lexer.c, grub_script.tab.c
10785 and grub_script.yy.c.
10786 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10787 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10788 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
10789 (grub_setup_SOURCES): Remove kern/parser.c.
10790 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10791 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
10792 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10793 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10794 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10795 (grub_setup_SOURCES): Remove kern/parser.c.
10796 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10797 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
10798 * include/grub/command.h (grub_command_iterate): Removed.
10799 (FOR_COMMANDS): New macro.
10800 * include/grub/dl.h (grub_dl): New member next.
10801 (grub_dl_iterate): Removed.
10802 (grub_dl_head): New variable declaration.
10803 (FOR_DL_MODULES): New macro.
10804 * include/grub/fs.h: Include list.h.
10805 (grub_fs): Make next first element.
10806 (grub_fs_list): New variable declaration.
10807 (grub_fs_register): Make inline.
10808 (grub_fs_unregister): Likewise.
10809 (grub_fs_iterate): Removed.
10810 (FOR_FILESYSTEMS): New macro.
10811 * include/grub/handler.h: Removed.
10812 * include/grub/list.h (grub_list_hook_t): Removed.
10813 (grub_list_test_t): Likewise.
10814 (grub_list_pop): Likewise.
10815 (grub_list_iterate): Likewise.
10816 (grub_list_insert): Likewise.
10817 (FOR_LIST_ELEMENTS): New macro.
10818 * include/grub/parser.h (grub_parser_class): Removed.
10819 (grub_parser_register): Likewise.
10820 (grub_parser_unregister): Likewise.
10821 (grub_parser_get_current): Likewise.
10822 (grub_parser_set_current): Likewise.
10823 (grub_register_rescue_parser): Likewise.
10824 (grub_rescue_parse_line): New function.
10825 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
10826 * include/grub/script_sh.h (grub_script_function_list): New variable
10827 declaration.
10828 (FOR_SCRIPT_FUNCTIONS): New macro.
10829 (grub_script_function_iterate): Removed.
10830 (grub_normal_parse_line): New prototype.
10831 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
10832 (FOR_DISABLED_TERM_INPUTS): Likewise.
10833 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10834 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10835 * include/grub/video.h (grub_video_adapter): Move 'next' to first
10836 element.
10837 (grub_video_register): Inline.
10838 (grub_video_unregister): Likewise.
10839 (grub_video_adapter_list): New variable declaration.
10840 (grub_video_iterate): Removed.
10841 (FOR_VIDEO_ADAPTERS): New macro.
10842 * kern/dl.c (grub_dl_list): Removed. All users updated.
10843 (grub_dl_iterate): Removed.
10844 * kern/fs.c (grub_fs_list): Make global.
10845 (grub_fs_register): Removed.
10846 (grub_fs_unregister): Likewise.
10847 (grub_fs_iterate): Likewise.
10848 * kern/handler.c: Removed.
10849 * kern/list.c (grub_list_pop): Removed.
10850 (grub_list_iterate): Likewise.
10851 (grub_list_insert): Likewise.
10852 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
10853 (grub_prio_list_insert): Don't use grub_list_insert.
10854 * kern/main.c (grub_register_rescue_parser): Don't call
10855 grub_register_rescue_parser.
10856 * kern/parser.c (grub_parser_class): Removed.
10857 (grub_parser_execute): Use grub_rescue_parse_line.
10858 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
10859 (grub_rescue_parser): Removed.
10860 (grub_register_rescue_parser): Likewise.
10861 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
10862 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
10863 (grub_auth_check_authentication): Likewise.
10864 * normal/completion.c (iterate_command): Removed.
10865 (grub_normal_do_completion): Use FOR_COMMANDS.
10866 * normal/handler.c: Removed.
10867 * normal/main.c (read_config_file): Remove parser changing.
10868 (grub_normal_execute): Don't call read_handler_list.
10869 (grub_normal_read_line_real): Statically allocate prompt.
10870 (grub_cmdline_run): Use grub_normal_parse_line.
10871 (GRUB_MOD_FINI): Don't call free_handler_list.
10872 * normal/menu_entry.c (run): Likewise.
10873 * script/function.c (grub_script_function_list): Make global.
10874 (grub_script_function_iterate): Removed.
10875 * script/main.c (grub_normal_parse_line): Make global.
10876 (grub_sh_parser): Removed.
10877 (GRUB_MOD_INIT): Likewise.
10878 (GRUB_MOD_FINI): Likewise.
10879 * tests/lib/functional_test.c (grub_functional_test): Use
10880 FOR_LIST_ELEMENTS.
10881 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
10882 (grub_test_run): Use FOR_LIST_ELEMENTS.
10883 * tests/lib/unit_test.c (main): Likewise.
10884 * util/deviceiter.c (grub_util_iterate_devices): Don't use
10885 grub_list_pop.
10886 * util/grub-fstest.c (grub_term_input_class): Removed.
10887 (grub_term_output_class): Likewise.
10888 * util/grub-probe.c: Likewise.
10889 * util/i386/pc/grub-setup.c: Likewise.
10890 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10891 * util/grub-script-check.c (main): Don't call grub_init_all and
10892 grub_fini_all.
10893 * video/video.c (grub_video_adapter_list): Make global.
10894 (grub_video_register): Removed.
10895 (grub_video_unregister): Likewise.
10896 (grub_video_iterate): Likewise.
10897
10898 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
10901 reported by Henrique Ferreiro.
10902
10903 2010-06-09 Robert Millan <rmh@gnu.org>
10904
10905 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
10906 ones, when both are available.
10907
10908 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10909
10910 Make --version uniform and avoid hard-coded program name.
10911
10912 * util/grub-mkimage.c (main): Use `program_name' instead of
10913 hard-coded string.
10914 * util/i386/pc/grub-setup.c (main): Likewise.
10915 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
10916 * util/grub-install.in: Save the basename of $0 in $self, and use the
10917 latter in informational messages. Use the same format for --version
10918 as the binary programs.
10919 * util/grub-mkconfig.in: Likewise.
10920 * util/grub-mkrescue.in: Likewise.
10921 * util/grub-reboot.in: Likewise.
10922 * util/grub-set-default.in: Likewise.
10923 * util/i386/efi/grub-install.in: Likewise.
10924 * util/ieee1275/grub-install.in: Likewise.
10925 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10926
10927 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10928
10929 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
10930 embedding area. Use <= instead of == when checking for non-emptiness.
10931
10932 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10933
10934 * configure.ac: Add `.' to the directories searched for unifont.
10935
10936 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10937
10938 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
10939 grub_script.yy.h.
10940
10941 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10942
10943 * docs/grub.texi (History): Expand to cover GRUB 2.
10944 (Serial terminal): Refer to `terminal_input' and `terminal_output'
10945 commands, not `terminal'.
10946 (serial): Likewise.
10947 (terminal_input): New section.
10948 (terminal_output): New section.
10949 (uppermem): New section (stub).
10950 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
10951
10952 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
10953
10954 * docs/grub.texi (Security): Menu entries are unrestricted by
10955 default, not restricted to superusers as I had previously thought.
10956 Reword to account for this.
10957
10958 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10959
10960 * kern/emu/misc.c (device_mapper_null_log): New function.
10961 (grub_device_mapper_supported): New function.
10962 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
10963 prototype.
10964 * kern/emu/hostdisk.c (find_partition_start): Check whether
10965 device-mapper is supported before trying to use it.
10966 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
10967
10968 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10969
10970 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
10971 (File name syntax): Likewise.
10972 (help): --all is no longer supported in GRUB 2. Be more precise
10973 about pattern matching.
10974
10975 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10976
10977 * normal/completion.c (grub_normal_do_completion): When completing
10978 arguments to "set" and the current word contains an equals sign,
10979 skip to after the equals sign before starting completion.
10980
10981 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10982
10983 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
10984
10985 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10986
10987 * docs/grub.texi (Network): New section.
10988 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
10989 `(nd)' as in GRUB Legacy.
10990 (pxe_unload): New section.
10991
10992 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10993
10994 * docs/grub.texi (Troubleshooting): `echo' is not usually available
10995 in the rescue shell, so recommend using `set' instead. Thanks,
10996 Jordan Uggla.
10997
10998 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
10999
11000 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
11001 (password): New section.
11002 (password_pbkdf2): New section.
11003 (search): New section.
11004 (Security): New section.
11005 (Troubleshooting): New section, currently very incomplete.
11006 (Invoking grub-mkpasswd-pbkdf2): New section.
11007 (Internals): New section, currently very incomplete.
11008
11009 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11010
11011 * util/grub.d/00_header.in: Add some more quoting (of
11012 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
11013 work again.
11014 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
11015
11016 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11017
11018 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
11019 to `count', fixing variable shadowing that broke the -c option.
11020
11021 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
11022
11023 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
11024 in case they contain spaces.
11025
11026 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11027
11028 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
11029 "part_" to partmap module names, in line with grub-install.
11030 Reported by: Jindřich Makovička (Debian bug #584426).
11031
11032 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11033
11034 * util/grub-mkimage.c: Make target-related error messages slightly
11035 more helpful; -O talks about "format". Explicitly point to the use
11036 of -O if no target is specified.
11037 Reported by: Didier Raboud (Debian bug #584415).
11038
11039 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
11040
11041 * INSTALL: Document several build requirements for optional features
11042 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
11043
11044 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11045
11046 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
11047 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
11048 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
11049
11050 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11051
11052 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
11053 Thanks to Jordan Uggla for spotting this.
11054
11055 2010-06-02 Aleš Nesrsta <starous@volny.cz>
11056
11057 Finally make USB usable.
11058
11059 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
11060 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
11061 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
11062 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
11063 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
11064 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
11065 (GRUB_OHCI_FSMPS): Likewise.
11066 (GRUB_OHCI_PERIODIC_START): Likewise.
11067 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
11068 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
11069 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
11070 (GRUB_OHCI_SET_PORT_RESET): Likewise.
11071 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
11072 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
11073 (grub_ohci_transaction): Likewise.
11074 (grub_ohci_transfer): Improve condition detection algorithms.
11075 Handle toggle property. Program the transactions correctly.
11076 Improve error handling. Various important fixups.
11077 (grub_ohci_portstatus): Put register writes in right order.
11078 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
11079 (grub_uhci_transfer): Don't show "failed" message on success.
11080 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
11081 array.
11082 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
11083 determine its size.
11084 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
11085 before initialization is completed. Use IN direction for empty
11086 transfers. Use last_trans and compute toggle.
11087 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
11088 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
11089 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
11090 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
11091 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
11092 (grub_usb_device): Increase toggle to 256.
11093 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
11094 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
11095 GRUB_USBMS_SUBCLASS_SFF8070.
11096 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
11097 (grub_scsi_inquiry): New member page and alloc_length.
11098 (grub_scsi_request_sense): New structure.
11099 (grub_scsi_request_sense_data): Likewise.
11100 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
11101 control.
11102 * disk/scsi.c (grub_scsi_request_sense): New function.
11103 (grub_scsi_test_unit_ready): Likewise.
11104 (grub_scsi_inquiry): Fill new fields.
11105 (grub_scsi_read_capacity): Likewise.
11106 (grub_scsi_read10): Add request sense at the end.
11107 (grub_scsi_read12): Likewise.
11108 (grub_scsi_write10): Likewise.
11109 (grub_scsi_write12): Likewise.
11110 (grub_scsi_open): Add Test Unit Ready.
11111 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
11112 Support additional subclasses. Con't clear halt yet. Activate the
11113 proper config. Calculate LUNs correctly.
11114 (grub_usbms_transfer): Various important fixups.
11115
11116 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
11119 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
11120 (grub_ohci_fini_hw): New function.
11121 (grub_ohci_restore_hw): Likewise.
11122 (GRUB_MOD_INIT(ohci)): Register preboot hook.
11123 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
11124 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
11125
11126 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 Dedicated DMA allocations.
11129
11130 * bus/pci.c (grub_memalign_dma32): New function
11131 (grub_dma_free): Likewise.
11132 (grub_dma_get_virt): Likewise.
11133 (grub_dma_get_phys): Likewise.
11134 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
11135 (grub_ohci_pci_iter): Use dma32_alloc.
11136 (grub_ohci_transfer): Likewise.
11137 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
11138 (grub_usb_bulk_readwrite): Likewise.
11139 * include/grub/pci.h: Add declarations.
11140
11141 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 CS5536 support.
11144
11145 * bus/cs5536.c: New file.
11146 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
11147 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
11148 (cs5536_mod_SOURCES): New variable.
11149 (cs5536_mod_CFLAGS): Likewise.
11150 (cs5536_mod_LDFLAGS): Likewise.
11151 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
11152 machine/pci.h.
11153 (kernel_img_SOURCES): Add bus/cs5536.c.
11154 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
11155 usb_keyboard.mod.
11156 (usb_mod_SOURCES): New variable.
11157 (usb_mod_CFLAGS): New variable.
11158 (usb_mod_LDFLAGS): New variable.
11159 (usbtest_mod_SOURCES): New variable.
11160 (usbtest_mod_CFLAGS): New variable.
11161 (usbtest_mod_LDFLAGS): New variable.
11162 (ohci_mod_SOURCES): New variable.
11163 (ohci_mod_CFLAGS): New variable.
11164 (ohci_mod_LDFLAGS): New variable.
11165 (usbms_mod_SOURCES): New variable.
11166 (usbms_mod_CFLAGS): New variable.
11167 (usbms_mod_LDFLAGS): New variable.
11168 (usb_keyboard_mod_SOURCES): New variable.
11169 (usb_keyboard_mod_CFLAGS): New variable.
11170 (usb_keyboard_mod_LDFLAGS): New variable.
11171 * include/grub/smbus.h: New file.
11172 * include/grub/cs5536.h: New file.
11173
11174 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11175
11176 * util/grub.d/00_header.in: Add safety check to make sure that
11177 ${locale_dir} exists before trying to probe it.
11178
11179 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11180
11181 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
11182 per the GNU Coding Standards; this is now too obscure to be worth
11183 documenting.
11184 (QNX): Likewise.
11185 (chainloader): Remove cross-reference to `SCO UnixWare'.
11186
11187 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11188
11189 * docs/grub.texi (Chain-loading): New section.
11190 (DOS/Windows): New section, borrowed from GRUB Legacy with details
11191 adjusted for GRUB 2.
11192 (SCO UnixWare): Likewise.
11193 (QNX): Likewise.
11194 (chainloader): Add reference to `Block list syntax'.
11195 (drivemap): New section.
11196 (parttool): New section.
11197
11198 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11199
11200 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
11201 the grub shell'.
11202 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
11203 (Installing GRUB using grub-install): Remove reference to the grub
11204 shell; mention `grub-mkimage' and `grub-setup' instead.
11205 (Invoking grub-install): Likewise.
11206 (Interface): Add reference to `Menu entry editor'.
11207 (serial): Remove `--device' option.
11208
11209 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11210
11211 * docs/grub.texi (Configuration): New section, documenting
11212 configuration file generation using grub-mkconfig. I've left a slot
11213 for documenting the full shell scripting format but have not yet
11214 started on writing that up.
11215 (Invoking grub-mkconfig): New section.
11216
11217 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11218
11219 * docs/grub.texi (direntry): Remove grub-terminfo reference.
11220 (GNU GRUB manual): Likewise.
11221 (General commands): Update description of `terminfo' for GRUB 2.
11222
11223 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11224
11225 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
11226 (GRUB_MOD_INIT): Fix capitalisation.
11227 * docs/grub.texi (Command-line and menu entry commands): Document
11228 gettext and gptsync commands.
11229
11230 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11231
11232 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
11233 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
11234
11235 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
11236
11237 Add btrfs probing support, currently only in the single-device case.
11238
11239 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
11240 function.
11241 (grub_guess_root_device): Call find_root_device_from_mountinfo
11242 before looking in /dev.
11243
11244 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
11247 GRUB_DISK_SIZE_UNKNOWN.
11248 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
11249
11250 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
11251
11252 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
11253 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
11254 corrupted or not synced properly.
11255
11256 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
11259 Reported by: Seth Goldberg.
11260
11261 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
11264 addition of dest.
11265 Reported by: Seth Goldberg.
11266
11267 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
11270 Reported by: Seth Goldberg.
11271
11272 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
11275 64-bit address as signed on MIPS.
11276
11277 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11278
11279 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
11280 to the empty string.
11281
11282 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
11283
11284 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
11285
11286 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
11287 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
11288 * kern/misc.c (__enable_execute_stack): Disable on
11289 GRUB_MACHINE_EMU.
11290
11291 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11292
11293 Make grub-probe work with symbolic links under /dev/mapper as well
11294 as with real block devices. The Linux world seems to be (at best)
11295 in transition here, and GRUB shouldn't get caught in the middle.
11296
11297 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
11298 /dev/mapper.
11299
11300 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11301
11302 * util/grub-script-check.c (main): Ensure defined behaviour on empty
11303 input files (in which case exit zero).
11304
11305 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11306
11307 * kern/emu/misc.c (canonicalize_file_name): realpath can still
11308 return NULL for various reasons even if it has a maximum-length
11309 buffer: for example, there might be a symlink loop, or the path
11310 might exceed PATH_MAX. If this happens, return NULL.
11311
11312 2010-05-27 Robert Millan <rmh@gnu.org>
11313
11314 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
11315 partmap module to handle cross-partmap setups.
11316 Reported by Orestes Mas. Gràcies!
11317
11318 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11319
11320 * util/grub-mkrescue.in: Initialise override_dir rather than
11321 assuming that it's unset or empty in the environment.
11322
11323 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
11324
11325 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
11326 variable index into p_index to suppress a warning with -Wshadow.
11327
11328 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
11329
11330 * INSTALL: Added flex >= 2.5.35 requirement.
11331
11332 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11333
11334 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
11335
11336 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 cmostest support.
11339
11340 * commands/i386/cmostest.c: New file.
11341 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
11342 (cmostest_mod_SOURCES): New variable.
11343 (cmostest_mod_CFLAGS): Likewise.
11344 (cmostest_mod_LDFLAGS): Likewise.
11345 * conf/i386-pc.rmk: Likewise.
11346 * docs/grub.texi (Vendor power-on keys): New section.
11347 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
11348 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
11349 and GRUB_BUTTON_CMOS_ADDRESS.
11350 * util/grub.d/00_header.in: Handle powering-on by separate button.
11351
11352 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
11355 Removed drawing_scrollbar argument. All users updated
11356 Fixes #29792.
11357 Reported by Jo Shields
11358
11359 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
11362 buffer since gfxterm handles double repaint.
11363
11364 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
11367 * term/gfxterm.c (real_scroll): Likewise.
11368
11369 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
11372 before calling BIOS.
11373
11374 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11375
11376 * include/grub/i18n.h: Always enable grub_gettext.
11377
11378 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
11381 partition naming style.
11382
11383 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
11384
11385 * util/grub-mkconfig.in: Fix handling of -o so that it works when
11386 not the first option.
11387
11388 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11389
11390 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
11391
11392 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11393
11394 * util/misc.c: Move inclusion of <limits.h> to ...
11395 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
11396
11397 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
11398
11399 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
11400 Fix merge error in NetBSD code.
11401 (find_partition_start) [__NetBSD__]: Likewise.
11402
11403 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
11404
11405 Fix grub-mkrescue usage unit testing.
11406
11407 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
11408
11409 2010-05-18 Christian Franke <franke@computer.org>
11410
11411 * util/grub.d/10_windows.in: Use path names instead of
11412 drive letters to prevent warning from Cygwin 1.7.
11413 Add drivemap command to menuentry if needed.
11414
11415 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
11416
11417 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
11418 gnumach and gnumach.gz.
11419
11420 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * include/grub/i18n.h (gettext): Inline instead of using #define.
11423 (grub_gettext): Likewise.
11424 (_): Likewise.
11425
11426 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
11429 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
11430 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
11431 (main): Add a slash after pkglibdirroot.
11432
11433 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * util/grub-install.in: Add missing "in" keyword.
11436
11437 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
11440 Reported by: Seth Goldberg.
11441
11442 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
11445
11446 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11447
11448 * configure.ac: Check for Linux device-mapper support.
11449
11450 * util/hostdisk.c (device_is_mapped): New function.
11451 (find_partition_start): New function, partly broken out from
11452 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
11453 device-mapper support added.
11454 (linux_find_partition): Use find_partition_start.
11455 (convert_system_partition_to_system_disk): Add `st' argument.
11456 Support Linux /dev/mapper/* devices if device-mapper support is
11457 available; only DM-RAID devices are understood at present.
11458 (find_system_device): Add `st' argument. Pass it to
11459 convert_system_partition_to_system_disk.
11460 (grub_util_biosdisk_get_grub_dev): Pass stat result to
11461 find_system_device and convert_system_partition_to_system_disk. Use
11462 find_partition_start.
11463
11464 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
11465 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
11466 * util/deviceiter.c [__linux__]: Define MINOR.
11467 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
11468 * util/mkdevicemap.c (grub_putchar): New function.
11469 (grub_getkey): New function.
11470 (grub_refresh): New function.
11471 (main): Set debug=all if -v -v is used.
11472
11473 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11474
11475 Fix build with non-GNU libcs.
11476
11477 * util/misc.c (canonicalize_file_name): Move to ...
11478 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
11479 grub_make_system_path_relative_to_its_root.
11480
11481 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11482
11483 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
11484 we handle finding grub-mkimage. Default to finding grub-mkimage in
11485 ${bindir} with program_transform_name applied, and provide a
11486 --grub-mkimage option to override this.
11487
11488 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 Remove grub-mkisofs.
11491
11492 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
11493 (grub_mkisofs_SOURCES): Removed.
11494 (grub_mkisofs_CFLAGS): Removed.
11495 * util/mkisofs/defaults.h: Removed.
11496 * util/mkisofs/eltorito.c: Likewise.
11497 * util/mkisofs/exclude.h: Likewise.
11498 * util/mkisofs/hash.c: Likewise.
11499 * util/mkisofs/include/: Likewise.
11500 * util/mkisofs/include/fctldefs.h: Likewise.
11501 * util/mkisofs/include/mconfig.h: Likewise.
11502 * util/mkisofs/include/prototyp.h: Likewise.
11503 * util/mkisofs/include/statdefs.h: Likewise.
11504 * util/mkisofs/iso9660.h: Likewise.
11505 * util/mkisofs/joliet.c: Likewise.
11506 * util/mkisofs/match.c: Likewise.
11507 * util/mkisofs/match.h: Likewise.
11508 * util/mkisofs/mkisofs.c: Likewise.
11509 * util/mkisofs/mkisofs.h: Likewise.
11510 * util/mkisofs/msdos_partition.h: Likewise.
11511 * util/mkisofs/multi.c: Likewise.
11512 * util/mkisofs/name.c: Likewise.
11513 * util/mkisofs/rock.c: Likewise.
11514 * util/mkisofs/tree.c: Likewise.
11515 * util/mkisofs/write.c: Likewise.
11516
11517 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11518
11519 Unify grub-mkimage accross platforms.
11520
11521 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
11522 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
11523 (grub_mkelfimage_SOURCES): Removed.
11524 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
11525 (util/grub-mkimage.c_DEPENDENCIES): .. this.
11526 (bin_UTILITIES): Add grub-mkimage.
11527 (grub_mkimage_SOURCES): New variable.
11528 (kernel_img_HEADERS): Remove machine/kernel.h.
11529 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
11530 (pkglib_PROGRAMS): Add kernel.img.
11531 (kernel_img_HEADERS): Add machine/kernel.h.
11532 (kernel_img_FORMAT): Removed.
11533 (bin_UTILITIES): Remove grub-mkimage.
11534 (grub_mkimage_SOURCES): Removed.
11535 (grub_mkimage_CFLAGS): Likewise.
11536 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11537 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
11538 (pkglib_PROGRAMS): Add kernel.img.
11539 (bin_UTILITIES): Remove grub-mkimage.
11540 (grub_mkimage_SOURCES): Removed.
11541 (grub_mkimage_CFLAGS): Likewise.
11542 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11543 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
11544 (pkglib_PROGRAMS): Add kernel.img.
11545 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
11546 (pkglib_PROGRAMS): Add kernel.img.
11547 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
11548 (grub_mkimage_SOURCES): Removed.
11549 (grub_mkimage_CFLAGS): Likewise.
11550 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11551 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
11552 (pkglib_PROGRAMS): Add kernel.img.
11553 (bin_UTILITIES): Remove grub-mkimage.
11554 (grub_mkimage_SOURCES): Removed.
11555 (grub_mkimage_CFLAGS): Likewise.
11556 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11557 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
11558 (grub_mkimage_SOURCES): Removed.
11559 (grub_mkimage_CFLAGS): Likewise.
11560 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11561 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
11562 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
11563 (grub_pe32_optional_header): ... this.
11564 (grub_pe64_optional_header): ... and this. All users updated.
11565 (GRUB_PE32_PE32_MAGIC): Split into ..
11566 (GRUB_PE32_PE32_MAGIC): .. this.
11567 (GRUB_PE32_PE64_MAGIC): .. and this.
11568 (GRUB_PE32_SIGNATURE_SIZE): New definition.
11569 * include/grub/elf.h (PT_GNU_STACK): New definition.
11570 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
11571 * include/grub/i386/efi/kernel.h: Likewise.
11572 * include/grub/i386/kernel.h: Likewise.
11573 * include/grub/i386/pc/kernel.h: Likewise.
11574 * include/grub/i386/qemu/boot.h: Likewise.
11575 * include/grub/mips/kernel.h: Likewise.
11576 * include/grub/mips/qemu-mips/kernel.h: Likewise.
11577 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11578 * include/grub/powerpc/kernel.h: Likewise.
11579 * include/grub/sparc64/ieee1275/boot.h: Likewise.
11580 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11581 * include/grub/sparc64/kernel.h: Likewise.
11582 * include/grub/x86_64/efi/kernel.h: Likewise.
11583 * include/grub/x86_64/kernel.h: Likewise.
11584 * include/grub/offsets.h: New file.
11585 * include/grub/kernel.h (grub_module_info): Split into ...
11586 (grub_module_info32): ... this.
11587 (grub_module_info64): ... and this.
11588 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
11589 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
11590 (grub_boot_blocklist): Moved from here ...
11591 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
11592 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
11593 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
11594 * include/grub/types.h (grub_target_to_host16): Removed.
11595 (grub_target_to_host32): Likewise.
11596 (grub_target_to_host64): Likewise.
11597 (grub_host_to_target16): Likewise.
11598 (grub_host_to_target32): Likewise.
11599 (grub_host_to_target64): Likewise.
11600 (grub_host_to_target_addr): Likewise.
11601
11602 Support grub-mkrescue for efi, coreboot and qemu.
11603
11604 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
11605 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
11606 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
11607 * util/grub-mkrawimage.c: Moved from here ...
11608 * util/grub-mkimage.c: ... here. All users updated.
11609 (ALIGN_ADDR): Use image_target.
11610 (TARGET_NO_FIELD): New const.
11611 (image_target_desc): New type.
11612 (image_targets): New array.
11613 (grub_target_to_host64): Use image_target.
11614 (grub_target_to_host32): Likewise.
11615 (grub_target_to_host16): Likewise.
11616 (grub_host_to_target64): Likewise.
11617 (grub_host_to_target32): Likewise.
11618 (grub_host_to_target16): Likewise.
11619 (grub_host_to_target_addr): Likewise.
11620 (generate_image): Handle multiimage.
11621 (main): Require -O parameter. All users updated.
11622 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
11623 util/efi/grub-mkimage.c
11624 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
11625 New option --rom-directory.
11626 Use xorriso.
11627 * util/i386/efi/grub-mkimage.c: Removed.
11628 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
11629 (grub_target_to_host32): Likewise.
11630 (grub_target_to_host64): Likewise.
11631 (grub_host_to_target16): Likewise.
11632 (grub_host_to_target32): Likewise.
11633 (grub_host_to_target64): Likewise.
11634 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
11635 (grub_target_to_host32): Likewise.
11636 (grub_target_to_host64): Likewise.
11637 (grub_host_to_target16): Likewise.
11638 (grub_host_to_target32): Likewise.
11639 (grub_host_to_target64): Likewise.
11640
11641 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
11642
11643 Source tree is reorganized for emu build.
11644
11645 * include/grub/util/console.h: Move from here...
11646 * include/grub/emu/console.h: ...to here.
11647 * include/grub/util/getroot.h: Move from here...
11648 * include/grub/emu/getroot.h: ...to here.
11649 * include/grub/util/hostdisk.h: Move from here...
11650 * include/grub/emu/hostdisk.h: ...to here.
11651 * util/console.c: Move from here...
11652 * kern/emu/console.c: ...to here.
11653 * util/getroot.c: Move from here...
11654 * kern/emu/getroot.c: ...to here.
11655 * util/grub-emu.c: Move from here...
11656 * kern/emu/main.c: ...to here.
11657 * util/hostdisk.c: Move from here...
11658 * kern/emu/hostdisk.c: ...to here.
11659 * util/hostfs.c: Move from here...
11660 * kern/emu/hostfs.c: ...to here.
11661 * util/mm.c: Move from here...
11662 * kern/emu/mm.c: ...to here.
11663 * util/pci.c: Move from here...
11664 * bus/emu/pci.c: ...to here.
11665 * util/sdl.c: Move from here...
11666 * video/emu/sdl.c: ...to here.
11667 * util/time.c: Move from here...
11668 * kern/emu/time.c: ...to here.
11669 * util/usb.c: Move from here...
11670 * bus/usb/emu/usb.c: ...to here.
11671
11672 * include/grub/emu/misc.h: New header for grub-emu functions.
11673 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
11674
11675 * conf/any-emu.rmk: Rule updates for above renames.
11676 * conf/common.rmk: Likewise.
11677 * conf/i386-pc.rmk: Likewise.
11678 * conf/i386-qemu.rmk: Likewise.
11679 * conf/mips.rmk: Likewise.
11680 * conf/sparc64-ieee1275.rmk: Likewise.
11681 * conf/x86-efi.rmk: Likewise.
11682
11683 * disk/lvm.h: #include updates for above renames.
11684 * util/grub-mkrelpath.c: Likewise.
11685 * util/grub-probe.c: Likewise.
11686 * util/i386/pc/grub-setup.c: Likewise.
11687 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11688 * kern/emu/console.c: Likewise.
11689 * kern/emu/getroot.c: Likewise.
11690 * kern/emu/hostdisk.c: Likewise.
11691 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
11692
11693 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
11694 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
11695 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
11696 * util/misc.c: Remove grub-emu functions.
11697
11698 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11699
11700 Fix gfxmenu crash.
11701 Reported by: Thorsten Grützmacher.
11702
11703 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
11704 timeout hook.
11705 (circprog_set_property): Register and unregister timeout hook.
11706 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
11707 (label_destroy): Free template. and unregister hook.
11708 (label_set_state): New function.
11709 (label_set_property): Handle templates and hooks.
11710 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
11711 timeout hook.
11712 (progress_bar_set_property): Register and unregister timeout hook.
11713 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
11714 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
11715 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
11716 (update_timeout_visit): Removed.
11717 (update_timeouts): New function.
11718 (redraw_timeouts): Likewise.
11719 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
11720 (grub_gfxmenu_clear_timeout): Likewise.
11721 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
11722 (grub_gfxmenu_timeout_notify): Likewise.
11723 (grub_gfxmenu_timeout_notifications): New external variable.
11724 (grub_gfxmenu_timeout_register): New function.
11725 (grub_gfxmenu_timeout_unregister): Likewise.
11726
11727 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 Transform (broken) vga terminal into (working) vga video driver.
11730
11731 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
11732 video/i386/pc/vga.c.
11733 * include/grub/video.h (grub_video_driver_id):
11734 Add GRUB_VIDEO_DRIVER_VGA.
11735 * term/i386/pc/vga.c: Renamed to ...
11736 * video/i386/pc/vga.c: ...this
11737 (DEBUG_VGA): Removed.
11738 (CHAR_WIDTH): Likewise.
11739 (CHAR_HEIGHT): Likewise.
11740 (TEXT_WIDTH): Likewise.
11741 (TEXT_HEIGHT): Likewise.
11742 (DEFAULT_FG_COLOR): Likewise.
11743 (DEFAULT_BG_COLOR): Likewise.
11744 (colored_char): Likewise.
11745 (xpos): Likewise.
11746 (ypos): Likewise.
11747 (cursor_state): Likewise.
11748 (fg_color): Likewise.
11749 (bg_color): Likewise.
11750 (text_buf): Likewise.
11751 (page): Likewise.
11752 (font): Likewise.
11753 (framebuffer): New variable.
11754 (set_read_map): Disabled.
11755 (setup): New variable.
11756 (is_target): Likewise.
11757 (grub_vga_mod_init): Likewise.
11758 (grub_vga_mod_fini): Likewise.
11759 (check_vga_mem): Likewise.
11760 (write_char): Likewise.
11761 (write_cursor): Likewise.
11762 (scroll_up): Likewise.
11763 (grub_vga_putchar): Likewise.
11764 (grub_vga_getcharwidth): Likewise.
11765 (grub_vga_getwh): Likewise.
11766 (grub_vga_getxy): Likewise.
11767 (grub_vga_gotoxy): Likewise.
11768 (grub_vga_cls): Likewise.
11769 (grub_vga_setcolorstate): Likewise.
11770 (grub_vga_setcursor): Likewise.
11771 (grub_video_vga_init): New function.
11772 (grub_video_vga_setup): Likewise.
11773 (grub_video_vga_fini): Likewise.
11774 (update_target): Likewise.
11775 (grub_video_vga_blit_bitmap): Likewise.
11776 (grub_video_vga_blit_render_target): Likewise.
11777 (grub_video_vga_set_active_render_target): Likewise.
11778 (grub_video_vga_get_active_render_target): Likewise.
11779 (grub_video_vga_swap_buffers): Likewise.
11780 (grub_video_vga_set_palette): Likewise.
11781 (grub_video_vga_get_info_and_fini): Likewise.
11782 (grub_vga_term): Removed.
11783 (grub_video_vga_adapter): New variable.
11784 (GRUB_MOD_INIT): Register a video driver instead of terminal.
11785 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
11786
11787 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * video/readers/jpeg.c: Indented.
11790
11791 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 Various jpeg cleanups.
11794
11795 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
11796 (grub_jpeg_decode_quan_table): Use sizeof.
11797 (grub_jpeg_decode_du): Use ARRAY_SIZE.
11798
11799 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
11800
11801 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
11802 tables. Ignore non-last ac bit.
11803 (grub_jpeg_decode_quan_table): Likewise.
11804
11805 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
11808 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
11809 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11810 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
11811 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
11812 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
11813
11814 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
11817 error.
11818
11819 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
11822
11823 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
11826 condition.
11827
11828 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
11831 part.
11832
11833 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
11836 pointers.
11837
11838 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11839
11840 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
11841
11842 2010-05-01 Christian Franke <franke@computer.org>
11843
11844 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
11845 Remove broken Cygwin path conversion.
11846 * util/misc.c: [__CYGWIN__] Add include and define.
11847 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
11848 for Cygwin 1.7.
11849 (make_system_path_relative_to_its_root): Simplify loop, replace early
11850 return by break.
11851 [__CYGWIN__] Add conversion to win32 path.
11852 Include "/" case in trailing slash removal.
11853
11854 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11855
11856 * kern/main.c (grub_load_config): Fix copy-pasted comment.
11857 Reported by: Seth Goldberg
11858
11859 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * commands/help.c (grub_cmd_help): Fix a typo.
11862 Reported by: Seth Goldberg
11863
11864 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
11867 name and add N_.
11868 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
11869 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
11870 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
11871 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
11872 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
11873 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
11874 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11875 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11876 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11877 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11878 * normal/context.c (GRUB_MOD_INIT): Likewise.
11879 * normal/main.c (GRUB_MOD_INIT): Likewise.
11880 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11881 * term/serial.c (GRUB_MOD_INIT): Likewise.
11882 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11883
11884 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
11887 extra == 0.
11888
11889 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11890
11891 * commands/iorw.c: New file.
11892 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
11893 (iorw_mod_SOURCES): New variable.
11894 (iorw_mod_CFLAGS): Likewise.
11895 (iorw_mod_LDFLAGS): Likewise.
11896
11897 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11898
11899 Hotkey support
11900
11901 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
11902 * normal/main.c (hotkey_aliases): New variable.
11903 (grub_normal_add_menu_entry): Parse "--hotkey".
11904 * normal/menu_text.c (run_menu): Handle hotkeys.
11905
11906 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * kern/i386/coreboot/init.c (grub_machine_init): Call
11909 grub_machine_mmap_init on qemu.
11910
11911 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * boot/i386/qemu/boot.S: Add a missing .code16.
11914
11915 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11916
11917 Use LBIO on coreboot.
11918
11919 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
11920 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
11921 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
11922 New declaration.
11923 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
11924 grub_machine_mmap_init on coreboot.
11925 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
11926 GRUB_LINUXBIOS_MEMBER_LINK.
11927 (grub_machine_mmap_iterate): Fix declaration.
11928 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
11929
11930 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11931
11932 Split coreboot and multiboot ports.
11933
11934 * conf/i386-multiboot.rmk: New file.
11935 * configure.ac: Add multiboot port.
11936 * include/grub/i386/multiboot/boot.h: New file.
11937 * include/grub/i386/multiboot/console.h: Likewise.
11938 * include/grub/i386/multiboot/init.h: Likewise.
11939 * include/grub/i386/multiboot/kernel.h: Likewise.
11940 * include/grub/i386/multiboot/loader.h: Likewise.
11941 * include/grub/i386/multiboot/memory.h: Likewise.
11942 * include/grub/i386/multiboot/serial.h: Likewise.
11943 * include/grub/i386/multiboot/time.h: Likewise.
11944 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
11945 * loader/multiboot.c: Likewise.
11946 * loader/multiboot_mbi2.c: Likewise.
11947 * util/grub-mkrescue.in: Generate multiboot rescue.
11948
11949 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * kern/parser.c (grub_parser_execute): Cope with read-only config.
11952
11953 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 Merge handling of input and output terminals. Fix a hang.
11956
11957 * commands/terminal.c (abstract_terminal): New struct.
11958 (handle_command): New function. Based on grub_cmd_terminal_input.
11959 (grub_cmd_terminal_input): Use handle_command.
11960 (grub_cmd_terminal_output): Use handle_command.
11961
11962 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
11963
11964 Fix comment handling.
11965
11966 * tests/grub_script_comments.in: New testcase.
11967 * conf/tests.rmk: Rules for new testcase.
11968 * script/yylex.l: Updated flex rules.
11969
11970 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11971
11972 * docs/grub.texi (play): Document that zero pitches produce rests.
11973 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
11974 if argc is 1.
11975
11976 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
11979 autogen issues.
11980
11981 2010-04-26 Christian Franke <franke@computer.org>
11982
11983 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
11984 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
11985 (grub_get_prefix): Remove function.
11986 * util/grub-emu.c (main): Replace grub_get_prefix () call by
11987 make_system_path_relative_to_its_root ().
11988 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11989
11990 2010-04-24 Christian Franke <franke@computer.org>
11991
11992 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
11993 (kernel_img_LDFLAGS): Remove -static-libgcc.
11994
11995 2010-04-24 Christian Franke <franke@computer.org>
11996
11997 * configure.ac: Do not CHECK_BSS_START_SYMBOL
11998 and CHECK_END_SYMBOL if grub-emu is built.
11999 Unset TARGET_OBJ2ELF if grub-emu is built
12000 without module support.
12001
12002 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
12003
12004 Nilfs2 support.
12005
12006 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
12007 (grub_fstest_SOURCES): Likewise.
12008 (pkglib_MODULES): Add nilfs2.mod.
12009 (nilfs2_mod_SOURCES): New variable.
12010 (nilfs2_mod_CFLAGS): Likewise.
12011 (nilfs2_mod_LDFLAGS): Likewise.
12012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12013 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12014 * fs/nilfs2.c: New file.
12015
12016 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
12019 is not supported.
12020
12021 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
12022
12023 Add grub-mkconfig support for NetBSD.
12024
12025 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
12026 * util/grub-mkconfig.in: export new NetBSD specific variables.
12027 * po/POTFILES-shell: added 10_netbsd.in.
12028 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
12029
12030 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
12031
12032 Fix emu build with grub-emu-pci and grub-emu-modules.
12033
12034 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
12035 functions.
12036 * include/grub/libpciaccess.h: New file.
12037 * conf/any-emu.rmk: Update kernel headers for emu build.
12038
12039 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
12042
12043 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
12046
12047 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
12050 Retrieve chosen/bootpath if bootpath isn't hardcoded.
12051 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
12052 util/ieee1275/ofpath.c.
12053 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
12054 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
12055 * include/grub/sparc64/ieee1275/boot.h
12056 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
12057 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
12058 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
12059 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
12060 const char *.
12061 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
12062 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
12063 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
12064 install.
12065
12066 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
12067
12068 * util/grub-mkconfig.in: Corrected two == equality tests.
12069 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
12070 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
12071 expect a number appended to it.
12072 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
12073 expects a number appended to it.
12074
12075 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
12078
12079 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * util/hostdisk.c (make_device_name): Change to new partition naming.
12082
12083 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
12086
12087 2010-04-17 Christian Franke <franke@computer.org>
12088
12089 * Makefile.in: Add missing localedir setting.
12090
12091 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
12092
12093 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
12094 mistake in r2156. Noticed by Anthony Fok.
12095
12096 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
12097 @localedir@.
12098 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12099
12100 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
12101
12102 Fix a spurious, uninitialized variable warning.
12103
12104 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
12105 Initialize variable, shdr.
12106 (grub_freebsd_load_elfmodule): Likewise.
12107 (grub_freebsd_load_elf_meta): Likewise.
12108
12109 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
12110
12111 Fix for escaped dollar in double quoted strings.
12112
12113 * script/yylex.l: Updated flex rules.
12114 * conf/tests.rmk: Rule for new testcase.
12115 * tests/grub_script_dollar.in: New testcase.
12116
12117 2010-04-13 Carles Pina i Estany <carles@pina.cat>
12118 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
12119
12120 Enclose all translated strings in grub.cfg in single quotes, and
12121 escape them appropriately (Ubuntu bug #552921).
12122
12123 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
12124 * util/grub.d/10_hurd.in: Use it.
12125 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12126 * util/grub.d/10_linux.in (linux_entry): Likewise.
12127
12128 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 Fix cygwin compilation.
12131
12132 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
12133 * include/grub/misc.h (__register_frame_info)
12134 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
12135 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12136 * kern/misc.c (__register_frame_info)
12137 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
12138 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12139
12140 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
12143
12144 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 Unify libgcc processing.
12147
12148 * Makefile.in (kernel_img_LDFLAGS): New variable.
12149 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
12150 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
12151 overwriting.
12152 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
12153 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
12154 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
12155 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
12156 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
12157 overwriting. Remove -lgcc and -static-libgcc
12158 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
12159 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12160 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12161 (kernel_img_LDFLAGS): Append instead of overwriting.
12162 Remove -lgcc and -static-libgcc
12163 * conf/sparc64-ieee1275.rmk: Likewise.
12164 * include/grub/powerpc/libgcc.h: Move to ...
12165 * include/grub/libgcc.h: .. this.
12166 * include/grub/libgcc.h: Don't export most of the function on x86.
12167 (__bswapsi2): New export.
12168 (__bswapdi2): Likewise.
12169 * include/grub/mips/libgcc.h: Removed.
12170 * include/grub/sparc64/libgcc.h: Likewise.
12171
12172 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12173
12174 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
12175 disk_info_msg (conflicts with gettexting into languages with cases).
12176
12177 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12178
12179 Add grub-probe support for NetBSD.
12180
12181 * util/getroot.c (find_root_device): Convert block device to
12182 character device on NetBSD.
12183 * util/probe.c (probe): Require character device on NetBSD.
12184 * util/hostdisk.c: NetBSD specific headers.
12185 (configure_device_driver): new function to tune device driver
12186 parameters (currently only for NetBSD floppy driver).
12187 (grub_util_biosdisk_open): NetBSD specific code (get disk size
12188 via disklabel ioctl).
12189 (open_device): call configure_device_driver on NetBSD.
12190 (convert_system_partition_to_system_disk): NetBSD specific code.
12191 (device_is_wholedisk): Likewise.
12192 (grub_util_biosdisk_get_grub_dev): Likewise.
12193 (make_device_name): Fixed a typo in bsd_part_str.
12194 * configure.ac: check for opendisk() and getrawpartition() on
12195 NetBSD and set LIBUTIL.
12196 * Makefile.in: add LIBUTIL to LIBS.
12197
12198 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12199
12200 Documentation fix.
12201
12202 * util/grub-script-check.c: Better help message.
12203
12204 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12205
12206 Fix FreeBSD build.
12207
12208 * configure.ac: Flex version check.
12209 * conf/common.rmk: Add -Wno-error to sh.mod.
12210 * script/yylex.l: Remove all #pragma.
12211
12212 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 * include/grub/util/misc.h (canonicalise_file_name): Add missing
12215 prototype.
12216 Reported by: Seth Goldberg.
12217
12218 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12219
12220 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
12221 Rename "module" to "module2".
12222 Reported by: Seth Goldberg.
12223
12224 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
12227 EXPORT_FUNC.
12228 Reported by: Seth Goldberg.
12229
12230 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12231
12232 * lib/posix_wrap/locale.h: Add missing file.
12233 Reported by: Seth Goldberg.
12234
12235 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 grub-emu module load support.
12238
12239 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
12240 NO_DYNAMIC_MODULES switched to this.
12241 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
12242 (CFLAGS): Likewise.
12243 * conf/any-emu.rmk: Generate symlist.
12244 (kernel_img_HEADERS): Add util/datetime.h.
12245 (kernel_img_HEADERS) [sdl]: Add sdl.h.
12246 (kernel_img_HEADERS) [libusb]: Add libusb.h.
12247 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
12248 kern/$(target_cpu)/cache.S.
12249 * configure.ac (grub-emu-modules): New option.
12250 * genmk.rb: Handle multiple source lists.
12251 * include/grub/sdl.h: New file.
12252 * include/grub/libusb.h: Likewise.
12253 * util/grub-emu.c (main): Hanle (host) root.
12254 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
12255 GRUB_ERR_UNKNOWN_DEVICE.
12256 * util/misc.c: Move mm functions to ...
12257 * util/mm.c: ... here. All users updated.
12258
12259 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
12262 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
12263 missing files.
12264 (maintainer-clean): Remove libgcrypt-grub.
12265
12266 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
12269
12270 2010-04-09 EFI Coder <eficoder@hotmail.com>
12271
12272 * normal/menu_text.c (print_message): Clean up the message and show
12273 the Fn information when on EFI
12274 * term/efi/console.c (grub_console_checkkey): Add F4 support.
12275
12276 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12277
12278 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
12279 All users updated.
12280 * normal/crypto.c (read_crypto_list): Likewise.
12281 * normal/dyncmd.c (read_command_list): Likewise.
12282 * normal/term.c (read_terminal_list): Likewise.
12283 * normal/main.c (read_lists): Use explicit prefix.
12284 (read_lists_hook): Use read_lists.
12285 (grub_normal_execute): Likewise.
12286
12287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12288
12289 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
12290 Reported by: Thomas Schmitt.
12291 Add -no-emul-boot to grub-mkisofs parameters.
12292
12293 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 * font/font.c: Indented.
12296
12297 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12298
12299 Elif support to GRUB script (by Deepak Vankadaru).
12300
12301 * tests/grub_script_if.in: New testcase.
12302 * conf/tests.rmk: Rule for new testcase.
12303 * script/parser.y: Grammar rules for elif.
12304
12305 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12306
12307 While and until loops support to GRUB script.
12308
12309 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
12310 (grub_script_create_cmdwhile): New function prototype.
12311 (grub_script_execute_cmdwhile): New function prototype.
12312 * script/execute.c (grub_script_execute_cmdwhile): New function.
12313 * script/parser.y (command): New commands.
12314 (whilecmd): New grammar rule.
12315 (untilcmd): New grammar rule.
12316 * script/script.c (grub_script_create_cmdwhile): New function.
12317 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
12318 function.
12319
12320 * tests/grub_script_while1.in: New testcase.
12321 * conf/tests.rmk: Rule for new testcase.
12322
12323 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12324
12325 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
12326 as *.jpg.
12327
12328 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
12329
12330 GRUB_BACKGROUND support.
12331
12332 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
12333 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
12334
12335 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 Load fonts and modules for gfxmenu in grub-mkconfig.
12338 Idea by: Mario Vazquez
12339
12340 * util/grub.d/00_header.in: Load pf2 and image modules.
12341
12342 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 grub-mkconfig multiple terminal support.
12345
12346 * util/grub-mkconfig.in: Handle multiple terminals correctly.
12347 * util/grub.d/00_header.in: Likewise.
12348
12349 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * Makefile.in: Specify files explicitly instead of using $< and $@ since
12352 we use cd $(srcdir).
12353
12354 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
12355
12356 * util/grub.d/10_linux.in: Only use the first word of
12357 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
12358 spaces in GRUB_DISTRIBUTOR.
12359 * util/grub.d/10_kfreebsd.in: Likewise.
12360 * util/grub.d/10_hurd.in: Likewise.
12361
12362 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
12363
12364 Fix unit testing framework for Qemu 0.12.
12365
12366 * tests/util/grub-shell.in: Remove -serial stdio option.
12367
12368 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 POSIX header file wrappers.
12371
12372 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
12373 equivalents.
12374 * lib/posix_wrap/ctype.h: Likewise.
12375 * lib/posix_wrap/errno.h: Likewise.
12376 * lib/posix_wrap/langinfo.h: Likewise.
12377 * lib/posix_wrap/limits.h: Likewise.
12378 * lib/posix_wrap/localcharset.h: Likewise.
12379 * lib/posix_wrap/stdint.h: Likewise.
12380 * lib/posix_wrap/stdio.h: Likewise.
12381 * lib/posix_wrap/stdlib.h: Likewise.
12382 * lib/posix_wrap/string.h: Likewise.
12383 * lib/posix_wrap/sys/types.h: Likewise.
12384 * lib/posix_wrap/unistd.h: Likewise.
12385 * lib/posix_wrap/wchar.h: Likewise.
12386 * lib/posix_wrap/wctype.h: Likewise.
12387 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
12388 (grub_script.yy.h): Likewise.
12389 * script/yylex.l: Remove POSIX emulation #defines.
12390 * Makefile.in (POSIX_CFLAGS): New variable.
12391 (GNULIB_UTIL_CFLAGS): Likewise.
12392
12393 Regexp support.
12394
12395 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
12396 (regexp_mod_SOURCES): New variable.
12397 (regexp_mod_CFLAGS): Likewise.
12398 (regexp_mod_LDFLAGS): Likewise.
12399 * commands/regexp.c: New file.
12400 * gnulib/regcomp.c: New file. Imported from gnulib.
12401 * gnulib/regex.c: Likewise.
12402 * gnulib/regex_internal.c: Likewise.
12403 * gnulib/regex_internal.h: Likewise.
12404 * gnulib/regexec.c: Likewise.
12405 * gnulib/regex.h: Likewise.
12406
12407 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
12410 unsupported video mode types.
12411
12412 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
12415
12416 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12417
12418 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
12419 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
12420
12421 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12422
12423 Remove unused grub_vga_get_font.
12424
12425 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
12426 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
12427
12428 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12429
12430 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
12431 * include/grub/misc.h: Likewise.
12432
12433 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12434
12435 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
12436 for which failure is fatal.
12437
12438 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12439
12440 * util/grub-install.in: Use mkdir -p to create grub directory.
12441 * util/i386/efi/grub-install.in: Likewise.
12442 * util/ieee1275/grub-install.in: Likewise.
12443
12444 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12445
12446 * Makefile.in (LEX): new variable.
12447
12448 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12449
12450 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
12451 `=' and added double quotes on operands of this equality test.
12452
12453 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 * Makefile.in (uninstall): Remove a leftover debug echo.
12456 Reported by: Grégoire Sutre
12457
12458 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12459
12460 MIPS multiboot2 support.
12461
12462 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
12463 (multiboot2_mod_SOURCES): New variable.
12464 (multiboot2_mod_CFLAGS): Likewise.
12465 (multiboot2_mod_LDFLAGS): Likewise.
12466 (multiboot2_mod_ASFLAGS): Likewise.
12467 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
12468 definition.
12469 (MULTIBOOT_ENTRY_REGISTER): Likewise.
12470 (MULTIBOOT_MBI_REGISTER): Likewise.
12471 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
12472 (MULTIBOOT_ELF32_MACHINE): Likewise.
12473 (MULTIBOOT_ELF64_MACHINE): Likewise.
12474 * include/grub/mips/multiboot.h: New file.
12475 * include/grub/video.h (grub_video_driver_id): New type
12476 GRUB_VIDEO_DRIVER_SM712.
12477 (grub_video_get_info_and_fini): Export.
12478 (grub_video_get_palette): Likewise.
12479 (grub_video_get_driver_id): Likewise.
12480 * include/multiboot2.h: Resynced with spec.
12481 * loader/i386/multiboot.c: Moved from here ...
12482 * loader/multiboot.c: ... here. All users updated.
12483 (grub_multiboot_boot): Use platform-specific macros.
12484 * loader/i386/multiboot_elfxx.c: Moved from here ...
12485 * loader/multiboot_elfxx.c: ... here. All users updated.
12486 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
12487 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
12488 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
12489
12490 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 Import gnulib argp module.
12493
12494 * gnulib/argp-ba.c: New file.
12495 * gnulib/argp-eexst.c: Likewise.
12496 * gnulib/argp-fmtstream.c: Likewise.
12497 * gnulib/argp-fmtstream.h: Likewise.
12498 * gnulib/argp-fs-xinl.c: Likewise.
12499 * gnulib/argp-help.c: Likewise.
12500 * gnulib/argp-namefrob.h: Likewise.
12501 * gnulib/argp-parse.c: Likewise.
12502 * gnulib/argp-pin.c: Likewise.
12503 * gnulib/argp-pv.c: Likewise.
12504 * gnulib/argp-pvh.c: Likewise.
12505 * gnulib/argp-version-etc.c: Likewise.
12506 * gnulib/argp-version-etc.h: Likewise.
12507 * gnulib/argp-xinl.c: Likewise.
12508 * gnulib/argp.h: Likewise.
12509
12510 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * kern/device.c (grub_device_iterate): Clear errors after failed
12513 opening device.
12514
12515 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
12518 returned by firmware.
12519
12520 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
12523 compilation on coreboot and qemu
12524
12525 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * include/multiboot2.h: Resync with spec.
12528
12529 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 Multiboot2 tag support
12532
12533 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
12534 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
12535 Remove loader/multiboot_loader.c.
12536 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
12537 (grub_multiboot2_real_boot): Likewise.
12538 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
12539 (grub_get_multiboot_mmap_count): New proto.
12540 (grub_fill_multiboot_mmap): Likewise.
12541 (grub_multiboot_set_video_mode): Likewise.
12542 (grub_multiboot_set_console): Likewise.
12543 (grub_multiboot_load): Likewise.
12544 (grub_multiboot_load_elf): Likewise.
12545 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
12546 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
12547 * include/multiboot.h: Resynced with specification.
12548 * include/multiboot2.h: Resynced with specification.
12549 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
12550 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
12551 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
12552 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
12553 users updated.
12554 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
12555 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
12556 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
12557 Removed.
12558 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
12559 Moved from here...
12560 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
12561 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
12562 Moved from here...
12563 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
12564 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
12565 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
12566 All users updated.
12567 * loader/i386/multiboot_mbi2.c: New file.
12568
12569 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 Resync with gnulib.
12572
12573 * Makefile.in (GNULIB_CFLAGS): New variable.
12574 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
12575 (grub_script_check_CFLAGS): New variable.
12576 * gnulib/alloca.h: Resync with gnulib.
12577 * gnulib/error.c: Likewise.
12578 * gnulib/error.h: Likewise.
12579 * gnulib/fnmatch.c: Likewise.
12580 * gnulib/fnmatch_loop.c: Likewise.
12581 * gnulib/getdelim.c: Likewise.
12582 * gnulib/getline.c: Likewise.
12583 * gnulib/getopt.c: Likewise.
12584 * gnulib/getopt1.c: Likewise.
12585 * gnulib/getopt_int.h: Likewise.
12586 * gnulib/gettext.h: Likewise.
12587 * gnulib/progname.c: Likewise.
12588 * gnulib/progname.h: Likewise.
12589
12590 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
12591
12592 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
12593 which is the case with --disabled-nls.
12594
12595 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
12596 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
12597 * util/misc.c: Likewise.
12598 * util/mkisofs/mkisofs.c: Likewise.
12599 * util/mkisofs/mkisofs.h: Likewise.
12600
12601 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 Simplify Apple CC support.
12604
12605 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
12606 Add 0 byte at the end not to have a symbol with empty target.
12607 * mmap/i386/pc/mmap_helper.S: Likewise.
12608 * genmk.rb: Ignore errors 2030 and 2050.
12609 * kern/i386/pc/startup.S: Use LOCAL when possible.
12610
12611 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
12612
12613 Testcase and the fix for final semicolon on cmdline.
12614
12615 * tests/grub_script_final_semicolon.in: New testcase.
12616 * conf/tests.rmk: Rules for the new testcase.
12617 * script/parser.y: Grammar fix.
12618
12619 2010-03-26 BVK Chaitanya <bvk@localhost>
12620
12621 Blank lines testcase for GRUB script.
12622
12623 * tests/grub_script_blanklines.in: New testcase.
12624 * conf/tests.rmk: Rules for the new testcase.
12625
12626 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 Don't use __FILE__.
12629
12630 * genmk.rb: Add -DGRUB_FILE to all C targets.
12631 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
12632 * include/grub/list.h: Likewise.
12633 * include/grub/misc.h: Likewise.
12634 * include/grub/mm.h: Likewise.
12635 * include/grub/test.h: Likewise.
12636 * kern/mm.c: Likewise.
12637 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
12638
12639 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12640
12641 Sunpc partitions support.
12642
12643 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
12644 (grub_fstest_SOURCES): Likewise.
12645 (pkglib_MODULES): Add part_sunpc.mod.
12646 (part_sunpc_mod_SOURCES): New variable.
12647 (part_sunpc_mod_CFLAGS): Likewise.
12648 (part_sunpc_mod_LDFLAGS): Likewise.
12649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
12650 * partmap/sunpc.c: New file.
12651
12652 2010-03-26 BVK Chaitanya <bvk@localhost>
12653
12654 For loop support to GRUB script.
12655
12656 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
12657 (grub_script_create_cmdfor): New function prototype.
12658 (grub_script_execute_cmdfor): New function prototype.
12659 * script/execute.c (grub_script_execute_cmdfor): New function.
12660 * script/parser.y (command): New for command.
12661 (forcmd): New grammar rule.
12662 * script/script.c (grub_script_create_cmdfor): New function.
12663 * util/grub-script-check.c (grub_script_execute_cmdfor): New
12664 function.
12665 * tests/grub_script_for1.in: New testcase.
12666 * conf/tests.rmk: Rules for new testcase.
12667
12668 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 Nested partitions
12671
12672 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
12673 'partition' is NULL, grub_partition_get_start already does that.
12674 * commands/loadenv.c (check_blocklists): Likewise.
12675 (write_blocklists): Likewise.
12676 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
12677 (grub_fstest_SOURCES): Likewise.
12678 (pkglib_MODULES): Add part_bsd.mod.
12679 (part_bsd_mod_SOURCES): New variable.
12680 (part_bsd_mod_CFLAGS): Likewise.
12681 (part_bsd_mod_LDFLAGS): Likewise.
12682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
12683 (grub_emu_SOURCES): Likewise.
12684 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12685 * include/grub/bsdlabel.h: New file.
12686 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
12687 'get_name'.
12688 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
12689 (grub_partition_map_list): New variable.
12690 (grub_partition_map_register): Inline.
12691 (grub_partition_map_unregister): Likewise.
12692 (FOR_PARTITION_MAPS): New macro.
12693 (grub_partition_map_iterate): Removed.
12694 (grub_partition_get_start): Handle nested partitions.
12695 * include/grub/msdos_partition.h: Remove bsd-related entries.
12696 (grub_pc_partition): Remove.
12697 * kern/disk.c (grub_disk_close): Free partition data.
12698 (grub_disk_adjust_range): Handle nested partitions.
12699 * kern/partition.c (grub_partition_map_probe): New function.
12700 (grub_partition_probe): Parse name to number, handle subpartitions.
12701 (get_partmap): New function.
12702 (grub_partition_iterate): Handle subpartitions.
12703 (grub_partition_get_name): Likewise.
12704 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
12705 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
12706 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
12707 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
12708 Set 'number'.
12709 (acorn_partition_map_probe): Remove.
12710 (acorn_partition_map_get_name): Likewise.
12711 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
12712 Set 'number'.
12713 Set 'index' to 0 since there can be only one partition entry per sector.
12714 (amiga_partition_map_probe): Remove.
12715 (amiga_partition_map_get_name): Likewise.
12716 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
12717 Set 'number'.
12718 Set 'offset' and 'index' to real positions of partitions.
12719 (apple_partition_map_probe): Remove.
12720 (apple_partition_map_get_name): Likewise.
12721 * partmap/bsdlabel.c: New file.
12722 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
12723 Set 'number'.
12724 Allocate 'data' so it can be correctly freed.
12725 Set 'index' to offset inside sector.
12726 (gpt_partition_map_probe): Remove.
12727 (gpt_partition_map_get_name): Likewise.
12728 * partmap/msdos.c (grub_partition_parse): Remove.
12729 (pc_partition_map_iterate): Don't force raw access.
12730 Set 'number'.
12731 Make 'ext_offset' a local variable.
12732 (pc_partition_map_probe): Remove.
12733 (pc_partition_map_get_name): Remove.
12734 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
12735 Set 'number'.
12736 (sun_partition_map_probe): Remove.
12737 (sun_partition_map_get_name): Likewise.
12738 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
12739 (grub_pcpart_type): Likewise.
12740 * util/hostdisk.c (open_device): Handle new numbering scheme.
12741 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
12742 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
12743 * util/grub-probe.c (probe_partmap): Handle nested paritions.
12744 * util/grub-install.in: Insert all subpartition modules.
12745 * util/ieee1275/grub-install.in: Likewise.
12746
12747 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
12748
12749 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
12750 grammar.
12751
12752 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
12753
12754 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
12755
12756 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
12757
12758 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
12759 match where 'make install' puts them.
12760 * util/i386/efi/grub-install.in: Likewise.
12761
12762 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
12763
12764 * .bzrignore: Add gentrigtables, grub-script-check,
12765 grub_script_check_init.c, grub_script_check_init.h, and
12766 trigtables.c.
12767
12768 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
12769
12770 * kern/parser.c: Indented.
12771
12772 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
12775
12776 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12777
12778 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
12779 alpha_mask_size == 0 case.
12780
12781 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
12782
12783 GRUB shell lexer and parser improvements.
12784
12785 * conf/any-emu.rmk: Build rule updates.
12786 * conf/common.rmk: Likewise.
12787 * conf/i386-coreboot.rmk: Likewise.
12788 * conf/i386-efi.rmk: Likewise.
12789 * conf/i386-ieee1275.rmk: Likewise.
12790 * conf/i386-pc.rmk: Likewise.
12791 * conf/powerpc-ieee1275.rmk: Likewise.
12792 * conf/x86_64-efi.rmk: Likewise.
12793
12794 * configure.ac: Configure check for flex.
12795
12796 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
12797 types.
12798 (grub_lexer_param): Struct member updates.
12799 (grub_parser_param): Likewise.
12800 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
12801 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
12802 (grub_script_lexer_init): Prototype update.
12803 (grub_script_lexer_record_start): Likewise.
12804 (grub_script_lexer_record_stop): Likewise.
12805 (grub_script_lexer_yywrap): New function prototype.
12806 (grub_script_lexer_fini): Likewise.
12807 (grub_script_execute_argument_to_string): Removed by...
12808 (grub_script_execute_argument_to_argv): ...better version.
12809
12810 * script/execute.c (ROUND_UPTO): New macro.
12811 (grub_script_execute_cmdline): Out of memory fixes.
12812 (grub_script_execute_menuentry): Likewise.
12813 (grub_script_execute_argument_to_string): Removed. Update all
12814 users by...
12815 (grub_script_execute_argument_to_argv): ...better version.
12816 * script/function.c (grub_script_function_create): Use
12817 grub_script_execute_argument_to_argv instead of
12818 grub_script_execute_argument_to_string.
12819
12820 * script/lexer.c (check_varstate): Removed.
12821 (check_textstate): Removed.
12822 (grub_script_lexer_record_start): Likewise.
12823 (grub_script_lexer_record_stop): Likewise.
12824 (recordchar): Replaced with...
12825 (grub_script_lexer_record): ...new function.
12826 (nextchar): Removed.
12827 (grub_script_lexer_init): Rewritten.
12828 (grub_script_yylex): Rewritten.
12829 (append_newline): New function.
12830 (grub_script_lexer_yywrap): New function.
12831 (grub_script_lexer_fini): New function.
12832 (grub_script_yyerror): Sets error flag.
12833
12834 * script/yylex.l: New file.
12835 (grub_lexer_yyfree): Wrapper for flex yyffre.
12836 (grub_lexer_yyalloc): Likewise.
12837 (grub_lexer_yyrealloc): Likewise.
12838 * script/parser.y: Refactored.
12839
12840 * script/script.c (grub_script_arg_add): Out of memory fixes.
12841 (grub_script_add_arglist): Likewise.
12842 (grub_script_create_cmdline): Likewise.
12843 (grub_script_create_cmdmenu): Likewise.
12844 (grub_script_add_cmd): Likewise.
12845 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
12846 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
12847 unnecessary code.
12848
12849 * tests/grub_script_echo1.in: New testcase.
12850 * tests/grub_script_vars1.in: New testcase.
12851 * tests/grub_script_echo_keywords.in: New testcase.
12852
12853 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 Remove some redundancy in build system.
12856
12857 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
12858 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
12859 (TARGET_LDFLAGS): Add -nostdlib.
12860 (TARGET_IMG_LDFLAGS): Likewise.
12861 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
12862 anything since mmap isn't available.
12863 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
12864 Add util/time.c.
12865 (pkglib_MODULES): Remove reboot.mod.
12866 (reboot_mod_SOURCES): Removed.
12867 (reboot_mod_CFLAGS): Likewise.
12868 (reboot_mod_LDFLAGS): Likewise.
12869 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
12870 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
12871 (DEFSYMFILES): Add kernel_syms.lst.
12872 (kernel_img_HEADERS): Add common headers.
12873 (symlist.c): New target.
12874 (kernel_syms.lst): Likewise.
12875 (pkglib_MODULES): Add memdisk.mod.
12876 (memdisk_mod_SOURCES): New variable.
12877 (memdisk_mod_CFLAGS): Likewise.
12878 (memdisk_mod_LDFLAGS): Likewise.
12879 (pkglib_MODULES): Add reboot.mod.
12880 (reboot_mod_SOURCES): New variable.
12881 (reboot_mod_CFLAGS): Likewise.
12882 (reboot_mod_LDFLAGS): Likewise.
12883 (pkglib_MODULES): Add date.mod.
12884 (date_mod_SOURCES): New variable.
12885 (date_mod_CFLAGS): Likewise.
12886 (date_mod_LDFLAGS): Likewise.
12887 (pkglib_MODULES): Add datehook.mod.
12888 (datehook_mod_SOURCES): New variable.
12889 (datehook_mod_CFLAGS): Likewise.
12890 (datehook_mod_LDFLAGS): Likewise.
12891 (pkglib_MODULES): Add lsmmap.mod.
12892 (lsmmap_mod_SOURCES): New variable.
12893 (lsmmap_mod_CFLAGS): Likewise.
12894 (lsmmap_mod_LDFLAGS): Likewise.
12895 (pkglib_MODULES): Add boot.mod.
12896 (boot_mod_SOURCES): New variable.
12897 (boot_mod_CFLAGS): Likewise.
12898 (boot_mod_LDFLAGS): Likewise.
12899 * conf/i386-coreboot.rmk: Removed redundant parts.
12900 * conf/i386-ieee1275.rmk: Likewise.
12901 * conf/i386-pc.rmk: Likewise.
12902 * conf/mips-yeeloong.rmk: Likewise.
12903 * conf/mips.rmk: Likewise.
12904 * conf/powerpc-ieee1275.rmk: Likewise.
12905 * conf/sparc64-ieee1275.rmk: Likewise.
12906 * conf/x86_64-efi.rmk: Likewise.
12907 * conf/i386-coreboot.rmk: Moved qemu parts ..
12908 * conf/i386-qemu.rmk: ... here
12909 * conf/i386-efi.rmk: Moved common parts to...
12910 * conf/x86-efi.rmk: ... here.
12911 * conf/i386.rmk: Added modules common to all x86 variants.
12912 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
12913 * disk/memdisk.c: Remove grub/machine/kernel.h.
12914 * gensymlist.sh.in: Include symbol.h.
12915 * hook/datehook.c: Correct module name.
12916 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
12917 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
12918 * include/grub/i386/efi/serial.h: New file.
12919 * include/grub/x86_64/efi/serial.h: Likewise.
12920 * util/time.c: Likewise.
12921 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
12922
12923 2010-03-14 Colin King <colin.king@ubuntu.com>
12924 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
12925
12926 Shrink the pre-partition-table part of boot.img by eight bytes.
12927
12928 * boot/i386/pc/boot.S (ERR): New macro.
12929 (chs_mode): Use ERR.
12930 (geometry_error): Likewise.
12931 (hd_probe_error): Remove. This is only used once, so we wrwite
12932 it inline instead.
12933 (read_error): Instead of printing read_error_string, just set up
12934 %si and fall through to ...
12935 (error_message): ... this new function, also used by ERR.
12936
12937 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
12938
12939 Speed up consecutive hostdisk operations on the same device.
12940
12941 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
12942 (grub_util_biosdisk_open): Initialise disk->data.
12943 (struct linux_partition_cache): New structure.
12944 (linux_find_partition): Cache partition start positions; these are
12945 expensive to compute on every read and write.
12946 (open_device): Cache open file descriptor in disk->data, so that we
12947 don't have to reopen it and flush the buffer cache for consecutive
12948 operations on the same device.
12949 (grub_util_biosdisk_close): New function.
12950 (grub_util_biosdisk_dev): Set `close' member.
12951
12952 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
12953 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
12954 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12955 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12956 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
12957
12958 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 Compile parts of grub-emu as modules.
12961
12962 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
12963 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
12964 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
12965 (all-local): Add $(GRUB_EMU).
12966 (install-local): Install $(GRUB_EMU).
12967 (uninstall): Uninstall $(GRUB_EMU).
12968 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
12969 * kern/dl.c: Likewise.
12970 * commands/sleep.c: Not include machine/time.h.
12971 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
12972 (COMMON_CFLAGS): Likewise.
12973 (sbin_UTILITIES): Remove grub-emu.
12974 (grub_emu_SOURCES): Removed.
12975 (kernel_img_RELOCATABLE): New variable.
12976 (pkglib_PROGRAMS): Add kernel.img.
12977 (kernel_img_SOURCES): New variable
12978 (kernel_img_CFLAGS): Likewise.
12979 (kernel_img_LDFLAGS): Likewise.
12980 (TARGET_NO_STRIP): Likewise.
12981 (TARGET_NO_DYNAMIC_MODULES): Likewise.
12982 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
12983 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
12984 (grub-emu): New target.
12985 (GRUB_EMU): New variable.
12986 * configure.ac: Whitelist -emu as possible x86_64 architecture.
12987 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
12988 * loader/xnu.c: Likewise.
12989 * include/grub/pci.h: Likewise.
12990 * genemuinit.sh: New file.
12991 * genemuinitheader.sh: Likewise.
12992 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
12993 Support TARGET_NO_DYNAMIC_MODULES.
12994 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
12995 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
12996 * disk/loopback.c: Likewise.
12997 * font/font_cmd.c: Likewise.
12998 * partmap/acorn.c: Likewise.
12999 * partmap/amiga.c: Likewise.
13000 * partmap/apple.c: Likewise.
13001 * partmap/gpt.c: Likewise.
13002 * partmap/msdos.c: Likewise.
13003 * partmap/sun.c: Likewise.
13004 * parttool/msdospart.c: Likewise.
13005 * term/gfxterm.c: Likewise.
13006 * video/bitmap.c: Likewise.
13007 * video/readers/jpeg.c: Likewise.
13008 * video/readers/png.c: Likewise.
13009 * video/readers/tga.c: Likewise.
13010 * video/video.c: Likewise.
13011 * util/grub-emu.c (read_command_list): Removed.
13012 (main): Don't call util_init_nls.
13013 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
13014 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
13015
13016 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13017
13018 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
13019 date.mod, datehook.mod.
13020 (datetime_mod_SOURCES): New variable.
13021 (datetime_mod_CFLAGS): Likewise.
13022 (datetime_mod_LDFLAGS): Likewise.
13023 (date_mod_SOURCES): Likewise.
13024 (date_mod_CFLAGS): Likewise.
13025 (date_mod_LDFLAGS): Likewise.
13026 (datehook_mod_SOURCES): Likewise.
13027 (datehook_mod_CFLAGS): Likewise.
13028 (datehook_mod_LDFLAGS): Likewise.
13029 * conf/sparc64-ieee1275.rmk: Likewise.
13030 * lib/ieee1275/datetime.c: New file.
13031
13032 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
13035 (ieee1275_fb_mod_SOURCES): New variable.
13036 (ieee1275_fb_mod_CFLAGS): Likewise.
13037 (ieee1275_fb_mod_LDFLAGS): Likewise.
13038 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
13039 New proto.
13040 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
13041 (HEAP_MAX_ADDR): Likewise.
13042 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
13043 type.
13044 Correct stop condition.
13045 (grub_ieee1275_devices_iterate): New function.
13046 * video/ieee1275.c: New file.
13047
13048 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
13051
13052 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
13053 as scratch.
13054 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
13055 SCRATCH_PAD_DISKBOOT as scratch.
13056 (bootit): Pass Openfirmware pointer in %o4.
13057 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
13058 of 0x200000.
13059 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
13060 with util/grub-mkrawimage.c.
13061 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
13062 * include/grub/aout.h (AOUT_MID_SUN): New definition.
13063 (grub_aout_get_type) [GRUB_UTIL]: Removed.
13064 (grub_aout_load) [GRUB_UTIL]: Likewise.
13065 * include/grub/kernel.h (grub_modules_get_end): New proto.
13066 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
13067 (SCRATCH_PAD_BOOT): New definition.
13068 (SCRATCH_PAD_DISKBOOT): Likewise.
13069 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
13070 * include/grub/sparc64/ieee1275/ieee1275.h
13071 (grub_ieee1275_original_stack): New variable
13072 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
13073 New definition
13074 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
13075 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
13076 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
13077 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
13078 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
13079 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
13080 (grub_platform_image_format_t): New type.
13081 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
13082 * kern/main.c (grub_modules_get_end)
13083 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
13084 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
13085 (codestart): Switch stacks.
13086 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
13087 variable.
13088 (grub_heap_init): Use grub_modules_get_end.
13089 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
13090 stack.
13091 * util/grub-mkrawimage.c (generate_image): Support sparc64.
13092 (main): Likewise.
13093 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
13094
13095 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
13096
13097 * util/grub-mkrescue.in: Base ISO UUID on UTC.
13098
13099 2010-03-08 Matt Kraai <kraai@ftbfs.org>
13100
13101 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
13102 bug #559005).
13103
13104 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 * genmoddep.awk: Output all missing symbols and not only first.
13107
13108 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 * NEWS: Put the date of 1.98 release.
13111
13112 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
13115 ft2build.h.
13116
13117 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
13120 completition in the middle of string.
13121
13122 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13123
13124 * util/grub-mkrescue.in: Use mktemp with explicit template.
13125
13126 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
13129
13130 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
13133 right pointer.
13134
13135 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 Fix FreeBSD compilation.
13138
13139 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
13140 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
13141
13142 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
13145
13146 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
13149
13150 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
13153
13154 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
13155
13156 Support relative image path in theme file.
13157
13158 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
13159 (image_set_property): Handle theme_dir and relative path.
13160
13161 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13162
13163 * configure.ac: Alias amd64 to x86_64.
13164
13165 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * NEWS: mention multiboot on EFI.
13168
13169 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * kern/main.c (grub_load_modules): Handle errors from init functions of
13172 embeded modules.
13173
13174 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 * normal/autofs.c (autoload_fs_module): Handle errors.
13177
13178 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 Disable linux.mod on qemu-mips since it's not functional and leads
13181 to compilation failure.
13182
13183 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
13184 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
13185 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
13186 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
13187 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
13188 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
13189 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
13190 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
13191 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
13192 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
13193 Reported by: BVK Chaitanya
13194
13195 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
13196
13197 * INSTALL: Add gettext as a dependency and add qemu to a new section
13198 "Prerequisites for make-check".
13199
13200 2010-03-04 Christian Franke <franke@computer.org>
13201
13202 * util/grub-pe2elf.c: Add missing include "progname.h".
13203
13204 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 * normal/crypto.c (read_crypto_list): Fix a typo.
13207 Reported by: Seth Goldberg.
13208
13209 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13210
13211 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
13212 Reported by: Seth Goldberg.
13213
13214 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
13217 ascii.bitmaps.
13218
13219 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * genmk.rb: Remove terminal*.lst in make clean.
13222 Reported by: Seth Goldberg.
13223
13224 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * util/i386/efi/grub-install.in: Copy gettext files.
13227
13228 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
13231
13232 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13233
13234 Wait for user entry basing on presence of output rather than on errors.
13235
13236 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
13237 (grub_install_newline_hook): Likewise.
13238 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
13239 * normal/menu.c (show_menu): Check line_counter to determine presence
13240 of output.
13241 * normal/term.c (grub_normal_line_counter): New variable.
13242 (grub_normal_get_line_counter): New function.
13243 (grub_install_newline_hook): Likewise.
13244
13245 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13246
13247 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
13248
13249 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13250
13251 * configure.ac: Update version to 1.98.
13252
13253 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
13254
13255 * util/grub.d/10_linux.in (linux_entry): Don't default to
13256 gfxpayload=keep if Linux doesn't support video handover.
13257
13258 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 Don't compile video modules on yeeloong since video subsystem is part
13261 of kernel.
13262
13263 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
13264 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
13265 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
13266 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
13267 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
13268 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
13269 * include/grub/bitmap_scale.h: Likewise.
13270 * include/grub/bufio.h: Likewise.
13271 * include/grub/font.h: Likewise.
13272 * include/grub/gfxterm.h: Likewise.
13273 * include/grub/video.h: Likewise.
13274 * include/grub/vbe.h: Don't include video_fb.h.
13275 * video/i386/pc/vbe.c: Include video_fb.h.
13276 * commands/i386/pc/vbetest.c: Include video.h.
13277
13278 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
13279
13280 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
13281 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
13282 default entry if GRUB_SAVEDEFAULT=true. This allows using
13283 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
13284 saving a new default on every boot.
13285
13286 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * normal/crypto.c (read_crypto_list): Fix a memory leak.
13289 * normal/term.c (read_terminal_list): Likewise.
13290 * normal/main.c (grub_normal_init_page): Likewise.
13291 (grub_normal_read_line_real): Likewise.
13292
13293 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
13296 memory leak.
13297 Reported by: Seth Goldberg.
13298
13299 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
13300
13301 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
13302 duplicate declaration of `start'.
13303
13304 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
13307 filename.
13308 Reported by: Georgy Buranov
13309
13310 2010-02-20 Carles Pina i Estany <carles@pina.cat>
13311
13312 * util/grub-mkrawimage.c (usage): Change string formatting to
13313 improve gettext.
13314
13315 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13316
13317 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
13318 backspace keys.
13319
13320 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
13323 Reported by: Michael Suchanek.
13324
13325 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13326
13327 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
13328 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
13329
13330 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
13331
13332 Remove any reference to non-free fonts.
13333
13334 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
13335 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
13336 uses non-free components.
13337 * font/font.c (grub_font_get_name): Remove example name.
13338 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
13339 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13340 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
13341 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
13342
13343 2010-02-16 Georgy Buranov <gburanov@gmail.com>
13344
13345 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
13346
13347 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
13350 Double divisor.
13351 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
13352 features.
13353 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
13354
13355 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * gensymlist.sh.in: Use TARGET_CC instead of CC.
13358
13359 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13360
13361 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
13362 * docs/grub.texi (Command-line and menu entry commands): Document play
13363 command.
13364
13365 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13366
13367 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
13368 parse arguments as inline tempo and notes. Move code for playing notes
13369 to...
13370 (play): ... new function.
13371
13372 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13373
13374 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
13375 grub_uint16_t instead of short.
13376 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
13377 disk from little endian to cpu endianness.
13378
13379 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
13380
13381 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
13382 GRUB_TICKS_PER_SECOND instead of 120.
13383
13384 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
13387 escape sequence after \e.
13388
13389 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
13392 non-ASCII characters.
13393
13394 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13395
13396 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
13397 set root in single quotes to prevent \, from being unescaped.
13398
13399 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 Prevent unknown commands from stopping menuentry execution.
13402
13403 * script/execute.c (grub_script_execute_cmdline): Print error after
13404 unknown command.
13405
13406 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13407
13408 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
13409 Reported by: Pavel Pisa.
13410
13411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
13414
13415 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 Merge grub_ieee1275_map_physical into grub_map and rename to
13418 grub_ieee1275_map
13419
13420 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
13421 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
13422 Remove.
13423 * kern/ieee1275/openfw.c (grub_map): Rename to ...
13424 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
13425 necessary.
13426 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
13427
13428 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
13431 opening and not after.
13432
13433 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
13436 constants.
13437
13438 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
13441 (alloc_phys): Use ALIGN_UP instead of align_addr.
13442
13443 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13444
13445 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
13446
13447 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
13450
13451 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
13454 verbose dprintf.
13455
13456 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13457
13458 Fix over-4GiB seek on sparc64.
13459
13460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
13461 Replace pos_i and pos_lo with pos. All users updated.
13462 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13463 New constant.
13464 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13465 Likewise.
13466 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
13467 and pos_lo.
13468
13469 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * util/grub-mkrawimage.c (main): Call set_program_name.
13472
13473 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 Properly align 64-bit targets.
13476
13477 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
13478 (generate_image): Use ALIGN_ADDR.
13479
13480 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 Properly create cross-endian images.
13483
13484 * include/grub/types.h (grub_host_to_target_addr): New macro
13485 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
13486
13487 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13488
13489 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
13490
13491 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
13494
13495 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
13496 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
13497 (grub_linux_boot): Divide by 64K when on VESA.
13498
13499 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 Support GRUB_GFXPAYLOAD_LINUX.
13502
13503 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
13504 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
13505
13506 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
13509 to show messages instead of discarding them.
13510 Process errors after executing command and not before. Keep old method
13511 too as precaution.
13512
13513 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * configure.ac: Check for ft2build.h.
13516
13517 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
13520
13521 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * genkernsyms.sh.in: Use TARGET_CC.
13524
13525 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
13526
13527 * NEWS: Update.
13528
13529 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * include/grub/multiboot2.h: Remove leftover file.
13532 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
13533 * include/grub/partition.h [GRUB_UTIL]: Likewise.
13534
13535 2010-02-07 Yves Blusseau <blusseau@zetam.org>
13536
13537 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
13538
13539 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 Fix warnings in grub-emu when compiling with maximum warning options.
13542
13543 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
13544 (grub_arch_modules_addr): Return 0 and not NULL.
13545 * util/misc.c (ENABLE_RELOCATABLE): New definition.
13546 (xstrdup): Use newstr instead of dup.
13547 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
13548 of disk to dsk to avoid shadowing.
13549 (find_free_slot): Fix prototype.
13550 * util/getroot.c (grub_util_is_dmraid): Make static.
13551 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
13552 Add missing prototype.
13553 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
13554
13555 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * loader/i386/linux.c (grub_linux_setup_video): Handle error
13558 appropriately.
13559
13560 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
13563 code out.
13564
13565 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13566
13567 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
13568 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
13569 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
13570 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
13571 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
13572 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
13573
13574 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13575
13576 * include/grub/err.h (grub_err_printf): Don't export.
13577
13578 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
13581
13582 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13583
13584 * include/grub/i18n.h (grub_gettext_dummy): Removed.
13585 * kern/misc.c (grub_gettext_dummy): Make static.
13586
13587 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13588
13589 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
13590 by non-valid ones.
13591 * kern/term.c (grub_putchar): Likewise.
13592
13593 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
13596 buggy hook call and memory leak.
13597
13598 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
13601
13602 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
13605
13606 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
13609 modevar.
13610 Return grub_errno on allocation error.
13611
13612 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
13615
13616 2010-02-06 Yves Blusseau <blusseau@zetam.org>
13617
13618 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
13619 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
13620
13621 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
13624 non-pxe disk.
13625 (grub_pxefs_open): Likewise.
13626
13627 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13628
13629 * util/grub.d/10_hurd.in: Add --class information to menuentries.
13630 * util/grub.d/10_kfreebsd.in: Likewise.
13631 * util/grub.d/10_linux.in: Likewise.
13632
13633 2010-02-06 Colin D Bennett <colin@gibibit.com>
13634
13635 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
13636 (gfxmenu_mod_SOURCES): New variable.
13637 (gfxmenu_mod_CFLAGS): Likewise.
13638 (gfxmenu_mod_LDFLAGS): Likewise.
13639 * include/grub/term.h (grub_term_set_current_output): Declare
13640 argument as const.
13641 * docs/gfxmenu-theme-example.txt: New file.
13642 * gfxmenu/gfxmenu.c: Likewise.
13643 * gfxmenu/gui_box.c: Likewise.
13644 * gfxmenu/gui_canvas.c: Likewise.
13645 * gfxmenu/gui_circular_progress.c: Likewise.
13646 * gfxmenu/gui_image.c: Likewise.
13647 * gfxmenu/gui_label.c: Likewise.
13648 * gfxmenu/gui_list.c: Likewise.
13649 * gfxmenu/gui_progress_bar.c: Likewise.
13650 * gfxmenu/gui_string_util.c: Likewise.
13651 * gfxmenu/gui_util.c: Likewise.
13652 * gfxmenu/icon_manager.c: Likewise.
13653 * gfxmenu/model.c: Likewise.
13654 * gfxmenu/named_colors.c: Likewise.
13655 * gfxmenu/theme_loader.c: Likewise.
13656 * gfxmenu/view.c: Likewise.
13657 * gfxmenu/widget-box.c: Likewise.
13658 * include/grub/gfxmenu_model.h: Likewise.
13659 * include/grub/gfxmenu_view.h: Likewise.
13660 * include/grub/gfxwidgets.h: Likewise.
13661 * include/grub/gui.h: Likewise.
13662 * include/grub/gui_string_util.h: Likewise.
13663 * include/grub/icon_manager.h: Likewise.
13664
13665 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13666
13667 Agglomerate scrolling in gfxterm.
13668
13669 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
13670 (grub_virtual_screen_setup): Initialise 'total_screen'.
13671 (write_char): Split to ...
13672 (paint_char): ... this ...
13673 (write_char): ... and this.
13674 (paint_char): Handle delayed scrolling.
13675 (draw_cursor): Likewise.
13676 (scroll_up): Split to ...
13677 (real_scroll): ... this ...
13678 (scroll_up): ... and this.
13679 (real_scroll): Handle multi-line scroll and draw below-the-bottom
13680 characters.
13681 (grub_gfxterm_refresh): Call real_scroll.
13682
13683 2010-02-06 Colin D Bennett <colin@gibibit.com>
13684
13685 * include/grub/misc.h (grub_iscntrl): New inline function.
13686 (grub_isalnum): Likewise.
13687 (grub_strtol): Likewise.
13688
13689 2010-02-06 Colin D Bennett <colin@gibibit.com>
13690
13691 * normal/menu_text.c (get_entry_number): Move from here ...
13692 * normal/menu.c (get_entry_number): ... moved here.
13693 * include/grub/menu.h (grub_menu_get_default_entry_index):
13694 New prototype.
13695 * normal/menu.c (grub_menu_get_default_entry_index): New function.
13696 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
13697 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
13698 (grub_menu_viewer_should_return): Likewise.
13699 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
13700 * normal/menu_text.c (run_menu): Enable menu switching.
13701 * normal/menu_viewer.c (should_return): New variable.
13702 (menu_viewer_changed): Likewise.
13703 (grub_menu_viewer_show_menu): Handle menu viewer changes.
13704 (grub_menu_viewer_should_return): New function.
13705 (menuviewer_write_hook): Likewise.
13706 (grub_menu_viewer_init): Likewise.
13707
13708 2010-02-06 Colin D Bennet <colin@gibibit.com>
13709 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13710
13711 Support for gfxterm in a window.
13712
13713 * include/grub/gfxterm.h: New file.
13714 * include/grub/video.h (struct grub_video_rect): New declaration.
13715 (grub_video_rect_t): Likewise.
13716 * term/gfxterm.c (struct grub_gfxterm_window): New type.
13717 (refcount): New variable.
13718 (render_target): Likewise.
13719 (window): Likewise.
13720 (repaint_callback): Likewise.
13721 (grub_virtual_screen_setup): Use 'render_target'.
13722 (init_window): New function.
13723 (grub_gfxterm_init_window): Likewise.
13724 (grub_gfxterm_init): Check reference counter.
13725 Use init_window.
13726 (destroy_window): New function.
13727 (grub_gfxterm_destroy_window): Likewise.
13728 (grub_gfxterm_fini): Check reference counter.
13729 Use destroy_window.
13730 (redraw_screen_rect): Restore viewport.
13731 Use 'render_target' and 'window'.
13732 Call 'repaint_callback'.
13733 (write_char): Use 'render_target'.
13734 (draw_cursor): Likewise.
13735 (scroll_up): Restore viewport.
13736 Use 'render_target' and 'window'.
13737 Call 'repaint_callback'.
13738 (grub_gfxterm_cls): Likewise.
13739 (grub_gfxterm_refresh): Use 'window'.
13740 (grub_gfxterm_set_repaint_callback): New function.
13741 (grub_gfxterm_background_image_cmd): Use 'window'.
13742 (grub_gfxterm_get_term): New function.
13743 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
13744
13745 2010-02-06 Colin D Bennett <colin@gibibit.com>
13746
13747 Bitmap scaling support.
13748
13749 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
13750 (bitmap_scale_mod_SOURCES): New variable.
13751 (bitmap_scale_mod_CFLAGS): Likewise.
13752 (bitmap_scale_mod_LDFLAGS): Likewise.
13753 * include/grub/bitmap_scale.h: New file.
13754 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
13755 (background_image_cmd_options): New variable.
13756 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
13757 (cmd): Rename and change type to ...
13758 (background_image_cmd_handle): ... this. All users updated.
13759 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
13760 * video/bitmap_scale.c: New file.
13761
13762 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 SDL support.
13765
13766 * Makefile.in (LIBSDL): New variable.
13767 (enable_grub_emu_sdl): Likewise.
13768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
13769 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
13770 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
13771 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
13772 * util/sdl.c: New file.
13773
13774 2010-02-06 Colin D Bennett <colin@gibibit.com>
13775 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13776
13777 Double buffering support.
13778
13779 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
13780 * include/grub/video.h: Update comment.
13781 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
13782 New type.
13783 (grub_video_fb_doublebuf_blit_init): New prototype.
13784 * term/gfxterm.c (scroll_up): Support double buffering.
13785 (grub_gfxterm_refresh): Likewise.
13786 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
13787 (grub_video_fb_doublebuf_blit_init): Likewise.
13788 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
13789 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
13790 'displayed_page', 'render_page' and 'update_screen'.
13791 (grub_video_vbe_fini): Free offscreen buffer.
13792 (doublebuf_pageflipping_commit): New function.
13793 (doublebuf_pageflipping_update_screen): Likewise.
13794 (doublebuf_pageflipping_init): Likewise.
13795 (double_buffering_init): Likewise.
13796 (grub_video_vbe_setup): Enable doublebuffering.
13797 (grub_video_vbe_swap_buffers): Implement.
13798 (grub_video_vbe_set_active_render_target): Handle double buffering.
13799 (grub_video_vbe_get_active_render_target): Likewise.
13800 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
13801 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
13802 (grub_video_vbe_enable_double_buffering): Likewise.
13803 (grub_video_vbe_swap_buffers): Use update_screen.
13804 (grub_video_set_mode): Use double buffering.
13805
13806 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13807
13808 * maintainance/gentrigtables.py: Remove.
13809 * lib/trig.c: Likewise.
13810
13811 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
13812
13813 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
13814 `trigtables.c'.
13815 (trigtables.c): New rule.
13816 (gentrigtables): Likewise.
13817 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
13818
13819 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13820
13821 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
13822 integer constants.
13823
13824 2010-02-06 Colin D Bennet <colin@gibibit.com>
13825
13826 Trigonometry support.
13827
13828 * include/grub/trig.h: New file.
13829 * lib/trig.c: Likewise.
13830 * maintainance/gentrigtables.py: Likewise.
13831 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
13832 (trig_mod_SOURCES): New variable.
13833 (trig_mod_CFLAGS): Likewise.
13834 (trig_mod_LDFLAGS): Likewise.
13835
13836 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
13839 disk devices.
13840
13841 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
13844 error.
13845
13846 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13847
13848 * util/hostdisk.c (open_device): Don't use partition device when reading
13849 before the partition.
13850 (grub_util_biosdisk_read): Don't read from partition and before the
13851 partition in single operation.
13852 (grub_util_biosdisk_write): Don't write to partition and before the
13853 partition in single operation.
13854
13855 2010-02-03 Torsten Landschoff <torsten@debian.org>
13856
13857 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13858 last sectors.
13859
13860 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
13863 CDROM reads.
13864 (grub_biosdisk_write): Refuse to write to CDROM.
13865
13866 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13867
13868 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
13869
13870 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * font/font.c (find_glyph): Check that bmp_idx is available before
13873 using it.
13874 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
13875 with (font == NULL).
13876
13877 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
13878
13879 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
13880
13881 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
13882
13883 * include/grub/script_sh.h (sourcecode): Add const qualifier.
13884 * util/grub-script-check.c (getline): Fix empty lines case.
13885
13886 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
13887
13888 * Makefile.in (check): Exit with fail status when one of the tests
13889 fails.
13890 * tests/example_functional_test.c (example_test): Fix reversed assert.
13891 * tests/example_unit_test.c (example_test): Likewise.
13892
13893 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
13894
13895 * util/grub.d/10_linux.in: This script does not use any of the
13896 contents of gettext.sh, only the external command `gettext', so stop
13897 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
13898 the same prefix as GRUB.)
13899 * util/grub.d/10_kfreebsd.in: Likewise.
13900
13901 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
13904 of the line.
13905
13906 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13907
13908 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13909 last sectors.
13910
13911 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13912
13913 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
13914 having a 4KiB and not 32KiB buffer size.
13915
13916 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13917
13918 * util/hostfs.c: Include `<errno.h>'.
13919 (grub_hostfs_read): Handle errors from fseeko() and fread().
13920
13921 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13922
13923 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
13924 loop when using read hooks on files whose size isn't sector-aligned.
13925
13926 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13927
13928 Remove unused parameter.
13929
13930 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
13931 (grub_iso9660_open): Remove initialization of `data->length'.
13932
13933 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13934
13935 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
13936 memleak conditions.
13937
13938 2010-01-27 Carles Pina i Estany <carles@pina.cat>
13939
13940 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
13941 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
13942
13943 2010-01-26 Carles Pina i Estany <carles@pina.cat>
13944
13945 * util/bin2h.c (usage): Fix warning (space after backslash).
13946
13947 2010-01-26 Carles Pina i Estany <carles@pina.cat>
13948
13949 * font/font.c: Include `grub/fontformat.h.
13950 Remove font file format constants.
13951 (grub_font_load): Use the new macros.
13952 * include/grub/fontformat.h: New file.
13953 * util/grub-mkfont.c: Include `grub/fontformat.c'.
13954 (write_font_pf2): Use the new macros.
13955
13956 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13957
13958 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
13959 does.
13960
13961 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13962
13963 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
13964
13965 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
13966 (_start): Macroify `0x7F'.
13967
13968 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
13969 (make_install_device): Use "(pxe)" as fallback prefix when booting
13970 via PXE.
13971
13972 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13973
13974 * configure.ac: Reset LIBS after check for libgcc symbols.
13975
13976 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
13977
13978 * util/hostdisk.c (open_device): Add trailing newline to debug
13979 message.
13980
13981 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
13982
13983 * configure.ac: Check for `limits.h'.
13984 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
13985
13986 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
13987
13988 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
13989 capitalize error strings.
13990
13991 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
13992
13993 * util/grub.d/10_hurd.in: Add a recovery mode.
13994
13995 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * configure.ac: Check for libgcc symbols with -nostdlib.
13998
13999 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
14000
14001 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
14002
14003 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
14006 stack since heap may be unavailable at that point.
14007 (grub_ofconsole_gotoxy): Likewise.
14008
14009 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14010
14011 * configure.ac: Check for _restgpr_14_x.
14012 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
14013 and _savegpr_* prototypes.
14014
14015 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
14016
14017 Use generic grub_reboot() for i386-efi.
14018
14019 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
14020 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
14021 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
14022
14023 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
14026 presence of "prefix" variable as it breaks when normal.mod is
14027 embedded.
14028
14029 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14030
14031 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
14032 stack since heap is unavailable at that point.
14033
14034 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
14037 (grub_freebsd_bootinfo): Rewritten.
14038 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
14039
14040 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
14043
14044 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
14045
14046 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
14047 domain now.
14048
14049 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
14050
14051 * util/misc.c (make_system_path_relative_to_its_root): Change the work
14052 around for handling "/" to the correct fix. Fix a memory leak. Use
14053 xstrdup instead of strdup.
14054
14055 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
14058
14059 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 Optimise glyph lookup by Basic Multilingual Plane lookup array.
14062
14063 * font/font.c (struct grub_font): New member 'bmp_idx'.
14064 (font_init): Initialise 'bmp_idx'.
14065 (load_font_index): Fill 'bmp_idx'.
14066 (find_glyph): Make inline. Use bmp_idx for BMP characters.
14067
14068 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
14071 unnecessary calls.
14072
14073 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 Move context handling out of the kernel.
14076
14077 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
14078 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
14079 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
14080 * conf/i386-efi.rmk: Likewise.
14081 * conf/i386-ieee1275.rmk: Likewise.
14082 * conf/i386-pc.rmk: Likewise.
14083 * conf/powerpc-ieee1275.rmk: Likewise.
14084 * conf/sparc64-ieee1275.rmk: Likewise.
14085 * conf/x86_64-efi.rmk: Likewise.
14086 * include/grub/env.h: Include grub/menu.h.
14087 (grub_env_var_type): Removed.
14088 (grub_env_var): Replaced field 'type' with 'global'.
14089 (grub_env_find): New prototype.
14090 (grub_env_context_open): Remove EXPORT_FUNC.
14091 (grub_env_context_close): Likewise.
14092 (grub_env_export): Likewise.
14093 (grub_env_set_data_slot): Removed.
14094 (grub_env_get_data_slot): Likewise.
14095 (grub_env_unset_data_slot): Likewise.
14096 (grub_env_unset_menu): New prototype.
14097 (grub_env_set_menu): Likewise.
14098 (grub_env_get_menu): Likewise.
14099 * include/grub/env_private.h: New file.
14100 * include/grub/normal.h (grub_context_init): New prototype.
14101 (grub_context_fini): Likewise.
14102 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
14103 * normal/context.c (grub_cmd_export): ... to here.
14104 * kern/env.c: Include env_private.h.
14105 (HASHSZ): Moved to include/grub/env_private.h.
14106 (grub_env_context): Likewise.
14107 (grub_env_sorted_var): Likewise.
14108 (current_context): Renamed from this ...
14109 (grub_current_context): ...to this. 'static' removed. All users updated.
14110 (grub_env_find): Removed 'static'.
14111 (grub_env_context_open): Moved to normal/context.c.
14112 (grub_env_context_close): Likewise.
14113 (grub_env_export): Likewise.
14114 (mangle_data_slot_name): Removed.
14115 (grub_env_set_data_slot): Likewise.
14116 (grub_env_get_data_slot): Likewise.
14117 (grub_env_unset_data_slot): Likewise.
14118 * kern/main.c (grub_set_root_dev): Don't export root.
14119 It will be done later.
14120 (grub_main): Don't export prefix.
14121 It will be done later.
14122 * normal/context.c: New file.
14123 * normal/main.c (free_menu): Use grub_env_unset_menu.
14124 (grub_normal_add_menu_entry): Use grub_env_get_menu.
14125 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
14126 (GRUB_MOD_INIT(normal)): Call grub_context_init.
14127 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
14128
14129 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 setpci support.
14132
14133 * commands/setpci.c: New file.
14134 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
14135 (setpci_mod_SOURCES): New variable.
14136 (setpci_mod_CFLAGS): Likewise.
14137 (setpci_mod_LDFLAGS): Likewise.
14138
14139 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14140
14141 Byte-addressable PCI configuration space.
14142
14143 * bus/pci.c (grub_pci_make_address): Use byte address instead of
14144 dword address.
14145 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
14146 GRUB_PCI_REG_CACHELINE.
14147 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
14148 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
14149 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
14150 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
14151 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
14152 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
14153 grub_pci_make_address.
14154 (lock_rom_area): Likewise.
14155 * commands/lspci.c (grub_lspci_iter): Use macroses
14156 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
14157 of grub_pci_make_address.
14158 * disk/ata.c (grub_ata_pciinit): Likewise.
14159 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
14160 (GRUB_PCI_REG_VENDOR): Likewise.
14161 (GRUB_PCI_REG_DEVICE): Likewise.
14162 (GRUB_PCI_REG_COMMAND): Likewise.
14163 (GRUB_PCI_REG_STATUS): Likewise.
14164 (GRUB_PCI_REG_REVISION): Likewise.
14165 (GRUB_PCI_REG_CLASS): Likewise.
14166 (GRUB_PCI_REG_CACHELINE): Likewise.
14167 (GRUB_PCI_REG_LAT_TIMER): Likewise.
14168 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
14169 (GRUB_PCI_REG_BIST): Likewise.
14170 (GRUB_PCI_REG_ADDRESSES): Likewise.
14171 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14172 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14173 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14174 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14175 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14176 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14177 (GRUB_PCI_REG_CIS_POINTER): Likewise.
14178 (GRUB_PCI_REG_SUBVENDOR): Likewise.
14179 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
14180 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
14181 (GRUB_PCI_REG_CAP_POINTER): Likewise.
14182 (GRUB_PCI_REG_IRQ_LINE): Likewise.
14183 (GRUB_PCI_REG_IRQ_PIN): Likewise.
14184 (GRUB_PCI_REG_MIN_GNT): Likewise.
14185 (GRUB_PCI_REG_MAX_LAT): Likewise.
14186 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
14187 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
14188 * video/efi_uga.c (find_framebuf): Likewise.
14189 * video/sm712.c (grub_video_sm712_setup): Likewise.
14190 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
14191 space.
14192
14193 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14194
14195 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
14196 can be reliably determined to be supported.
14197
14198 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14199
14200 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
14201 that VESA is supported.
14202 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
14203 supported.
14204
14205 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14206
14207 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
14208
14209 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14210
14211 * util/misc.c (make_system_path_relative_to_its_root): Work around
14212 special-casing of "/", as previous incarnation of this routine did.
14213
14214 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14215
14216 Fix any-emu compilation.
14217
14218 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
14219 * grub_bin2h_SOURCES: New variable.
14220
14221 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14222
14223 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
14224
14225 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14226
14227 * util/grub.d/00_header.in: Fix handling of locale_dir.
14228
14229 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
14232 as possible unifont location (Gentoo).
14233 Reported by: Alexander Brüning
14234
14235 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 Don't try to generate lists for kernel.img.
14238
14239 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
14240 (pkglib_MODULES): Remove kernel.img.
14241 (kernel_img_EXPORTS): Removed.
14242 (kernel_img_RELOCATABLE): New variable.
14243 * conf/x86_64-efi.rmk: Likewise.
14244 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
14245
14246 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
14249 grub_xasprintf or grub_snprintf.
14250 (grub_vsprintf): Likewise.
14251 (grub_snprintf): New proto.
14252 (grub_vsnprintf): Likewise.
14253 (grub_xasprintf): Likewise.
14254 (grub_xvasprintf): Likewise.
14255 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
14256 (grub_sprintf): Removed.
14257 (grub_vsnprintf): New function.
14258 (grub_snprintf): Likewise.
14259 (grub_xvasprintf): Likewise.
14260 (grub_xasprintf): Likewise.
14261 (grub_vsprintf): Renamed to ...
14262 (grub_vsnprintf_real): ...this. New argument max_len.
14263
14264 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
14265
14266 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
14267 fix grub-script-check warning.
14268
14269 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 * include/grub/font.h (grub_font_load): Fix prototype.
14272
14273 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
14276
14277 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * include/grub/x86_64/at_keyboard.h: New file.
14280
14281 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * loader/mips/linux.c: Include missing grub/i18n.h.
14284
14285 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14286
14287 * normal/menu.c (notify_execution_failure): Clarify error message.
14288
14289 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14290
14291 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
14292 return value (and revert all return statements). Update users.
14293
14294 2010-01-20 Dan Merillat <debian@dan.merillat.org>
14295
14296 * kern/device.c (grub_device_iterate): Allocate new part_ent
14297 structure based on sizeof (*p) rather than sizeof (p->next), to
14298 account for structure padding.
14299
14300 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
14301 disk is NULL, which might happen for LVM physical volumes with no
14302 LVM signature.
14303
14304 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14305
14306 * loader/mips/linux.c (grub_cmd_initrd)
14307 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
14308
14309 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14310
14311 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
14312 (grub_video_video_init, grub_video_bitmap_init)
14313 (grub_font_manager_init, grub_term_gfxterm_init)
14314 (grub_at_keyboard_init): New extern declarations.
14315 (grub_machine_init): Initialize gfxterm and at_keyboard.
14316
14317 * kern/main.c (grub_main): Revert grub_printf delay kludge.
14318
14319 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
14320 `gfxterm.mod' into core image.
14321
14322 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14323 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14324 (kernel_img_FORMAT): Copy to ...
14325
14326 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14327 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14328 (kernel_img_FORMAT): ... here, and ...
14329
14330 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14331 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14332 (kernel_img_FORMAT): ... here.
14333
14334 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
14335 and input (at_keyboard) terminals in kernel.
14336 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
14337
14338 (pkglib_MODULES): Remove `pci.mod'.
14339 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
14340 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
14341 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14342 (at_keyboard_mod_LDFLAGS): Remove variables.
14343
14344 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
14345
14346 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
14347
14348 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
14349
14350 * include/grub/mips/libgcc.h: Only export symbols for functions
14351 that libgcc provides.
14352
14353 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 MIPS support.
14356
14357 * bus/bonito.c: New file.
14358 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
14359 GRUB_PCI_NUM_DEVICES.
14360 * term/i386/pc/serial.c: Move to ...
14361 * term/serial.c: ... here. All users updated.
14362 * util/i386/pc/grub-mkimage.c: Move to ...
14363 * util/grub-mkrawimage.c: ... here. All users updated.
14364 * term/i386/pc/at_keyboard.c: Move to ...
14365 * term/at_keyboard.c: ... here. All users updated.
14366 * conf/mips-qemu-mips.rmk: New file.
14367 * conf/mips-yeeloong.rmk: Likewise.
14368 * conf/mips.rmk: Likewise.
14369 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
14370 mipsel-qemu-mips.
14371 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
14372 to port addresses.
14373 (grub_ata_pciinit): Support CS5536.
14374 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
14375 * font/font_cmd.c (loadfont_command): Open file before passing it to
14376 grub_font_load.
14377 (pseudo_file_read): New function.
14378 (pseudo_file_close): Likewise.
14379 (pseudo_fs): New structure.
14380 (load_font_module): New function.
14381 (GRUB_MOD_INIT(font_manager)): Load embedded font.
14382 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
14383 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
14384 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
14385 * include/grub/i386/at_keyboard.h: Split into ...
14386 * include/grub/at_keyboard.h: ... this ...
14387 * include/grub/i386/at_keyboard.h: ... and this.
14388 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
14389 New prototype.
14390 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
14391 updated.
14392 (grub_elf64_size): Likewise.
14393 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
14394 filename.
14395 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
14396 * include/grub/i386/coreboot/serial.h: Rewritten.
14397 * include/grub/i386/ieee1275/serial.h: Include
14398 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
14399 * include/grub/i386/pc/serial.h: Moved from here ...
14400 * include/grub/serial.h: ... to here. All users updated.
14401 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
14402 (GRUB_PCI_NUM_BUS): Likewise.
14403 (GRUB_PCI_NUM_DEVICES): Likewise.
14404 (grub_pci_device_map_range): Add missing volatile keyword.
14405 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
14406 * include/grub/mips/at_keyboard.h: New file.
14407 * include/grub/mips/cache.h: Likewise.
14408 * include/grub/mips/io.h: Likewise.
14409 * include/grub/mips/kernel.h: Likewise.
14410 * include/grub/mips/libgcc.h: Likewise.
14411 * include/grub/mips/pci.h: Likewise.
14412 * include/grub/mips/qemu-mips/boot.h: Likewise.
14413 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14414 * include/grub/mips/qemu-mips/loader.h: Likewise.
14415 * include/grub/mips/qemu-mips/memory.h: Likewise.
14416 * include/grub/mips/qemu-mips/serial.h: Likewise.
14417 * include/grub/mips/qemu-mips/time.h: Likewise.
14418 * include/grub/mips/relocator.h: Likewise.
14419 * include/grub/mips/time.h: Likewise.
14420 * include/grub/mips/types.h: Likewise.
14421 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
14422 * include/grub/mips/yeeloong/boot.h: Likewise.
14423 * include/grub/mips/yeeloong/kernel.h: Likewise.
14424 * include/grub/mips/yeeloong/loader.h: Likewise.
14425 * include/grub/mips/yeeloong/memory.h: Likewise.
14426 * include/grub/mips/yeeloong/pci.h: Likewise.
14427 * include/grub/mips/yeeloong/serial.h: Likewise.
14428 * include/grub/mips/yeeloong/time.h: Likewise.
14429 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
14430 * kern/elf.c (grub_elf32_size): New parameter. All users
14431 updated.
14432 (grub_elf64_size): Likewise.
14433 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
14434 Load modules before saying "Welcome to GRUB!".
14435 Call grub_refresh after saying "Welcome to GRUB!".
14436 * kern/mips/cache.S: New file.
14437 * kern/mips/cache_flush.S: Likewise.
14438 * kern/mips/dl.c: Likewise.
14439 * kern/mips/init.c: Likewise.
14440 * kern/mips/qemu-mips/init.c: Likewise.
14441 * kern/mips/startup.S: Likewise.
14442 * kern/mips/yeeloong/init.c: Likewise.
14443 * kern/term.c (grub_putcode): Handle NULL terminal.
14444 (grub_getcharwidth): Likewise.
14445 (grub_getkey): Likewise.
14446 (grub_checkkey): Likewise.
14447 (grub_getkeystatus): Likewise.
14448 (grub_getxy): Likewise.
14449 (grub_getwh): Likewise.
14450 (grub_gotoxy): Likewise.
14451 (grub_cls): Likewise.
14452 (grub_setcolorstate): Likewise.
14453 (grub_setcolor): Likewise.
14454 (grub_getcolor): Likewise.
14455 (grub_refresh): Likewise.
14456 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
14457 (write_jump): Add hatch nop.
14458 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
14459 * lib/mips/setjmp.S: New file.
14460 * loader/mips/linux.c: Likewise.
14461 * term/i386/pc/at_keyboard.c: Move from here ...
14462 * term/at_keyboard.c: ... to here.
14463 * term/i386/pc/serial.c: Moved from here ...
14464 * term/serial.c: ... to here. All users updated.
14465 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
14466 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
14467 (serial_translate_key_sequence): Avoid deadlock.
14468 (grub_serial_getkey): Handle backspace.
14469 (grub_serial_putchar): Fix newline handling.
14470 * util/i386/pc/grub-mkimage.c: Move from here ...
14471 * util/grub-mkrawimage.c: ... to here. All users updated.
14472 (generate_image): New parameters 'font_path' and 'format'.
14473 Support embedding font.
14474 Use grub_host_to_target* instead of grub_cpu_to_le*.
14475 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
14476 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
14477 (options): New option "--font".
14478 (usage): Likewise.
14479 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
14480 (main): Handle "--font".
14481 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
14482 (grub_virtual_screen_setup): Set bg_color_display.
14483 (redraw_screen_rect): Use bg_color_display instead of incorrect
14484 bg_color.
14485 (grub_gfxterm_cls): Likewise.
14486 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
14487 Support embedding config file.
14488 (add_segments): Likewise.
14489 (options): New option "--config".
14490 (main): Handle "--config".
14491 * video/sm712.c: New file.
14492
14493 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14494
14495 Fix parallel builds.
14496
14497 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
14498 font.c depend on ascii.h).
14499
14500 2010-01-12 Carles Pina i Estany <carles@pina.cat>
14501
14502 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
14503
14504 2010-01-11 Carles Pina i Estany <carles@pina.cat>
14505
14506 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
14507 By default: disabled.
14508 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
14509 parameter.
14510
14511 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14512
14513 * font/font.c: Update copyright years.
14514 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
14515
14516 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14517
14518 * font/font.c: Include `ascii.h'.
14519 (ASCII_BITMAP_SIZE): New macro.
14520 (ascii_font_glyph): Define.
14521 (ascii_glyph_lookup): New function.
14522 (grub_font_get_string_width): Change comment. If glyph not found, use
14523 ascii_glyph_lookup.
14524 (grub_font_get_glyph_with_fallback): If glyph not available returns
14525 ascii_glyph_lookup.
14526 * util/grub-mkfont.c (file_formats): New enum.
14527 (options): Add `ascii-bitmaps' new option.
14528 (usage): Add `asii-bitmaps' new option.
14529 (write_font_ascii_bitmap): New function.
14530 (write_font): Rename to ...
14531 (write_font_p2): ... this. Remove print_glyphs call.
14532 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
14533 used. Call print_glyphs.
14534 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
14535
14536 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14537
14538 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
14539 (grub_bin2h_SOURCES): New variable.
14540 * util/bin2h.c: New file.
14541
14542 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * include/multiboot.h: Resynced with spec.
14545 * include/multiboot2.h: Likewise.
14546 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
14547 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
14548
14549 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14550
14551 * include/grub/term.h (grub_term_register_input,
14552 grub_term_register_output): Check return of terminal init()
14553 routines, and abort if errors are raised.
14554
14555 * commands/terminal.c: Update copyright year.
14556
14557 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14558
14559 * commands/terminal.c (grub_cmd_terminal_input)
14560 (grub_cmd_terminal_output): Check return of terminal init()
14561 routines, and abort if errors are raised.
14562
14563 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14564
14565 * include/grub/i386/bsd.h: Fix include pathes.
14566
14567 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14568
14569 Add missing *BSD copyright headers.
14570
14571 * include/grub/aout.h: Add BSD licence.
14572 * include/grub/i386/bsd.h: Parts under different licences moved to ...
14573 * include/grub/i386/freebsd_linker.h: ... here,
14574 * include/grub/i386/freebsd_reboot.h: ... here,
14575 * include/grub/i386/netbsd_bootinfo.h: ... here,
14576 * include/grub/i386/netbsd_reboot.h: ... here,
14577 * include/grub/i386/openbsd_bootarg.h: ... here,
14578 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
14579 licence to each file.
14580
14581 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14582
14583 * acinclude.m4: Remove `nop' assembly instruction; it's not
14584 implemented by all architectures.
14585
14586 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14587
14588 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
14589 ELILO. This is no longer necessary.
14590
14591 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
14592
14593 Added new tool, grub-scrit-check to verify grub.cfg syntax.
14594
14595 * util/grub-script-check.c: grub-script-check tool.
14596 * conf/common.rmk: Make rules for grub-script-check.
14597
14598 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14599
14600 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
14601 spotting it back in 2008. Shame on me for forgetting he did.
14602
14603 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
14604
14605 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14606
14607 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
14608 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
14609 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
14610 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
14611 (GRUB_VIDEO_TYPE_EFI): Rename to ...
14612 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
14613
14614 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
14615
14616 * include/grub/test.h: Add license header.
14617 * tests/example_functional_test.c: Likewise.
14618 * tests/example_unit_test.c: Likewise.
14619 * tests/lib/functional_test.c: Likewise.
14620 * tests/lib/test.c: Likewise.
14621 * tests/lib/unit_test.c: Likewise.
14622
14623 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 Use flag-based instead of hook-based video mode selection and "auto"
14626 keyword.
14627
14628 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
14629 (grub_video_set_mode): Changed prototype. All users updated.
14630 (grub_video_check_mode_flag): New inline function.
14631 * video/video.c (parse_modespec): New function.
14632 (grub_video_set_mode): Parse flags and keywords.
14633
14634 2010-01-17 Carles Pina i Estany <carles@pina.cat>
14635
14636 * util/misc.c (grub_util_info): Fix the order of the parameters in a
14637 fprintf call.
14638
14639 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
14640
14641 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
14642
14643 2010-01-16 Carles Pina i Estany <carles@pina.cat>
14644
14645 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
14646 string.
14647 * util/grub-emu.c (usage): Likewise.
14648 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
14649 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14650 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14651 * util/i386/pc/grub-setup.c (usage): Likewise.
14652
14653 2010-01-16 Carles Pina i Estany <carles@pina.cat>
14654
14655 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
14656 the message.
14657 (grub_util_info): Likewise.
14658 (grub_util_error): Likewise.
14659 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
14660 and/or new lines in `grub_util_warna', `grub_util_info',
14661 `grub_util_error' calls.
14662 * util/getroot.c: Likewise.
14663 * util/grub-editenv.c: Likewise.
14664 * util/grub-emu.c: Likewise.
14665 * util/grub-fstest.c: Likewise.
14666 * util/grub-mkdevicemap.c: Likewise.
14667 * util/grub-mkfont.c: Likewise.
14668 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14669 * util/grub-mkrelpath.c: Likewise.
14670 * util/grub-pe2elf.c: Likewise.
14671 * util/grub-probe.c: Likewise.
14672 * util/hostdisk.c: Likewise.
14673 * util/i386/efi/grub-mkimage.c: Likewise.
14674 * util/i386/pc/grub-mkimage.c: Likewise.
14675 * util/i386/pc/grub-setup.c: Likewise.
14676 * util/ieee1275/ofpath.c: Likewise.
14677 * util/mkisofs/eltorito.c: Likewise.
14678 * util/mkisofs/rock.c: Likewise.
14679 * util/mkisofs/write.c: Likewise.
14680 * util/raid.c: Likewise.
14681 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
14682 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14683
14684 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 Enable multiboot on non-pc.
14687
14688 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
14689 multiboot.mod and multiboot2.mod to ...
14690 * conf/i386.rmk (pkglib_MODULES): ... here.
14691 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
14692 Moved to ...
14693 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
14694 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
14695 Moved to ...
14696 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
14697 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
14698 Moved to ...
14699 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
14700 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
14701 Moved to ...
14702 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
14703 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
14704 relocator.mod.
14705 (ata_mod_SOURCES): Removed.
14706 (ata_mod_CFLAGS): Likewise.
14707 (ata_mod_LDFLAGS): Likewise.
14708 (relocator_mod_SOURCES): Removed.
14709 (relocator_mod_CFLAGS): Likewise.
14710 (relocator_mod_ASFLAGS): Likewise.
14711 (relocator_mod_LDFLAGS): Likewise.
14712 Include i386.mk.
14713 * include/grub/x86_64/multiboot.h: New file.
14714 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
14715 Terminate EFI.
14716
14717 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 Video multiboot support.
14720
14721 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
14722 New prototype.
14723 * include/multiboot.h: Resynced with multiboot specification.
14724 * include/multiboot2.h: Likewise.
14725 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
14726 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
14727 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
14728 (HAS_VGA_TEXT): Likewise.
14729 (accepts_video): New variable.
14730 (grub_multiboot_set_accepts_video): New function.
14731 (grub_multiboot_get_mbi_size): Account for video structures.
14732 (set_video_mode): New function.
14733 (retrieve_video_parameters): Likewise.
14734 (grub_multiboot_make_mbi): Fill video fields.
14735
14736 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 Video driver ids.
14739
14740 * include/grub/video.h (grub_video_driver_id): New type.
14741 (grub_video_adapter): New member 'id'. All users updated.
14742 (grub_video_get_driver_id): New proto.
14743 * video/video.c (grub_video_get_driver_id): New function.
14744
14745 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14746
14747 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
14748 `var=val'.
14749
14750 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14751
14752 * normal/cmdline.c (print_completion): Gettextizze.
14753
14754 2001-01-14 Carles Pina i Estany <carles@pina.cat>
14755
14756 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
14757
14758 2010-01-14 Carles Pina i Estany <carles@pina.cat>
14759
14760 * gettext/gettext.c (grub_gettext_translate): Push and pop
14761 grub_errno.
14762 (grub_gettext_delete_list): Change comment style.
14763 * kern/err.c (grub_error): Gettextizze.
14764 (grub_fatal): Gettextizze.
14765
14766 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14767
14768 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
14769 (grub_linux16_real_boot): ... this.
14770 * kern/i386/loader.S: Likewise.
14771 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
14772 (grub_linux16_boot): New function. Switches to text mode and calls
14773 grub_linux16_real_boot().
14774
14775 * loader/i386/bsd.c: Include `<grub/video.h>'.
14776 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
14777 text mode before calling grub_unix_real_boot().
14778
14779 * loader/i386/multiboot.c: Include `<grub/video.h>'.
14780 (grub_multiboot_boot): Switch to text mode before calling
14781 grub_relocator32_boot().
14782
14783 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
14784 (grub_chainloader_boot): Switch to text mode before calling
14785 grub_chainloader_real_boot().
14786
14787 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14788 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14789
14790 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
14791 non-empty value.
14792
14793 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14794 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14795
14796 * util/grub.d/00_header.in: Define a "savedefault" function for use
14797 in menu entries.
14798 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
14799
14800 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14801 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
14802
14803 * util/grub-mkconfig_lib.in (save_default_entry): Only set
14804 saved_entry if boot_once is unset.
14805 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
14806 previous saved entry (i.e. grub-reboot).
14807
14808 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14809
14810 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
14811
14812 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14813
14814 * util/grub.d/00_header.in: Use `set var=val' rather than plain
14815 `var=val'.
14816 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
14817
14818 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14819
14820 * util/grub-reboot.in: Fix --version output.
14821 * util/grub-set-default.in: Likewise.
14822
14823 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14824
14825 * util/grub.d/00_header.in: Silently ignore zero-sized environment
14826 blocks.
14827
14828 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14829
14830 * util/grub.d/00_header.in: Quote the value assigned to `default',
14831 in case it contains spaces.
14832
14833 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
14834
14835 * util/grub.d/30_os-prober.in: Fix merge error that moved a
14836 `save_default_entry' call from the macosx case to the linux case.
14837
14838 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14839 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
14840
14841 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
14842 in `chosen' environment variable.
14843 * normal/menu_text.c (get_entry_number): Check if the variable
14844 matches the title of a menu entry.
14845 (run_menu): Pass menu to get_entry_number.
14846
14847 * util/grub-reboot.in: New file.
14848 * util/grub-set-default.in: New file.
14849 * conf/common.rmk (grub-reboot): New utility.
14850 (grub-set-default): New utility.
14851
14852 * util/grub-mkconfig_lib.in (save_default_entry): New function.
14853 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
14854 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
14855 move it to `saved_entry' for the next boot. Load environment on
14856 initialisation.
14857 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
14858 * util/grub.d/10_hurd.in: Likewise.
14859 * util/grub.d/10_linux.in (linux_entry): Likewise.
14860 * util/grub.d/10_windows.in: Likewise.
14861 * util/grub.d/30_os-prober.in: Likewise.
14862
14863 * util/grub-install.in: Create environment block.
14864 * util/i386/efi/grub-install.in: Likewise.
14865 * util/ieee1275/grub-install.in: Likewise.
14866 * util/sparc64/ieee1275/grub-install.in: Likewise.
14867
14868 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
14869
14870 Unit testing framework for GRUB.
14871
14872 * Makefile.in: Test framework build rules for 'make check'.
14873 * conf/tests.rmk: Build rules for individual tests and framework.
14874
14875 * include/grub/test.h: Header file for whitebox tests.
14876 * tests/lib/functional_test.c: Framework support for whitebox
14877 functional tests.
14878 * tests/lib/test.c: Common whitebox testing code for unit and
14879 functional tests.
14880 * tests/lib/unit_test.c: Framework support for whitebox unit
14881 tests.
14882
14883 * tests/util/grub-shell-tester.in: Support utility for grub-script
14884 tests.
14885 * tests/util/grub-shell.in: Utility to execute grub-script
14886 commands in a Qemu instance.
14887
14888 * tests/example_functional_test.c: Example whitebox functional
14889 test.
14890 * tests/example_grub_script_test.in: Example grub-script test.
14891 * tests/example_scripted_test.in: Example scripted test.
14892 * tests/example_unit_test.c: Example whitebox unit test.
14893
14894 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
14897 Add loader/i386/multiboot_mbi.c.
14898 (multiboot2_mod_SOURCES): Likewise.
14899 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
14900 (multiboot2_mod_SOURCES): Likewise.
14901 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
14902 (grub_multiboot_make_mbi): Likewise.
14903 (grub_multiboot_free_mbi): Likewise.
14904 (grub_multiboot_init_mbi): Likewise.
14905 (grub_multiboot_add_module): Likewise.
14906 (grub_multiboot_set_bootdev): Likewise.
14907 * loader/i386/multiboot.c (mbi): Removed.
14908 (mbi_dest): Likewise.
14909 (alloc_mbi): New variable.
14910 (grub_multiboot_payload_size): Removed. All users updated.
14911 (grub_multiboot_pure_size): New variable.
14912 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
14913 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
14914 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
14915 (grub_fill_multiboot_mmap): Likewise.
14916 (grub_multiboot_get_bootdev): Likewise.
14917 (grub_multiboot): Use multiboot_mbi functions.
14918 * loader/i386/multiboot_mbi.c: New file.
14919
14920 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
14923 it would result in module crash.
14924
14925 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
14928 (grub_ofconsole_getwh): Split to ...
14929 (grub_ofconsole_getwh): ... this.
14930 (grub_ofconsole_dimensions): ...and this.
14931 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
14932
14933 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
14934
14935 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
14936
14937 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 * loader/i386/pc/multiboot2.c: Removed stalled file.
14940
14941 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14942
14943 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
14944 Reported by: Grégoire Sutre
14945
14946 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
14947
14948 * util/misc.c (canonicalize_file_name): New function.
14949 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
14950 instead of realpath().
14951
14952 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
14953
14954 * util/grub-install.in (usage): Clarify meaning of --root-directory,
14955 and make it clearer that it's optional. Based on confusion
14956 witnessed on IRC.
14957
14958 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
14961 in premature implicit newline.
14962
14963 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
14966 which resulted in garbled command line at the end of screen.
14967
14968 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14969
14970 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
14971 initialization with similar approach as with other Linux loaders.
14972
14973 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14974
14975 Fix i386-ieee1275 build.
14976
14977 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
14978 and grub_term_height() for video_{width,height} initialization.
14979
14980 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14981
14982 Fix grub-emu build.
14983
14984 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
14985
14986 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14987 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
14988
14989 Support for multiple terminals.
14990
14991 * Makefile.in (pkglib_DATA): terminal.lst.
14992 (terminal.lst): New target.
14993 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
14994 (GRUB_MOD_INIT(handler)): Likewise.
14995 (GRUB_MOD_FINI(handler)): Likewise.
14996 * commands/help.c (grub_cmd_help): Handle multiple terminals.
14997 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
14998 * commands/sleep.c (do_print): Use grub_term_restore_pos.
14999 (grub_cmd_sleep): Use grub_term_save_pos.
15000 * commands/terminal.c: New file.
15001 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
15002 commands/terminal.c and lib/charset.c.
15003 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
15004 (pkglib_MODULES): Add terminal.mod.
15005 (terminal_mod_SOURCES): New variable.
15006 (terminal_mod_CFLAGS): Likewise.
15007 (terminal_mod_LDFLAGS): Likewise.
15008 * genhandlerlist.sh: Don't handle terminals.
15009 * genmk.rb: Generate terminal-*.lst.
15010 * genterminallist.sh: New file.
15011 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
15012 (grub_is_valid_utf8): Likewise.
15013 (grub_utf8_to_ucs4_alloc): Likewise.
15014 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
15015 (grub_menu_register_viewer): Changed argument.
15016 (grub_menu_try_text): New proto.
15017 (grub_gfxmenu_try_hook): New declaration.
15018 * include/grub/normal.h (grub_normal_exit_level): New declaration.
15019 (grub_menu_init_page): Additional argument term.
15020 (grub_normal_init_page): Likewise.
15021 (grub_cmdline_get): Arguments simplified.
15022 (grub_utf8_to_ucs4_alloc): Removed.
15023 (grub_print_ucs4): Additional argument term.
15024 (grub_getstringwidth): Likewise.
15025 (grub_print_message_indented): Likewise.
15026 (grub_menu_text_register_instances): New proto.
15027 (grub_show_menu): Likewise.
15028 (read_terminal_list): Likewise.
15029 (grub_set_more): Likewise.
15030 * include/grub/parser.h: Include handler.h.
15031 * include/grub/reader.h: Rewritten.
15032 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
15033 (GRUB_TERM_WIDTH): Changed to function.
15034 (GRUB_TERM_HEIGHT): Likewise.
15035 (GRUB_TERM_BORDER_WIDTH): Likewise.
15036 (GRUB_TERM_BORDER_HEIGHT): Likewise.
15037 (GRUB_TERM_NUM_ENTRIES): Likewise.
15038 (GRUB_TERM_ENTRY_WIDTH): Likewise.
15039 (GRUB_TERM_CURSOR_X): Likewise.
15040 (grub_term_input_class): Likewise.
15041 (grub_term_output_class): Likewise.
15042 (grub_term_outputs_disabled): New declaration.
15043 (grub_term_inputs_disabled): Likewise.
15044 (grub_term_outputs): Likewise.
15045 (grub_term_inputs): Likewise.
15046 (grub_term_register_input): Rewritten.
15047 (grub_term_register_output): Likewise.
15048 (grub_term_unregister_input): Likewise.
15049 (grub_term_unregister_output): Likewise.
15050 (FOR_ACTIVE_TERM_INPUTS): New macro.
15051 (FOR_DISABLED_TERM_INPUTS): Likewise.
15052 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15053 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15054 * include/grub/terminfo.h: Add oterm argument to all protypes.
15055 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
15056 Use grub_rescue_run.
15057 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
15058 All users updated.
15059 * kern/reader.c: Removed. All users updated.
15060 * kern/rescue_reader.c (grub_rescue_init): Removed.
15061 (grub_rescue_reader): Likewise.
15062 (grub_register_rescue_reader): Likewise.
15063 (grub_rescue_run): New function based on kern/reader.c.
15064 * kern/term.c: Adapted for multiterm.
15065 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
15066 (grub_is_valid_utf8): Likewise.
15067 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
15068 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
15069 right terminal.
15070 * loader/i386/linux.c (grub_linux_boot): Likewise.
15071 * normal/auth.c (grub_username_get): New function.
15072 (grub_auth_check_authentication): Use grub_username_get.
15073 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
15074 * normal/color.c: Adapt for multiterm.
15075 * normal/main.c (read_config_file): Don't use grub_reader_loop.
15076 (grub_normal_init_page): Additional argument term.
15077 (read_lists): Call read_terminal_lists.
15078 (grub_enter_normal_mode): Call grub_cmdline_run.
15079 Handle grub_normal_exit_level.
15080 (grub_cmd_normal): Make reentrant.
15081 (grub_cmd_normal_exit): New function.
15082 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
15083 * normal/menu.c: Adapt for multiterm.
15084 * normal/menu_entry.c: Likewise.
15085 * normal/menu_text.c: Likewise.
15086 * normal/menu_viewer.c: Removed. All users updated.
15087 * normal/term.c: New file.
15088 * util/console.c: Change order of includes to workaround a bug in
15089 ncurses headers.
15090 * term/terminfo.c: New argument oterm on all exported functions.
15091 All users updated.
15092 * util/grub-editenv.c (grub_term_input_class): Removed.
15093 (grub_term_output_class): Likewise.
15094
15095 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15096
15097 Make loader output a bit more user-friendly.
15098
15099 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
15100 is being loaded. Likewise for the Hurd.
15101
15102 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
15103 that kernel of FreeBSD ${version} is being loaded.
15104
15105 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
15106 grub_dprintf().
15107 (grub_cmd_initrd): Likewise.
15108 * util/grub.d/10_linux.in (linux_entry): Print message indicating
15109 that Linux ${version} is being loaded. Likewise for initrd.
15110
15111 2010-01-09 Carles Pina i Estany <carles@pina.cat>
15112
15113 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
15114
15115 2010-01-08 Carles Pina i Estany <carles@pina.cat>
15116
15117 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
15118 (GRUB_MOD_INIT): Gettextizze.
15119 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
15120 (GRUB_MOD_INIT): Gettextizze.
15121 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
15122 (grub_cmd_linux): Capitalise Linux.
15123 (GRUB_MOD_INIT): Gettextizze.
15124 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
15125 (grub_cmd_linux): Capitalise Linux.
15126 (GRUB_MOD_INIT): Gettextizze.
15127 * loader/i386/linux.c: Include `<grub/i18n.h>'.
15128 (grub_cmd_linux): Capitalise Linux.
15129 (GRUB_MOD_INIT): Gettextizze.
15130 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
15131 (GRUB_MOD_INIT): Gettextizze.
15132 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
15133 (grub_cmd_linux): Capitalise Linux.
15134 (GRUB_MOD_INIT): Gettextizze.
15135 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
15136 (grub_cpu_xnu_init): Gettextizze.
15137 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
15138 (GRUB_MOD_INIT): Gettextizze.
15139 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
15140 (GRUB_MOD_INIT): Gettextizze.
15141 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
15142 (grub_linux_load64): Capitalise Linux.
15143 (GRUB_MOD_INIT): Gettextizze.
15144 * loader/xnu.c: Include `<grub/i18n.h>'.
15145 (GRUB_MOD_INIT): Gettextizze.
15146 * po/POTFILES: Add `loader/efi/appleloader.c',
15147 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
15148 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
15149 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
15150 `loader/i386/xnu.c', `loader/multiboot_loader.c',
15151 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
15152 and `loader/xnu.c'.
15153
15154 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15155
15156 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
15157
15158 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15159
15160 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
15161 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
15162 * util/mkisofs/mkisofs.c (main): Readjust --version output.
15163
15164 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15165
15166 Reset Multiboot 2 support. New loader implements the draft in
15167 /branches/multiboot2 and shares as much code as possible with the
15168 production Multiboot 1 implementation.
15169
15170 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
15171 * loader/multiboot2.c: Likewise.
15172 * loader/i386/multiboot_helper.S: Likewise.
15173 * include/multiboot2.h: Replace with latest version from the draft
15174 in /branches/multiboot2.
15175
15176 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
15177 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
15178 and `loader/multiboot2.c'.
15179 (pkglib_MODULES): Add `multiboot2.mod'.
15180 (multiboot2_mod_SOURCES): New variable.
15181 (multiboot2_mod_LDFLAGS): Likewise.
15182 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
15183
15184 * conf/i386-pc.rmk: Likewise.
15185
15186 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15187 (multiboot_mod_SOURCES): Remove variable.
15188 (multiboot_mod_LDFLAGS): Likewise.
15189 (multiboot_mod_CFLAGS): Likewise.
15190
15191 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
15192 `<multiboot2.h>' instead of `<multiboot.h>'.
15193 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
15194 (MULTIBOOT_HEADER_MAGIC): New macros.
15195
15196 * loader/multiboot_loader.c (module_version_status): Remove variable.
15197 (find_multi_boot2_header): Remove function.
15198 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
15199 logic. Always check for the Multiboot version we're compiling for.
15200 (grub_cmd_module_loader): Likewise.
15201 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
15202 command instead of `multiboot'.
15203
15204 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15205
15206 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
15207 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
15208 all users.
15209
15210 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15211 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 Fix breakage introduced with previous commit.
15214
15215 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
15216 commands.
15217 * normal/handler.c (read_handler_list): Revert part of previous commit
15218 affecting this file.
15219 * normal/main.c (read_lists): Move read_handler_list() call back to ...
15220 (grub_normal_execute): ... here.
15221
15222 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15223
15224 Merge prefix-redefinition-fix branch.
15225
15226 * normal/autofs.c (read_fs_list): Make function capable of being
15227 run multiple times, gracefuly replacing the previous data
15228 structures.
15229 * normal/dyncmd.c (read_command_list): Likewise.
15230 * normal/handler.c (read_handler_list): Likewise.
15231 * normal/main.c (read_lists): New function. Calls all the
15232 list reading functions.
15233 (grub_normal_execute): Use read_lists() instead of calling all
15234 list reading functions explicitly. Register read_lists() as a
15235 variable hook attached to ${prefix}.
15236
15237 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 Merge crypto branch.
15240
15241 * Makefile.in (pkglib_DATA): Add crypto.lst.
15242 (crypto.lst): New target.
15243 * commands/hashsum.c: New file.
15244 * commands/password.c (check_password): Use grub_crypto_memcmp.
15245 * commands/password_pbkdf2.c: New file.
15246 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
15247 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
15248 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
15249 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
15250 -I$(srcdir)/lib/libgcrypt_wrap.
15251 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
15252 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
15253 password_pbkdf2.mod.
15254 (crypto_mod_SOURCES): New variable.
15255 (crypto_mod_CFLAGS): Likewise.
15256 (crypto_mod_LDFLAGS): Likewise.
15257 (hashsum_mod_SOURCES): New variable.
15258 (hashsum_mod_CFLAGS): Likewise.
15259 (hashsum_mod_LDFLAGS): Likewise.
15260 (pbkdf2_mod_SOURCES): New variable.
15261 (pbkdf2_mod_CFLAGS): Likewise.
15262 (pbkdf2_mod_LDFLAGS): Likewise.
15263 (password_pbkdf2_mod_SOURCES): New variable.
15264 (password_pbkdf2_mod_CFLAGS): Likewise.
15265 (password_pbkdf2_mod_LDFLAGS): Likewise.
15266 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
15267 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
15268 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
15269 Include conf/gcry.rmk.
15270 * include/grub/auth.h: Rewritten.
15271 * include/grub/crypto.h: New file.
15272 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
15273 * include/grub/normal.h (read_crypto_list): New prototype.
15274 * lib/crypto.c: New file.
15275 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15276 * lib/pbkdf2.c: Likewise.
15277 * normal/auth.c (grub_auth_strcmp): Removed.
15278 (grub_iswordseparator): Likewise.
15279 (grub_auth_strword): Likewise.
15280 (is_authenticated): Use grub_strword.
15281 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
15282 and grub_strword. Pass entered password to authentication callback.
15283 * normal/crypto.c: New file.
15284 * normal/main.c: Call read_crypto_list.
15285 * util/grub-mkpasswd-pbkdf2.c: New file.
15286 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
15287
15288 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 Fix descent and ascent calculation.
15291
15292 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
15293 (options): New option "asce".
15294 (usage): Likewise.
15295 (add_char): Ignore invalid glyphs for descent calculation.
15296 Calculate ascent from actual content.
15297 (print_glyphs): Use 'asce'.
15298 (write_font): Likewise. Allow ascent override.
15299 (main): Handle "asce" option.
15300
15301 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15302
15303 * kern/err.c: Include `<grub/i18n.h>'.
15304 (grub_print_error): Add full stop. Gettextizze.
15305 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
15306 (grub_bsd_load_elf): Capitalise ELF.
15307 (grub_cmd_freebsd_loadenv): Add `s' in error string.
15308 (grub_cmd_freebsd_module): Likewise.
15309 (grub_cmd_freebsd_module_elf): Likewise.
15310 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
15311
15312 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15313
15314 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
15315 * commands/search_file.c (HELP_MESSAGE): New macro.
15316 * commands/search_label.c (HELP_MESSAGE): Likewise.
15317 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
15318 * po/POTFILES: Add `commands/search_file.c',
15319 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
15320 `commands/search.c'.
15321
15322 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15323
15324 * config.rpath: Update from Gnulib.
15325
15326 2010-01-05 Yves Blusseau <blusseau@zetam.org>
15327
15328 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
15329
15330 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
15331
15332 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
15333
15334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15335
15336 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
15337 arguments to fread so that we get a return value in bytes, rather
15338 than something that will normally be rounded down to 0.
15339 Adjust error handling to avoid producing garbage when size_t is not
15340 the same size as long long.
15341
15342 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15343
15344 * util/mkisofs/write.c (padblock_write): Check return value of
15345 fread.
15346
15347 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15348
15349 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
15350 floppy images now.
15351
15352 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
15353
15354 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15355
15356 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
15357 instead of manual alignment.
15358 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
15359 verbose). Avoid attempts to read past end of the device
15360 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
15361 but GRUB_DISK_CACHE_SIZE may exceed that).
15362
15363 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15364
15365 * commands/crc.c (grub_cmd_crc): Abort on read errors.
15366 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
15367 it to upper layer.
15368
15369 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15370
15371 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
15372 New constant.
15373 (grub_efi_piwg_device_path): New structure
15374 (grub_efi_piwg_device_path_t): New type.
15375 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
15376 (devpath_1): Transform to a structure. All users updated.
15377 (devpath_2): Likewise.
15378 (devpath_3): Likewise.
15379 (devpath_4): Likewise.
15380 (devpath_5): Likewise.
15381
15382 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 * loader/efi/appleloader.c: Restored. Update all users.
15385
15386 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15387
15388 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
15389
15390 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
15391 (struct boot_blocklist): Move from here ...
15392 * include/grub/i386/pc/boot.h [ASM_FILE]
15393 (struct grub_boot_blocklist): ... to here. Update all users.
15394 (setup): Only initialize `start' member of `first_block'
15395 structure. Add assert() calls to verify the other members.
15396
15397 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
15398 (generate_image): Fix broken blocklist length initialization.
15399 Add assert() call to verify blocklist `segment' field.
15400
15401 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15402
15403 * loader/efi/appleloader.c: Remove. Update all users.
15404
15405 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15406
15407 * boot/i386/pc/boot.S: Update copyright year.
15408 * boot/i386/pc/cdboot.S: Likewise.
15409 * boot/i386/pc/diskboot.S: Likewise.
15410 * boot/i386/pc/lnxboot.S: Likewise.
15411 * boot/i386/pc/pxeboot.S: Likewise.
15412 * bus/pci.c: Likewise.
15413 * commands/cmp.c: Likewise.
15414 * commands/help.c: Likewise.
15415 * commands/hexdump.c: Likewise.
15416 * commands/i386/pc/halt.c: Likewise.
15417 * commands/i386/pc/play.c: Likewise.
15418 * commands/i386/pc/vbeinfo.c: Likewise.
15419 * commands/ls.c: Likewise.
15420 * commands/test.c: Likewise.
15421 * disk/dmraid_nvidia.c: Likewise.
15422 * disk/i386/pc/biosdisk.c: Likewise.
15423 * disk/ieee1275/nand.c: Likewise.
15424 * disk/ieee1275/ofdisk.c: Likewise.
15425 * disk/lvm.c: Likewise.
15426 * disk/raid.c: Likewise.
15427 * disk/raid6_recover.c: Likewise.
15428 * disk/scsi.c: Likewise.
15429 * fs/affs.c: Likewise.
15430 * fs/cpio.c: Likewise.
15431 * fs/ext2.c: Likewise.
15432 * fs/hfs.c: Likewise.
15433 * fs/iso9660.c: Likewise.
15434 * fs/ntfs.c: Likewise.
15435 * fs/sfs.c: Likewise.
15436 * fs/udf.c: Likewise.
15437 * fs/ufs.c: Likewise.
15438 * fs/xfs.c: Likewise.
15439 * gencmdlist.sh: Likewise.
15440 * genmk.rb: Likewise.
15441 * include/grub/disk.h: Likewise.
15442 * include/grub/efi/api.h: Likewise.
15443 * include/grub/efi/efi.h: Likewise.
15444 * include/grub/efi/pe32.h: Likewise.
15445 * include/grub/elf.h: Likewise.
15446 * include/grub/fs.h: Likewise.
15447 * include/grub/i386/at_keyboard.h: Likewise.
15448 * include/grub/i386/pc/memory.h: Likewise.
15449 * include/grub/i386/pc/vbe.h: Likewise.
15450 * include/grub/i386/pci.h: Likewise.
15451 * include/grub/i386/tsc.h: Likewise.
15452 * include/grub/ieee1275/ieee1275.h: Likewise.
15453 * include/grub/ntfs.h: Likewise.
15454 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15455 * include/grub/sparc64/libgcc.h: Likewise.
15456 * include/grub/symbol.h: Likewise.
15457 * include/grub/types.h: Likewise.
15458 * include/multiboot2.h: Likewise.
15459 * io/gzio.c: Likewise.
15460 * kern/device.c: Likewise.
15461 * kern/disk.c: Likewise.
15462 * kern/efi/efi.c: Likewise.
15463 * kern/efi/mm.c: Likewise.
15464 * kern/elf.c: Likewise.
15465 * kern/file.c: Likewise.
15466 * kern/i386/dl.c: Likewise.
15467 * kern/i386/pc/init.c: Likewise.
15468 * kern/i386/pc/startup.S: Likewise.
15469 * kern/ieee1275/ieee1275.c: Likewise.
15470 * kern/ieee1275/init.c: Likewise.
15471 * kern/main.c: Likewise.
15472 * kern/mm.c: Likewise.
15473 * kern/powerpc/dl.c: Likewise.
15474 * kern/sparc64/dl.c: Likewise.
15475 * kern/x86_64/dl.c: Likewise.
15476 * lib/hexdump.c: Likewise.
15477 * loader/efi/appleloader.c: Likewise.
15478 * loader/i386/ieee1275/linux.c: Likewise.
15479 * loader/i386/pc/chainloader.c: Likewise.
15480 * loader/i386/pc/linux.c: Likewise.
15481 * loader/i386/pc/multiboot2.c: Likewise.
15482 * loader/ieee1275/multiboot2.c: Likewise.
15483 * loader/multiboot2.c: Likewise.
15484 * loader/multiboot_loader.c: Likewise.
15485 * loader/powerpc/ieee1275/linux.c: Likewise.
15486 * normal/completion.c: Likewise.
15487 * normal/menu_entry.c: Likewise.
15488 * partmap/apple.c: Likewise.
15489 * util/grub.d/10_hurd.in: Likewise.
15490 * util/hostfs.c: Likewise.
15491 * video/readers/png.c: Likewise.
15492
15493 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
15494
15495 * include/grub/misc.h (GNUC_PREREQ): New macro.
15496 (ATTRIBUTE_ERROR): New macro.
15497 * include/grub/list.h (grub_bad_type_cast_real): Use
15498 ATTRIBUTE_ERROR.
15499
15500 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15501
15502 * normal/menu_text.c (print_message): Change messages.
15503
15504 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15505
15506 * normal/menu_entry.c (store_completion): Gettextizze.
15507
15508 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15509
15510 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
15511
15512 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15513
15514 * po/POTFILES: Sort correctly.
15515
15516 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15517
15518 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
15519 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
15520 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
15521 full stop.
15522 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
15523 summary. Gettextizze the strings.
15524 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
15525 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
15526 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
15527 full stop.
15528 (GRUB_MOD_INIT): Remove command name from summary.
15529 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
15530 summary.
15531 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
15532 * term/i386/pc/serial.c (options): Add full stops.
15533 (GRUB_MOD_INIT): Remove command name from the summary.
15534
15535 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15536
15537 * commands/acpi.c: Gettextizze help strings and/or options. Include
15538 `grub/i18n.h' if needed.
15539 * commands/blocklist.c: Likewise.
15540 * commands/boot.c: Likewise.
15541 * commands/cat.c: Likewise.
15542 * commands/cmp.c: Likewise.
15543 * commands/configfile.c: Likewise.
15544 * commands/crc.c: Likewise.
15545 * commands/date.c: Likewise.
15546 * commands/echo.c: Likewise.
15547 * commands/efi/fixvideo.c: Likewise.
15548 * commands/efi/loadbios.c: Likewise.
15549 * commands/gptsync.c: Likewise.
15550 * commands/halt.c: Likewise.
15551 * commands/handler.c: Likewise.
15552 * commands/hdparm.c: Likewise.
15553 * commands/hexdump.c: Likewise.
15554 * commands/i386/cpuid.c: Likewise.
15555 * commands/i386/pc/drivemap.c: Likewise.
15556 * commands/i386/pc/halt.c: Likewise.
15557 * commands/i386/pc/pxecmd.c: Likewise.
15558 * commands/i386/pc/vbeinfo.c: Likewise.
15559 * commands/i386/pc/vbetest.c: Likewise.
15560 * commands/ieee1275/suspend.c: Likewise.
15561 * commands/keystatus.c: Likewise.
15562 * commands/loadenv.c: Likewise.
15563 * commands/ls.c: Likewise.
15564 * commands/lsmmap.c: Likewise.
15565 * commands/lspci.c: Likewise.
15566 * commands/memrw.c: Likewise.
15567 * commands/minicmd.c: Likewise.
15568 * commands/parttool.c: Likewise.
15569 * commands/password.c: Likewise.
15570 * commands/probe.c: Likewise.
15571 * commands/read.c: Likewise.
15572 * commands/reboot.c: Likewise.
15573 * commands/search.c: Likewise.
15574 * commands/sleep.c: Likewise.
15575 * commands/test.c: Likewise.
15576 * commands/true.c: Likewise.
15577 * commands/usbtest.c: Likewise.
15578 * commands/videotest.c: Likewise.
15579 * commands/xnu_uuid.c: Likewise.
15580 * disk/loopback.c: Likewise.
15581 * hello/hello.c: Likewise.
15582 * loader/i386/bsd.c: Likewise.
15583 * term/i386/pc/serial.c: Likewise.
15584 * po/POTFILES: Add new files.
15585
15586 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
15587
15588 * term/i386/pc/at_keyboard.c
15589 (keyboard_controller_wait_untill_ready): Rename to ...
15590 (keyboard_controller_wait_until_ready): ... this. Update all users.
15591
15592 2010-01-01 Carles Pina i Estany <carles@pina.cat>
15593
15594 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
15595 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
15596 string using string width.
15597 * normal/menu_text.c (grub_print_message_indented): Use
15598 grub_print_spaces and not print_spaces.
15599 (print_timeout): Likewise.
15600 (print_spaces): Move to...
15601 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
15602
15603 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
15604
15605 Import from Gnulib.
15606
15607 * gnulib/getdelim.c: New file.
15608 * gnulib/getline.c: Likewise.
15609
15610 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
15611
15612 * include/grub/list.h (grub_assert_fail): Removed.
15613 (grub_bad_type_cast_real): New function.
15614 (grub_bad_type_cast): New macro.
15615 (GRUB_AS_LIST): Use grub_bad_type_cast.
15616 (GRUB_AS_LIST_P): Likewise.
15617 (GRUB_AS_NAMED_LIST): Likewise.
15618 (GRUB_AS_NAMED_LIST_P): Likewise.
15619 (GRUB_AS_PRIO_LIST): Likewise.
15620 (GRUB_AS_PRIO_LIST_P): Likewise.
15621 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
15622
15623 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
15626 Fix syntax error.
15627
15628 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
15629
15630 * configure.ac: Check for TARGET_CFLAGS initialization before we
15631 initialize it ourselves (sigh).
15632 Move a few modifications to TARGET_CFLAGS to be unconditional
15633 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
15634 eh_frame)
15635
15636 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
15637 * term/i386/pc/at_keyboard.c
15638 (keyboard_controller_wait_untill_ready): Likewise.
15639 (keyboard_controller_led): Rename `led_status' paramter to avoid
15640 name conflict.
15641
15642 2009-12-28 Carles Pina i Estany <carles@pina.cat>
15643
15644 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
15645 quotes.
15646
15647 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
15650
15651 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15652
15653 * normal/menu_text.c (grub_print_message_indented): Prevent
15654 past-the-end-of-array dereference.
15655
15656 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
15659 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
15660
15661 2009-12-27 Carles Pina i Estany <carles@pina.cat>
15662
15663 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
15664 * normal/main.c (grub_normal_read_line): Remove a space from the
15665 default prompt.
15666
15667 2009-12-27 Carles Pina i Estany <carles@pina.cat>
15668
15669 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
15670 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15671 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
15672 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
15673 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15674 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15675 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15676
15677 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15678
15679 * video/readers/jpeg.c (cmd): Declare.
15680 (grub_cmd_jpegtest): Use `grub_command_t' type.
15681 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15682 Assign to `cmd'.
15683 (GRUB_MOD_FINI): Use `cmd' to unregister.
15684 * video/readers/png.c (cmd): Declare.
15685 (grub_cmd_pngtest): Use `grub_command_t' type.
15686 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15687 Assign to `cmd'.
15688 (GRUB_MOD_FINI): Use `cmd' to unregister.
15689 * video/readers/tga.c (cmd): Declare.
15690 (grub_cmd_tgatest): Use `grub_command_t' type.
15691 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
15692 Assign to `cmd'.
15693 (GRUB_MOD_FINI): Use `cmd' to unregister.
15694
15695 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15696
15697 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
15698 stops.
15699 * kern/corecmd.c (grub_register_core_commands): Likewise.
15700 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
15701 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
15702 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
15703 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15704 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
15705 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
15706 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
15707 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
15708 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15709 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
15710 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15711 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15712 * normal/handler.c (insert_handler): Likewise.
15713 * normal/main.c (GRUB_MOD_INIT): Likewise.
15714 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
15715
15716 2009-12-26 Carles Pina i Estany <carles@pina.cat>
15717
15718 * commands/help.c (grub_cmd_help): Print the command name before the
15719 summary.
15720 (GRUB_MOD_INIT): Remove command name from the summary.
15721 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
15722 string as summary.
15723 * lib/arg.c (find_long): Print the command name before the summary.
15724 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
15725 summary.
15726 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
15727 * commands/cat.c (GRUB_MOD_INIT): Likewise.
15728 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
15729 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
15730 * commands/crc.c (GRUB_MOD_INIT): Likewise.
15731 * commands/date.c (GRUB_MOD_INIT): Likewise.
15732 * commands/echo.c (GRUB_MOD_INIT): Likewise.
15733 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
15734 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
15735 * commands/handler.c (GRUB_MOD_INIT): Likewise.
15736 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
15737 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
15738 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
15739 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
15740 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
15741 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
15742 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
15743 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
15744 * commands/ls.c (GRUB_MOD_INIT): Likewise.
15745 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
15746 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
15747 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
15748 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
15749 * commands/password.c (GRUB_MOD_INIT): Likewise.
15750 * commands/probe.c (GRUB_MOD_INIT): Likewise.
15751 * commands/read.c (GRUB_MOD_INIT): Likewise.
15752 * commands/search.c (GRUB_MOD_INIT): Likewise.
15753 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
15754 * commands/test.c (GRUB_MOD_INIT): Likewise.
15755 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
15756 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
15757 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
15758 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
15759 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
15760 * lib/arg.c (GRUB_MOD_INIT): Likewise.
15761 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
15762 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
15763 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15764 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15765 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
15766 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
15767 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
15768 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
15769
15770 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 Use search command for preliminar UUID search.
15773
15774 * commands/search.c: Split into ...
15775 * commands/search_wrap.c: ...this
15776 * commands/search.c: ...and this.
15777 * commands/search_file.c: New file.
15778 * commands/search_label.c: New file.
15779 * commands/search_uuid.c: New file.
15780 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
15781 Add commands/search_wrap.c, commands/search_file.c,
15782 commands/search_label.c and commands/search_uuid.c.
15783 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
15784 (search_mod_SOURCES): Set to commands/search_wrap.c.
15785 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
15786 search_label.mod.
15787 (search_fs_file_mod_SOURCES): New variable.
15788 (search_fs_file_mod_CFLAGS): Likewise.
15789 (search_fs_file_mod_LDFLAGS): Likewise.
15790 (search_label_mod_SOURCES): Likewise.
15791 (search_label_mod_CFLAGS): Likewise.
15792 (search_label_mod_LDFLAGS): Likewise.
15793 (search_fs_uuid_mod_SOURCES): New variable.
15794 (search_fs_uuid_mod_CFLAGS): Likewise.
15795 (search_fs_uuid_mod_LDFLAGS): Likewise.
15796 (fs_file_mod_SOURCES): Removed.
15797 (fs_file_mod_CFLAGS): Likewise.
15798 (fs_file_mod_LDFLAGS): Likewise.
15799 (fs_uuid_mod_SOURCES): Removed.
15800 (fs_uuid_mod_CFLAGS): Likewise.
15801 (fs_uuid_mod_LDFLAGS): Likewise.
15802 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
15803 Set to util/grub-install.in.
15804 * disk/fs_file.c: Removed.
15805 * disk/fs_uuid.c: Likewise.
15806 * include/grub/search.h: New file.
15807 * util/grub-install.in: Handle sparc64.
15808 Create and use load.cfg.
15809 * util/sparc64/ieee1275/grub-install.in: Removed.
15810
15811 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
15814 Ignore return status if CF is cleared.
15815 (grub_biosdisk_get_diskinfo_standard): Likewise.
15816
15817 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15818
15819 * term/i386/pc/at_keyboard.c
15820 (keyboard_controller_wait_untill_ready): New function.
15821 (grub_keyboard_controller_write, grub_keyboard_controller_read)
15822 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
15823 for keyboard polling, rather than duplicate the same loop. This
15824 saves a few bytes in code size.
15825
15826 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 Support for (pxe[:server[:gateway]]) syntax and
15829 use environment variable for PXE.
15830
15831 * commands/i386/pc/pxecmd.c (options): Removed.
15832 (print_ip): Removed.
15833 (grub_cmd_pxe): Removed
15834 (grub_cmd_pxe_unload): New function.
15835 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
15836 (grub_pxe_your_ip): Made static.
15837 (grub_pxe_default_server_ip): Likewise.
15838 (grub_pxe_default_gateway_ip): Likewise.
15839 (grub_pxe_blksize): Likewise.
15840 (parse_ip): New function.
15841 (grub_pxe_open): Support server and gateway specification.
15842 (grub_pxe_close): Free disk->data.
15843 (grub_pxefs_open): Use disk->data.
15844 (grub_pxefs_read): Likewise.
15845 (grub_env_write_readonly): New function.
15846 (set_mac_env): Likewise.
15847 (set_env_limn_ro): Likewise.
15848 (parse_dhcp_vendor): Likewise.
15849 (grub_pxe_detect): Set the environment variables.
15850 (set_ip_env): New function.
15851 (write_ip_env): Likewise.
15852 (grub_env_write_pxe_default_server): Likewise.
15853 (grub_env_write_pxe_default_gateway): Likewise.
15854 (grub_env_write_pxe_blocksize): Likewise.
15855 (GRUB_MOD_INIT(pxe)): Set environment variables.
15856 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
15857 (grub_pxe_mac_addr_t): ... this. All users updated.
15858 (grub_pxe_your_ip): Removed.
15859 (grub_pxe_server_ip): Likewise.
15860 (grub_pxe_gateway_ip): Likewise.
15861 (grub_pxe_blksize): Likewise.
15862
15863 2009-12-25 Carles Pina i Estany <carles@pina.cat>
15864
15865 * commands/help.c: Include `<grub/i18n.h>'.
15866 (grub_cmd_help): Gettextizze.
15867 (GRUB_MOD_INIT): Likewise.
15868 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
15869 (GRUB_MOD_INIT): Gettextizze.
15870 * commands/search.c: Include `<grub/i18n.h>'.
15871 (options): Gettextizze.
15872 (GRUB_MOD_INIT): Gettextizze.
15873 * lib/arg.c: Include `<grub/i18n.h>'.
15874 (help_options): Gettextizze.
15875 (find_long): Likewise.
15876 (grub_arg_show_help): Likewise.
15877 * normal/dyncmd.c: Include `<grub/i18n.h>'.
15878 (read_command_list): Gettextizze.
15879 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
15880 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
15881
15882 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15883
15884 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
15885 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
15886 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
15887 (led_status): New variable.
15888 (keyboard_controller_led): New function.
15889 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
15890 update led status for caps lock, num lock and scroll lock.
15891
15892 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
15893
15894 * util/hostdisk.c (open_device): Fix a comment.
15895
15896 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15897
15898 * util/grub-install.in (host_os): New variable.
15899 * util/i386/efi/grub-install.in (host_os): Likewise.
15900
15901 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15902
15903 * util/mkisofs/write.c (padblock_write): Abort when given an
15904 excedingly large embed image, instead of silently truncating it.
15905
15906 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15907
15908 * include/multiboot.h: Indentation fixes.
15909
15910 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15911
15912 * include/multiboot.h (struct multiboot_aout_symbol_table)
15913 (struct multiboot_elf_section_header_table): New structure
15914 declarations (stolen from GRUB Legacy).
15915 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
15916 table information.
15917
15918 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
15919 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
15920 type aliases.
15921
15922 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15923
15924 * include/multiboot.h: Make comments src2texi-friendly.
15925
15926 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15927
15928 For consistency with [multiboot]/docs/boot.S.
15929
15930 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
15931 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
15932 (MULTIBOOT_MAGIC2): Rename from this ...
15933 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
15934
15935 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15936
15937 * include/multiboot.h: Remove `<grub/types.h>'.
15938 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
15939 types. Update all users.
15940
15941 2009-12-25 Carles Pina i Estany <carles@pina.cat>
15942
15943 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
15944 `couldn't' and `can not' by `cannot'.
15945 * commands/i386/pc/drivemap.c: Likewise.
15946 * disk/ata.c: Likewise.
15947 * disk/ieee1275/nand.c: Likewise.
15948 * fs/affs.c: Likewise.
15949 * fs/fat.c: Likewise.
15950 * fs/hfs.c: Likewise.
15951 * fs/hfsplus.c: Likewise.
15952 * fs/iso9660.c: Likewise.
15953 * fs/jfs.c: Likewise.
15954 * fs/minix.c: Likewise.
15955 * fs/reiserfs.c: Likewise.
15956 * fs/sfs.c: Likewise.
15957 * fs/udf.c: Likewise.
15958 * fs/ufs.c: Likewise.
15959 * fs/xfs.c: Likewise.
15960 * loader/powerpc/ieee1275/linux.c: Likewise.
15961 * loader/sparc64/ieee1275/linux.c: Likewise.
15962 * util/grub-probe.c: Likewise.
15963 * util/misc.c: Likewise.
15964
15965 2009-12-24 Carles Pina i Estany <carles@pina.cat>
15966
15967 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
15968 grub_errno calls.
15969 * commands/acpi.c: Likewise.
15970 * commands/blocklist.c: Likewise.
15971 * commands/efi/loadbios.c: Likewise.
15972 * commands/i386/pc/drivemap.c: Likewise.
15973 * commands/loadenv.c: Likewise.
15974 * commands/memrw.c: Likewise.
15975 * commands/password.c: Likewise.
15976 * commands/videotest.c: Likewise.
15977 * disk/ata.c: Likewise.
15978 * disk/ata_pthru.c: Likewise.
15979 * disk/dmraid_nvidia.c: Likewise.
15980 * disk/ieee1275/nand.c: Likewise.
15981 * disk/ieee1275/ofdisk.c: Likewise.
15982 * disk/loopback.c: Likewise.
15983 * disk/lvm.c: Likewise.
15984 * disk/mdraid_linux.c: Likewise.
15985 * disk/raid.c: Likewise.
15986 * disk/raid6_recover.c: Likewise.
15987 * disk/scsi.c: Likewise.
15988 * efiemu/main.c: Likewise.
15989 * efiemu/mm.c: Likewise.
15990 * efiemu/pnvram.c: Likewise.
15991 * efiemu/symbols.c: Likewise.
15992 * font/font.c: Likewise.
15993 * fs/cpio.c: Likewise.
15994 * fs/hfsplus.c: Likewise.
15995 * fs/iso9660.c: Likewise.
15996 * fs/jfs.c: Likewise.
15997 * fs/minix.c: Likewise.
15998 * fs/ntfs.c: Likewise.
15999 * fs/ntfscomp.c: Likewise.
16000 * fs/reiserfs.c: Likewise.
16001 * fs/ufs.c: Likewise.
16002 * fs/xfs.c: Likewise.
16003 * gettext/gettext.c: Likewise.
16004 * include/grub/auth.h: Likewise.
16005 * kern/elf.c: Likewise.
16006 * kern/file.c: Likewise.
16007 * kern/ieee1275/init.c: Likewise.
16008 * kern/ieee1275/mmap.c: Likewise.
16009 * kern/ieee1275/openfw.c: Likewise.
16010 * kern/powerpc/dl.c: Likewise.
16011 * kern/sparc64/dl.c: Likewise.
16012 * lib/arg.c: Likewise.
16013 * loader/i386/bsd.c: Likewise.
16014 * loader/i386/bsdXX.c: Likewise.
16015 * loader/i386/efi/linux.c: Likewise.
16016 * loader/i386/efi/xnu.c: Likewise.
16017 * loader/i386/ieee1275/linux.c: Likewise.
16018 * loader/i386/linux.c: Likewise.
16019 * loader/i386/multiboot.c: Likewise.
16020 * loader/i386/pc/linux.c: Likewise.
16021 * loader/i386/pc/multiboot2.c: Likewise.
16022 * loader/i386/xnu.c: Likewise.
16023 * loader/ieee1275/multiboot2.c: Likewise.
16024 * loader/macho.c: Likewise.
16025 * loader/machoXX.c: Likewise.
16026 * loader/multiboot2.c: Likewise.
16027 * loader/multiboot_loader.c: Likewise.
16028 * loader/powerpc/ieee1275/linux.c: Likewise.
16029 * loader/sparc64/ieee1275/linux.c: Likewise.
16030 * loader/xnu.c: Likewise.
16031 * loader/xnu_resume.c: Likewise.
16032 * mmap/i386/pc/mmap.c: Likewise.
16033 * normal/menu_viewer.c: Likewise.
16034 * partmap/acorn.c: Likewise.
16035 * partmap/amiga.c: Likewise.
16036 * partmap/apple.c: Likewise.
16037 * script/lexer.c: Likewise.
16038 * term/gfxterm.c: Likewise.
16039 * term/i386/pc/serial.c: Likewise.
16040 * term/i386/pc/vga.c: Likewise.
16041 * term/ieee1275/ofconsole.c: Likewise.
16042 * term/terminfo.c: Likewise.
16043 * video/bitmap.c: Likewise.
16044 * video/efi_gop.c: Likewise.
16045 * video/efi_uga.c: Likewise.
16046 * video/fb/video_fb.c: Likewise.
16047 * video/i386/pc/vbe.c: Likewise.
16048 * video/readers/tga.c: Likewise.
16049 * video/video.c: Likewise.
16050
16051 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
16052
16053 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
16054 * commands/lspci.c: Likewise.
16055 * commands/probe.c: Likewise.
16056 * commands/xnu_uuid.c: Likewise.
16057 * conf/i386-coreboot.rmk: Likewise.
16058 * conf/i386-efi.rmk: Likewise.
16059 * conf/i386-ieee1275.rmk: Likewise.
16060 * conf/i386-pc.rmk: Likewise.
16061 * conf/powerpc-ieee1275.rmk: Likewise.
16062 * conf/sparc64-ieee1275.rmk: Likewise.
16063 * conf/x86_64-efi.rmk: Likewise.
16064 * fs/i386/pc/pxe.c: Likewise.
16065 * gettext/gettext.c: Likewise.
16066 * include/grub/efi/graphics_output.h: Likewise.
16067 * include/grub/i386/pc/memory.h: Likewise.
16068 * kern/env.c: Likewise.
16069 * kern/i386/qemu/startup.S: Likewise.
16070 * lib/i386/pc/biosnum.c: Likewise.
16071 * lib/i386/relocator.c: Likewise.
16072 * lib/i386/relocator_asm.S: Likewise.
16073 * lib/relocator.c: Likewise.
16074 * loader/i386/bsd.c: Likewise.
16075 * loader/i386/multiboot.c: Likewise.
16076 * loader/i386/pc/chainloader.c: Likewise.
16077 * loader/i386/xnu.c: Likewise.
16078 * loader/xnu.c: Likewise.
16079 * normal/main.c: Likewise.
16080 * normal/menu_text.c: Likewise.
16081 * util/getroot.c: Likewise.
16082 * util/grub-mkconfig_lib.in: Likewise.
16083 * util/grub.d/00_header.in: Likewise.
16084 * util/i386/pc/grub-mkimage.c: Likewise.
16085 * util/mkisofs/eltorito.c: Likewise.
16086 * util/mkisofs/exclude.h: Likewise.
16087 * util/mkisofs/hash.c: Likewise.
16088 * util/mkisofs/iso9660.h: Likewise.
16089 * util/mkisofs/joliet.c: Likewise.
16090 * util/mkisofs/mkisofs.c: Likewise.
16091 * util/mkisofs/mkisofs.h: Likewise.
16092 * util/mkisofs/multi.c: Likewise.
16093 * util/mkisofs/name.c: Likewise.
16094 * util/mkisofs/rock.c: Likewise.
16095 * util/mkisofs/tree.c: Likewise.
16096 * util/mkisofs/write.c: Likewise.
16097 * video/efi_gop.c: Likewise.
16098
16099 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
16102 size counting.
16103
16104 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16105
16106 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
16107 * genmk.rb (class SCRIPT): Modify the target file instead of source.
16108
16109 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
16112 (GRUB_MOD_INIT(memrw)): Update help line.
16113
16114 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16115
16116 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
16117 Use grub_extcmd_t. All users updated.
16118 (options): New variable.
16119 (grub_cmd_read): Restructure for readability. Support "-v" option.
16120 (grub_cmd_write): Restructure for readability.
16121
16122 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16123
16124 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
16125
16126 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16127
16128 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
16129 with the actual contents of the correspondending make variable.
16130 * util/grub-mkrescue.in (pkglib_DATA): New variable.
16131 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
16132 specifying `*.lst' and `efiemu??.o'
16133
16134 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16135
16136 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
16137 after function name.
16138 Noticed by Rene Engelhard <rene@debian.org>.
16139
16140 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
16143 (options): New variable.
16144 (iospace): Likewise.
16145 (grub_lspci_iter): List IO spaces if "-i" was given.
16146 (grub_cmd_lspci): Parse options.
16147 (GRUB_MOD_INIT(lspci)): Use extcmd.
16148 (GRUB_MOD_FINI(lspci)): Likewise.
16149
16150 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16151
16152 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
16153 `function' keyword.
16154 Patch by Tony Mancill <tmancill@debian.org>.
16155
16156 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
16159 (grub_uhci_portstatus): Likewise.
16160 (grub_uhci_portstatus): Add necessary delay.
16161 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
16162
16163 2009-12-21 Carles Pina i Estany <carles@pina.cat>
16164
16165 * commands/acpi.c (options): Fix capitalizations and/or full stops.
16166 (GRUB_MOD_INIT): Likewise.
16167 * commands/boot.c (GRUB_MOD_INIT): Likewise.
16168 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
16169 * commands/echo.c (options): Fix capitalizations and/or full stops.
16170 * commands/efi/loadbios.c (enable_rom_area): Likewise.
16171 (enable_rom_area): Likewise.
16172 (GRUB_MOD_INIT): Likewise.
16173 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16174 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
16175 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16176 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
16177 * commands/hexdump.c (options): Likewise.
16178 * commands/i386/cpuid.c (options): Likewise.
16179 (GRUB_MOD_INIT): Likewise.
16180 * commands/i386/pc/drivemap.c (options): Likewise.
16181 (GRUB_MOD_INIT): Likewise.
16182 * commands/i386/pc/halt (options): Likewise.
16183 (GRUB_MOD_INIT): Likewise.
16184 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16185 * commands/i386/pc/pxecmd.c (options): Likewise.
16186 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
16187 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
16188 * commands/keystatus.c (options): Likewise.
16189 (GRUB_MOD_INIT): Likewise.
16190 * commands/loadenv.c (options): Likewise.
16191 * commands/ls.c (options): Likewise.
16192 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16193 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16194 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16195 * commands/parttool.c (helpmsg): Likewise.
16196 * commands/probe.c (options): Likewise.
16197 * commands/read.c (GRUB_MOD_INIT): Likewise.
16198 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
16199 * commands/search.c (options): Likewise.
16200 * commands/sleep.c (options): Likewise.
16201 * commands/test.c (GRUB_MOD_INIT): Likewise.
16202 * commands/true.c (GRUB_MOD_INIT): Likewise.
16203 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
16204 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
16205 * lib/arg.c (help_options): Likewise.
16206 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
16207 `$(XGETTEXT)'.
16208 * po/POTFILES: Add `commands/loadenv.c'.
16209
16210 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
16211
16212 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
16213 instead of specifying them explicit.
16214
16215 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16216
16217 * NEWS: Add grub-probe support for GNU/Hurd.
16218
16219 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16220
16221 * NEWS: gettext was added after 1.97.
16222
16223 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16224
16225 * util/mkisofs/msdos_partition.h: New file (based on
16226 include/grub/msdos_partition.h).
16227 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
16228 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
16229 (ld_options, main): Recognize --protective-msdos-label.
16230 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
16231 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
16232 (padblock_write): If `use_protective_msdos_label' is set, patch a
16233 protective DOS-style label in the output image.
16234
16235 * util/grub-mkrescue.in: Use --protective-msdos-label.
16236
16237 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16238
16239 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
16240 boot.
16241
16242 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16243
16244 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
16245 variables.
16246 (ld_options, main): Recognize `--embedded-boot'.
16247 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
16248 declarations.
16249 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
16250 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
16251 (padblock_write): Likewise. Rewrite to support embedded boot image.
16252
16253 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
16254 for BIOS-based disk boot instead of only ElTorito.
16255
16256 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16257
16258 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
16259 build (not needed for bootstrap).
16260
16261 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16262
16263 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
16264 from i386-pc build (not needed for bootstrap).
16265 Rewrite a pair of strings.
16266
16267 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16268
16269 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
16270
16271 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
16272
16273 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
16274
16275 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16276
16277 * kern/env.c (grub_env_context_open): Mark exported variable for
16278 reexport.
16279
16280 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16281
16282 * kern/env.c (grub_env_export): Create nonexistent variables before
16283 exporting.
16284
16285 2009-12-20 Carles Pina i Estany <carles@pina.cat>
16286
16287 * include/grub/auth.h: Include `<grub/i18n.h>'.
16288 (GRUB_GET_PASSWORD): Gettextizze string.
16289 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
16290 menu_text.c.
16291 (grub_utf8_to_ucs4_alloc): Fix indentation.
16292 (grub_print_ucs4): Likewise.
16293 (grub_getstringwidth): Likewise.
16294 (print_message_indented): New declaration.
16295 * normal/auth.c: Include `<grub/i18n.h>'.
16296 (grub_auth_check_authentication): Gettexttize string.
16297 * normal/cmdline.c: Include `<grub/i18n.h>'.
16298 (grub_cmdline_get): Gettextizze.
16299 * normal/color.c: Include `<grub/i18n.h>'.
16300 (grub_parse_color_name_pair): Gettexttize strings.
16301 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
16302 string (use `print_message_indented').
16303 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
16304 `include/grub/normal.h'.
16305 (print_message_indented): Renamed to ...
16306 (grub_print_message_indented): ... this. Remove `static' qualifer (now
16307 used in normal/main.c).
16308 (print_message): Use `grub_print_message_indented' instead of
16309 `print_message_indented'.
16310 (print_timeout): Likewise.
16311 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
16312 (grub_normal_print_device_info): Gettexttize strings.
16313 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
16314
16315 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16316
16317 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
16318 of arguments. Return number of tokens and not arguments. All users
16319 updated.
16320
16321 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16322
16323 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
16324 non-MSDOS paritions.
16325
16326 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16327
16328 * include/grub/types.h (UNUSED): Removed since it conflicts with
16329 NetBSD headers. All users changed to direct __attribute__ ((unused)).
16330 Reported by Grégoire Sutre.
16331
16332 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16333
16334 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
16335 (grub_print_ucs4_alloc): Likewise.
16336 (grub_getstringwidth): Likewise.
16337 * normal/main.c (grub_normal_init_page): Gettextize version string.
16338 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
16339 (getstringwidth): Renamed to ...
16340 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
16341 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
16342 (grub_print_ucs4): Remove `static' qualifer (now used in
16343 normal/main.c).
16344 * po/POTFILES: Add normal/main.c.
16345
16346 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16347
16348 * normal/menu_text.c (STANDARD_MARGIN): New macro.
16349 (print_message_indented): Add `margin_left' and `margin_right'
16350 parameters.
16351 (print_message): Update `print_message_indented' calls. Adds '\n' to the
16352 strings.
16353 (print_timeout): Use `print_message_indented' to print the message.
16354 Deletes `second_stage' parameter.
16355 (run_menu): Update `print_timeout' calls.
16356
16357 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16358
16359 Fix console palette on OpenFirmware.
16360
16361 * term/ieee1275/ofconsole.c (MAX): Removed.
16362 (colors): Redone based on VGA palette.
16363 (grub_ofconsole_setcolor): Discard brightness bit since only 8
16364 colors are supported.
16365 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
16366
16367 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16368
16369 Fix potential EfiEmu double prepare.
16370
16371 * efiemu/main.c (prepared): New variable
16372 (grub_efiemu_unload): Set prepare to '0'.
16373 (grub_efiemu_prepare): Return if already prepared. Set prepared.
16374
16375 set_virtual_address_map support.
16376
16377 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
16378 prototype.
16379 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
16380 prototype.
16381 (grub_efiemu_crc32): Likewise.
16382 (grub_efiemu_crc64): Likewise.
16383 (grub_efiemu_set_virtual_address_map): Likewise.
16384 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
16385 New definition.
16386 (grub_autoefi_set_virtual_address_map): Likewise.
16387 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
16388 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
16389 Restructure flow to accomodate it.
16390 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
16391 (grub_efiemu_crc): Recompute CRC32.
16392 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
16393 (efiemu_ptv_relocated): ... this. Made global. All users updated.
16394 * efiemu/symbols.c (relocated_handle): New variable.
16395 (grub_efiemu_free_syms): Free relocated_handle.
16396 (grub_efiemu_alloc_syms): Allocate relocated_handle.
16397 (grub_efiemu_write_sym_markers): New function.
16398 (grub_efiemu_set_virtual_address_map): Likewise.
16399
16400 Newer XNU parameters.
16401
16402 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
16403 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
16404 (grub_xnu_fill_devicetree): New prototype.
16405 (grub_xnu_heap_real_start): New variable.
16406 * loader/xnu.c (get_name_ptr): New function.
16407 (grub_xnu_load_driver): Fill namelen and name.
16408
16409 64-bit xnu support.
16410
16411 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
16412 and 'loader/macho64.c'.
16413 * conf/i386-pc.rmk: Likewise.
16414 * conf/x86_64-efi.rmk: Likewise.
16415 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
16416 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
16417 * include/grub/macho.h (grub_macho_segment64): New structure.
16418 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
16419 (grub_macho_size32): ... to this.
16420 (grub_macho32_get_entry_point): Renamed from ...
16421 (grub_macho_get_entry_point32): ... to this.
16422 (grub_macho_contains_macho64): New prototype.
16423 (grub_macho_size64): Likewise.
16424 (grub_macho_get_entry_point64): Likewise.
16425 (grub_macho32_load): Renamed from ...
16426 (grub_macho_load32): ... to this.
16427 (grub_macho32_filesize): Renamed from ...
16428 (grub_macho_filesize32): ... to this.
16429 (grub_macho32_readfile): Renamed from ...
16430 (grub_macho_readfile32): ... to this.
16431 (grub_macho_filesize64): New prototype.
16432 (grub_macho_readfile64): Likewise.
16433 (grub_macho_parse32): Likewise.
16434 (grub_macho_parse64): Likewise.
16435 * loader/macho.c: Split into ...
16436 * loader/machoXX.c: ... and this. Replace 32 with XX.
16437 * loader/macho32.c: New file.
16438 * loader/macho64.c: Likewise.
16439 * loader/xnu.c (grub_xnu_is_64bit): New variable.
16440 (grub_cmd_xnu_kernel): Make 32-bit only.
16441 (grub_cmd_xnu_kernel64): New function.
16442 (grub_xnu_load_driver): Support Mach-O 64.
16443 (grub_cmd_xnu_mkext): Likewise.
16444 * util/grub.d/30_os-prober.in (osx_entry): New function.
16445 Generate entries for 64-bit boot too.
16446
16447 Eliminate ad-hoc tree format in XNU and EfiEmu.
16448
16449 * efiemu/main.c (grub_efiemu_prepare): Update comment.
16450 * efiemu/pnvram.c: Rewritten to use environment variables.
16451 All users updated.
16452
16453 Inline utf16_to_utf8.
16454
16455 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
16456 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
16457 All users updated.
16458 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
16459
16460 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
16461 * commands/usbtest.c (grub_usb_get_string): ... move here.
16462 (usb_print_str): Fix error handling.
16463 * include/grub/usb.h (grub_usb_get_string): Remove.
16464
16465 UTF-8 to UTF-16 transformation.
16466
16467 * conf/common.rmk (pkglib_MODULES): Add charset.mod
16468 (charset_mod_SOURCES): New variable.
16469 (charset_mod_CFLAGS): Likewise.
16470 (charset_mod_LDFLAGS): Likewise.
16471 * include/grub/utf.h: New file.
16472 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
16473
16474 Support for device properties.
16475
16476 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
16477 (grub_xnu_devprop_device_header): Likewise.
16478 (grub_xnu_devprop_device_descriptor): Likewise.
16479 (grub_xnu_devprop_add_device): New prototype.
16480 (grub_xnu_devprop_remove_device): Likewise.
16481 (grub_xnu_devprop_remove_property): Likewise.
16482 (grub_xnu_devprop_add_property_utf8): Likewise.
16483 (grub_xnu_devprop_add_property_utf16): Likewise.
16484 (grub_cpu_xnu_init): Likewise.
16485 (grub_cpu_xnu_fini): Likewise.
16486 (grub_cpu_xnu_unload): Likewise.
16487 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
16488 (property_descriptor): Likewise.
16489 (devices): New variable.
16490 (grub_xnu_devprop_remove_property): New function.
16491 (grub_xnu_devprop_add_device): Likewise.
16492 (grub_xnu_devprop_remove_device): Likewise.
16493 (grub_xnu_devprop_add_property): Likewise.
16494 (grub_xnu_devprop_add_property_utf8): Likewise.
16495 (grub_xnu_devprop_add_property_utf16): Likewise.
16496 (hextoval): Likewise.
16497 (grub_cpu_xnu_fill_devprop): Likewise.
16498 (grub_cmd_devprop_load): Likewise.
16499 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
16500 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
16501 (cmd_devprop_load): New variable.
16502 (grub_cpu_xnu_init): New function.
16503 (grub_cpu_xnu_fini): Likewise.
16504 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
16505 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
16506 (grub_cmd_xnu_devtree): Likewise.
16507 (hextoval): New function.
16508 (unescape): Likewise.
16509 (grub_xnu_fill_devicetree): Likewise.
16510
16511 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
16512 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
16513
16514 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16515
16516 Workaround for broken ATI VBE.
16517
16518 * video/i386/pc/vbe.c (last_set_mode): New variable.
16519 (grub_vbe_set_video_mode): Set 'last_set_mode'.
16520 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
16521 (grub_video_vbe_setup): Don't check for reserved flag.
16522
16523 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
16524
16525 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
16526 the `find' command.
16527
16528 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 UUID support for HFS.
16531
16532 * fs/hfs.c (grub_hfs_uuid): New function.
16533 (grub_hfs_fs): New value .uuid.
16534 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
16535
16536 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
16537
16538 Fix a segfault with parsing unknown long options.
16539
16540 * util/grub-mkrelpath.c (options): Zero terminate it.
16541
16542 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16543
16544 * include/grub/misc.h (grub_puts): New declaration.
16545 (grub_puts_): Likewise.
16546 * kern/misc.c (grub_puts): New definition.
16547 (grub_puts_): Likewise.
16548
16549 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16550
16551 * util/grub-probe.c (probe): Improve error message.
16552
16553 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16554
16555 * loader/i386/multiboot_elfxx.c
16556 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
16557 initialization.
16558
16559 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 Relocator framework
16562
16563 * loader/i386/xnu_helper.S: Removed. All users updated.
16564 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
16565 (relocator_mod_SOURCES): New variable.
16566 (relocator_mod_CFLAGS): Likewise.
16567 (relocator_mod_LDFLAGS): Likewise.
16568 (relocator_mod_ASFLAGS): Likewise.
16569 * conf/x86_64.rmk: Likewise.
16570 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
16571 (grub_multiboot_payload_entry_offset): Likewise.
16572 (grub_multiboot_forward_relocator): Likewise.
16573 (grub_multiboot_forward_relocator_end): Likewise.
16574 (grub_multiboot_backward_relocator): Likewise.
16575 (grub_multiboot_backward_relocator_end): Likewise.
16576 (grub_multiboot_payload_eip): New variable.
16577 (grub_multiboot_payload_orig): Likewise.
16578 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
16579 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
16580 * include/grub/i386/memory.h
16581 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
16582 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
16583 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
16584 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
16585 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
16586 * include/grub/i386/relocator.h: New file.
16587 * include/grub/x86_64/relocator.h: Likewise.
16588 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
16589 (XNU_RELOCATOR): New macro.
16590 (grub_xnu_launcher_start): Remove.
16591 (grub_xnu_launcher_end): Likewise.
16592 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
16593 (grub_xnu_heap_real_start): Remove.
16594 (grub_xnu_heap_start): Change to void *. All users updated.
16595 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
16596 * lib/i386/relocator.c: New file.
16597 * lib/i386/relocator_asm.S: Likewise.
16598 * lib/i386/relocator_backward.S: Likewise.
16599 * lib/mips/relocator.c: Likewise.
16600 * lib/mips/relocator_asm.S: Likewise.
16601 * lib/relocator.c: Likewise.
16602 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
16603 (entry): Removed.
16604 (playground): Likewise.
16605 (grub_multiboot_payload_orig): New variable.
16606 (grub_multiboot_payload_dest): Likewise.
16607 (grub_multiboot_payload_size): Likewise.
16608 (grub_multiboot_payload_eip): Likewise.
16609 (grub_multiboot_payload_esp): Likewise.
16610 (grub_multiboot_boot): Use grub_relocator32_boot.
16611 (grub_multiboot_unload): Free relocators.
16612 (grub_multiboot): Setup stack. Use relocators.
16613 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
16614 (grub_multiboot_load_elfXX): Use relocators.
16615 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
16616 (grub_multiboot_payload_size): Likewise.
16617 (grub_multiboot_payload_dest): Likewise.
16618 (grub_multiboot_payload_entry_offset): Likewise.
16619 (grub_multiboot_forward_relocator): Likewise.
16620 (grub_multiboot_backward_relocator): Likewise.
16621 (grub_multiboot_real_boot): Likewise.
16622 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
16623 (grub_xnu_entry_point): Likewise.
16624 (grub_xnu_arg1): Likewise.
16625 (grub_xnu_stack): Likewise.
16626 (grub_xnu_launch): Removed.
16627 (grub_xnu_boot_resume): New function.
16628 (grub_xnu_boot): Use relocators.
16629 * loader/i386/xnu_helper.S: Removed.
16630 * loader/xnu.c (grub_xnu_heap_start): New variable.
16631 (grub_xnu_heap_size): Likewise.
16632 (grub_xnu_heap_malloc): Use relocators.
16633 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
16634
16635 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16636
16637 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
16638 anything.
16639
16640 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16641
16642 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
16643 GRUB_ERR_NONE before calling grub_env_set.
16644
16645 2009-12-12 Robert Millan <rmh@aybabtu.com>
16646
16647 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
16648 * genmk.rb (video): New variable.
16649 (CLEANFILES, VIDEOFILES): Add #{video}.
16650 (#{video}): New target rule.
16651 * genvideolist.sh: New file.
16652 * Makefile.in (pkglib_DATA): Add video.lst.
16653 (video.lst): New target rule.
16654 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
16655 `video.lst'.
16656 * util/grub.d/30_os-prober.in: Replace `vbe' with
16657 ${GRUB_VIDEO_BACKEND}.
16658
16659 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
16660
16661 * THANKS: Add David Miller.
16662
16663 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
16664
16665 libpciaccess support.
16666
16667 * Makefile.in (LIBPCIACCESS): New variable.
16668 (enable_grub_emu_pci): Likewise.
16669 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
16670 util/pci.c and commands/lspci.c.
16671 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
16672 * configure.ac (grub-emu-pci): New option.
16673 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
16674 (grub_pci_device_unmap_range): Likewise.
16675 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
16676 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
16677 (grub_pci_address_t) [!GRUB_UTIL]: New type.
16678 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
16679 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
16680 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
16681 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
16682 * include/grub/pciutils.h: New file.
16683 * util/pci.c: Likewise.
16684
16685 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
16686
16687 * util/misc.c: Don't include <errno.h> twice.
16688
16689 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
16690
16691 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
16692 name in an error message.
16693 (grub_biosdisk_rw): Likewise.
16694
16695 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 Eliminate NTFS 4Gib barrier.
16698
16699 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
16700 (read_run_data): Likewise.
16701 (grub_ntfs_read_run_list): Likewise.
16702 (grub_ntfs_read_block): Likewise.
16703 (grub_ntfs_iterate_dir): Likewise.
16704 (read_mft): Likewise.
16705 (read_data): Likewise.
16706 Use COM_LOG_LEN.
16707 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
16708 to avoid 64-bit division
16709 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
16710 (grub_ntfs_rlst): Use grub_disk_addr_t.
16711
16712 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16713
16714 Eliminate grub-fstest 4Gib barrier.
16715
16716 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
16717 (read_file): Fix error reporting.
16718
16719 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 Eliminate hexdump 4Gib barrier.
16722
16723 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
16724 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
16725
16726 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
16729 Fixes amarsh bug.
16730
16731 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
16732
16733 Remove miscellaneous files in distclean target.
16734
16735 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
16736
16737 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
16738
16739 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
16740 if they're already set. This resolves the conflict between my
16741 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
16742 fixing the --grub-probe option again.
16743 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
16744 change on 2009-10-06, so that we now once again source
16745 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
16746
16747 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
16748
16749 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
16750 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
16751 `util/devicemap.c'.
16752
16753 2009-12-08 Carles Pina i Estany <carles@pina.cat>
16754
16755 * include/grub/misc.h (grub_printf_): New declaration.
16756 * kern/misc.c (grub_printf_): New definition.
16757 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
16758 instead of `grub_printf' and `_'.
16759 * normal/menu_entry.c (store_completion): Likewise.
16760 (run): Likewise.
16761 (grub_menu_entry_run): Likewise.
16762 * normal/menu_text.c (grub_wait_after_message): Likewise.
16763 (notify_booting): Likewise.
16764 (notify_fallback): Likewise.
16765 (notify_execution_failure): Likewise.
16766
16767 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
16768
16769 * configure.ac: Check for vasprintf.
16770 * util/misc.c (asprintf): Move allocation from here ...
16771 (vasprintf): ... to here. New function.
16772 (xasprintf): New function.
16773 * include/grub/util/misc.h (vasprintf, xasprintf): Add
16774 prototypes.
16775 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
16776 * util/grub-mkfont.c (write_font): Likewise.
16777 * util/grub-probe.c (probe): Likewise.
16778 * util/hostdisk.c (make_device_name): Likewise.
16779
16780 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
16781
16782 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
16783 anything even prefixed with 'cdrom' as a cdrom.
16784
16785 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
16786
16787 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
16788 mount points.
16789
16790 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16791
16792 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
16793 grub_gettext_msg_list.
16794 (grub_gettext_gettranslation_from_position): Return const char *
16795 and not char *.
16796 (grub_gettext_translate): Add the translated strings into a list,
16797 returns from the list if existing there.
16798 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
16799 (grub_gettext_delete_list): Delete the list.
16800 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
16801 lang environment variable is changed.
16802 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
16803
16804 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16805
16806 Rename kernel.mod to kernel.img.
16807
16808 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
16809 (kernel_mod_EXPORTS): Rename to ...
16810 (kernel_img_EXPORTS): ... this.
16811 (kernel_mod_SOURCES): Rename to ...
16812 (kernel_img_SOURCES): ... this.
16813 (kernel_mod_HEADERS): Rename to ...
16814 (kernel_img_HEADERS): ... this. All users updated.
16815 (kernel_mod_CFLAGS): Rename to ...
16816 (kernel_img_CFLAGS): ... this.
16817 (kernel_mod_ASFLAGS): Rename to ...
16818 (kernel_img_ASFLAGS): ... this.
16819 (kernel_mod_LDFLAGS): Rename to ...
16820 (kernel_img_LDFLAGS): ... this.
16821 * conf/x86_64-efi.rmk: Likewise.
16822 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
16823 (read_kernel_image): ... this. All users updated.
16824 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
16825
16826 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16827
16828 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
16829 (print_spaces): New function.
16830 (grub_print_ucs4): New function.
16831 (getstringwidth): New function.
16832 (print_message_indented): New function.
16833 (print_message): Gettexttize strings using print_message_indented.
16834 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
16835 width.
16836 (get_entry_number): Gettextize and uses dynamic terminal width.
16837 (notify_booting, notify_fallback, notify_execution_failure):
16838 Gettextize.
16839 * normal/menu_entry.c (store_completion): Cleanup the gettextized
16840 string.
16841 (run): Likewise.
16842 (grub_menu_entry_run): Likewise.
16843 * PO/POTFILES: Add normal/menu_entry.c.
16844
16845 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
16848
16849 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16850
16851 * util/grub-install.in: Install gettext .mo files.
16852 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
16853
16854 2009-12-05 Carles Pina i Estany <carles@pina.cat>
16855
16856 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
16857 grub_dprintf.
16858
16859 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
16860
16861 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
16862 non-firmware-dependant one in realmode.S takes precedence.
16863
16864 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
16865
16866 * commands/halt.c: Replace misc arch-specific headers with
16867 `<grub/misc.h>'.
16868 * commands/reboot.c: Likewise.
16869 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
16870 `<grub/misc.h>'.
16871 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
16872 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
16873 (kernel_img_SOURCES): ... to here.
16874
16875 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
16876 * include/grub/i386/pc/init.h: Likewise.
16877 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16878 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16879
16880 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
16881
16882 * include/grub/i386/halt.h: Remove.
16883 * include/grub/i386/reboot.h: Likewise.
16884
16885 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
16886
16887 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
16888
16889 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
16890 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
16891 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
16892 "progname.h"
16893 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
16894 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16895 (usage): Add missing comma in printf.
16896
16897 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
16898
16899 Use the same reboot approach on i386 coreboot and qemu as we do on
16900 BIOS.
16901
16902 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
16903 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
16904 * kern/i386/reboot.c: Remove.
16905 * include/grub/i386/reboot.h (grub_reboot): Export function.
16906 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
16907 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
16908 0xf000:0xfff0 instead of 0xffff:0x0000.
16909 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
16910 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
16911
16912 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
16913
16914 Fix $srcdir != $objdir build.
16915
16916 * Makefile.in (po/%.po): Rewrite as ...
16917 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
16918
16919 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16920
16921 Fix GNU/Hurd grub-install crash.
16922 * util/grub-probe.c (probe): Try to access `path' only when it is not
16923 NULL.
16924
16925 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 Correct module naming.
16928
16929 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16930 (GRUB_MOD_INIT(efi_uga)): ... to this
16931 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16932 (GRUB_MOD_FINI(efi_uga)): ... to this
16933 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16934 (GRUB_MOD_INIT(efi_gop)): ... to this
16935 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16936 (GRUB_MOD_FINI(efi_gop)): ... to this
16937
16938 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
16939
16940 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
16941 translatable.
16942 (usage): Translate `arg' strings using gettext().
16943 Thanks to Jordi Mallach for the suggestion.
16944
16945 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 GOP support. Based on patch from Bean
16948 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
16949
16950 * video/efi_gop.c: New file.
16951 * include/grub/efi/graphics_output.h: Likewise.
16952 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
16953 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
16954 variables.
16955 * conf/x86_64-efi.rmk: Likewise.
16956
16957 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 Rename efi_fb to efi_uga.
16960
16961 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16962 'efi_uga.mod'.
16963 (efi_fb_mod_SOURCES): Rename this ...
16964 (efi_uga_mod_SOURCES): ... to this.
16965 (efi_fb_mod_CFLAGS): Rename this ...
16966 (efi_uga_mod_CFLAGS): ... to this.
16967 (efi_fb_mod_LDFLAGS): Rename this ...
16968 (efi_uga_mod_LDFLAGS): ... to this.
16969 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16970 'efi_uga.mod'.
16971 (efi_fb_mod_SOURCES): Rename this ...
16972 (efi_uga_mod_SOURCES): ... to this.
16973 (efi_fb_mod_CFLAGS): Rename this ...
16974 (efi_uga_mod_CFLAGS): ... to this.
16975 (efi_fb_mod_LDFLAGS): Rename this ...
16976 (efi_uga_mod_LDFLAGS): ... to this.
16977 * video/efi_fb.c: Move this ...
16978 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
16979
16980 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16981
16982 * po/README: New file. Explain our PO file workflow.
16983
16984 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16985
16986 * po/ChangeLog: Remove. Move relevant entries back to ...
16987 * ChangeLog: ... here.
16988 * po/ca.po: Remove (now handled by TLP).
16989 * po/id.po: Likewise.
16990 * po/zh_CN.po: Likewise.
16991 * Makefile.in (LINGUAS): Initialize in a way that supports
16992 empty set.
16993
16994 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16995
16996 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
16997 reliing on po/LINGUAS.
16998 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
16999 (po/%.po): ... this.
17000
17001 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17002
17003 * util/i386/efi/grub-mkimage.c: Include "progname.h".
17004 (main): Use `program_name' instead of nonexistent `progname'.
17005
17006 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17007
17008 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17009 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
17010
17011 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17012
17013 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
17014 commit.
17015 * conf/i386-efi.rmk: Likewise.
17016 * conf/i386-ieee1275.rmk: Likewise.
17017 * conf/powerpc-ieee1275.rmk: Likewise.
17018 * conf/sparc64-ieee1275.rmk: Likewise.
17019 * conf/x86_64-efi.rmk: Likewise.
17020
17021 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17022
17023 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
17024
17025 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17026
17027 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
17028
17029 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17030
17031 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
17032 (grub_mkdevicemap_SOURCES): New variable.
17033 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
17034 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
17035 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
17036 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
17037 (grub_mkdevicemap_SOURCES): Remove.
17038 * conf/i386-efi.rmk: Likewise.
17039 * conf/i386-ieee1275.rmk: Likewise.
17040 * conf/i386-pc.rmk: Likewise.
17041 * conf/powerpc-ieee1275.rmk: Likewise.
17042 * conf/sparc64-ieee1275.rmk: Likewise.
17043 * conf/x86_64-efi.rmk: Likewise.
17044 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
17045 (usage): Fix strings to use `program_name'.
17046 (main): Initialize gettext.
17047 * util/grub-editenv.c: Likewise.
17048 * util/grub-emu.c: Likewise.
17049 * util/grub-fstest.c: Likewise.
17050 * util/grub-mkdevicemap.c: Likewise.
17051 * util/grub-mkfont.c: Likewise.
17052 * util/grub-mkrelpath.c: Likewise.
17053 * util/grub-pe2elf.c: Likewise.
17054 * util/grub-probe.c: Likewise.
17055 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17056 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17057 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17058
17059 * util/misc.c: Include `"progname.h"'.
17060 (progname): Remove variable.
17061 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
17062
17063 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17064
17065 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
17066 printf and print a newline after the menuentry header line.
17067 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17068
17069 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17070
17071 autoconf >= 2.60 support $(localedir).
17072
17073 * INSTALL: Note that autoconf 2.60 is required.
17074 * configure.ac (AC_PREREQ): Bump to 2.60.
17075 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
17076 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17077
17078 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
17079
17080 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
17081 aclocal is run.
17082
17083 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17084
17085 * normal/main.c (grub_normal_read_line): Fix off-by-one
17086 buffer overflow.
17087
17088 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17089
17090 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
17091 "parser.grub" in grub_command_execute() call.
17092
17093 2009-11-24 Carles Pina i Estany <carles@pina.cat>
17094
17095 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
17096 * conf/i386-efi.rmk: Likewise.
17097 * conf/i386-ieee1275.rmk: Likewise.
17098 * conf/i386-pc.rmk: Likewise.
17099 * conf/powerpc-ieee1275.rmk: Likewise.
17100 * conf/sparc64-ieee1275.rmk: Likewise.
17101 * conf/x86_64-efi.rmk: Likewise.
17102 * gettext/gettex.c: Include <grub/i18n.h>.
17103 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
17104 here ...
17105 * include/grub/i18n.h: ... to here
17106 * include/grub/i18n.h: ... to here.
17107 * kern/misc.c: Include <grub/i18n.h>
17108 (grub_gettext_dummy): Move above user.
17109
17110 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17111
17112 * util/Makefile.in (install-local): Convert a `for' into a normal
17113 shell expansion.
17114
17115 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
17116
17117 * autogen.sh: Add automake call.
17118 * config.guess: Remove.
17119 * config.sub: Likewise.
17120 * install-sh: Likewise.
17121
17122 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17123
17124 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
17125
17126 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17127
17128 * util/Makefile.in (install-local): Convert a make `$(foreach)'
17129 function to a normal shell `for'.
17130
17131 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17132
17133 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17134
17135 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17136
17137 * util/grub-mkrelpath.c: New file.
17138 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
17139 (grub_mkrelpath_SOURCES): New variable.
17140 * include/grub/util/misc.h: New function prototype.
17141 * util/misc.c (make_system_path_relative_to_its_root): New function.
17142
17143 * util/grub-mkconfig_lib.in (bindir): New variable.
17144 (grub_mkrelpath): Likewise.
17145 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
17146
17147 * util/probe.c (probe): Make the file path relative to its root.
17148 Change a info message to use the GRUB path. Enable again the
17149 check if we can read the file with GRUB facilities.
17150
17151 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
17152 to its root.
17153
17154 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17155
17156 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
17157 platform.
17158
17159 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17160
17161 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
17162 strncmp().
17163
17164 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17165
17166 * util/getroot.c (grub_util_is_dmraid): New function.
17167 (grub_util_get_dev_abstraction): Treat dmraid and multipath
17168 devices as normal ones, not as LVM.
17169
17170 2009-11-23 Carles Pina i Estany <carles@pina.cat>
17171
17172 * conf/common.rmk: Add grub-gettext_lib target and updates
17173 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
17174 LDFLAGS.
17175 * gettext/gettext.c: New file. (Reads mo files).
17176 * include/grub/file.h (grub_file_pread): New prototype.
17177 * include/grub/i18n.h (_): New prototype.
17178 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
17179 prototypes.
17180 * kern/misc.c (grub_gettext_dummy): New function.
17181 * normal/menu_text.c: Include <grub/i18n.h>.
17182 * normal/menu_text.c (print_timeout): Gettexttize string.
17183 * normal/menu_text.c (print_message): Gettexttize string.
17184 * po/POTFILES: Add `normal/menu_text.c'.
17185 * po/ca.po: Add new translations.
17186 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
17187 gettext module and defines locale_dir and lang in grub.cfg.
17188 * NEWS: Add gettext support.
17189
17190 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17191
17192 * util/hostdisk.c: Include `<grub/i18n.h>'.
17193 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
17194 (make_device_name): Rewrite using asprintf.
17195 (convert_system_partition_to_system_disk): Replace 0 with NULL.
17196 (find_system_device): If a device is not found, generate one just
17197 by reusing the OS path name.
17198 (read_device_map): Make it permissible for device.map not to exist.
17199
17200 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17201
17202 * script/sh/execute.c: Move from here ...
17203 * script/execute.c: ... to here. Update all users.
17204 * script/sh/function.c: Move from here ...
17205 * script/function.c: ... to here. Update all users.
17206 * script/sh/lexer.c: Move from here ...
17207 * script/lexer.c: ... to here. Update all users.
17208 * script/sh/main.c: Move from here ...
17209 * script/main.c: ... to here. Update all users.
17210 * script/sh/parser.y: Move from here ...
17211 * script/parser.y: ... to here. Update all users.
17212 * script/sh/script.c: Move from here ...
17213 * script/script.c: ... to here. Update all users.
17214
17215 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17216
17217 * configure.ac: Detect all `emu' platforms. Define
17218 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
17219 --enable-grub-emu logic. Disable include/grub/machine
17220 symlink on `emu' platforms.
17221
17222 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
17223 * gensymlist.sh.in: Likewise.
17224
17225 * include/grub/i386/coreboot/machine.h: Remove file.
17226 * include/grub/i386/efi/machine.h: Likewise.
17227 * include/grub/i386/ieee1275/machine.h: Likewise.
17228 * include/grub/i386/pc/machine.h: Likewise.
17229 * include/grub/i386/qemu/machine.h: Likewise.
17230 * include/grub/powerpc/ieee1275/machine.h: Likewise.
17231 * include/grub/sparc64/ieee1275/machine.h: Likewise.
17232 * include/grub/x86_64/efi/machine.h: Likewise.
17233
17234 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
17235 * commands/halt.c: Likewise.
17236 * commands/reboot.c: Likewise.
17237 * include/grub/autoefi.h: Likewise.
17238 * include/grub/i386/at_keyboard.h: Likewise.
17239 * include/grub/i386/kernel.h: Likewise.
17240 * include/grub/i386/loader.h: Likewise.
17241 * include/grub/i386/pc/memory.h: Likewise.
17242 * kern/dl.c: Likewise.
17243 * kern/i386/coreboot/init.c: Likewise.
17244 * loader/i386/bsd.c: Likewise.
17245 * loader/i386/linux.c: Likewise.
17246 * loader/multiboot_loader.c: Likewise.
17247 * term/i386/pc/serial.c: Likewise.
17248 * term/usb_keyboard.c: Likewise.
17249
17250 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
17251 `<grub/machine/machine.h>'
17252 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
17253 * util/misc.c: Remove `<grub/machine/machine.h>' and
17254 `<grub/machine/time.h>'.
17255
17256 * Makefile.in (enable_grub_emu): Remove variable.
17257 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
17258
17259 * conf/any-emu.rmk: New file.
17260 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
17261 (grub_emu_init.c): Move from here ...
17262 * conf/any-emu.rmk: ... to here.
17263
17264 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
17265 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
17266 * conf/any-emu.rmk: ... to here.
17267
17268 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17269
17270 * include/grub/parser.h (grub_parser_register): Document need
17271 of `name' parameter.
17272 * normal/main.c (grub_normal_read_line): Simplify prompt string.
17273 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
17274 "sh" to "grub".
17275
17276 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17277
17278 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
17279 `$(XGETTEXT)'.
17280 * include/grub/i18n.h (N_): New macro.
17281 * util/mkisofs/mkisofs.h: Likewise.
17282 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
17283 around N_().
17284 (usage): Use gettext() to translate help strings when printing them.
17285
17286 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17287
17288 Based on patch from Bean
17289 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17290
17291 * video/efi_fb.c: New file.
17292 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
17293 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17294 variables.
17295 * conf/x86_64-efi.rmk: Likewise.
17296
17297 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
17298
17299 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
17300 * util/i386/pc/grub-setup.c: Likewise.
17301
17302 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17303
17304 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
17305 <hurd/fs.h>
17306 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
17307 file_get_storage_info to implement grub_guess_root_device.
17308
17309 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17310
17311 * Makefile.in (target): Use make's builtin $(shell) function
17312 instead of calling directly $(SHELL) to create the locale directories,
17313 inside the $(foreach) function.
17314
17315 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17316
17317 * util/grub-mkrescue.in: Print an error and usage if output option
17318 has not been given.
17319
17320 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17321
17322 Patch from Loïc Minier <loic.minier@ubuntu.com>.
17323 * util/grub.d/30_os-prober.in: Cope with Linux entries where
17324 root and /boot are on different devices.
17325
17326 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17327
17328 Fix build for srcdir != objdir.
17329
17330 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
17331 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
17332 $(srcdir).
17333 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
17334 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
17335 reference for input.
17336
17337 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17338
17339 * util/grub-mkrescue.in: Use source directory direcly (without copiing
17340 or hardlinking it). Remove -J option, Joliet is not compatible with
17341 multiple source directories.
17342
17343 2009-11-21 Carles Pina i Estany <carles@pina.cat>
17344 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17345
17346 * util/grub-mkrescue.in: Recognize `--override-directory' option.
17347 (process_input_dir): New function. Process an arbitrary input
17348 directory.
17349 Misc adjustments to support both "override mode" and system-wide mode.
17350
17351 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17352
17353 * configure.ac (UNIFONT_BDF): Rename to ...
17354 (FONT_SOURCE): ... this. Update all users.
17355
17356 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17357
17358 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
17359 to the list of unifont files to look for.
17360
17361 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17362
17363 Patch from Joe Auricchio <jauricchio@gmail.com>
17364 * commands/minicmd.c (grub_mini_cmd_clear): New function.
17365 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
17366 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
17367
17368 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17369
17370 * Makefile.in (install-local): Add a missing backslash.
17371
17372 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17373
17374 * include/grub/x86_64/io.h: New file.
17375
17376 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17377
17378 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
17379 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
17380 Include `"progname.h"'.
17381 (main): Initialize gettext.
17382 * util/i386/pc/grub-setup.c: Gettexttize.
17383 * util/i386/pc/grub-mkimage.c: Likewise.
17384
17385 * Makefile.in (po/*.po): Redefine as ...
17386 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
17387
17388 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
17389
17390 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17391
17392 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
17393 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
17394 (program_name): Remove.
17395 (main): Initialize gettext support.
17396 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
17397 Include `<libintl.h>'.
17398 (_): New macro.
17399
17400 * util/mkisofs/eltorito.c: Gettexttize.
17401 * util/mkisofs/joliet.c: Likewise.
17402 * util/mkisofs/mkisofs.c: Likewise.
17403 * util/mkisofs/multi.c: Likewise.
17404 * util/mkisofs/rock.c: Likewise.
17405 * util/mkisofs/tree.c: Likewise.
17406 * util/mkisofs/write.c: Likewise.
17407
17408 * po/POTFILES: Update with new files.
17409
17410 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17411
17412 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
17413 * util/mkisofs/iso9660.h: Likewise.
17414 * util/mkisofs/joliet.c: Likewise.
17415 * util/mkisofs/mkisofs.c: Likewise.
17416 * util/mkisofs/mkisofs.h: Likewise.
17417 * util/mkisofs/rock.c: Likewise.
17418 * util/mkisofs/tree.c: Likewise.
17419 * util/mkisofs/write.c: Likewise.
17420
17421 * util/mkisofs/eltorito.c (rcsid): Remove.
17422 * util/mkisofs/hash.c: Likewise.
17423 * util/mkisofs/joliet.c: Likewise.
17424 * util/mkisofs/name.c: Likewise.
17425 * util/mkisofs/rock.c: Likewise.
17426 * util/mkisofs/tree.c: Likewise.
17427 * util/mkisofs/write.c: Likewise.
17428
17429 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17430
17431 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
17432 instead of static allocation.
17433 * util/mkisofs/match.h: Likewise.
17434
17435 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17436
17437 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
17438 and `util/grub.d/10_linux.in'.
17439 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
17440 translatable Shell files.
17441
17442 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17443
17444 * Makefile.in ($(srcdir)/aclocal.m4): New target.
17445
17446 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17447
17448 * INSTALL: Document Automake is needed for bootstrap.
17449 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
17450 * util/grub.d/10_kfreebsd.in (bindir): New variable.
17451 Add gettext initialization.
17452 (kfreebsd_entry): Make menuentry output translatable.
17453
17454 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17455
17456 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
17457 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
17458 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
17459 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
17460 (LINGUAS): Auto-generate using `po/LINGUAS'.
17461 * po/LINGUAS: New file.
17462
17463 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17464
17465 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
17466 other things).
17467 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
17468 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
17469 bindtextdomain() calls for gettext initialization.
17470
17471 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17472
17473 * gnulib/progname.c: New file (imported from Gnulib).
17474 * gnulib/progname.h: Likewise.
17475 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17476 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
17477 (usage): Replace `progname' with `program_name'.
17478 (main): Use set_program_name() for program name initialization.
17479
17480 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17481
17482 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
17483 from here ...
17484 * Makefile.in (CPPFLAGS): ... to here.
17485
17486 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17487
17488 * aclocal.m4: Move from here ...
17489 * acinclude.m4: ... to here.
17490 * autogen.sh: Add call to `aclocal'.
17491 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
17492
17493 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17494
17495 * Makefile.in (CLEANFILES): Add `po/*.mo'.
17496 (LINGUAS): New variable.
17497 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
17498 (install-local): Install MO files.
17499 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
17500 * include/grub/i18n.h: New file.
17501 * po/POTFILES: New file.
17502 * po/ca.po: New file.
17503 * util/grub.d/10_linux.in (bindir): New variable.
17504 Add gettext initialization.
17505 (linux_entry): Make menuentry output translatable.
17506 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
17507 (usage): Make --help output translatable.
17508 (main): Initialize gettext.
17509
17510 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17511
17512 * import_gcry.py: New file (written by Vladimir with minor
17513 adjustments).
17514 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
17515 ciphers.
17516 * INSTALL: Document that Python is required for bootstrap.
17517
17518 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17519
17520 Import ciphers from libgcrypt 1.4.4.
17521
17522 * lib/libgcrypt/cipher/ChangeLog
17523 * lib/libgcrypt/cipher/ac.c
17524 * lib/libgcrypt/cipher/arcfour.c
17525 * lib/libgcrypt/cipher/bithelp.h
17526 * lib/libgcrypt/cipher/blowfish.c
17527 * lib/libgcrypt/cipher/camellia-glue.c
17528 * lib/libgcrypt/cipher/camellia.c
17529 * lib/libgcrypt/cipher/camellia.h
17530 * lib/libgcrypt/cipher/cast5.c
17531 * lib/libgcrypt/cipher/cipher.c
17532 * lib/libgcrypt/cipher/crc.c
17533 * lib/libgcrypt/cipher/des.c
17534 * lib/libgcrypt/cipher/dsa.c
17535 * lib/libgcrypt/cipher/ecc.c
17536 * lib/libgcrypt/cipher/elgamal.c
17537 * lib/libgcrypt/cipher/hash-common.c
17538 * lib/libgcrypt/cipher/hash-common.h
17539 * lib/libgcrypt/cipher/hmac-tests.c
17540 * lib/libgcrypt/cipher/md.c
17541 * lib/libgcrypt/cipher/md4.c
17542 * lib/libgcrypt/cipher/md5.c
17543 * lib/libgcrypt/cipher/primegen.c
17544 * lib/libgcrypt/cipher/pubkey.c
17545 * lib/libgcrypt/cipher/rfc2268.c
17546 * lib/libgcrypt/cipher/rijndael-tables.h
17547 * lib/libgcrypt/cipher/rijndael.c
17548 * lib/libgcrypt/cipher/rmd.h
17549 * lib/libgcrypt/cipher/rmd160.c
17550 * lib/libgcrypt/cipher/rsa.c
17551 * lib/libgcrypt/cipher/seed.c
17552 * lib/libgcrypt/cipher/serpent.c
17553 * lib/libgcrypt/cipher/sha1.c
17554 * lib/libgcrypt/cipher/sha256.c
17555 * lib/libgcrypt/cipher/sha512.c
17556 * lib/libgcrypt/cipher/tiger.c
17557 * lib/libgcrypt/cipher/twofish.c
17558 * lib/libgcrypt/cipher/whirlpool.c
17559
17560 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17561
17562 Fix build for systems without error().
17563
17564 * gnulib/error.c: New file (imported from Gnulib).
17565 * gnulib/error.h: Likewise.
17566 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
17567 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
17568 (this variable is now used by error()).
17569
17570 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
17571
17572 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
17573 instead of relying that char is signed.
17574
17575 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
17578 blocksize different from specified.
17579 (grub_pxefs_read): Likewise.
17580
17581 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
17582
17583 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
17584
17585 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
17586 (grub_ata_readwrite): Likewise. Update 2 format strings.
17587 (grub_atapi_read): Likewise.
17588
17589 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
17590 * conf/i386.rmk (pkglib_MODULES): ... to here ...
17591 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
17592 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
17593 (ata_mod_LDFLAGS): Move from here ...
17594 * conf/i386.rmk: ... to here ...
17595 * conf/x86_64-efi.rmk: ... and here.
17596 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
17597 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
17598
17599 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17600
17601 Relicense multiboot.h, with RMS' blessing.
17602
17603 * include/multiboot.h: Change to X11 license.
17604
17605 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
17606
17607 Support --version in grub-mkisofs.
17608
17609 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
17610 (OPTION_VERSION): New macro.
17611 (ld_options): Recognize --version.
17612 (usage): Move `program_name' from here ...
17613 (program_name): ... to here. Add `static' qualifier.
17614 (main): Recognize `OPTION_VERSION'.
17615
17616 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
17617
17618 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
17619 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
17620
17621 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
17622
17623 Fix help2man generation for mkisofs.
17624
17625 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
17626 (usage): Send output to stdout (rather than stderr).
17627
17628 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
17629
17630 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
17631 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
17632 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
17633 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
17634 (bin_SCRIPTS): Add `grub-mkfloppy'.
17635 (grub_mkfloppy_SOURCES): New variable.
17636
17637 * util/grub-mkrescue.in: New file.
17638 * util/i386/pc/grub-mkfloppy.in: New file.
17639
17640 * util/i386/coreboot/grub-mkrescue.in: Remove.
17641 * util/i386/pc/grub-mkrescue.in: Remove.
17642
17643 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17644
17645 * include/grub/multiboot.h (struct grub_multiboot_header): Move
17646 from here ...
17647 * include/multiboot.h (struct multiboot_header): ... to here. Update
17648 all users.
17649 * include/grub/multiboot.h (struct grub_multiboot_info): Move
17650 from here ...
17651 * include/multiboot.h (struct multiboot_info): ... to here. Update
17652 all users.
17653 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
17654 from here ...
17655 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
17656 Update all users.
17657 * include/grub/multiboot.h (struct grub_mod_list): Move
17658 from here ...
17659 * include/multiboot.h (struct multiboot_mod_list): ... to here.
17660 Update all users.
17661
17662 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17663
17664 * include/multiboot2.h (multiboot_word): Rename from this ...
17665 (multiboot2_word): ... to this. Update all users.
17666 (multiboot_header): Rename from this ...
17667 (multiboot2_header): ... to this. Update all users.
17668 (multiboot_tag_header): Rename from this ...
17669 (multiboot2_tag_header): ... to this. Update all users.
17670 (multiboot_tag_start): Rename from this ...
17671 (multiboot2_tag_start): ... to this. Update all users.
17672 (multiboot_tag_name): Rename from this ...
17673 (multiboot2_tag_name): ... to this. Update all users.
17674 (multiboot_tag_module): Rename from this ...
17675 (multiboot2_tag_module): ... to this. Update all users.
17676 (multiboot_tag_memory): Rename from this ...
17677 (multiboot2_tag_memory): ... to this. Update all users.
17678 (multiboot_tag_unused): Rename from this ...
17679 (multiboot2_tag_unused): ... to this. Update all users.
17680 (multiboot_tag_end): Rename from this ...
17681 (multiboot2_tag_end): ... to this. Update all users.
17682
17683 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
17684
17685 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
17686 this platform we should support Multiboot1 first.
17687
17688 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17689 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
17690 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
17691
17692 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
17693
17694 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
17695 of write calls (converting them to fwrite() if they aren't already).
17696 (get_torito_desc): Likewise.
17697 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
17698
17699 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
17700
17701 * util/i386/pc/grub-install.in: Move from here ...
17702 * util/grub-install.in: ... to here. Update all users.
17703
17704 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
17705
17706 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
17707
17708 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
17709
17710 Support for El Torito without floppy emulation.
17711
17712 * util/mkisofs/eltorito.c: Include `<errno.h>'.
17713 (init_boot_catalog): Improve error handling.
17714 (get_torito_desc): Don't use floppy emulation unless requested by
17715 user. Patch boot information table when requested via
17716 `-boot-info-table'.
17717 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
17718 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
17719 (use_boot_info_table): New variables.
17720 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
17721 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
17722 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
17723 `--eltorito-emul-floppy'.
17724 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
17725 and `OPTION_ELTORITO_EMUL_FLOPPY'.
17726 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
17727 (use_boot_info_table, get_731): New prototypes.
17728 * util/mkisofs/write.c (get_731): New function.
17729
17730 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
17731
17732 Fix the generation of the man page.
17733
17734 * util/pc/i386/grub-install.in: Source
17735 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
17736
17737 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
17738
17739 Large file support for grub-mkisofs.
17740
17741 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
17742 * util/mkisofs/mkisofs.c (next_extent, last_extent)
17743 (session_start): Upgrade type to `uint64_t'. Update all users.
17744 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
17745 (struct directory_entry): Upgrade type of `starting_block' and
17746 `size' to `uint64_t'. Update all users.
17747 (struct deferred): Remove unused structure.
17748 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
17749 Update all users.
17750 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
17751 file is larger than `UINT32_MAX'.
17752 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
17753 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
17754 return value.
17755 (struct deferred_write): Upgrade type of `extent' and `size' to
17756 `uint64_t'. Update all users.
17757 (last_extent_written): Upgrade type to `uint64_t'. Update all
17758 users.
17759 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
17760 Update all users. Upgrade type of `remain' to `int64_t' and
17761 `use' to `size_t'. Use error() to handle fread() errors.
17762 (write_files): Rely on write_one_file() rather than calling
17763 xfwrite() directly.
17764
17765 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
17766
17767 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
17768
17769 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17770
17771 * util/mkisofs/fnmatch.c: Remove.
17772 * util/mkisofs/getopt1.c: Likewise.
17773 * util/mkisofs/getopt.c: Likewise.
17774 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
17775 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
17776 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
17777 `gnulib/getopt1.c' and `gnulib/getopt.c'.
17778 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
17779
17780 * configure.ac: Detect `mingw32msvc' host_os.
17781 Check for lstat(), getuid() and getgid().
17782
17783 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
17784 instances of `u_char' with `uint8_t'.
17785
17786 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
17787 [!HAVE_GETUID] (getuid): New function (stub).
17788 [!HAVE_GETGID] (getgid): Likewise.
17789 [!HAVE_LSTAT] (lstat): Likewise.
17790 [!S_IROTH] (S_IROTH): New macro (dummy).
17791 [!S_IRGRP] (S_IRGRP): Likewise.
17792
17793 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17794
17795 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
17796 conditional expression).
17797
17798 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17799
17800 Import from Gnulib.
17801
17802 * gnulib/fnmatch.c: New file.
17803 * gnulib/fnmatch.h: Likewise.
17804 * gnulib/fnmatch_loop.c: Likewise.
17805 * gnulib/getopt.c: Likewise.
17806 * gnulib/getopt.h: Likewise.
17807 * gnulib/getopt1.c: Likewise.
17808 * gnulib/getopt_int.h: Likewise.
17809 * gnulib/gettext.h: Likewise.
17810
17811 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17812
17813 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
17814 * normal/handler.c (read_handler_list): Likewise.
17815
17816 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17817
17818 Misc cleanup.
17819
17820 * kern/command.c (grub_register_command_prio): Use
17821 grub_zalloc() instead of explicitly zeroing data.
17822 * kern/list.c: Include `<grub/mm.h>'.
17823 (grub_named_list_find): Replace `0' with `NULL'.
17824 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
17825 (fs_module_list): Change type to `grub_named_list_t'. Update all
17826 users.
17827 * normal/dyncmd.c (read_command_list): Add space between function
17828 call and parenthesis.
17829 * normal/handler.c (read_handler_list): Likewise.
17830
17831 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17832
17833 * normal/auth.c (punishment_delay): Moved from here ...
17834 (grub_auth_strcmp): ... to here (inside function).
17835
17836 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17837
17838 * include/grub/list.h (struct grub_named_list): Remove `const'
17839 qualifier from `name'.
17840 (struct grub_prio_list): Likewise.
17841
17842 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17843
17844 * normal/auth.c: Include `<grub/time.h>'.
17845 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
17846
17847 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17848
17849 * normal/auth.c (punishment_delay): New variable.
17850 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
17851 (grub_auth_check_authentication): Punish failed login attempts with
17852 an incremental (2^N) delay.
17853
17854 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17855
17856 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
17857 path with $(srcdir).
17858
17859 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
17862
17863 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17864
17865 * util/i386/coreboot/grub-mkrescue.in: New file.
17866 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
17867 variables.
17868
17869 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
17870 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
17871 * configure.ac: Add header and function checks to satisfy grub-mkisofs
17872 requirements.
17873 * util/mkisofs/defaults.h: New file.
17874 * util/mkisofs/eltorito.c: Likewise.
17875 * util/mkisofs/exclude.h: Likewise.
17876 * util/mkisofs/fnmatch.c: Likewise.
17877 * util/mkisofs/getopt.c: Likewise.
17878 * util/mkisofs/getopt1.c: Likewise.
17879 * util/mkisofs/hash.c: Likewise.
17880 * util/mkisofs/include/fctldefs.h: Likewise.
17881 * util/mkisofs/include/mconfig.h: Likewise.
17882 * util/mkisofs/include/prototyp.h: Likewise.
17883 * util/mkisofs/include/statdefs.h: Likewise.
17884 * util/mkisofs/iso9660.h: Likewise.
17885 * util/mkisofs/joliet.c: Likewise.
17886 * util/mkisofs/match.c: Likewise.
17887 * util/mkisofs/match.h: Likewise.
17888 * util/mkisofs/mkisofs.c: Likewise.
17889 * util/mkisofs/mkisofs.h: Likewise.
17890 * util/mkisofs/multi.c: Likewise.
17891 * util/mkisofs/name.c: Likewise.
17892 * util/mkisofs/rock.c: Likewise.
17893 * util/mkisofs/tree.c: Likewise.
17894 * util/mkisofs/write.c: Likewise.
17895
17896 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17897
17898 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
17899 being insecure.
17900
17901 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17902
17903 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
17904 `grub-mkimage' (and use $0 when possible).
17905
17906 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17907
17908 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
17909 error message for excessively large memory map.
17910
17911 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17912
17913 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
17914 executable bit.
17915
17916 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17917
17918 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
17919 message for coreboot users.
17920
17921 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
17922
17923 Fix build with GNU gold.
17924
17925 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
17926 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
17927 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
17928 link addresses.
17929 * aclocal.m4: Likewise.
17930
17931 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
17932
17933 * configure.ac (AC_PREREQ): Bump to 2.59d.
17934 * INSTALL: Make it more clear when Autoconf and Ruby are
17935 needed and when to run `./autogen.sh'.
17936
17937 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17938
17939 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
17940 OSes.
17941
17942 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17943
17944 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
17945
17946 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17947
17948 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
17949 giving it to GNU Mach.
17950
17951 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17952
17953 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
17954 GNU partition number to get internal GRUB partition number.
17955
17956 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17957
17958 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
17959 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
17960
17961 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
17962
17963 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
17964 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
17965 case.
17966
17967 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
17968
17969 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
17970
17971 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17972
17973 Fix build problem.
17974
17975 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
17976 `-isystem=$(srcdir)/include'.
17977
17978 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17979
17980 * util/i386/pc/grub-install.in: Remove hint that device.map should be
17981 checked (grub-install doesn't currently rely on it).
17982
17983 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
17984
17985 Revert SVN r2660.
17986
17987 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
17988 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
17989 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
17990 * conf/i386-ieee1275.rmk: Likewise.
17991 * conf/i386-pc.rmk: Likewise.
17992 * conf/powerpc-ieee1275.rmk: Likewise.
17993 * conf/sparc64-ieee1275.rmk: Likewise.
17994 * conf/x86_64-efi.rmk: Likewise.
17995
17996 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
17997
17998 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
17999
18000 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18001
18002 * include/grub/misc.h: Stop checking for APPLE_CC.
18003
18004 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18005
18006 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
18007 doesn't cause an infinite call loop.
18008
18009 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
18010
18011 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
18012 strings.
18013
18014 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18015
18016 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
18017 variable.
18018 * Makefile.in: Likewise.
18019
18020 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18021
18022 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
18023
18024 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18025
18026 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
18027
18028 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18029
18030 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
18031
18032 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18033
18034 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
18035 from here ...
18036 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
18037
18038 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18039
18040 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
18041 in $(MAKEINFO) invocation. This makes it clear in output that
18042 errors are being ignored.
18043
18044 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18045
18046 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
18047 from here ...
18048 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18049 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
18050 * conf/i386-ieee1275.rmk: Likewise.
18051 * conf/i386-pc.rmk: Likewise.
18052 * conf/powerpc-ieee1275.rmk: Likewise.
18053 * conf/sparc64-ieee1275.rmk: Likewise.
18054 * conf/x86_64-efi.rmk: Likewise.
18055
18056 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18057
18058 * util/grub-editenv.c (main): If only a command is given, use
18059 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
18060 (usage): FILENAME is now optional and has a default.
18061
18062 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18063
18064 Improve grub-mkconfig performance when there are several menu
18065 entries on a single filesystem.
18066
18067 * util/grub.d/10_linux.in (linux_entry): Cache the output of
18068 prepare_grub_to_access_device.
18069 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
18070 * util/grub.d/30_os-prober.in: Likewise.
18071
18072 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18073
18074 * util/grub.d/10_freebsd.in: Remove.
18075 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
18076 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
18077
18078 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18079
18080 * docs/grub.cfg: Fix example usage of *BSD loaders.
18081
18082 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18083
18084 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
18085 grub_util_error() call.
18086
18087 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18088
18089 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
18090 `reserved_first_sector' member.
18091 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
18092 `reserved_first_sector' to 1.
18093 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
18094 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
18095 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
18096 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
18097 filesystems which begin at first sector.
18098 (options): New option --skip-fs-probe.
18099 (main): Handle --skip-fs-probe and pass it to setup().
18100
18101 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18102
18103 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
18104 (memset): Fix function prototype.
18105
18106 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18107 2009-10-25 Vasily Averin <vvs@parallels.com>
18108
18109 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
18110 `dirent.direntlen == 0'.
18111
18112 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18113
18114 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
18115 `cpio'.
18116 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
18117
18118 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18119
18120 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
18121 `__trampoline_setup' and `__ucmpdi2'.
18122 * include/grub/powerpc/libgcc.h: Only export symbols for functions
18123 that libgcc provides.
18124
18125 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18126
18127 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
18128 * include/grub/sparc64/libgcc.h (memset): Likewise.
18129 * include/grub/misc.h (memset, memcmp): New function prototypes.
18130
18131 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18132
18133 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
18134 `cpio'.
18135 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
18136
18137 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18138
18139 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
18140 * docs/grub.cfg: Compensate for recent change in multiboot
18141 loader (since 2009-08-14 it won't pass filename to payload).
18142 * util/grub.d/10_hurd.in: Likewise.
18143
18144 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
18145
18146 * config.guess: Update to latest version from config git
18147 repository.
18148 * config.sub: Likewise.
18149
18150 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
18151
18152 Fix build on sparc64.
18153
18154 * configure.ac: Perform checks for libgcc symbols before
18155 adding `-nostdlib' to LDFLAGS.
18156
18157 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 Let user specify OpenBSD root device.
18160
18161 * loader/i386/bsd.c (openbsd_root): New variable.
18162 (openbsd_opts): New option 'root'.
18163 (OPENBSD_ROOT_ARG): New macro.
18164 (grub_openbsd_boot): Use 'openbsd_root'.
18165 (grub_cmd_openbsd): Fill 'openbsd_root'.
18166
18167 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18168
18169 * NEWS: Misc adjustments.
18170
18171 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18172
18173 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
18174
18175 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18176
18177 * configure.ac: Bump version to 1.97.
18178
18179 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
18180
18181 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
18182 -mno-3dnow on x86 architectures. Some toolchains enable these
18183 features by default, but they rely on registers that aren't enabled
18184 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
18185
18186 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
18187
18188 Make entry text a bit more readable.
18189
18190 * util/grub.d/10_linux.in: Add `with' before `Linux'.
18191
18192 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18193
18194 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
18195
18196 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18197
18198 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
18199 operations.
18200
18201 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18202
18203 * configure.ac: Add missing dollar.
18204
18205 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
18208
18209 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
18210 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
18211 exports.
18212 * include/grub/sparc64/libgcc.h: Likewise. Use
18213 preprocessor conditionals.
18214
18215 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18216
18217 * conf/common.rmk (grub-dumpbios): Remove rule.
18218 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
18219 * util/grub-dumpbios.in: Remove file.
18220
18221 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18222
18223 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
18224 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
18225
18226 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
18227 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
18228 users.
18229
18230 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
18231 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
18232 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
18233 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
18234 users.
18235
18236 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
18237
18238 * term/tparm.c: Switch to GPLv3.
18239
18240 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18241
18242 * include/grub/i386/cpuid.h: Add header protection.
18243
18244 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18245
18246 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
18247
18248 * include/grub/i386/cpuid.h: New file.
18249 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
18250 (has_longmode): Rename to ...
18251 (grub_cpuid_has_longmode): ... this. Update all users. Remove
18252 `static' attribute.
18253 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
18254 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
18255 on a CPU that doesn't implement AMD64 instruction set.
18256
18257 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18258
18259 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
18260 that version.texi is rebuilt on version number changes.
18261
18262 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18263
18264 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
18265 Fixes bug #27602.
18266
18267 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18268
18269 * util/i386/pc/grub-install.in: Source
18270 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
18271 that the --grub-probe option will work.
18272 * util/sparc64/ieee1275/grub-install.in: Likewise.
18273
18274 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
18275
18276 * configure.ac: Bump version to 1.97~beta4.
18277
18278 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
18279
18280 Resync grub-mkdevicemap in x86_64-efi.
18281
18282 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
18283 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
18284 `util/devicemap.c'.
18285
18286 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
18287
18288 * util/grub-editenv.c (create_envblk_file): Write new block with a
18289 .new suffix and then rename it into place, to ensure atomic
18290 creation.
18291
18292 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
18293
18294 Do not automatically install headers.
18295
18296 * Makefile.in (include_DATA): Remove. Update all users.
18297
18298 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
18299
18300 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
18301 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
18302
18303 * util/osdetect.lua: Remove.
18304 * script/lua/lauxlib.c: Likewise.
18305 * script/lua/ldebug.c: Likewise.
18306 * script/lua/grub_main.c: Likewise.
18307 * script/lua/lauxlib.h: Likewise.
18308 * script/lua/ldebug.h: Likewise.
18309 * script/lua/ltablib.c: Likewise.
18310 * script/lua/liolib.c: Likewise.
18311 * script/lua/lstrlib.c: Likewise.
18312 * script/lua/lualib.h: Likewise.
18313 * script/lua/ldo.c: Likewise.
18314 * script/lua/ldump.c: Likewise.
18315 * script/lua/ldo.h: Likewise.
18316 * script/lua/loslib.c: Likewise.
18317 * script/lua/lundump.c: Likewise.
18318 * script/lua/grub_lib.c: Likewise.
18319 * script/lua/ldblib.c: Likewise.
18320 * script/lua/lundump.h: Likewise.
18321 * script/lua/lmem.c: Likewise.
18322 * script/lua/grub_lib.h: Likewise.
18323 * script/lua/lmathlib.c: Likewise.
18324 * script/lua/lstate.c: Likewise.
18325 * script/lua/ltm.c: Likewise.
18326 * script/lua/lvm.c: Likewise.
18327 * script/lua/lmem.h: Likewise.
18328 * script/lua/lstate.h: Likewise.
18329 * script/lua/ltm.h: Likewise.
18330 * script/lua/ltable.c: Likewise.
18331 * script/lua/lvm.h: Likewise.
18332 * script/lua/llex.c: Likewise.
18333 * script/lua/lgc.c: Likewise.
18334 * script/lua/grub_lua.h: Likewise.
18335 * script/lua/loadlib.c: Likewise.
18336 * script/lua/lfunc.c: Likewise.
18337 * script/lua/lopcodes.c: Likewise.
18338 * script/lua/lparser.c: Likewise.
18339 * script/lua/ltable.h: Likewise.
18340 * script/lua/llex.h: Likewise.
18341 * script/lua/lgc.h: Likewise.
18342 * script/lua/lfunc.h: Likewise.
18343 * script/lua/lbaselib.c: Likewise.
18344 * script/lua/lopcodes.h: Likewise.
18345 * script/lua/lparser.h: Likewise.
18346 * script/lua/lzio.c: Likewise.
18347 * script/lua/linit.c: Likewise.
18348 * script/lua/lobject.c: Likewise.
18349 * script/lua/llimits.h: Likewise.
18350 * script/lua/lstring.c: Likewise.
18351 * script/lua/lzio.h: Likewise.
18352 * script/lua/lapi.c: Likewise.
18353 * script/lua/lcode.c: Likewise.
18354 * script/lua/lua.h: Likewise.
18355 * script/lua/lobject.h: Likewise.
18356 * script/lua/lstring.h: Likewise.
18357 * script/lua/lapi.h: Likewise.
18358 * script/lua/lcode.h: Likewise.
18359 * script/lua/luaconf.h: Likewise.
18360
18361 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
18362
18363 * docs/grub.texi (Command-line and menu entry commands): Document
18364 date and echo commands.
18365
18366 2009-09-24 Pavel Roskin <proski@gnu.org>
18367
18368 * include/grub/kernel.h (struct grub_module_header): Remove
18369 `grub_module_header_types'. Make `type' unsigned. Make `size'
18370 32-bit on all platforms.
18371 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
18372 8-bit field. Use grub_host_to_target32() for `size'.
18373 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
18374 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
18375 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
18376
18377 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18378
18379 Fix "lost keypress" bug in at_keyboard.
18380
18381 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
18382 Checks for readyness of input buffer (without flushing it).
18383 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
18384 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
18385
18386 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18387
18388 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
18389 size check within GRUB_MACHINE_PCBIOS section.
18390
18391 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18392
18393 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
18394 return value.
18395 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
18396 KEYBOARD_ISREADY check.
18397 (grub_at_keyboard_checkkey): Rename to ...
18398 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
18399 Remove gratuitous cast.
18400
18401 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
18402
18403 * configure.ac: Call AC_PROG_MKDIR_P.
18404 * Makefile.in (docs/stamp-vti): Create docs directory. Create
18405 version.texi in $(builddir) rather than $(srcdir).
18406 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
18407 to makeinfo's @include search path.
18408
18409 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18410
18411 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
18412
18413 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18414
18415 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
18416 for `*.dpkg-new'.
18417
18418 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
18419
18420 Build info documentation. Some code borrowed from Automake.
18421
18422 * configure.ac: Check for makeinfo.
18423 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
18424 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
18425 docs/version.texi.
18426 (MOSTLYCLEANFILES): Add vti.tmp.
18427 (docs/version.texi, docs/stamp-vti): Update automatically.
18428 (docs/grub.info): Build info documentation. Use --force and ignore
18429 errors for now.
18430 (all-local): Add $(INFOS).
18431 (install-local): Install info files.
18432 (uninstall): Uninstall info files.
18433 * docs/version.texi: Remove from revision control. This file is
18434 automatically generated on build now.
18435 * gendistlist.sh: Add `*.info'.
18436
18437 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18438
18439 * kern/term.c: Fix indentation.
18440
18441 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18442
18443 * util/hostdisk.c: Fix a comment.
18444
18445 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
18446
18447 Fix regression introduced in r2539.
18448
18449 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
18450 to 0xA1.
18451
18452 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
18453
18454 * util/grub.d/30_os-prober.in: Don't throw away stderr from
18455 os-prober. Under normal operation, it does not print anything to
18456 stderr; if it does, we need to debug it, and throwing away stderr
18457 makes that excessively difficult.
18458
18459 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
18460
18461 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
18462
18463 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18464
18465 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
18466 AC_LANG_PROGRAM from autoconf.
18467 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
18468 prototypes (fixes warning).
18469
18470 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
18471 `--disable-werror' was used.
18472
18473 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18474
18475 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
18476 uninitialized `lastaddr'.
18477
18478 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18479
18480 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
18481
18482 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18483
18484 * commands/test.c (get_fileinfo): Return immediately if
18485 grub_fs_probe fails.
18486
18487 2009-09-14 José Martínez <xosemp@gmail.com>
18488
18489 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
18490
18491 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18492
18493 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
18494 output.
18495
18496 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
18497
18498 * configure.ac: Remove --enable-grub-pe2elf. Only build
18499 grub-pe2elf when needed by the build system itself.
18500 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
18501
18502 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18503
18504 * configure.ac: Bump version to 1.97~beta3.
18505 * docs/version.texi: Likewise.
18506
18507 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18508
18509 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
18510 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
18511 from here ...
18512 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
18513 (grub_linux_setup_video): ... to here (with some adjustments).
18514
18515 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18516
18517 Fix memory corruption issue (spotted by Colin Watson).
18518
18519 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
18520 causing returned size to be stored in an incorrect memory location.
18521 Fix use of uninitialized value when storing the returned size.
18522
18523 2009-09-12 Yves Blusseau <blusseau@zetam.org>
18524
18525 Change clean rules to properly remove files
18526
18527 * genmk.rb: add new clean rules
18528 * Makefile.in (clean): add the new targets
18529 (mostlyclean): likewise
18530
18531 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18532
18533 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
18534 to grub_uint64_t.
18535 * fs/ntfs.c (init_file): Understand 64-bit sizes for
18536 non-resident files.
18537
18538 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18539
18540 * configure.ac: Don't look for help2man when cross-compiling. Fixes
18541 part of bug #27349.
18542
18543 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18544
18545 * util/grub-mkconfig.in: Make the created config mode 400 and
18546 print a warning if it fails.
18547
18548 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
18549
18550 * util/grub.d/40_custom.in: Ask user to type custom entries below
18551 comment, rather than below 'exec tail' line.
18552
18553 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18554
18555 * util/grub.d/40_custom.in: Make sure that the explanatory text is
18556 visible in grub.cfg.
18557
18558 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18559
18560 * util/grub.d/40_custom.in: Make it a little clearer how to use this
18561 file.
18562
18563 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18564
18565 * docs/grub.cfg: Add an example menu entry for memtest86+.
18566
18567 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
18568
18569 * config.guess: Update to latest version from config git.
18570 * config.sub: Likewise.
18571
18572 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
18573
18574 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
18575 unknown-command case. Fixes bug #27320.
18576
18577 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
18578
18579 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
18580 `help' if the command exists.
18581
18582 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
18583
18584 * INSTALL: Require GCC 4.1.3 or later.
18585
18586 2009-09-06 Yves Blusseau <blusseau@zetam.org>
18587
18588 * Makefile.in (RMKFILES): add i386-qemu.rmk
18589 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
18590 $(srcdir)/stamp-h.in
18591
18592 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
18593
18594 * util/grub-probe.c (probe): Comment out buggy codepath, which
18595 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
18596 should be re-enabled after 1.97.
18597
18598 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
18599
18600 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
18601 find searches for.
18602
18603 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
18606 unnecessary calls to grub_error.
18607
18608 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
18609
18610 * NEWS: Mention `keystatus' and Unicode fonts.
18611
18612 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
18613
18614 * configure.ac: Bump version to 1.97~beta2.
18615 * docs/version.texi: Likewise.
18616
18617 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
18618
18619 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
18620 containing unwind information in some cases where it previously did
18621 not. Use -fno-dwarf2-cfi-asm if available to restore the old
18622 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
18623 discussion.
18624
18625 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
18626
18627 Embedding loadenv module into grub-emu
18628
18629 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
18630 commands/loadenv.c
18631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
18632 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
18633 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
18634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
18635 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
18636 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
18637
18638 2009-09-03 Magnus Granberg <zorry@ume.nu>
18639
18640 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
18641 include -fPIE in the default specs.
18642 * configure.ac: Check if pie_possible is yes and add -fno-PIE
18643 to TARGET_CFLAGS.
18644
18645 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
18646
18647 * INSTALL: Note that GNU Bison 2.3 or later is required.
18648
18649 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
18650
18651 * kern/i386/pc/startup.S: Fix typo.
18652
18653 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18654
18655 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
18656 according to GCS.
18657
18658 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18659
18660 * docs/grub.texi (Naming convention): Describe one-based partition
18661 numbering.
18662 (Device syntax): Likewise.
18663 (File name syntax): Likewise.
18664 (Block list syntax): Likewise.
18665 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
18666 menu.lst.
18667 (File name syntax): Likewise.
18668 (Command-line and menu entry commands): Document acpi, blocklist,
18669 crc, export, insmod, keystatus, ls, set, and unset commands.
18670
18671 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18672
18673 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
18674 to avoid implying that only one of --shift, --ctrl, or --alt may be
18675 used.
18676
18677 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
18678
18679 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
18680 rather than comparing against S_IFREG, which will almost never work.
18681
18682 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18683
18684 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
18685 (write_blocklists): Likewise.
18686
18687 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
18688
18689 * script/lua/grub_lua.h (fputs): Supply a format string as the first
18690 argument to grub_printf.
18691
18692 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
18693
18694 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
18695 non GNU test.
18696
18697 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18698
18699 * kern/file.c (grub_file_read): Spelling fix
18700
18701 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18702
18703 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
18704 loading of headers in some cases.
18705
18706 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
18707
18708 * configure.ac: Bump version to 1.97~beta1.
18709 * docs/version.texi: Likewise.
18710
18711 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18712
18713 * include/grub/i386/xnu.h: Add license header.
18714 include grub/err.h explicitly.
18715
18716 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
18717
18718 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
18719 to `ufs' in the vfs.root.mountfrom kernel parameter.
18720
18721 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
18722
18723 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
18724
18725 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
18726 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
18727
18728 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
18729 `ARRAY_SIZE' macro.
18730
18731 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 * kern/file.c (grub_file_read): Check offset.
18734 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
18735 * fs/jfs.c (grub_jfs_read_file): Likewise.
18736 * fs/ntfs.c (grub_ntfs_read): Likewise.
18737 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
18738 * fs/minix.c (grub_minix_read_file): Correct offset check.
18739 * fs/ufs.c (grub_ufs_read_file): Likewise.
18740
18741 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18742
18743 * term/i386/pc/console.c (bios_data_area): Cast
18744 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
18745
18746 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18747
18748 1-bit optimised blitters.
18749
18750 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
18751 prototype.
18752 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18753 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18754 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18755 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18756 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18757 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18758 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
18759 function.
18760 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18761 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18762 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18763 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18764 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18765 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18766 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
18767 when possible.
18768 * video/video.c (grub_video_get_blit_format): Return
18769 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
18770
18771 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18772
18773 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
18774 the first argument to grub_printf.
18775
18776 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
18777 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
18778
18779 Add `getkeystatus' terminal method. Add a new `keystatus' command
18780 to query it.
18781
18782 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
18783 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
18784 modifier key bitmasks.
18785 (struct grub_term_input): Add `getkeystatus' member.
18786 (grub_getkeystatus): Add prototype.
18787 * kern/term.c (grub_getkeystatus): New function.
18788
18789 * include/grub/i386/pc/memory.h
18790 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
18791 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
18792 Data Area layout.
18793 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
18794 (grub_console_term_input): Set `getkeystatus' member.
18795 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
18796 constants.
18797 (grub_usb_keyboard_getreport): Likewise.
18798 (grub_usb_keyboard_checkkey): Likewise.
18799 (grub_usb_keyboard_getkeystatus): New function.
18800 (grub_usb_keyboard_term): Set `getkeystatus' member.
18801
18802 * commands/keystatus.c: New file.
18803 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
18804 (keystatus_mod_SOURCES): New variable.
18805 (keystatus_mod_CFLAGS): Likewise.
18806 (keystatus_mod_LDFLAGS): Likewise.
18807 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
18808 commands/keystatus.c.
18809 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18810 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18811 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18813 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18814 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18815
18816 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 Split befs.mod and afs.mod into *_be.mod and *.mod
18819
18820 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
18821 (grub_fstest_SOURCES): Likewise.
18822 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
18823 (afs_be_mod_SOURCES): New variable.
18824 (afs_be_mod_CFLAGS): Likewise.
18825 (afs_be_mod_LDFLAGS): Likewise.
18826 (befs_be_mod_SOURCES): Likewise.
18827 (befs_be_mod_CFLAGS): Likewise.
18828 (befs_be_mod_LDFLAGS): Likewise.
18829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
18830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18831 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18832 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18833 (grub_emu_SOURCES): Likewise.
18834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18837 * fs/afs_be.c: New file.
18838 * fs/befs_be.c: New file.
18839 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
18840 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
18841 (U16): Replaced with ...
18842 (grub_afs_to_cpu16): ...this. All users updated.
18843 (U32): Replaced with ...
18844 (grub_afs_to_cpu32): ...this. All users updated.
18845 (U64): Replaced with ...
18846 (grub_afs_to_cpu64): ...this. All users updated.
18847 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
18848 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
18849 (grub_afs_validate_sblock): Check only one endianness.
18850 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18851 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18852 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18853 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18854 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18855 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18856 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18857 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18858
18859 2009-08-26 Bean <bean123ch@gmail.com>
18860
18861 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
18862 64-bit number.
18863 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
18864 (grub_xfs_inode_block): Change return type to grub_uint64_t.
18865 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
18866
18867 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18868
18869 NetBSD memory map support.
18870
18871 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
18872 (grub_netbsd_btinfo_mmap_header): New structure.
18873 (grub_netbsd_btinfo_mmap_entry): Likewise.
18874 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
18875
18876 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 Enable bsd.mod on coreboot.
18879
18880 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
18881 (bsd_mod_SOURCES): New variable.
18882 (bsd_mod_CFLAGS): Likewise.
18883 (bsd_mod_LDFLAGS): Likewise.
18884 (bsd_mod_ASFLAGS): Likewise.
18885 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
18886 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
18887
18888 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 Cleanup NetBSD root support.
18891
18892 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
18893 grub_bsd_get_device.
18894 Fix typo.
18895
18896 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
18897
18898 * util/grub.d/00_header.in: Move check for the video backend of
18899 gfxterm from here ...
18900 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
18901 a suitable video backend.
18902
18903 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18904
18905 Fix breakage in grub-setup.
18906
18907 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
18908 "msdos_partition_map".
18909
18910 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18911
18912 Fix breakage in normal/auth.c.
18913
18914 * normal/auth.c (grub_iswordseparator): New function.
18915
18916 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18917
18918 Authentication support.
18919
18920 * commands/password.c: New file.
18921 * conf/common.rmk (pkglib_MODULES): Add password.mod.
18922 (password_mod_SOURCES): New variable.
18923 (password_mod_CFLAGS): Likewise.
18924 (password_mod_LDFLAGS): Likewise.
18925 (normal_mod_SOURCES): Add normal/auth.c.
18926 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
18927 normal/auth.c.
18928 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18929 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18930 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18932 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18933 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18934 * include/grub/auth.h: New file.
18935 * include/grub/err.h (grub_err_t): New enum value
18936 GRUB_ERR_ACCESS_DENIED.
18937 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
18938 'users'.
18939 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
18940 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
18941 users updated.
18942 * normal/auth.c: New file.
18943 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
18944 (grub_cmdline_run): Don't allow to go to command line without
18945 authentication.
18946 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
18947 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
18948 menuentry without superuser rights.
18949 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
18950 user isn't a superuser.
18951
18952 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 Save space by inlining misc.c functions.
18955
18956 * kern/misc.c (grub_iswordseparator): Made static.
18957 * kern/misc.c (grub_strcat): Moved from here ...
18958 * include/grub/misc.h (grub_strcat): ... here. Inlined.
18959 * kern/misc.c (grub_strncat): Moved from here ...
18960 * include/grub/misc.h (grub_strncat): ... here. Inlined.
18961 * kern/misc.c (grub_strcasecmp): Moved from here ...
18962 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
18963 * kern/misc.c (grub_strncasecmp): Moved from here ...
18964 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
18965 * kern/misc.c (grub_isalpha): Moved from here ...
18966 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
18967 * kern/misc.c (grub_isdigit): Moved from here ...
18968 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
18969 * kern/misc.c (grub_isgraph): Moved from here ...
18970 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
18971 * kern/misc.c (grub_tolower): Moved from here ...
18972 * include/grub/misc.h (grub_tolower): ... here. Inlined.
18973
18974 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18975
18976 * script/sh/function.c (grub_script_function_find): Cut error message
18977 not to flood terminal.
18978 * script/sh/lexer.c (grub_script_yylex): Remove command line length
18979 limit.
18980 * script/sh/script.c (grub_script_arg_add): Duplicate string.
18981
18982 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
18983
18984 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
18985 `report' grub_uint8_t *.
18986 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
18987 Use a 50-millisecond timeout rather than just repeating
18988 grub_usb_keyboard_getreport 50 times.
18989 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
18990
18991 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18992
18993 Rename *_partition_map to part_*
18994
18995 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
18996 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
18997 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
18998 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
18999 All users updated.
19000 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
19001 All users updated.
19002 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
19003 * util/grub-probe.c (probe_partmap): Don't transform partition name
19004 to get module name.
19005
19006 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 Fix OpenBSD and NetBSD support.
19009
19010 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
19011 memory address conflict.
19012 (OPENBSD_MMAP_ACPI): New definition.
19013 (OPENBSD_MMAP_NVS): Likewise.
19014 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
19015 and OPENBSD_MMAP_NVS.
19016 Add memory map terminator
19017 Explicit cast when calling grub_unix_real_boot.
19018 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
19019
19020 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19021
19022 Let user specify NetBSD root device.
19023
19024 * loader/i386/bsd.c (netbsd_root): New variable.
19025 (netbsd_opts): New option 'root'.
19026 (NETBSD_ROOT_ARG): New macro.
19027 (grub_netbsd_boot): Use 'netbsd_root'.
19028 (grub_bsd_unload): Free 'netbsd_root'.
19029 (grub_cmd_netbsd): Fill 'netbsd_root'.
19030
19031 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 Support for 64-bit NetBSD.
19034
19035 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
19036 point when booting non-FreeBSD.
19037
19038 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19039
19040 Support --no-smp and --no-acpi for NetBSD.
19041
19042 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
19043 (NETBSD_AB_NOACPI): Likewise.
19044 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
19045 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
19046
19047 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19048
19049 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
19050 errors.
19051 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
19052 errors. Call grub_error when needed.
19053
19054 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19055
19056 * commands/search.c (search_fs): Try searching without autoload first.
19057 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19058 filesystem module explicitly for faster booting.
19059
19060 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19061
19062 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
19063
19064 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19065
19066 * util/grub.d/30_os-prober.in: Disable os-prober if
19067 `GRUB_DISABLE_OS_PROBER' was set to true.
19068
19069 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
19070
19071 * partmap/pc.c: Rename to ...
19072 * partmap/msdos.c: ... this. Update all users.
19073 (grub_pc_partition_map): Rename to ...
19074 (grub_msdos_partition_map): ... this. Update all users.
19075
19076 * parttool/pcpart.c: Rename to ...
19077 * parttool/msdospart.c: ... this. Update all users.
19078
19079 * include/grub/pc_partition.h: Rename to ...
19080 * include/grub/msdos_partition.h: ... this. Update all users.
19081 (grub_pc_partition_bsd_entry): Rename to ...
19082 (grub_msdos_partition_bsd_entry): ... this. Update all users.
19083 (grub_pc_partition_disk_label): Rename to ...
19084 (grub_msdos_partition_disk_label): ... this. Update all users.
19085 (grub_pc_partition_entry): Rename to ...
19086 (grub_msdos_partition_entry): ... this. Update all users.
19087 (grub_pc_partition_mbr): Rename to ...
19088 (grub_msdos_partition_mbr): ... this. Update all users.
19089 (grub_pc_partition): Rename to ...
19090 (grub_msdos_partition): ... this. Update all users.
19091 (grub_pc_partition_is_empty): Rename to ...
19092 (grub_msdos_partition_is_empty): ... this. Update all users.
19093 (grub_pc_partition_is_extended): Rename to ...
19094 (grub_msdos_partition_is_extended): ... this. Update all users.
19095 (grub_pc_partition_is_bsd): Rename to ...
19096 (grub_msdos_partition_is_bsd): ... this. Update all users.
19097
19098 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
19099 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
19100 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
19101 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
19102 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
19103 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
19104 (gpt_mod_LDFLAGS): Rename to ...
19105 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
19106 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
19107 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
19108 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
19109 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
19110 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
19111 (part_gpt_mod_LDFLAGS): ... this.
19112 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
19113 `pcpart.mod' to `msdospart.mod'.
19114 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
19115 to ...
19116 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
19117 (msdospart_mod_LDFLAGS): ... this.
19118
19119 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19120
19121 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
19122 (openbsd_opts): Likewise.
19123 (netbsd_opts): Likewise.
19124 (freebsd_flags): Added 0 terminator.
19125 (openbsd_flags): Likewise.
19126 (netbsd_flags): Likewise.
19127 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
19128 (grub_cmd_freebsd): Transformed into extended command.
19129 (grub_cmd_openbsd): Likewise.
19130 (grub_cmd_netbsd): Likewise.
19131 (cmd_freebsd): Changed type to grub_extcmd_t.
19132 (cmd_openbsd): Likewise.
19133 (cmd_netbsd): Likewise.
19134 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
19135 grub_cmd_openbsd as extended commands.
19136 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
19137 cmd_netbsd and cmd_openbsd
19138
19139 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19140
19141 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
19142
19143 2009-08-21 Pavel Roskin <proski@gnu.org>
19144
19145 * Makefile.in (install-local): When checking if a file is in the
19146 build directory, use "test -e" to detect symlinks.
19147
19148 * Makefile.in (install-local): Remove all files in
19149 $(DESTDIR)$(pkglibdir) before installing new files there.
19150
19151 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19152
19153 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
19154 grub-mkelfimage.
19155
19156 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19157
19158 * util/grub-mkconfig.in: Don't use gfxterm by default if not
19159 explicitly specified by the user.
19160
19161 2009-08-18 Pavel Roskin <proski@gnu.org>
19162
19163 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
19164 grub_uint8_t pointer for data.
19165 * include/grub/fbutil.h (struct grub_video_fbblit_info):
19166 Likewise.
19167 * video/fb/fbutil.c: Remove unnecessary casts.
19168
19169 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19170
19171 VBE cleanup.
19172
19173 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
19174 (grub_vbe_set_video_mode): Save active mode info
19175 only after setting the mode.
19176 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
19177 second argument.
19178
19179 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19180
19181 Rename variables for clarity.
19182
19183 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
19184 (active_vbe_mode_info): ... this. All users updated.
19185 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
19186 All users updated.
19187 (initial_mode): Rename to ...
19188 (initial_vbe_mode): ... this. All users updated.
19189 (mode_in_use): Rename to ..
19190 (vbe_mode_in_use): ... this. All users updated.
19191 (mode_list): Rename to ..
19192 (vbe_mode_list): ... this. All users updated.
19193 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
19194 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
19195 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
19196 'mode_list_size' to 'vbe_mode_list_size'.
19197 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
19198 'best_mode_info' to 'best_vbe_mode_info' and
19199 'best_mode' to 'best_vbe_mode'
19200
19201 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19202
19203 Remove duplicate grub_video_fb_get_video_ptr.
19204
19205 * include/grub/fbutil.h (get_data_ptr): Rename to ...
19206 (grub_video_fb_get_video_ptr): ... this.
19207 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
19208 * video/fb/fbutil.c: Add comment about addressing.
19209 (get_data_ptr): Rename to ...
19210 (grub_video_fb_get_video_ptr): ... this. All users updated.
19211 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
19212
19213 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19214
19215 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
19216 grub_dprintf() that was just added.
19217
19218 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19219
19220 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
19221 (DEFAULT_VIDEO_MODE): Remove macros.
19222 (grub_linux_boot): Remove assumption that Linux has FB support,
19223 and use "text" as default video mode.
19224
19225 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
19228 grub_dprintf.
19229 * fs/fat.c (grub_fat_read_data): Likewise.
19230
19231 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19232
19233 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
19234 payload.
19235 (grub_module): Likewise.
19236
19237 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19238
19239 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
19240 mbi->cmdline but free playground.
19241
19242 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 Handle group offset on UFS1.
19245
19246 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
19247 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
19248
19249 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19250
19251 Split ufs.mod into ufs1.mod and ufs2.mod.
19252
19253 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
19254 (grub_fstest_SOURCES): Likewise.
19255 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
19256 (ufs_mod_SOURCES): Remove.
19257 (ufs_mod_CFLAGS): Likewise.
19258 (ufs_mod_LDFLAGS): Likewise.
19259 (ufs1_mod_SOURCES): New variable.
19260 (ufs1_mod_CFLAGS): Likewise.
19261 (ufs1_mod_LDFLAGS): Likewise.
19262 (ufs2_mod_SOURCES): New variable.
19263 (ufs2_mod_CFLAGS): Likewise.
19264 (ufs2_mod_LDFLAGS): Likewise.
19265 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
19266 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19267 Likewise.
19268 (grub_emu_SOURCES): Likewise.
19269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19270 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19271 (grub_setup_SOURCES): Likewise.
19272 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19273 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
19274 (grub_setup_SOURCES): Likewise.
19275 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19276 Likewise.
19277 * fs/ufs2.c: New file.
19278 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
19279
19280 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19281
19282 Framebuffer split.
19283
19284 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
19285 subsystem at the end.
19286 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
19287 (video_fb_mod_SOURCES): New variable.
19288 (video_fb_mod_CFLAGS): Likewise.
19289 (video_fb_mod_LDFLAGS): Likewise.
19290 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
19291 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
19292 * video/i386/pc/vbeblit.c: Moved from here ...
19293 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
19294 * video/i386/pc/vbefill.c: Moved from here ...
19295 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
19296 * video/i386/pc/vbeutil.c: Moved from here ...
19297 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
19298 * include/grub/i386/pc/vbeblit.h: Moved from here ...
19299 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
19300 * include/grub/i386/pc/vbefill.h: Moved from here ...
19301 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
19302 * include/grub/i386/pc/vbeutil.h: Moved from here ...
19303 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
19304 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
19305 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
19306 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
19307 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
19308 (grub_video_adapter): Added 'get_info_and_fini'.
19309 (grub_video_get_info_and_fini): New prototype.
19310 (grub_video_set_mode): make modestring const char *.
19311 * loader/i386/linux.c (grub_linux_setup_video): Use
19312 grub_video_get_info_and_fini.
19313 (grub_linux_boot): Move modesetting just before booting.
19314 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
19315 grub_video_get_info_and_fini.
19316 * video/i386/pc/vbe.c: Moved framebuffer part ...
19317 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
19318 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
19319 grub_video_fbstd_colors and grub_video_fb_set_palette.
19320 (grub_video_vbe_init): Clear 'framebuffer' variable and use
19321 grub_video_fb_init.
19322 (grub_video_vbe_fini): Use grub_video_fb_fini.
19323 (grub_video_vbe_setup): Use framebuffer.render_target instead of
19324 render_target and use grub_video_fb_set_active_render_target and
19325 grub_video_fb_set_palette.
19326 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
19327 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
19328 (grub_video_vbe_adapter): Use framebuffer.
19329 * video/video.c (grub_video_get_info_and_fini): New function.
19330 (grub_video_set_mode): Make modestring const char *.
19331 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
19332 values are already initialised.
19333
19334 2009-08-14 Pavel Roskin <proski@gnu.org>
19335
19336 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
19337 ABS and APPLE_CC.
19338 * boot/i386/pc/diskboot.S: Likewise.
19339 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
19340 sectors allow compilation on MacOSX.
19341 * conf/i386-pc.rmk: Enable unconditional compilation of
19342 lnxboot.img.
19343
19344 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
19345
19346 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
19347 * util/grub.d/00_header.in: Enter interruptible sleep if
19348 GRUB_HIDDEN_TIMEOUT is set.
19349
19350 2009-08-13 Yves Blusseau <blusseau@zetam.org>
19351
19352 * include/grub/symbol.h: Add the LOCAL macro.
19353 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
19354 starting with "L_".
19355
19356 2009-08-13 Pavel Roskin <proski@gnu.org>
19357
19358 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
19359 any modern compilers we support.
19360
19361 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
19362 Use local labels starting with "L_" so that Apple assembler
19363 knows they are local.
19364
19365 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
19366
19367 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
19368 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
19369 (bsd_kernel_types): ... this enum.
19370
19371 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
19372 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
19373 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
19374
19375 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
19376 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
19377 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
19378 messages.
19379
19380 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19381
19382 * util/grub-dumpdevtree: Moved from here ...
19383 * util/i386/efi/grub-dumpdevtree: ... to here.
19384 (hexify): New function. Converts a string to its hex version.
19385 Generate hex versions of "efi" and "device-properties" by calling
19386 hexify() on the ASCII strings rather than by hardcoding numbers.
19387
19388 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19389
19390 * fs/jfs.c: Update copyright year.
19391
19392 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19393
19394 * util/grub.d/00_header.in: Fix a comment.
19395 * util/grub.d/10_linux.in: Likewise.
19396 * util/grub.d/10_windows.in: Likewise.
19397 * util/grub.d/10_hurd.in: Likewise.
19398
19399 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19400
19401 * util/grub-mkconfig.in: Allow the user to specify the used font
19402 with GRUB_FONT.
19403
19404 2009-08-08 Pavel Roskin <proski@gnu.org>
19405
19406 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
19407 available, xfs.mod needs it now.
19408
19409 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
19410 the "g" modifier in sed when the intention is to strip something
19411 once. This fixes comparison of kernels with multiple dashes.
19412
19413 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
19414 on it. Add missing space before closing bracket. Fix
19415 misleading formatting.
19416
19417 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19418
19419 * docs/grub.texi: Major overhaul. Remove all sections that are
19420 specific to GRUB Legacy, or mostly composed of Legacy-specific
19421 information.
19422
19423 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19424
19425 * docs/version.texi: New file. Provides version information for
19426 grub.texi.
19427
19428 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19429
19430 * docs/grub.texi: Update CVS information to SVN.
19431 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
19432
19433 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19434
19435 * util/grub-mkconfig.in: Remove a wrong `fi'.
19436
19437 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19438
19439 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
19440 (grub_jfs_uuid): New function.
19441 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
19442
19443 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19444
19445 * util/grub-mkconfig_lib.in (font_path): Move the functionality
19446 of it to ...
19447 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
19448 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
19449
19450 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19451
19452 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
19453 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
19454 Update all users.
19455
19456 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
19457 not just "vmlinu[zx]".
19458 Moved from here ...
19459 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
19460 all users.
19461
19462 * util/grub.d/10_linux.in (find_latest): Moved from here ...
19463 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
19464 all users.
19465
19466 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19467
19468 * util/grub.d/10_freebsd.in: Use an absolute device path for
19469 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
19470
19471 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
19472
19473 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
19474 handling of multiple abstraction modules.
19475
19476 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
19477
19478 Fix a bug resulting in black screen when loading Linux using a
19479 packed video mode.
19480
19481 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
19482 function.
19483
19484 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
19485 (grub_vbe_bios_getset_dac_palette_width): New function.
19486 (grub_vbe_bios_get_dac_palette_width)
19487 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
19488 grub_vbe_bios_getset_dac_palette_width()).
19489
19490 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
19491 check for return status.
19492 (grub_vbe_get_video_mode_info): When getting information for a packed
19493 mode (<= 8 bpp), obtain DAC palette width using
19494 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
19495 {red,green,blue}_mark_size.
19496
19497 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
19498
19499 * commands/search.c (options): Fix help output to match actual code.
19500
19501 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
19502
19503 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
19504 of homegrown code.
19505
19506 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19507
19508 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
19509 on XFS or ReiserFS.
19510
19511 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19512
19513 Support Apple partition map with sector size different from 512 bytes.
19514
19515 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
19516 (apple_partition_map_iterate): Respect 'aheader.blocksize'
19517 and 'apart.partmap_size'.
19518
19519 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19520 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
19521
19522 Fix cpuid command.
19523
19524 * commands/i386/cpuid.c (options): New variable.
19525 (grub_cmd_cpuid): Return real error.
19526 (GRUB_MOD_INIT(cpuid)): Declare options.
19527
19528 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
19529
19530 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
19531 valid.
19532
19533 2009-07-31 Bean <bean123ch@gmail.com>
19534
19535 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
19536 log2_inode.
19537 (grub_fshelp_node): Move inode field to the end.
19538 (grub_xfs_data): Remove inode field.
19539 (grub_xfs_inode_block): Calculate inode size using sblock.
19540 (grub_xfs_inode_offset): Likewise.
19541 (grub_xfs_read_inode): Calculate inode size using sblock.
19542 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
19543 (grub_xfs_iterate_dir): Calculate inode size using sblock.
19544 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
19545 to match inode size.
19546 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
19547 not accessible when data is null.
19548 (grub_xfs_open): Likewise.
19549
19550 2009-07-31 Bean <bean123ch@gmail.com>
19551
19552 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
19553 Don't change pv->disk if it's already set.
19554
19555 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
19556 (grub_raid_register): ... here.
19557 (grub_raid_rescan): Removed.
19558
19559 * include/grub/raid.h (grub_raid_rescan): Removed.
19560
19561 * util/grub-fstest.c: Remove include file <grub/raid.h>.
19562 (fstest): Replace grub_raid_rescan with module fini function followed
19563 by init function.
19564
19565 * util/grub-probe.c: Add include file <grub/raid.h>.
19566 (probe_raid_level): New function.
19567 (probe): Detect abstraction by walking the disk device, support two
19568 level of abstraction (LVM on RAID) when detecting partition map.
19569
19570 2009-07-31 Pavel Roskin <proski@gnu.org>
19571
19572 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
19573 to grub_zalloc(), it was erroneous.
19574 Reported by Bean <bean123ch@gmail.com>
19575
19576 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
19577
19578 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
19579 embedding zone, not only the first one.
19580
19581 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
19582
19583 * term/gfxterm.c (clear_char): New function.
19584 (grub_virtual_screen_setup): Use clear_char.
19585 (scroll_up): Likewise.
19586 (grub_virtual_screen_cls): Likewise.
19587
19588 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
19589
19590 * util/deviceiter.c (get_acceleraid_disk_name): New static
19591 function.
19592 (grub_util_iterate_devices): Handle Accelraid devices.
19593 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
19594
19595 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
19596
19597 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
19598 separator for the suggested gfxpayload string (';' collides with the
19599 parser and needs escaping).
19600
19601 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19602
19603 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
19604 Clear direction flag before jumping to OS.
19605 (grub_multiboot2_real_boot): Likewise.
19606
19607 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
19608
19609 * util/i386/pc/grub-install: Fix parsing of --disk-module
19610 option.
19611
19612 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
19613
19614 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
19615 when embedding.
19616
19617 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
19618
19619 * util/grub-mkconfig.in (package_version): New variable.
19620 Use it do display the version.
19621
19622 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
19623
19624 * kern/file.c (grub_file_open): Revert to previous check with
19625 grub_errno.
19626
19627 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
19628
19629 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
19630 from help line. It's out of sync with code.
19631
19632 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
19635 entries on failed boot.
19636
19637 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
19638
19639 * kern/file.c (grub_file_open): Fix an error check.
19640
19641 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
19642
19643 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
19644 partition map couldn't be identified.
19645
19646 2009-07-23 Pavel Roskin <proski@gnu.org>
19647
19648 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
19649 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
19650 case of little endian words becomes just an optimization.
19651 Respect const modifier.
19652 (md5_final): Use code that doesn't depend on endianness.
19653
19654 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
19655 to avoid loss of upper bits if align is unsigned and shorter
19656 than addr.
19657
19658 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
19659
19660 UUID support for UFS
19661
19662 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
19663 (grub_ufs_uuid): New function.
19664 (grub_ufs_fs): add .uuid
19665
19666 2009-07-21 Pavel Roskin <proski@gnu.org>
19667
19668 * kern/dl.c (grub_dl_check_header): Make static.
19669
19670 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
19671
19672 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
19673 add drivemap for Vista. It breaks Windows 7.
19674
19675 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
19676
19677 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
19678 128 bytes
19679
19680 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19681
19682 Add BFS support
19683
19684 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
19685 (grub_fstest_SOURCES): Likewise.
19686 (pkglib_MODULES): Add befs.mod.
19687 (befs_mod_SOURCES): New variable.
19688 (befs_mod_CFLAGS): Likewise.
19689 (befs_mod_LDFLAGS): Likewise.
19690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19693 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19694 (grub_setup_SOURCES): Likewise.
19695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19697 (grub_setup_SOURCES): Likewise.
19698 * fs/befs.c: New file.
19699 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
19700 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
19701 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
19702 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
19703 (B_KEY_INDEX_ALIGN): New declaration.
19704 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
19705 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
19706 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
19707 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
19708 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
19709 (grub_afs_mount) [MODE_BFS]: Likewise.
19710 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
19711 (grub_afs_fs): Use GRUB_AFS_FSNAME
19712 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
19713 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
19714 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
19715 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
19716
19717 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
19718
19719 * util/getroot.c (find_root_device): Add support for MacOSX.
19720 * util/hostdisk.c: Likewise.
19721
19722 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19723
19724 * font/font.c (find_glyph): Check whether a font is present to avoid
19725 segmentation fault.
19726
19727 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
19728
19729 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
19730
19731 2009-07-20 Pavel Roskin <proski@gnu.org>
19732
19733 * configure.ac: Trim excessively wordy excuses.
19734
19735 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19736
19737 Add symlink, mtime and label support to AtheFS.
19738
19739 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
19740 (grub_afs_iterate_dir): Handle symlinks.
19741 (grub_afs_open): Use grub_afs_read_symlink.
19742 (grub_afs_dir): Likewise.
19743 Pass mtime.
19744 (grub_afs_label): New function.
19745 (grub_afs_fs): Add grub_afs_label.
19746 (grub_afs_read_symlink): New function.
19747
19748 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19749
19750 Fix AtheFS support.
19751
19752 * fs/afs.c: Fix comments style.
19753 (grub_afs_blockrun): Declare as packed.
19754 (grub_afs_datastream): Likewise.
19755 (grub_afs_bnode): Likewise.
19756 (grub_afs_btree): Likewise.
19757 (grub_afs_sblock): Likewise.
19758 Declare `name' as char.
19759 (grub_afs_inode): Declare as packed.
19760 Change void *vnode to grub_uint32_t unused.
19761 (grub_afs_iterate_dir): Check that key_size is positive.
19762 (grub_afs_mount): Don't read superblock twice.
19763 (grub_afs_dir): Don't free node in case of error,
19764 grub_fshelp_find_file already handles this.
19765 (grub_afs_open): Likewise.
19766
19767 2009-07-19 Pavel Roskin <proski@gnu.org>
19768
19769 * Makefile.in: Remove LIBLZO and enable_lzo.
19770 * conf/i386-pc.rmk: Remove lzo support.
19771 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
19772 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
19773 support.
19774 * kern/i386/pc/lzo1x.S: Remove.
19775 * kern/i386/pc/startup.S: Remove lzo support.
19776 * util/i386/pc/grub-mkimage.c: Likewise.
19777
19778 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
19779
19780 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
19781 * fs/xfs.c (grub_xfs_dir): Likewise.
19782 * fs/afs.c (grub_afs_dir): Likewise.
19783 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
19784 (grub_iso9660_open): Likewise.
19785 * fs/jfs.c (grub_jfs_open): Likewise.
19786 * fs/ext2.c (grub_ext2_dir): Likewise.
19787 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
19788 * script/sh/lexer.c (grub_script_yylex): Likewise.
19789
19790 2009-07-16 Pavel Roskin <proski@gnu.org>
19791
19792 * configure.ac: Never add "-c" to CFLAGS.
19793
19794 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
19795
19796 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
19797 grub_cv_cc_efiemu should be used.
19798
19799 * configure.ac: Typo fixes.
19800
19801 * kern/mm.c (grub_zalloc): New function.
19802 (grub_debug_zalloc): Likewise.
19803 * include/grub/mm.h: Declare grub_zalloc() and
19804 grub_debug_zalloc().
19805 * util/misc.c (grub_zalloc): New function.
19806 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
19807 instead of grub_malloc(), remove unneeded initializations.
19808 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
19809 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
19810 * commands/parttool.c (grub_cmd_parttool): Likewise.
19811 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19812 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
19813 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
19814 * disk/usbms.c (grub_usbms_finddevs): Likewise.
19815 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
19816 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
19817 (grub_cmd_efiemu_pnvram): Likewise.
19818 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
19819 * fs/iso9660.c (grub_iso9660_mount): Likewise.
19820 (grub_iso9660_iterate_dir): Likewise.
19821 * fs/jfs.c (grub_jfs_opendir): Likewise.
19822 * fs/ntfs.c (list_file): Likewise.
19823 (grub_ntfs_mount): Likewise.
19824 * kern/disk.c (grub_disk_open): Likewise.
19825 * kern/dl.c (grub_dl_load_core): Likewise.
19826 * kern/elf.c (grub_elf_file): Likewise.
19827 * kern/env.c (grub_env_context_open): Likewise.
19828 (grub_env_set): Likewise.
19829 (grub_env_set_data_slot): Likewise.
19830 * kern/file.c (grub_file_open): Likewise.
19831 * kern/fs.c (grub_fs_blocklist_open): Likewise.
19832 * loader/i386/multiboot.c (grub_module): Likewise.
19833 * loader/xnu.c (grub_xnu_create_key): Likewise.
19834 (grub_xnu_create_value): Likewise.
19835 * normal/main.c (grub_normal_add_menu_entry): Likewise.
19836 (read_config_file): Likewise.
19837 * normal/menu_entry.c (make_screen): Likewise.
19838 * partmap/sun.c (sun_partition_map_iterate): Likewise.
19839 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
19840 * script/sh/script.c (grub_script_parse): Likewise.
19841 * video/bitmap.c (grub_video_bitmap_create): Likewise.
19842 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19843 * video/readers/png.c (grub_png_output_byte): Likewise.
19844 (grub_video_reader_png): Likewise.
19845
19846 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19847
19848 Enable all targets that can be built by default
19849
19850 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
19851 grub-mkfont and grub-fstest if they can be built
19852
19853 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19854
19855 Fix hang and segmentation fault in grub-emu-usb
19856
19857 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
19858 * util/usb.c (grub_libusb_devices): likewise
19859 (grub_libusb_init): rename to ...
19860 (GRUB_MOD_INIT (libusb)):...this
19861 (grub_libusb_fini): rename to ..
19862 (GRUB_MOD_FINI (libusb)):...this
19863 * disk/usbms.c (grub_usbms_transfer): fix retry logic
19864 * include/grub/disk.h (grub_raid_init): removed, it's useless
19865 (grub_raid_fini): likewise
19866 (grub_lvm_init): likewise
19867 (grub_lvm_fini): likewise
19868 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
19869 by grub_init_all
19870
19871 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19872
19873 Fix libusb
19874
19875 * Makefile.in (LIBUSB): new macro
19876 * genmk.rb (Utility/print_tail): new method
19877 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
19878 (top level): call util.print_tail at the end.
19879
19880 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19881
19882 Make FreeBSD accept zpool.cache
19883
19884 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
19885 type is /boot/zfs/zpool.cache
19886
19887 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 Fix 64-bit efiemu
19890
19891 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
19892 correct wrong typedef
19893 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
19894
19895 2009-07-15 Pavel Roskin <proski@gnu.org>
19896
19897 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
19898 * kern/disk.c (struct grub_disk_cache): Likewise.
19899
19900 * commands/probe.c (options): Typo fix.
19901
19902 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
19903 Increase to 0x5a to accommodate FAT32. Adjust other offsets
19904 accordingly.
19905 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
19906
19907 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
19908 the end of "Error" to make the message more readable.
19909
19910 * boot/i386/pc/boot.S (kernel_segment): Remove.
19911 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
19912 for destination.
19913
19914 * boot/i386/pc/boot.S (boot_version): Remove.
19915 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
19916 Remove.
19917
19918 * include/grub/i386/pc/boot.h: Sort all offsets.
19919 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
19920 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
19921 * boot/i386/pc/boot.S: Assert location of every offset listed in
19922 include/grub/i386/pc/boot.h.
19923
19924 2009-07-13 Pavel Roskin <proski@gnu.org>
19925
19926 * include/grub/i386/coreboot/machine.h: Rename
19927 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
19928 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
19929 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
19930
19931 * kern/dl.c: Force native word size to suppress warnings when
19932 compiling grub-emu.
19933
19934 * kern/device.c (grub_device_iterate): Change struct part_ent to
19935 hold the name, not a pointer to it. Use one grub_malloc() per
19936 partition, not two. Free partition_name if grub_malloc() fails.
19937 Set ents to NULL only before grub_partition_iterate() is called.
19938
19939 2009-07-11 Bean <bean123ch@gmail.com>
19940
19941 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
19942 childname.
19943
19944 2009-07-10 Bean <bean123ch@gmail.com>
19945 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
19946
19947 * kern/ieee1275/openfw.c (grub_children_iterate)
19948 (grub_devalias_iterate): Fix size evaluation for property or path
19949 strings, which was broken since r2132.
19950
19951 2009-07-07 Pavel Roskin <proski@gnu.org>
19952
19953 * commands/search.c (search_file): Merge into ...
19954 (search_fs): ... this. Accept search type as argument.
19955 (grub_cmd_search): Pass search type to search_fs().
19956
19957 * include/grub/util/console.h: New file.
19958 * util/console.c: Use it instead of grub/machine/console.h.
19959 * util/grub-emu.c: Likewise.
19960
19961 * lib/arg.c (find_long_option): Remove.
19962 (find_long): Add `len' argument, make `s' const char *.
19963 (grub_arg_parse): Parse long options in place, not in a
19964 temporary buffer.
19965
19966 2009-07-06 Pavel Roskin <proski@gnu.org>
19967
19968 * commands/search.c (search_fs): Fix potential NULL pointer
19969 dereference.
19970
19971 * commands/search.c (search_fs): Replace QUID macro with quid_fn
19972 function pointer.
19973
19974 2009-07-06 Daniel Mierswa <impulze@impulze.org>
19975
19976 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
19977 comparison.
19978
19979 2009-07-05 Pavel Roskin <proski@gnu.org>
19980
19981 * include/grub/i386/linux.h (struct linux_kernel_params):
19982 Restore padding3, it's still needed.
19983
19984 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
19985 FreeBSD.
19986 * util/osdetect.lua: Likewise.
19987
19988 2009-07-05 Bean <bean123ch@gmail.com>
19989
19990 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
19991
19992 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
19993 (grub_lua_getenv): Likewise.
19994 (grub_lua_setenv): Likewise.
19995 (save_errno): New function.
19996 (push_result): Likewise.
19997 (grub_lua_enum_device): Likewise.
19998 (grub_lua_enum_file): Likewise.
19999 (grub_lua_file_open): Likewise.
20000 (grub_lua_file_close): Likewise.
20001 (grub_lua_file_seek): Likewise.
20002 (grub_lua_file_read): Likewise.
20003 (grub_lua_file_getline): Likewise.
20004 (grub_lua_file_getsize): Likewise.
20005 (grub_lua_file_getpos): Likewise.
20006 (grub_lua_file_eof): Likewise.
20007 (grub_lua_file_exist): Likewise.
20008 (grub_lua_add_menu): Likewise.
20009
20010 * script/lua/grub_lua.h (isupper): New inline function.
20011 (islower): Likewise.
20012 (ispunct): Likewise.
20013 (isxdigit): Likewise.
20014 (strcspn): Change to normal function.
20015 (strpbkr): New function declaration.
20016 (memchr): Likewise.
20017
20018 * script/lua/grub_main.c (scan_str): New function.
20019 (strcspn): Likewise.
20020 (strpbrk): Likewise.
20021 (memchr): Likewise.
20022
20023 * script/lua/linit.c (lualibs): Enable the string library.
20024
20025 * util/osdetect.lua: New file.
20026
20027 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
20028
20029 * include/grub/i386/linux.h (struct linux_kernel_params): Add
20030 `capabilities' member.
20031
20032 2009-07-02 Pavel Roskin <proski@gnu.org>
20033
20034 * genparttoollist.sh: Add missing newline at the end.
20035
20036 2009-07-01 Pavel Roskin <proski@gnu.org>
20037
20038 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
20039
20040 * util/hostdisk.c (open_device): Remove `const' from
20041 `sysctl_size', as sysctlbyname() can change it (in this case it
20042 doesn't actually happen).
20043
20044 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
20045 using signed long int constants.
20046
20047 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
20048 constant to avoid a warning on FreeBSD.
20049
20050 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
20051 where it's needed.
20052
20053 * Makefile.in: Install include/grub/machine symlink.
20054
20055 * Makefile.in: When installing symlinks, use "cp -fR", which
20056 works on FreeBSD and MacOSX.
20057 From Yves Blusseau <cl7m42e02@sneakemail.com>
20058
20059 * kern/dl.c (grub_dl_resolve_symbol): Make static.
20060 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
20061
20062 * util/misc.c: Move grub_reboot() and grub_halt() ...
20063 * util/grub-emu.c: ... here. Make main_env static.
20064 * include/grub/util/misc.h: Remove main_env.
20065
20066 * kern/mm.c: Use correct format to print size_t.
20067
20068 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
20069 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
20070 * kern/powerpc/dl.c: Likewise.
20071 * kern/sparc64/dl.c: Likewise.
20072 * kern/x86_64/dl.c: Likewise.
20073
20074 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20075
20076 Fix grub-emu build on sparc64-ieee1275.
20077
20078 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
20079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
20080
20081 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20082
20083 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
20084 (grub_reboot, grub_halt): New functions.
20085
20086 * util/i386/pc/misc.c: Delete. Update all users.
20087 * util/sparc64/ieee1275/misc.c: Likewise.
20088 * util/powerpc/ieee1275/misc.c: Likewise.
20089
20090 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20091
20092 * conf/i386.rmk (setjmp_mod_SOURCES)
20093 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
20094 * conf/common.rmk (setjmp_mod_SOURCES)
20095 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
20096 to use $(target_cpu).
20097 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
20098 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
20099 * conf/powerpc-ieee1275.rmk: Likewise.
20100 * conf/sparc64-ieee1275.rmk: Likewise.
20101
20102 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
20103 $(target_cpu) for kern/$(target_cpu)/dl.c.
20104 * conf/i386-efi.rmk: Likewise.
20105 * conf/i386-ieee1275.rmk: Likewise.
20106 * conf/x86_64-efi.rmk: Likewise.
20107 * conf/i386-coreboot.rmk: Likewise.
20108 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
20109 $(target_cpu) for kern/$(target_cpu)/dl.c and for
20110 kern/$(target_cpu)/cache.S.
20111 * conf/sparc64-ieee1275.rmk: Likewise.
20112
20113 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20114
20115 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
20116 type to `grub_uint8_t', and adjust `padding9' accordingly.
20117
20118 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20119
20120 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
20121
20122 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
20123 assembly in final jump, using register constraints.
20124
20125 (grub_linux_boot): For text mode, initialize `have_vga' using
20126 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
20127
20128 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
20129 right before the final jump.
20130
20131 Set `video_mode' to 0x3.
20132
20133 Document initialization of `video_page', `video_mode' and
20134 `video_ega_bx'.
20135
20136 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20137
20138 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
20139 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
20140 and set GRUB_LINUX_FLAG_QUIET appropriately.
20141
20142 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20143
20144 Fix build on Debian / sparc.
20145
20146 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
20147
20148 2009-06-28 Pavel Roskin <proski@gnu.org>
20149
20150 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
20151 fix a warning.
20152
20153 * util/grub.d/10_linux.in: Match SUSE style initrd names.
20154
20155 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20156
20157 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
20158 `err'.
20159
20160 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20161
20162 Revert r2338.
20163
20164 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
20165 file can't be opened. grub_file_open() is already supposed to set
20166 grub_errno / grub_errmsg appropriately.
20167 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20168
20169 2009-06-27 Pavel Roskin <proski@gnu.org>
20170 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20171
20172 * include/grub/dl.h: Include grub/elf.h.
20173 (struct grub_dl): Add symtab field.
20174 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
20175 GRUB_MODULES_MACHINE_READONLY.
20176 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
20177 of the header for read-only modules.
20178 (grub_dl_unload): Free mod->symtab for read-only modules.
20179 * kern/i386/dl.c: Use mod->symtab.
20180 * kern/powerpc/dl.c: Likewise.
20181 * kern/sparc64/dl.c: Likewise.
20182 * kern/x86_64/dl.c: Likewise.
20183
20184 * conf/i386-qemu.rmk: New file.
20185 * kern/i386/qemu/startup.S: Likewise.
20186 * kern/i386/qemu/mmap.c: Likewise.
20187 * boot/i386/qemu/boot.S: Likewise.
20188 * include/grub/i386/qemu/time.h: Likewise.
20189 * include/grub/i386/qemu/serial.h: Likewise.
20190 * include/grub/i386/qemu/kernel.h: Likewise.
20191 * include/grub/i386/qemu/console.h: Likewise.
20192 * include/grub/i386/qemu/boot.h: Likewise.
20193 * include/grub/i386/qemu/init.h: Likewise.
20194 * include/grub/i386/qemu/machine.h: Likewise.
20195 * include/grub/i386/qemu/loader.h: Likewise.
20196 * include/grub/i386/qemu/memory.h: Likewise.
20197
20198 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
20199 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
20200 [qemu] (pkglib_IMAGES): Add `boot.img'.
20201 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
20202 [qemu] (boot_img_FORMAT): New variables.
20203 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
20204 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
20205 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
20206 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
20207 [qemu] (kernel_img_FORMAT): New variables.
20208
20209 * configure.ac: Recognise `i386-qemu'.
20210
20211 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
20212 (for no compression).
20213 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
20214 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
20215 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
20216 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
20217 ifdefs).
20218
20219 2009-06-27 Pavel Roskin <proski@gnu.org>
20220
20221 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
20222 read.
20223 * efiemu/prepare32.c: Likewise.
20224 * efiemu/prepare64.c: Likewise.
20225
20226 2009-06-26 Pavel Roskin <proski@gnu.org>
20227
20228 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
20229 * include/grub/elf.h: Define symbols without "32" or "64" based
20230 on GRUB_TARGET_WORDSIZE.
20231 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
20232 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
20233 ELF definitions.
20234 * efiemu/loadcore64.c: Likewise.
20235 * loader/i386/bsd32.c: Likewise.
20236 * loader/i386/bsd64.c: Likewise.
20237 * kern/dl.c: Remove own ELF definitions.
20238 * util/i386/efi/grub-mkimage.c: Likewise.
20239
20240 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
20241
20242 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
20243 segment 0x0 unconditionally, because the reference generated by
20244 GAS is an absolute address.
20245
20246 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20247
20248 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
20249 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
20250
20251 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20252
20253 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
20254 indexes. Check for -f explicitly.
20255 (search_file): Improve error message.
20256 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
20257
20258 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20259
20260 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
20261 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
20262
20263 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20264
20265 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
20266 * conf/i386-ieee1275.rmk: Likewise.
20267 * conf/i386-coreboot.rmk: Likewise.
20268
20269 * kern/i386/pc/startup.S (grub_stop): Remove function.
20270 * kern/i386/ieee1275/startup.S: Likewise.
20271 * kern/i386/coreboot/startup.S: Likewise.
20272 * kern/i386/misc.S (grub_stop): New function.
20273
20274 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20275
20276 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
20277 * kern/i386/realmode.S (real_to_prot): ... to here.
20278
20279 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20280
20281 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
20282 with `kernel.img'.
20283 (kernel_elf_SOURCES): Rename to ...
20284 (kernel_img_SOURCES): ... this.
20285 (kernel_elf_HEADERS): Rename to ...
20286 (kernel_img_HEADERS): ... this. Update all users.
20287 (kernel_elf_ASFLAGS): Rename to ...
20288 (kernel_img_ASFLAGS): ... this.
20289 (kernel_elf_CFLAGS): Rename to ...
20290 (kernel_img_CFLAGS): ... this.
20291 (kernel_elf_LDFLAGS): Rename to ...
20292 (kernel_img_LDFLAGS): ... this.
20293 * conf/i386-coreboot.rmk: Likewise.
20294 * conf/powerpc-ieee1275.rmk: Likewise.
20295
20296 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
20297 with "kernel.img".
20298
20299 2009-06-21 Pavel Roskin <proski@gnu.org>
20300
20301 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
20302 to match nested functions.
20303 * loader/sparc64/ieee1275/linux.c: Likewise.
20304
20305 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
20306
20307 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20308
20309 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
20310 all i386 platforms.
20311
20312 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20313
20314 Fix asm file handling on ELF, and remove workarounds.
20315
20316 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
20317 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
20318 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
20319 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
20320
20321 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
20322
20323 Load BSD ELF modules
20324
20325 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
20326 and loader/i386/bsd64.c
20327 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
20328 (FREEBSD_MODTYPE_ELF_MODULE): New definition
20329 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
20330 (grub_freebsd_load_elfmodule32): New declaration
20331 (grub_freebsd_load_elfmoduleobj64): Likewise
20332 (grub_freebsd_load_elf_meta32): Likewise
20333 (grub_freebsd_load_elf_meta64): Likewise
20334 (grub_freebsd_add_meta): Likewise
20335 (grub_freebsd_add_meta_module): Likewise
20336 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
20337 (grub_freebsd_add_meta_module): Likewise and move module-specific
20338 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
20339 (grub_cmd_freebsd): Add elf-kernel specific parts
20340 based on grub_freebsd_add_meta_module
20341 (grub_cmd_freebsd_module): Add type parsing moved from
20342 grub_freebsd_add_meta_module
20343 (grub_cmd_freebsd_module_elf): New function
20344 (cmd_freebsd_module_elf): New variable
20345 (GRUB_MOD_INIT): Register freebsd_module_elf
20346 * loader/i386/bsd32.c: New file
20347 * loader/i386/bsd64.c: Likewise
20348 * loader/i386/bsdXX.c: Likewise
20349 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
20350 (grub_elf64_load): Likewise
20351 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
20352 All users updated
20353 (grub_elf64_load_hook_t): Likewise
20354
20355 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
20356
20357 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
20358 variable.
20359 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
20360 don't write a menu entry for recovery mode.
20361
20362 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20363
20364 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
20365 after it's no longer needed.
20366
20367 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20368
20369 * include/grub/i386/loader.h (grub_linux_prot_size)
20370 (grub_linux_tmp_addr, grub_linux_real_addr)
20371 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
20372 GRUB_MACHINE_PCBIOS.
20373 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
20374 common grub_util_info() call to ...
20375 (generate_image): ... here.
20376 Fix use of uninitialized memory, comparison of signed with
20377 unsigned integers and memory leak.
20378 Remove bogus module address message.
20379
20380 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20381
20382 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
20383 grub_raid_register
20384 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
20385
20386 2009-06-19 Pavel Roskin <proski@gnu.org>
20387
20388 * configure.ac: Remove stray AC_MSG_CHECKING.
20389
20390 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
20391
20392 * disk/scsi.c (grub_scsi_open): use continue instead of big if
20393
20394 2009-06-18 Pavel Roskin <proski@gnu.org>
20395
20396 * conf/common.rmk: Add fs_file.mod.
20397 * disk/fs_file.c: New file.
20398 * include/grub/disk.h (enum grub_disk_dev_id): Add
20399 GRUB_DISK_DEVICE_FILE_ID.
20400
20401 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20402
20403 Fix build with Apple's toolchain. Part 2
20404
20405 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
20406 a fake start
20407
20408 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 Fix build with Apple's toolchain. Part 1
20411
20412 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
20413 for long calls
20414 * configure.ac: remove a leftover AC_MSG_RESULT
20415 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
20416 Apple's toolchain
20417
20418 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20419
20420 Fix warnings
20421
20422 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
20423 (decomp_block): initialize ch
20424 use grub_memcpy instead of memcpy
20425
20426 2009-06-17 Pavel Roskin <proski@gnu.org>
20427
20428 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
20429 version, use declarations needed to use vga_text as the startup
20430 console.
20431
20432 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
20433 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
20434 the kernel.
20435 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
20436 and grub_at_keyboard_fini(), it's done on module load and
20437 unload.
20438
20439 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
20440
20441 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
20442 file can't be found.
20443 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20444
20445 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20446
20447 Fix newline handling
20448
20449 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
20450 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
20451 (grub_script_yylex): don't segfault on unterminated script
20452 newline terminates command and variable
20453
20454 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20455
20456 avoid double grub_adjust_range call. Bug reported by David Simner
20457
20458 * kern/disk.c (grub_disk_write): change to raw disk access before
20459 calling disk_read
20460
20461 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
20462
20463 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
20464 spaces, for the benefit of help2man.
20465 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20466
20467 2009-06-16 Pavel Roskin <proski@gnu.org>
20468
20469 * kern/i386/halt.c: Include grub/machine/init.h.
20470 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
20471
20472 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
20473
20474 * util/grub.d/30_os-prober.in: Use ${root} in the generated
20475 drivemap menuentry.
20476
20477 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
20478
20479 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
20480 `echo' command.
20481
20482 2009-06-16 Pavel Roskin <proski@gnu.org>
20483
20484 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
20485 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
20486 save %dx, we only need %dl and we never change it.
20487 * boot/i386/pc/cdboot.S: Don't set the root drive.
20488 * boot/i386/pc/pxeboot.S: Likewise.
20489 * include/grub/i386/pc/boot.h: Remove
20490 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
20491 GRUB_BOOT_MACHINE_DRIVE_CHECK.
20492 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
20493 * kern/i386/pc/init.c (make_install_device): Remove references
20494 to grub_root_drive.
20495 * kern/i386/pc/startup.S: Likewise.
20496 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
20497
20498 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 xnu_uuid command
20501
20502 * commands/xnu_uuid.c: new file
20503 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
20504 (xnu_uuid_mod_SOURCES): new variable
20505 (xnu_uuid_mod_CFLAGS): likewise
20506 (xnu_uuid_mod_LDFLAGS): likewise
20507 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20508 * conf/i386-ieee1275.rmk: likewise
20509 * conf/i386-pc.rmk: likewise
20510 * conf/powerpc-ieee1275.rmk: likewise
20511 * conf/sparc64-ieee1275.rmk: likewise
20512 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
20513
20514 2009-06-16 Pavel Roskin <proski@gnu.org>
20515
20516 * configure.ac: Avoid '==' in test command, it's not portable.
20517
20518 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20519
20520 Probe command
20521
20522 * commands/probe.c: new file
20523 * conf/common.rmk (pkglib_MODULES): add probe.mod
20524 (probe_mod_SOURCES): new variable
20525 (probe_mod_CFLAGS): likewise
20526 (probe_mod_LDFLAGS): likewise
20527 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20528 * conf/i386-ieee1275.rmk: likewise
20529 * conf/i386-pc.rmk: likewise
20530 * conf/powerpc-ieee1275.rmk: likewise
20531 * conf/sparc64-ieee1275.rmk: likewise
20532
20533 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 Fix handling of string like \"hello\" and "a
20536 b"
20537
20538 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
20539 (grub_script_yylex): fix parsing of quoting, escaping and newline
20540
20541 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
20544 handling
20545
20546 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
20547
20548 * util/grub-mkconfig.in: Fix parsing of --output option.
20549
20550 2009-06-12 Pavel Roskin <proski@gnu.org>
20551
20552 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
20553 genmk.rb don't need to be generated or installed.
20554
20555 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * commands/i386/pc/drivemap_int13h.S: add more comments
20558
20559 2009-06-11 Pavel Roskin <proski@gnu.org>
20560
20561 * Makefile.in (uninstall): Uninstall manuals.
20562
20563 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
20564 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
20565 and update-grub_lib in two places.
20566 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
20567
20568 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
20569 a compiler warning.
20570
20571 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
20572 `entry_lo' to fix variable shadowing.
20573
20574 2009-06-11 Christian Franke <franke@computer.org>
20575
20576 * kern/misc.c (__enable_execute_stack): Add missing return type
20577 to prevent gcc warning.
20578
20579 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
20580
20581 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
20582
20583 2009-06-11 Pavel Roskin <proski@gnu.org>
20584
20585 * Makefile.in: Don't rely on any scripts being executable.
20586 Always use $(SHELL) to run shell scripts.
20587
20588 * configure.ac: Always define ___main if using -nostdlib. This
20589 fixes tests on Cygwin.
20590
20591 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
20592
20593 UDF fix
20594
20595 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
20596 is in bytes and not in blocks
20597
20598 2009-06-11 Pavel Roskin <proski@gnu.org>
20599
20600 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
20601 warning.
20602
20603 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
20604
20605 * util/grub.d/30_os-prober.in: Fix a comment. Source
20606 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
20607 to set the root device. Place drivemap command in the generated
20608 chain entry.
20609
20610 2009-06-11 Pavel Roskin <proski@gnu.org>
20611
20612 * configure.ac: Remove host_m32. Issues with 64-bit utilities
20613 have long been resolved.
20614
20615 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
20616
20617 * util/grub.d/10_linux.in: Capitalise "Linux".
20618
20619 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
20620
20621 2009-06-11 Pavel Roskin <proski@gnu.org>
20622
20623 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
20624 fix a gcc warning and ensure that the function won't ever exit.
20625
20626 * kern/i386/ieee1275/init.c: Add missing prototype for
20627 grub_stop_floppy().
20628
20629 * loader/ieee1275/multiboot2.c [__i386__]: Include
20630 grub/cpu/multiboot.h.
20631
20632 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
20633 casts to short - they are not portable and cause warnings. Fix
20634 use of uninitialized values in input_buf. Use ARRAY_SIZE.
20635
20636 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 Drivemap fixes
20639
20640 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
20641 new function
20642 (grub_get_root_biosnumber_saved): new variable
20643 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
20644 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
20645 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
20646 %dx after the call if necessary
20647 * conf/common.rmk (pkglib_MODULES): remove boot.mod
20648 (boot_mod_SOURCES): remove
20649 (boot_mod_CFLAGS): remove
20650 (boot_mod_LDFLAGS): remove
20651 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
20652 (boot_mod_SOURCES): new variable
20653 (boot_mod_CFLAGS): likewise
20654 (boot_mod_LDFLAGS): likewise
20655 * conf/i386-efi.rmk: likewise
20656 * conf/i386-ieee1275.rmk: likewise
20657 * conf/i386-pc.rmk: likewise
20658 * conf/powerpc-ieee1275.rmk: likewise
20659 * conf/sparc64-ieee1275.rmk: likewise
20660 * conf/x86_64-efi.rmk: likewise
20661 * include/grub/i386/pc/biosnum.h: new file
20662 * lib/i386/pc/biosnum.c: likewise
20663 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
20664 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
20665 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
20666
20667 2009-06-10 Pavel Roskin <proski@gnu.org>
20668
20669 * io/gzio.c (test_header): Don't reuse one buffer for all data.
20670 Use separate variables. Read only the file size at the end, but
20671 not the checksum that we don't use.
20672
20673 * kern/file.c (grub_file_read): Use void pointer for the buffer.
20674 Adjust all callers.
20675
20676 * kern/ieee1275/openfw.c: Remove libc includes.
20677 * kern/ieee1275/cmain.c: Likewise.
20678 * include/grub/ieee1275/ieee1275.h: Likewise.
20679
20680 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
20681 compiler warnings.
20682
20683 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
20684
20685 * Makefile.in: Remove all trailing whitespace.
20686 * conf/i386-pc.rmk: Likewise.
20687 * conf/powerpc-ieee1275.rmk: Likewise.
20688 * conf/sparc64-ieee1275.rmk: Likewise.
20689 * docs/grub.texi: Likewise.
20690 * docs/texinfo.tex: Likewise.
20691 * disk/fs_uuid.c: Likewise.
20692 * disk/lvm.c: Likewise.
20693 * disk/scsi.c: Likewise.
20694 * disk/ata.c: Likewise.
20695 * disk/ieee1275/ofdisk.c: Likewise.
20696 * disk/i386/pc/biosdisk.c: Likewise.
20697 * disk/host.c: Likewise.
20698 * disk/raid.c: Likewise.
20699 * disk/efi/efidisk.c: Likewise.
20700 * disk/usbms.c: Likewise.
20701 * disk/memdisk.c: Likewise.
20702 * disk/loopback.c: Likewise.
20703 * kern/powerpc/dl.c: Likewise.
20704 * kern/device.c: Likewise.
20705 * kern/dl.c: Likewise.
20706 * kern/sparc64/dl.c: Likewise.
20707 * kern/ieee1275/ieee1275.c: Likewise.
20708 * kern/term.c: Likewise.
20709 * kern/fs.c: Likewise.
20710 * kern/i386/dl.c: Likewise.
20711 * kern/i386/pc/startup.S: Likewise.
20712 * kern/i386/pc/init.c: Likewise.
20713 * kern/i386/pc/mmap.c: Likewise.
20714 * kern/i386/pc/lzo1x.S: Likewise.
20715 * kern/i386/ieee1275/init.c: Likewise.
20716 * kern/i386/realmode.S: Likewise.
20717 * kern/i386/tsc.c: Likewise.
20718 * kern/partition.c: Likewise.
20719 * kern/corecmd.c: Likewise.
20720 * kern/file.c: Likewise.
20721 * kern/efi/efi.c: Likewise.
20722 * kern/efi/init.c: Likewise.
20723 * kern/efi/mm.c: Likewise.
20724 * kern/main.c: Likewise.
20725 * kern/err.c: Likewise.
20726 * kern/env.c: Likewise.
20727 * kern/disk.c: Likewise.
20728 * kern/generic/millisleep.c: Likewise.
20729 * kern/generic/rtc_get_time_ms.c: Likewise.
20730 * kern/misc.c: Likewise.
20731 * kern/parser.c: Likewise.
20732 * genmk.rb: Likewise.
20733 * configure.ac: Likewise.
20734 * boot/i386/pc/diskboot.S: Likewise.
20735 * boot/i386/pc/pxeboot.S: Likewise.
20736 * boot/i386/pc/boot.S: Likewise.
20737 * boot/i386/pc/lnxboot.S: Likewise.
20738 * boot/i386/pc/cdboot.S: Likewise.
20739 * parttool/pcpart.c: Likewise.
20740 * video/readers/tga.c: Likewise.
20741 * video/video.c: Likewise.
20742 * video/bitmap.c: Likewise.
20743 * lib/envblk.c: Likewise.
20744 * lib/i386/setjmp.S: Likewise.
20745 * fs/xfs.c: Likewise.
20746 * fs/afs.c: Likewise.
20747 * fs/fat.c: Likewise.
20748 * fs/ntfs.c: Likewise.
20749 * fs/udf.c: Likewise.
20750 * fs/affs.c: Likewise.
20751 * fs/iso9660.c: Likewise.
20752 * fs/hfs.c: Likewise.
20753 * fs/fshelp.c: Likewise.
20754 * fs/ext2.c: Likewise.
20755 * fs/jfs.c: Likewise.
20756 * fs/reiserfs.c: Likewise.
20757 * fs/hfsplus.c: Likewise.
20758 * fs/minix.c: Likewise.
20759 * fs/cpio.c: Likewise.
20760 * fs/sfs.c: Likewise.
20761 * fs/ufs.c: Likewise.
20762 * efiemu/prepare.c: Likewise.
20763 * efiemu/loadcore_common.c: Likewise.
20764 * efiemu/runtime/efiemu.sh: Likewise.
20765 * efiemu/runtime/efiemu.S: Likewise.
20766 * efiemu/runtime/efiemu.c: Likewise.
20767 * efiemu/pnvram.c: Likewise.
20768 * efiemu/main.c: Likewise.
20769 * efiemu/i386/pc/cfgtables.c: Likewise.
20770 * efiemu/i386/loadcore64.c: Likewise.
20771 * efiemu/i386/loadcore32.c: Likewise.
20772 * efiemu/loadcore.c: Likewise.
20773 * efiemu/symbols.c: Likewise.
20774 * efiemu/mm.c: Likewise.
20775 * include/grub/autoefi.h: Likewise.
20776 * include/grub/datetime.h: Likewise.
20777 * include/grub/term.h: Likewise.
20778 * include/grub/hfs.h: Likewise.
20779 * include/grub/lvm.h: Likewise.
20780 * include/grub/i386/tsc.h: Likewise.
20781 * include/grub/i386/linux.h: Likewise.
20782 * include/grub/i386/xnu.h: Likewise.
20783 * include/grub/i386/efiemu.h: Likewise.
20784 * include/grub/i386/pc/biosdisk.h: Likewise.
20785 * include/grub/i386/pc/memory.h: Likewise.
20786 * include/grub/i386/pc/vbe.h: Likewise.
20787 * include/grub/parttool.h: Likewise.
20788 * include/grub/video.h: Likewise.
20789 * include/grub/memory.h: Likewise.
20790 * include/grub/fs.h: Likewise.
20791 * include/grub/partition.h: Likewise.
20792 * include/grub/xnu.h: Likewise.
20793 * include/grub/efi/api.h: Likewise.
20794 * include/grub/efi/pe32.h: Likewise.
20795 * include/grub/efi/memory.h: Likewise.
20796 * include/grub/multiboot.h: Likewise.
20797 * include/grub/usbdesc.h: Likewise.
20798 * include/grub/multiboot2.h: Likewise.
20799 * include/grub/acpi.h: Likewise.
20800 * include/grub/efiemu/efiemu.h: Likewise.
20801 * include/grub/disk.h: Likewise.
20802 * include/grub/ieee1275/ieee1275.h: Likewise.
20803 * include/grub/net.h: Likewise.
20804 * include/grub/machoload.h: Likewise.
20805 * include/grub/macho.h: Likewise.
20806 * include/multiboot.h: Likewise.
20807 * genmoddep.awk: Likewise.
20808 * normal/main.c: Likewise.
20809 * normal/menu_entry.c: Likewise.
20810 * normal/menu_viewer.c: Likewise.
20811 * normal/completion.c: Likewise.
20812 * normal/cmdline.c: Likewise.
20813 * normal/misc.c: Likewise.
20814 * normal/datetime.c: Likewise.
20815 * bus/usb/usbtrans.c: Likewise.
20816 * bus/usb/ohci.c: Likewise.
20817 * bus/usb/uhci.c: Likewise.
20818 * bus/usb/usb.c: Likewise.
20819 * mmap/efi/mmap.c: Likewise.
20820 * mmap/i386/pc/mmap_helper.S: Likewise.
20821 * mmap/i386/pc/mmap.c: Likewise.
20822 * mmap/i386/mmap.c: Likewise.
20823 * mmap/i386/uppermem.c: Likewise.
20824 * mmap/mmap.c: Likewise.
20825 * commands/acpi.c: Likewise.
20826 * commands/echo.c: Likewise.
20827 * commands/blocklist.c: Likewise.
20828 * commands/loadenv.c: Likewise.
20829 * commands/usbtest.c: Likewise.
20830 * commands/boot.c: Likewise.
20831 * commands/parttool.c: Likewise.
20832 * commands/search.c: Likewise.
20833 * commands/cat.c: Likewise.
20834 * commands/i386/pc/play.c: Likewise.
20835 * commands/i386/pc/drivemap.c: Likewise.
20836 * commands/i386/pc/vbeinfo.c: Likewise.
20837 * commands/i386/pc/acpi.c: Likewise.
20838 * commands/i386/pc/vbetest.c: Likewise.
20839 * commands/ls.c: Likewise.
20840 * commands/cmp.c: Likewise.
20841 * commands/test.c: Likewise.
20842 * commands/efi/acpi.c: Likewise.
20843 * commands/gptsync.c: Likewise.
20844 * commands/help.c: Likewise.
20845 * partmap/amiga.c: Likewise.
20846 * partmap/apple.c: Likewise.
20847 * partmap/acorn.c: Likewise.
20848 * partmap/pc.c: Likewise.
20849 * partmap/sun.c: Likewise.
20850 * partmap/gpt.c: Likewise.
20851 * script/sh/lexer.c: Likewise.
20852 * script/sh/function.c: Likewise.
20853 * font/font.c: Likewise.
20854 * font/font_cmd.c: Likewise.
20855 * loader/powerpc/ieee1275/linux.c: Likewise.
20856 * loader/efi/chainloader.c: Likewise.
20857 * loader/multiboot_loader.c: Likewise.
20858 * loader/macho.c: Likewise.
20859 * loader/i386/multiboot.c: Likewise.
20860 * loader/i386/linux.c: Likewise.
20861 * loader/i386/pc/linux.c: Likewise.
20862 * loader/i386/pc/multiboot2.c: Likewise.
20863 * loader/i386/pc/chainloader.c: Likewise.
20864 * loader/i386/pc/xnu.c: Likewise.
20865 * loader/i386/bsd_trampoline.S: Likewise.
20866 * loader/i386/efi/linux.c: Likewise.
20867 * loader/i386/multiboot_elfxx.c: Likewise.
20868 * loader/i386/bsd_helper.S: Likewise.
20869 * loader/i386/bsd.c: Likewise.
20870 * loader/i386/linux_trampoline.S: Likewise.
20871 * loader/i386/xnu_helper.S: Likewise.
20872 * loader/i386/xnu.c: Likewise.
20873 * loader/i386/bsd_pagetable.c: Likewise.
20874 * loader/i386/multiboot_helper.S: Likewise.
20875 * loader/xnu.c: Likewise.
20876 * loader/xnu_resume.c: Likewise.
20877 * io/gzio.c: Likewise.
20878 * term/efi/console.c: Likewise.
20879 * term/terminfo.c: Likewise.
20880 * term/ieee1275/ofconsole.c: Likewise.
20881 * term/i386/pc/serial.c: Likewise.
20882 * term/i386/pc/vesafb.c: Likewise.
20883 * term/i386/pc/vga.c: Likewise.
20884 * term/usb_keyboard.c: Likewise.
20885 * term/gfxterm.c: Likewise.
20886 * aclocal.m4: Likewise.
20887 * util/lvm.c: Likewise.
20888 * util/grub.d/30_os-prober.in: Likewise.
20889 * util/grub.d/10_hurd.in: Likewise.
20890 * util/console.c: Likewise.
20891 * util/grub-macho2img.c: Likewise.
20892 * util/grub-probe.c: Likewise.
20893 * util/hostfs.c: Likewise.
20894 * util/i386/pc/grub-mkimage.c: Likewise.
20895 * util/i386/pc/grub-setup.c: Likewise.
20896 * util/i386/efi/grub-mkimage.c: Likewise.
20897 * util/grub-mkconfig.in: Likewise.
20898 * util/raid.c: Likewise.
20899 * util/resolve.c: Likewise.
20900 * util/grub-mkdevicemap.c: Likewise.
20901 * util/grub-emu.c: Likewise.
20902 * util/getroot.c: Likewise.
20903 * util/hostdisk.c: Likewise.
20904 * util/usb.c: Likewise.
20905 * util/grub-editenv.c: Likewise.
20906 * util/misc.c: Likewise.
20907
20908 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
20909
20910 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
20911 `genparttoollist.sh'.
20912 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
20913 Add `*.sh' to the list find searches for and change `mdate.sh'
20914 to `mdate-sh'.
20915
20916 2009-06-10 Pavel Roskin <proski@gnu.org>
20917
20918 * include/grub/multiboot2.h: Provide compatibility defines for
20919 multiboot2.h.
20920 * include/multiboot2.h: Include stdint.h only if needed, using
20921 angle brackets.
20922 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
20923 grub/multiboot2.h.
20924 * loader/ieee1275/multiboot2.c: Likewise.
20925 * loader/multiboot2.c: Likewise.
20926 * loader/multiboot_loader.c: Likewise.
20927
20928 * configure.ac: Use -nostdlib when probing for the target. It
20929 should not be required to have libc for the target.
20930
20931 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
20932 they fail without libc headers for the target.
20933 * include/grub/powerpc/libgcc.h: Use weak attribute for all
20934 exports.
20935 * include/grub/sparc64/libgcc.h: Likewise. Don't use
20936 preprocessor conditionals.
20937
20938 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
20939 build system doesn't need to be aware of the tar.c internals.
20940
20941 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
20942
20943 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
20944
20945 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
20946
20947 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
20948 disk limit to 26 for IDE, Virtio, Xen and SCSI.
20949
20950 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
20951
20952 * util/i386/pc/grub-install.in: Change the error message if UUIDs
20953 aren't available if ata.mod gets used.
20954
20955 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
20956
20957 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
20958 initialising controller.
20959 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20960
20961 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
20962
20963 * util/i386/pc/grub-install.in: Add a parameter --disk-module
20964 to choose between ata and biosdisk module on i386-pc.
20965
20966 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
20967
20968 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
20969 Subclass and Programming Interface fields in terms of the 3 byte
20970 Class Code register.
20971 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20972
20973 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
20974 interface is OHCI. Add grub_dprintf for symmetry with
20975 bus/usb/uhci.c.
20976 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
20977 interface is UHCI. Add interf variable for programming
20978 interface. Print interface with class/subclass.
20979
20980 * bus/usb/ohci.c: Set interf with correct field.
20981
20982 * bus/usb/uhci.c: Remove unneeded doubled lines.
20983 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
20984 Remove whitespace inside comment.
20985
20986 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
20987
20988 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
20989 as fallback an equivalent option without depth.
20990
20991 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
20992
20993 Not fail if unable to retrieve C/H/S on LBA disks
20994
20995 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
20996 if unable to retrieve C/H/S on LBA disks
20997
20998 2009-06-08 Pavel Roskin <proski@gnu.org>
20999
21000 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
21001 about aliasing.
21002
21003 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21004
21005 * Makefile.in (uninstall): Remove all $lib_DATA files.
21006
21007 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21008
21009 Bugfix: install on partitionless device
21010
21011 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
21012 is a whole disk
21013
21014 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21015
21016 * Makefile.in (uninstall): Remove all $include_DATA files.
21017
21018 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21019
21020 * commands/true.c: New file. Implement the true and false commands.
21021 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
21022 (true_mod_SOURCES): New variable.
21023 (true_mod_CFLAGS): Likewise.
21024 (true_mod_LDFLAGS): Likewise.
21025
21026 2009-06-05 Colin D Bennett <colin@gibibit.com>
21027
21028 Optimized font character lookup using binary search instead of linear
21029 search. Fonts now are required to have the character index ordered by
21030 code point.
21031
21032 * font/font.c (load_font_index): Verify that fonts have ordered
21033 character indices.
21034 (find_glyph): Use binary search instead of linear search to find a
21035 character in a font.
21036
21037 2009-06-05 Michael Scherer <misc@mandriva.org>
21038
21039 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
21040 uses case sensitive btree.
21041 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
21042 only for case insensitive filesystems.
21043
21044 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
21045
21046 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
21047 * conf/common.rmk (search_mod_CFLAGS): likewise
21048
21049 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21050
21051 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
21052 compensate a compiler bug
21053
21054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
21057 instead of '\b'
21058
21059 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21060
21061 Definitions for creating asm symbols with Apple's CC
21062
21063 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
21064 [APPLE_CC] (VARIABLE): likewise
21065
21066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21067
21068 Disable lnxboot.img when compiled
21069 with Apple's CC
21070
21071 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
21072 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
21073 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
21074 [! APPLE_CC] (CODE_LENG): skip
21075 [! APPLE_CC] (setup_sects): likewise
21076 [! APPLE_CC]: skip filling
21077
21078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21079
21080 Address in trampolines based on 32-bit registers when compiled
21081 with Apple's CC
21082
21083 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
21084 for addresses
21085 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
21086
21087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21088
21089 Avoid aliases when compiling with Apple's CC for PCBIOS machine
21090
21091 * kern/misc.c [APPLE_CC] (memcpy): new function
21092 [APPLE_CC] (memmove): likewise
21093 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
21094 (memcpy): define alias conditionally on !APPLE_CC
21095 (memset): likewise
21096 (abort): likewise
21097 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
21098 APPLE_CC are defined
21099 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
21100 (grub_assert_fail): make prototype conditional
21101
21102 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
21105
21106 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
21107 grub-macho2img
21108 (CLEANFILES): add grub-macho2img
21109 (grub_macho2img_SOURCES): new variable
21110 * kern/i386/pc/startup.S (bss_start): new variable
21111 (bss_end): likewise
21112 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
21113 * util/grub-macho2img.c: new file
21114
21115 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21116
21117 Use objconv when compiling with Apple's CC
21118
21119 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
21120 (efiemu64.o): likewise
21121 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
21122 when compiling with Apple's CC
21123 (efiemu64_s.o): likewise
21124 * configure.ac: check for objconv when compiling with Apple's CC
21125 * genmk.rb: use objconv for modules when compiled with Apple's CC
21126
21127 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21128
21129 Define segment as well as section when compiling with
21130 Apple's CC
21131
21132 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
21133 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
21134 (efiemu_convert_pointer): likewise
21135 (efiemu_set_virtual_address_map): likewise
21136 (efiemu_convert_pointer): likewise
21137 (efiemu_getcrc32): likewise
21138 (init_crc32_table): likewise
21139 (reflect): likewise
21140 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
21141 (GRUB_MOD_DEP): likewise
21142
21143 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21144
21145 Allow a compilation without -mcmodel=large
21146
21147 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
21148 when compiled without -mcmodel=large
21149 (filter_memory_map): remove memory post 4 GiB when compiled
21150 without -mcmodel=large
21151 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
21152 TARGET_CFLAGS when -mcmodel=large isn't supported
21153
21154 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21155
21156 Remove nested functions in efiemu core
21157
21158 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
21159
21160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
21163
21164 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
21165 temporary storage
21166 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
21167 using Apple's CC
21168 (grub_cpu_is_tsc_supported): likewise
21169 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
21170
21171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21172
21173 Absolute addressing through constant with Apple's cc
21174
21175 * kern/i386/pc/startup.S: Define necessary constants
21176 and address through it when using ABS with Apple's CC
21177 * boot/i386/pc/diskboot.S: likewise
21178 * boot/i386/pc/boot.S: likewise
21179 * boot/i386/pc/lnxboot.S: likewise
21180 * boot/i386/pc/cdboot.S: likewise
21181 * mmap/i386/pc/mmap_helper.S: likewise
21182 * commands/i386/pc/drivemap_int13h.S: likewise
21183
21184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21185
21186 Check if compiler is apple cc
21187
21188 * Makefile.in (ASFLAGS): new variable
21189 (TARGET_ASFLAGS): likewise
21190 (TARGET_MODULE_FORMAT): likewise
21191 (TARGET_APPLE_CC): likewise
21192 (OBJCONV): likewise
21193 (TARGET_IMG_CFLAGS): likewise
21194 (TARGET_CPPFLAGS): add includedir
21195 * configure.ac: call grub_apple_cc and grub_apple_target_cc
21196 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
21197 Check for linker script only if compiler isn't Apple's CC
21198 (TARGET_MODULE_FORMAT): set
21199 (TARGET_APPLE_CC): likewise
21200 (TARGET_ASFLAGS): likewise
21201 (ASFLAGS): likewise
21202 Check for objcopy only if compiler isn't Apple's CC
21203 Check for BSS symbol only if compiler isn't Apple's CC
21204 * genmk.rb: adapt nm options if we use Apple's utils
21205 * aclocal.m4 (grub_apple_cc): new test
21206 (grub_apple_target_cc): likewise
21207
21208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 Simplify sed expressions and improve awk
21211
21212 * Makefile.in (install-local): simplify sed expression
21213 * gencmdlist.sh: likewise
21214 * genmoddep.awk: avoid adding module as a dependency of itself
21215
21216 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21217
21218 Add missing start symbols
21219
21220 * boot/i386/pc/boot.S: add start
21221 * boot/i386/pc/pxeboot.S: likewise
21222
21223 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21224
21225 Fix wrong assumptions with grub-mkimage on EFI
21226
21227 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
21228 (relocate_addresses): consider both r_addend and value at offset
21229 (make_mods_section): zerofill modinfo and header
21230 (convert_elf): write prefix here
21231
21232 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21233
21234 Use .asciz instead of .string
21235
21236 * i386/pc/diskboot.S: use .asciz instead of .string
21237 * i386/pc/boot.S: likewise
21238 * include/grub/dl.h (GRUB_MOD_DEP): likewise
21239 (GRUB_MOD_NAME): likewise
21240
21241 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21242
21243 gfxpayload support
21244
21245 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
21246 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
21247 (grub_video_setup): remove
21248 (grub_video_set_mode): new prototype
21249 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
21250 (vid_mode): remove
21251 (linux_vesafb_res): compile only on PCBIOS
21252 (grub_linux_boot): support gfxpayload
21253 * loader/i386/pc/xnu.c (video_hook): new function
21254 (grub_xnu_set_video): support gfxpayload
21255 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
21256 (DEFAULT_VIDEO_HEIGHT): likewise
21257 (DEFAULT_VIDEO_FLAGS): likewise
21258 (DEFAULT_VIDEO_MODE): new definition
21259 (video_hook): new function
21260 (grub_gfxterm_init): use grub_video_set_mode
21261 * util/grub.d/30_os-prober.in: remove explicit modesetting before
21262 loading xnu
21263 * video/video.c (grub_video_setup): removed
21264 (grub_video_set_mode): new function based on grub_gfxterm_init and
21265 grub_video_setup
21266
21267 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21268
21269 Avoid calling biosdisk in drivemap
21270
21271 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
21272 (revparse_biosdisk): likewise
21273 (list_mappings): derive name from id directly
21274 (grub_cmd_drivemap): use tryparse_diskstring
21275
21276 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21277
21278 Script fixes
21279
21280 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
21281 (grub_lexer_param): add tokenonhold
21282 (grub_script_create_cmdline): remove cmdline. All callers updated
21283 (grub_script_function_create): make functionname
21284 grub_script_arg. All callers updated
21285 (grub_script_execute_argument_to_string): new prototype
21286 * kern/parser.c (state_transitions): reorder
21287 (grub_parser_cmdline_state): fix a bug and make more compact
21288 * script/sh/execute.c (grub_script_execute_argument_to_string):
21289 make global
21290 (grub_script_execute_cmdline): use new format
21291 * script/sh/function.c (grub_script_function_create): make functionname
21292 grub_script_arg. All callers updated
21293 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
21294 (grub_script_yylex): remove
21295 (grub_script_yylex2): renamed to ...
21296 (grub_script_yylex): ...renamed
21297 parse the expressions like a${b}c
21298 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
21299 (GRUB_PARSER_TOKEN_VAR): remove
21300 (GRUB_PARSER_TOKEN_NAME): likewise
21301 ("if"): declare as typeless
21302 ("while"): likewise
21303 ("function"): likewise
21304 ("else"): likewise
21305 ("then"): likewise
21306 ("fi"): likewise
21307 (text): remove
21308 (argument): likewise
21309 (script): accept empty scripts and make exit on error
21310 (arguments): use GRUB_PARSER_TOKEN_ARG
21311 (function): likewise
21312 (command): move error handling to script
21313 (menuentry): move grub_script_lexer_ref before
21314 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
21315 argument. All callers updated
21316
21317 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21318
21319 Prevent GRUB from probing floppies during boot.
21320
21321 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
21322 * commands/search.c (options): Add --no-floppy.
21323 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
21324 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
21325 --no-floppy when searching for UUIDs.
21326
21327 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21328
21329 Simplify the code duplication in commands/search.c.
21330
21331 * commands/search.c (search_label, search_fs_uuid): Merge into ...
21332 (search_fs): ... this. Update all users.
21333
21334 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
21335
21336 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
21337
21338 2009-05-28 Pavel Roskin <proski@gnu.org>
21339
21340 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
21341 Remove the original symlink explicitly.
21342
21343 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
21344 just one slash. That's how grub_fshelp_find_file() does it.
21345
21346 2009-05-26 Pavel Roskin <proski@gnu.org>
21347
21348 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
21349 to `str'.
21350
21351 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
21352 possibly unused.
21353
21354 2009-05-25 Christian Franke <franke@computer.org>
21355
21356 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
21357 register.
21358 (grub_atapi_identify): Add wait after drive select.
21359 (grub_ata_identify): Do more strict status register check before
21360 calling grub_atapi_identify (). Suppress error message if status
21361 register is 0x00 after command failure. Add status register
21362 check after PIO read to avoid bogus identify due to stuck DRQ.
21363 Thanks to Pavel Roskin for testing.
21364 (grub_device_initialize): Remove unsafe status register check.
21365 Thanks to 'phcoder' for problem report and patch.
21366 Prevent sign extension in debug message.
21367
21368 2009-05-23 Colin D Bennett <colin@gibibit.com>
21369
21370 Cleaned up `include/grub/normal.h'. Grouped prototypes by
21371 definition file, and functions defined in `normal/menu.c' have had
21372 their prototypes moved to `include/grub/menu.h' for consistency.
21373
21374 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
21375 from normal.h.
21376 (grub_menu_get_entry): Likewise.
21377 (grub_menu_get_timeout): Likewise.
21378 (grub_menu_set_timeout): Likewise.
21379 (grub_menu_execute_entry): Likewise.
21380 (grub_menu_execute_with_fallback): Likewise.
21381 (grub_menu_entry_run): Likewise.
21382
21383 * include/grub/normal.h: Re-ordered and grouped function
21384 prototypes by file that the function is defined in.
21385 (grub_menu_execute_callback): Removed; moved to menu.h.
21386 (grub_menu_get_entry): Likewise.
21387 (grub_menu_get_timeout): Likewise.
21388 (grub_menu_set_timeout): Likewise.
21389 (grub_menu_execute_entry): Likewise.
21390 (grub_menu_execute_with_fallback): Likewise.
21391 (grub_menu_entry_run): Likewise.
21392 (grub_menu_addentry): Renamed from this ...
21393 (grub_normal_add_menu_entry): ... to this.
21394
21395 * normal/main.c (grub_menu_addentry): Renamed from this ...
21396 (grub_normal_add_menu_entry): ... to this.
21397
21398 * script/sh/execute.c (grub_script_execute_menuentry): Update
21399 reference to renamed grub_menu_addentry function.
21400
21401 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
21402
21403 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
21404
21405 2009-05-22 Pavel Roskin <proski@gnu.org>
21406
21407 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
21408 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
21409 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
21410 compiling for the i386 targets, but not for the utilities.
21411
21412 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
21413 to grub_uint8_t.
21414 (grub_root_drive): Likewise.
21415 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
21416 remove alignment.
21417 (grub_root_drive): Change size to byte.
21418 (grub_start_addr): Remove.
21419 (grub_end_addr): Likewise.
21420 (grub_apm_bios_info): Likewise.
21421
21422 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
21423
21424 * normal/i386: Remove.
21425 * normal/powerpc: Likewise.
21426 * normal/sparc64: Likewise.
21427 * normal/x86_64: Likewise.
21428
21429 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
21430
21431 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
21432 * loader/i386/linux_trampoline.S: Fix indentation
21433 * loader/i386/xnu_helper.S: Likewise
21434
21435 2009-05-18 Colin D Bennett <colin@gibibit.com>
21436
21437 Display error messages when parsing a Lua statement fails.
21438 Previously, executing a syntactically invalid statement like
21439 ")foo" or "bar;" would silently fail.
21440
21441 * script/lua/grub_main.c (handle_lua_error): New function.
21442 (grub_lua_parse_line): Improved reporting of Lua parser and
21443 execution errors.
21444
21445 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 Remove -Werror which causes build to fail on some systems
21448
21449 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
21450 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
21451 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
21452
21453 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21454
21455 trampoline for linux on 64-bit platform
21456
21457 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
21458 loader/i386/efi/linux_trampoline.S
21459 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
21460 declaration
21461 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
21462 here
21463 * loader/i386/linux_trampoline.S: moved here
21464 * loader/i386/efi/linux.c (allocate_pages): reserve space for
21465 trampoline
21466 (jumpvector): removed
21467 (grub_linux_trampoline_start): new declaration
21468 (grub_linux_trampoline_end): likewise
21469 (grub_linux_boot): use trampoline when on 64-bit platform
21470 * loader/i386/linux.c: likewise
21471
21472 2009-05-16 Pavel Roskin <proski@gnu.org>
21473
21474 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
21475 const to avoid a warning.
21476 (grub_lua_setenv): Likewise.
21477 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
21478 lmsg to fix a warning.
21479
21480 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21481
21482 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
21483 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21484 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
21485 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21486 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21487 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21488 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21489 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21490
21491 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21492
21493 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
21494
21495 2009-05-16 Bean <bean123ch@gmail.com>
21496
21497 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
21498 (lua_mod_SOURCES): New variable.
21499 (lua_mod_CFLAGS): Likewise.
21500 (lua_mod_LDFLAGS): Likewise.
21501
21502 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
21503 (setjmp_mod_SOURCES): New variable.
21504 (setjmp_mod_CFLAGS): Likewise.
21505 (setjmp_LDFLAGS): Likewise.
21506
21507 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
21508 (setjmp_mod_SOURCES): New variable.
21509 (setjmp_mod_CFLAGS): Likewise.
21510 (setjmp_LDFLAGS): Likewise.
21511
21512 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21513 (setjmp_mod_SOURCES): New variable.
21514 (setjmp_mod_CFLAGS): Likewise.
21515 (setjmp_LDFLAGS): Likewise.
21516
21517 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21518 (setjmp_mod_SOURCES): New variable.
21519 (setjmp_mod_CFLAGS): Likewise.
21520 (setjmp_LDFLAGS): Likewise.
21521
21522 * normal/i386/setjmp.S: Moved from here ...
21523 * lib/i386/setjmp.S: ... Moved here
21524 * normal/x86_64/setjmp.S: Moved from here ...
21525 * lib/x86_64/setjmp.S: ... Moved here
21526 * normal/powerpc/setjmp.S: Moved from here ...
21527 * lib/powerpc/setjmp.S: ... Moved here
21528 * normal/sparc64/setjmp.S: Moved from here ...
21529 * lib/sparc64/setjmp.S: ... Moved here
21530
21531 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
21532 returns_twice in mingw.
21533
21534 * script/lua/grub_lib.c: New file.
21535 * script/lua/grub_lib.h: Likewise.
21536 * script/lua/grub_lua.h: Likewise.
21537 * script/lua/grub_main.c: Likewise.
21538 * script/lua/lapi.c: Likewise.
21539 * script/lua/lapi.h: Likewise.
21540 * script/lua/lauxlib.c: Likewise.
21541 * script/lua/lauxlib.h: Likewise.
21542 * script/lua/lbaselib.c: Likewise.
21543 * script/lua/lcode.c: Likewise.
21544 * script/lua/lcode.h: Likewise.
21545 * script/lua/ldblib.c: Likewise.
21546 * script/lua/ldebug.c: Likewise.
21547 * script/lua/ldebug.h: Likewise.
21548 * script/lua/ldo.c: Likewise.
21549 * script/lua/ldo.h: Likewise.
21550 * script/lua/ldump.c: Likewise.
21551 * script/lua/lfunc.c: Likewise.
21552 * script/lua/lfunc.h: Likewise.
21553 * script/lua/lgc.c: Likewise.
21554 * script/lua/lgc.h: Likewise.
21555 * script/lua/linit.c: Likewise.
21556 * script/lua/liolib.c: Likewise.
21557 * script/lua/llex.c: Likewise.
21558 * script/lua/llex.h: Likewise.
21559 * script/lua/llimits.h: Likewise.
21560 * script/lua/lmathlib.c: Likewise.
21561 * script/lua/lmem.c: Likewise.
21562 * script/lua/lmem.h: Likewise.
21563 * script/lua/loadlib.c: Likewise.
21564 * script/lua/lobject.c: Likewise.
21565 * script/lua/lobject.h: Likewise.
21566 * script/lua/lopcodes.c: Likewise.
21567 * script/lua/lopcodes.h: Likewise.
21568 * script/lua/loslib.c: Likewise.
21569 * script/lua/lparser.c: Likewise.
21570 * script/lua/lparser.h: Likewise.
21571 * script/lua/lstate.c: Likewise.
21572 * script/lua/lstate.h: Likewise.
21573 * script/lua/lstring.c: Likewise.
21574 * script/lua/lstring.h: Likewise.
21575 * script/lua/lstrlib.c: Likewise.
21576 * script/lua/ltable.c: Likewise.
21577 * script/lua/ltable.h: Likewise.
21578 * script/lua/ltablib.c: Likewise.
21579 * script/lua/ltm.c: Likewise.
21580 * script/lua/ltm.h: Likewise.
21581 * script/lua/lua.h: Likewise.
21582 * script/lua/luaconf.h: Likewise.
21583 * script/lua/lualib.h: Likewise.
21584 * script/lua/lundump.c: Likewise.
21585 * script/lua/lundump.h: Likewise.
21586 * script/lua/lvm.c: Likewise.
21587 * script/lua/lvm.h: Likewise.
21588 * script/lua/lzio.c: Likewise.
21589 * script/lua/lzio.h: Likewise.
21590
21591 2009-05-16 Bean <bean123ch@gmail.com>
21592
21593 * include/grub/kernel.h (grub_module_header_types): Add type
21594 OBJ_TYPE_CONFIG.
21595
21596 * kern/main.c (grub_load_config): New function.
21597 (grub_main): Call grub_load_config to read boot config.
21598
21599 * grub-mkimage (generate_image): New parameter config_path.
21600 (options): New option --config.
21601 (main): Parse --config option, and pass it to generate_image.
21602
21603 2009-05-14 Christian Franke <franke@computer.org>
21604
21605 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
21606 This fixes build on Cygwin.
21607
21608 2009-05-14 Pavel Roskin <proski@gnu.org>
21609
21610 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
21611 jump. This saves two bytes, so the typical case of 2 swapped
21612 drives would fit 32 bytes.
21613
21614 2009-05-13 Pavel Roskin <proski@gnu.org>
21615
21616 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
21617 grub_uint32_t to avoid a warning.
21618
21619 * loader/i386/linux.c (allocate_pages): When assigning
21620 real_mode_mem, cast through grub_size_t to fix a warning. The
21621 code already makes sure that the value would fit a pointer.
21622 (grub_linux_setup_video): Cast render_target->data to
21623 grub_size_t to fix a warning.
21624
21625 2009-05-13 Javier Martín <lordhabbit@gmail.com>
21626
21627 * commands/i386/pc/drivemap.c: New file - implement drivemap
21628 command.
21629 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
21630 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
21631
21632 2009-05-13 Pavel Roskin <proski@gnu.org>
21633
21634 * util/i386/pc/grub-setup.c (setup): Remove unused variable
21635 embedding_area_exists.
21636
21637 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
21638
21639 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
21640 it easier to understand / work with.
21641 Improve warning messages for cases where there's no embedding area,
21642 or when it is too small (or core.img too large).
21643
21644 2009-05-13 Pavel Roskin <proski@gnu.org>
21645
21646 * loader/i386/pc/multiboot2.c: Add necessary includes for
21647 grub_multiboot2_real_boot().
21648
21649 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
21650 PX record is always little-endian. We only need the lower 2
21651 bytes of the mode.
21652
21653 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
21654 facilitate code reuse.
21655 (grub_cpio_mount): Use "struct head", not a char buffer. This
21656 fixes a warning reported by gcc 4.4.
21657
21658 * kernel/disk.c (grub_disk_read): Use void pointer for the
21659 buffer.
21660 (grub_disk_write): Use const void pointer for the buffer.
21661 Adjust all callers. Remove unnecessary casts.
21662
21663 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
21664
21665 * util/i386/pc/grub-install.in: Update copyright year.
21666
21667 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 gptsync
21670
21671 * commands/gptsync.c: new file
21672 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
21673 (gptsync_mod_SOURCES): new variable
21674 (gptsync_mod_CFLAGS): likewise
21675 (gptsync_mod_LDFLAGS): likewise
21676 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
21677 new definition
21678 (GRUB_PC_PARTITION_TYPE_HFS): likewise
21679 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
21680 * conf/i386-ieee1275.rmk: likewise
21681 * conf/i386-pc.rmk: likewise
21682 * conf/powerpc-ieee1275.rmk: likewise
21683
21684 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 Fixed grub-emu
21687
21688 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
21689 (grub_dl_ref): likewise
21690
21691 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
21692
21693 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
21694 split in two functions (one for msdos and one for gpt).
21695
21696 2009-05-08 Pavel Roskin <proski@gnu.org>
21697
21698 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
21699 not modified.
21700
21701 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
21702 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
21703 Initialize them with -1. Add sanity check for bad1. Eliminate
21704 nerr variable.
21705
21706 2009-05-08 David S. Miller <davem@davemloft.net>
21707
21708 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
21709
21710 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
21711
21712 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
21713 existence.
21714
21715 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
21716
21717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21718 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
21719
21720 2009-05-05 David S. Miller <davem@davemloft.net>
21721
21722 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
21723
21724 2009-05-05 Pavel Roskin <proski@gnu.org>
21725
21726 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
21727 of grub_dl_ref() and grub_dl_unref().
21728 * commands/parttool.c: Remove preprocessor conditionals around
21729 grub_dl_ref() and grub_dl_unref().
21730 * fs/affs.c: Likewise.
21731 * fs/afs.c: Likewise.
21732 * fs/cpio.c: Likewise.
21733 * fs/ext2.c: Likewise.
21734 * fs/fat.c: Likewise.
21735 * fs/hfs.c: Likewise.
21736 * fs/hfsplus.c: Likewise.
21737 * fs/iso9660.c: Likewise.
21738 * fs/jfs.c: Likewise.
21739 * fs/minix.c: Likewise.
21740 * fs/ntfs.c: Likewise.
21741 * fs/reiserfs.c: Likewise.
21742 * fs/sfs.c: Likewise.
21743 * fs/udf.c: Likewise.
21744 * fs/ufs.c: Likewise.
21745 * fs/xfs.c: Likewise.
21746 * include/grub/dl.h: Likewise.
21747 * loader/xnu.c: Likewise.
21748
21749 2009-05-04 Pavel Roskin <proski@gnu.org>
21750
21751 * commands/acpi.c: Remove unused variable my_mod.
21752 * partmap/amiga.c: Likewise.
21753 * partmap/apple.c: Likewise.
21754 * partmap/gpt.c: Likewise.
21755 * partmap/pc.c: Likewise.
21756 * partmap/sun.c: Likewise.
21757 * term/gfxterm.c: Likewise.
21758 * term/i386/pc/vesafb.c: Likewise.
21759 * term/i386/pc/vga.c: Likewise.
21760
21761 2009-05-04 David S. Miller <davem@davemloft.net>
21762
21763 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
21764 pointer args to grub_ieee1275_get_property().
21765
21766 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
21767
21768 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
21769 devices, and do not traverse down under controller nodes.
21770
21771 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
21772 (grub_ofdisk_open): Use it to un-escape "," characters.
21773 * kern/disk.c (find_part_sep): New.
21774 (grub_disk_open): Use it to find the first non-escaped ','
21775 character in the disk name.
21776 * util/ieee1275/devicemap.c (escape_of_path): New.
21777 (grub_util_emit_devicemap_entry): Use it.
21778 * util/sparc64/ieee1275/grub-install.in: Update script to
21779 strip partition specifiers properly by not triggering on
21780 '\' escaped ',' characters.
21781
21782 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21783
21784 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
21785 to 0x300.
21786 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
21787 resolutions.
21788 (linux_vesafb_modes): Add a lot of additional modes to the list (based
21789 on documentation from Wikipedia).
21790
21791 2009-05-04 Pavel Roskin <proski@gnu.org>
21792
21793 * disk/ata.c: Spelling fixes.
21794 * disk/raid.c: Likewise.
21795 * disk/usbms.c: Likewise.
21796 * disk/dmraid_nvidia.c: Likewise.
21797 * kern/ieee1275/openfw.c: Likewise.
21798 * kern/ieee1275/init.c: Likewise.
21799 * kern/ieee1275/cmain.c: Likewise.
21800 * boot/i386/pc/cdboot.S: Likewise.
21801 * video/readers/png.c: Likewise.
21802 * video/i386/pc/vbe.c: Likewise.
21803 * fs/udf.c: Likewise.
21804 * fs/hfs.c: Likewise.
21805 * fs/reiserfs.c: Likewise.
21806 * efiemu/runtime/efiemu.c: Likewise.
21807 * efiemu/main.c: Likewise.
21808 * efiemu/mm.c: Likewise.
21809 * include/grub/elf.h: Likewise.
21810 * include/grub/xnu.h: Likewise.
21811 * include/grub/usbdesc.h: Likewise.
21812 * include/grub/usb.h: Likewise.
21813 * include/grub/script_sh.h: Likewise.
21814 * include/grub/lib/LzmaEnc.h: Likewise.
21815 * include/grub/efiemu/efiemu.h: Likewise.
21816 * include/grub/command.h: Likewise.
21817 * normal/menu.c: Likewise.
21818 * normal/main.c: Likewise.
21819 * normal/datetime.c: Likewise.
21820 * bus/usb/uhci.c: Likewise.
21821 * mmap/i386/uppermem.c: Likewise.
21822 * mmap/mmap.c: Likewise.
21823 * commands/acpi.c: Likewise.
21824 * commands/test.c: Likewise.
21825 * partmap/apple.c: Likewise.
21826 * font/font.c: Likewise.
21827 * loader/sparc64/ieee1275/linux.c: Likewise.
21828 * loader/macho.c: Likewise.
21829 * loader/i386/bsd_trampoline.S: Likewise.
21830 * loader/i386/bsd.c: Likewise.
21831 * loader/xnu.c: Likewise.
21832 * term/i386/pc/vesafb.c: Likewise.
21833 * term/usb_keyboard.c: Likewise.
21834 * util/resolve.c: Likewise.
21835 * util/getroot.c: Likewise.
21836
21837 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
21838
21839 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
21840
21841 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21842
21843 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
21844 build error.
21845
21846 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21847
21848 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
21849 parameter only available on BIOS.
21850
21851 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21852
21853 Removed wrong semicolon in declaration
21854
21855 * grub/misc.h (grub_dprintf): remove semicolon
21856
21857 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21858
21859 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
21860 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
21861 is done by grub_cmd_linux() now).
21862 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
21863 restore video to text mode.
21864 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
21865 indicates lack of "vga=" parameter. "vga=0" is mapped to
21866 `GRUB_LINUX_VID_MODE_NORMAL'.
21867
21868 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
21869
21870 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
21871 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
21872 and `normal/script.c'. Add `kern/rescue_reader.c',
21873 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
21874 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
21875 `grub_script.tab.c'.
21876
21877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21878 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21880 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21881 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21882
21883 * Makefile.in: Remove duplicated 2008 in Copyright line.
21884
21885 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21886
21887 * util/misc.c (grub_util_warn): New function. Emits a warning
21888 unconditionally.
21889 * include/grub/util/misc.h (grub_util_warn): New declaration.
21890
21891 * util/i386/pc/grub-install.in: Understand --force and pass it down
21892 to grub-setup.
21893
21894 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
21895 down to setup().
21896 (setup): Improve error messages and add warnings when requested to
21897 install in odd layouts. Refuse to install using blocklists unless
21898 --force was set.
21899
21900 2009-05-04 martin f. krafft <madduck@madduck.net>
21901
21902 * disk/raid.c (grub_raid_scan_device): Improve debug message.
21903
21904 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21905
21906 Updated copyright year
21907
21908 * fs/hfsplus.c: updated copyright year
21909
21910 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21911
21912 HFS+ UUID
21913
21914 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
21915 in the space previously used by unused3
21916 (grub_hfsplus_uuid): new function
21917 (grub_hfsplus_fs): added uuid field
21918
21919 2009-05-03 Pavel Roskin <proski@gnu.org>
21920
21921 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
21922 suppress warnings. It's no longer needed.
21923 * disk/host.c: Likewise.
21924 * disk/ata_pthru.c: Likewise.
21925 * disk/loopback.c: Likewise.
21926 * hook/datehook.c: Likewise.
21927 * parttool/pcpart.c: Likewise.
21928 * fs/i386/pc/pxe.c: Likewise.
21929 * fs/ntfscomp.c: Likewise.
21930 * efiemu/main.c: Likewise.
21931 * mmap/mmap.c: Likewise.
21932 * commands/crc.c: Likewise.
21933 * commands/hexdump.c: Likewise.
21934 * commands/hdparm.c: Likewise.
21935 * commands/acpi.c: Likewise.
21936 * commands/echo.c: Likewise.
21937 * commands/minicmd.c: Likewise.
21938 * commands/blocklist.c: Likewise.
21939 * commands/memrw.c: Likewise.
21940 * commands/loadenv.c: Likewise.
21941 * commands/usbtest.c: Likewise.
21942 * commands/lsmmap.c: Likewise.
21943 * commands/boot.c: Likewise.
21944 * commands/parttool.c: Likewise.
21945 * commands/configfile.c: Likewise.
21946 * commands/search.c: Likewise.
21947 * commands/ieee1275/suspend.c: Likewise.
21948 * commands/cat.c: Likewise.
21949 * commands/i386/pc/pxecmd.c: Likewise.
21950 * commands/i386/pc/play.c: Likewise.
21951 * commands/i386/pc/halt.c: Likewise.
21952 * commands/i386/pc/vbeinfo.c: Likewise.
21953 * commands/i386/pc/vbetest.c: Likewise.
21954 * commands/lspci.c: Likewise.
21955 * commands/date.c: Likewise.
21956 * commands/handler.c: Likewise.
21957 * commands/ls.c: Likewise.
21958 * commands/test.c: Likewise.
21959 * commands/cmp.c: Likewise.
21960 * commands/efi/loadbios.c: Likewise.
21961 * commands/efi/fixvideo.c: Likewise.
21962 * commands/halt.c: Likewise.
21963 * commands/help.c: Likewise.
21964 * commands/reboot.c: Likewise.
21965 * hello/hello.c: Likewise.
21966 * script/sh/main.c: Likewise.
21967 * loader/xnu.c: Likewise.
21968 * term/terminfo.c: Likewise.
21969 * term/i386/pc/serial.c: Likewise.
21970 * term/usb_keyboard.c: Likewise.
21971
21972 2009-05-03 David S. Miller <davem@davemloft.net>
21973
21974 * normal/menu.c: Include grub/parser.h
21975
21976 2009-05-03 Pavel Roskin <proski@gnu.org>
21977
21978 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
21979 not char*.
21980 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
21981 Suggested by Javier Martín <lordhabbit@gmail.com>
21982
21983 * util/i386/pc/grub-mkrescue.in: Allow for the case when
21984 efiemu??.o doesn't exist.
21985 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
21986 copying.
21987
21988 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 FreeBSD 64-bit support
21991
21992 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
21993 and loader/i386/bsd_trampoline.S
21994 (bsd_mod_ASFLAGS): new variable
21995 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
21996 (FREEBSD_MODTYPE_KERNEL64): likewise
21997 (grub_bsd64_trampoline_start): likewise
21998 (grub_bsd64_trampoline_end): likewise
21999 (grub_bsd64_trampoline_selfjump): likewise
22000 (grub_bsd64_trampoline_gdt): likewise
22001 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
22002 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
22003 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
22004 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
22005 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22006 of "attrib" member
22007 * loader/i386/bsd_pagetable.c: new file
22008 * loader/i386/bsd_trampoline.S: likewise
22009 * loader/i386/bsd.c (ALIGN_QWORD): new macro
22010 (ALIGN_VAR): likewise
22011 (entry_hi): new variable
22012 (kern_end_mdofs): likewise
22013 (is_64bit): likewise
22014 (grub_freebsd_add_meta): use ALIGN_VAR
22015 (grub_e820_mmap): new declaration
22016 (grub_freebsd_add_mmap): new function
22017 (grub_freebsd_add_meta_module): support 64 bit kernels
22018 (grub_freebsd_list_modules): use ALIGN_VAR
22019 (gdt_descriptor): new declaration
22020 (grub_freebsd_boot): support 64 bit kernels
22021 (grub_bsd_elf64_hook): new function
22022 (grub_bsd_load_elf): support elf64
22023
22024 2009-05-03 Bean <bean123ch@gmail.com>
22025
22026 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
22027 after we get the result of if statement.
22028
22029 2009-05-03 Bean <bean123ch@gmail.com>
22030
22031 * Makefile.in (enable_efiemu): New variable.
22032
22033 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
22034 set.
22035 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
22036 path.
22037 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
22038 path, add -mno-red-zone option.
22039 (efiemu64_s.o): Likewise.
22040 (efiemu64.o): Use macro $^ for source file.
22041
22042 * configure.ac (--enable-efiemu): New option.
22043
22044 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22045
22046 xnu support
22047
22048 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
22049 (pkglib_MODULES): add xnu.mod
22050 (xnu_mod_SOURCES): new variable
22051 (xnu_mod_CFLAGS): likewise
22052 (xnu_mod_LDFLAGS): likewise
22053 (xnu_mod_ASFLAGS): likewise
22054 * conf/i386-pc.rmk: likewise
22055 * conf/x86_64-efi.rmk: likewise
22056 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
22057 new declaration
22058 * include/grub/i386/macho.h: new file
22059 * include/grub/i386/xnu.h: likewise
22060 * include/grub/macho.h: likewise
22061 * include/grub/machoload.h: likewise
22062 * include/grub/x86_64/macho.h: likewise
22063 * include/grub/x86_64/xnu.h: likewise
22064 * include/grub/xnu.h: likewise
22065 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
22066 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
22067 * loader/i386/efi/xnu.c: new file
22068 * loader/i386/pc/xnu.c: likewise
22069 * loader/i386/xnu.c: likewise
22070 * loader/i386/xnu_helper.S: likewise
22071 * loader/macho.c: likewise
22072 * loader/xnu.c: likewise
22073 * loader/xnu_resume.c: likewise
22074 * util/grub-dumpdevtree: likewise
22075 * include/grub/i386/pit.h: include grub/err.h
22076 (grub_pit_wait): export
22077 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
22078
22079 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22080
22081 Efiemu
22082
22083 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
22084 _linux_efi, linux_efi.
22085 new files in grub-emu
22086 new targets efiemu32.o and efiemu64.o
22087 * loader/linux_normal_efiemu.c: likewise
22088 * loader/i386/efi/linux.c: added preliminary efiemu support
22089 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
22090 files to copy
22091 * include/grub/autoefi.h: new file
22092 * include/grub/i386/efiemu.h: likewise
22093 * include/grub/i386/pc/efiemu.h: likewise
22094 * include/grub/efi/api.h: add LL suffix when necessary
22095 new definitions relating to tables
22096 * include/grub/efiemu/efiemu.h: new file
22097 * include/grub/efiemu/runtime.h: likewise
22098 * efiemu/prepare.c: likewise
22099 * efiemu/loadcore_common.c: likewise
22100 * efiemu/loadcore64.c: likewise
22101 * efiemu/runtime/efiemu.sh: likewise
22102 * efiemu/runtime/efiemu.S: likewise
22103 * efiemu/runtime/efiemu.c: likewise
22104 * efiemu/runtime/config.h: likewise
22105 * efiemu/prepare32.c: likewise
22106 * efiemu/main.c: likewise
22107 * efiemu/modules/pnvram.c: likewise
22108 * efiemu/modules/i386: likewise
22109 * efiemu/modules/i386/pc: likewise
22110 * efiemu/modules/acpi.c: likewise
22111 * efiemu/i386/pc/cfgtables.c: likewise
22112 * efiemu/i386/loadcore64.c: likewise
22113 * efiemu/i386/loadcore32.c: likewise
22114 * efiemu/prepare64.c: likewise
22115 * efiemu/loadcore.c: likewise
22116 * efiemu/symbols.c: likewise
22117 * efiemu/mm.c: likewise
22118 * efiemu/loadcore32.c: likewise
22119
22120 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22121
22122 ACPI spoofing
22123
22124 * commands/acpi.c: new file
22125 * commands/i386/pc/acpi.c: likewise
22126 * commands/efi/acpi.c: likewise
22127 * include/grub/acpi.h: likewise
22128 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
22129 (acpi_mod_SOURCES): new variable
22130 (acpi_mod_CFLAGS): likewise
22131 (acpi_mod_LDFLAGS): likewise
22132 * conf/i386-efi.rmk: likewise
22133 * conf/x86_64-efi.rmk: likewise
22134
22135 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22136
22137 Missing part from mmap patch
22138
22139 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
22140 (grub_mmap_unregister)
22141 (grub_mmap_free_and_unregister): use grub_mmap_register
22142
22143 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22144
22145 Mmap services
22146
22147 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
22148 * loader/i386/linux.c (find_mmap_size): likewise
22149 (allocate_pages): likewise
22150 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
22151 (grub_fill_multiboot_mmap): likewise
22152 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
22153 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
22154 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
22155 (OPENBSD_MMAP_RESERVED): likewise
22156 * include/grub/i386/pc/memory.h: include grub/memory.h
22157 (grub_lower_mem): removed
22158 (grub_upper_mem): likewise
22159 (GRUB_MACHINE_MEMORY_ACPI): new definition
22160 (GRUB_MACHINE_MEMORY_NVS): likewise
22161 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
22162 (GRUB_MACHINE_MEMORY_HOLE): likewise
22163 (grub_machine_mmap_register): likewise
22164 (grub_machine_mmap_unregister): likewise
22165 (grub_machine_get_upper): likewise
22166 (grub_machine_get_lower): likewise
22167 (grub_machine_get_post64): likewise
22168 * include/grub/i386/efi/memory.h: new file
22169 * include/grub/x86_64/efi/memory.h: likewise
22170 * include/grub/efi/memory.h: likewise
22171 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
22172 (mmap_mod_SOURCES): new variable
22173 (mmap_mod_LDFLAGS): likewise
22174 (mmap_mod_ASFLAGS): likewise
22175 * conf/i386-coreboot.rmk: likewise
22176 * conf/i386-ieee1275.rmk: likewise
22177 * conf/i386-efi.rmk: likewise
22178 * conf/x86_64-efi.rmk: likewise
22179 * include/grub/types.h (UINT_TO_PTR): new macro
22180 (PTR_TO_UINT32): likewise
22181 (PTR_TO_UINT64): likewise
22182 * include/grub/memory.h: new file
22183 * mmap/i386/pc/mmap.c: likewise
22184 * mmap/i386/pc/mmap_helper.S: likewise
22185 * mmap/i386/uppermem.c: likewise
22186 * mmap/mmap.c: likewise
22187 * mmap/efi/mmap.c: likewise
22188 * kern/i386/coreboot/init.c (grub_machine_init): don't use
22189 grub_upper_mem
22190 * kern/i386/pc/init.c (grub_lower_mem): removed variable
22191 (grub_upper_mem): likewise
22192 (grub_machine_init): don't use grub_upper_mem,
22193 make grub_lower_mem local
22194 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
22195 grub_mmap_iterate and grub_mmap_get_upper
22196 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
22197
22198 2009-05-02 Bean <bean123ch@gmail.com>
22199
22200 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
22201 script/sh/parser.y.
22202 (pkglib_MODULES): Add normal.mod and sh.mod.
22203 (normal_SOURCES): New variable.
22204 (normal_mod_CFLAGS): Likewise.
22205 (normal_mod_LDFLAGS): Likewise.
22206 (sh_mod_SOURCES): Likewise.
22207 (sh_mod_CFLAGS): Likewise.
22208 (sh_mod_LDFLAGS): Likewise.
22209
22210 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
22211 script/sh/lexer.c_DEPENDENCIES.
22212 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
22213 kern/rescue_reader.c and kern/rescue_parser.c.
22214 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
22215 (grub_emu_SOURCES): Change source files.
22216 (pkglib_MODULES): Remove normal.mod.
22217 (normal_SOURCES): Removed.
22218 (normal_mod_CFLAGS): Likewise.
22219 (normal_mod_LDFLAGS): Likewise.
22220 * conf/i386-coreboot.rmk: Likewise.
22221 * conf/i386-efi.rmk: Likewise.
22222 * conf/i386-ieee1276.rmk: Likewise.
22223 * conf/powerpc-ieee1275.rmk: Likewise.
22224 * conf/sparc64-ieee1275.rmk: Likewise.
22225 * conf/x86_64-efi.rmk: Likewise.
22226
22227 * include/grub/command.h (grub_command_execute): New inline function.
22228
22229 * include/grub/menu.h (grub_menu_entry): Removed commands field.
22230
22231 * include/grub/normal.h: Remove <grub/setjmp.h>.
22232 (grub_fs_module_list): Moved to normal/autofs.c.
22233 (grub_exit_env): Removed.
22234 (grub_command_execute): Likewise.
22235 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
22236 parameter script.
22237 (read_command_list): New function declaration.
22238 (read_fs_list): Likewise.
22239
22240 * include/parser.h: Include <grub/reader.h>.
22241 (grub_parser_split_cmdline): Change type of getline parameter.
22242 (grub_parser): New structure.
22243 (grub_parser_class): New variable.
22244 (grub_parser_execute): New function declaration.
22245 (grub_register_rescue_parser): Likewise.
22246 (grub_parser_register): New inline function.
22247 (grub_parser_unregister): Likewise.
22248 (grub_parser_get_current): Likewise.
22249 (grub_parser_set_current): Likewise.
22250
22251 * include/grub/reader.h: New file.
22252 * kern/reader.c: Likewise.
22253 * kern/rescue_parser.c: Likewise.
22254 * kern/rescue_reader.c: Likewise.
22255 * normal/autofs.c: Likewise.
22256 * normal/dyncmd.c: Likewise.
22257
22258 * include/grub/rescue.h: Removed.
22259 * normal/command.h: Likewise.
22260
22261 * include/grub/script.h: Moved to ...
22262 * include/grub/script_sh.h: ... Moved here.
22263 * normal/execute.c: Moved to ...
22264 * script/sh/execute.c: ... Moved here.
22265 * normal/function.c: Moved to ...
22266 * script/sh/function.c: ... Moved here.
22267 * normal/lexer.c: Moved to ...
22268 * script/sh/lexer.c: ... Moved here.
22269 * normal/parser.y: Moved to ...
22270 * script/sh/parser.y: ... Moved here.
22271 * normal/script.c: Moved to ...
22272 * script/sh/script.c: ... Moved here.
22273
22274 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
22275 <grub/reader.h>.
22276 (grub_exit_env): Removed.
22277 (fs_module_list): Moved to normal/autofs.c.
22278 (grub_file_getline): Don't handle comment here.
22279 (free_menu): Skip removed field entry->commands.
22280 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
22281 script parameter.
22282 (read_config_file): Removed nested parameter, change getline function.
22283 (grub_enter_normal_mode): Removed.
22284 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
22285 (read_command_list): Likewise.
22286 (autoload_fs_module): Moved to normal/autofs.c.
22287 (read_fs_list): Likewise.
22288 (reader_nested): New variable.
22289 (grub_normal_execute): Run parser.sh to switch to sh parser.
22290 (grub_cmd_rescue): Removed.
22291 (cmd_normal): Removed.
22292 (grub_cmd_normal): Unregister itself at the beginning. Don't register
22293 rescue command.
22294 (grub_cmdline_run): New function.
22295 (grub_normal_reader_init): Likewise.
22296 (grub_normal_read_line): Likewise.
22297 (grub_env_write_pager): Likewise.
22298 (cmdline): New variable.
22299 (grub_normal_reader): Likewise.
22300 (GRUB_MOD_INIT): Register normal reader and set as current, register
22301 pager hook, register normal command with grub_register_command_prio,
22302 so that it won't show up in command.lst.
22303 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
22304 grub_fs_autoload_hook.
22305
22306 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
22307 (grub_menu_execute_entry): Replace grub_script_execute with
22308 grub_parser_execute, change parameter to grub_command_execute.
22309
22310 * normal/menu_text.c: Remove <grub/script.h>.
22311
22312 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
22313 and <grub/parser.h>.
22314 (run): Change editor_getline to use new parser interface. Change
22315 parameter to grub_command_execute.
22316
22317 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
22318 <grub/reader.h> and <grub/parser.h>.
22319 (grub_load_normal_mode): Execute normal command.
22320 (grub_main): Call grub_register_core_commands,
22321 grub_register_rescue_parser and grub_register_rescue_reader, use
22322 grub_reader_loop to enter input loop.
22323
22324 * kern/parser.c (grub_parser_split_cmdline): Change type of
22325 getline parameter.
22326 (grub_parser_class): New variable.
22327 (grub_parser_execute): New function.
22328
22329 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
22330 * loader/multiboot2.c: Likewise.
22331 * loader/sparc64/ieee1275/linux.c: Likewise.
22332
22333 * util/grub-emu.c (read_command_list): New dummy function.
22334
22335 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22336
22337 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
22338 count to 16 for CCISS and IDA.
22339
22340 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22341
22342 * normal/menu_text.c (grub_wait_after_message): Print a newline
22343 after waiting for user input.
22344
22345 * loader/i386/linux.c: Include `<grub/normal.h>'.
22346 (grub_cmd_linux): Improve the error message about `ask' mode, by
22347 waiting for user input so it's not missed (we can do this, since
22348 user requested interaction).
22349
22350 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22351
22352 Added missing lst to grub-mkrescue
22353
22354 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
22355 and ${input_dir}/parttool.lst
22356
22357 2009-04-30 David S. Miller <davem@davemloft.net>
22358
22359 * util/hostdisk.c (device_is_wholedisk): New function.
22360 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
22361 zero only if device_is_wholedisk() returns true.
22362
22363 * util/hostdisk.c (convert_system_partition_to_system_disk):
22364 Handle virtual disk devices named /dev/vdiskX as found on sparc
22365 and powerpc.
22366
22367 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
22368 lettered partition specifier is found, convert to numbered.
22369
22370 2009-04-29 David S. Miller <davem@davemloft.net>
22371
22372 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
22373 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22374
22375 * normal/command.c: Add missing newline at end of file.
22376
22377 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
22378 warnings.
22379 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
22380 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
22381 grub_ofdisk_read): Likewise, and deal similarly with the fact that
22382 ihandles have a 32-bit type but need to be stored in a "void *".
22383
22384 2009-04-28 Pavel Roskin <proski@gnu.org>
22385
22386 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
22387 not disk. Adjust all dependencies.
22388 (grub_fs_uuid_close): Use grub_device_close(), not
22389 grub_disk_close().
22390
22391 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
22392 parent's partition, don't copy it by reference, as it gets freed
22393 on close.
22394
22395 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22396
22397 Preboot hooks support
22398
22399 * commands/boot.c (struct grub_preboot_t): new declaration
22400 (preboots_head): new variable
22401 (preboots_tail): likewise
22402 (grub_loader_register_preboot_hook): new function
22403 (grub_loader_unregister_preboot_hook): likewise
22404 (grub_loader_set): launch preboot hooks
22405 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
22406 (grub_loader_register_preboot_hook): new declaration
22407 (grub_loader_unregister_preboot_hook): likewise
22408
22409 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22410
22411 Warning fix
22412
22413 * disk/scsi.c (grub_scsi_open): added missing cast when
22414 calling grub_dprintf
22415
22416 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
22417
22418 Bug and warning fixes
22419
22420 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
22421 declaration
22422 * commands/test.c (test_parse): fixed bug with file tests and corrected
22423 declaration of find_file
22424
22425 2009-04-26 Pavel Roskin <proski@gnu.org>
22426
22427 * Makefile.in: Don't install empty manual pages if help2man is
22428 missing. Use help2man option for output, not shell redirection.
22429
22430 2009-04-26 David S. Miller <davem@davemloft.net>
22431
22432 * util/grub-mkdevicemap.c (make_device_map): Add missing
22433 NESTED_FUNC_ATTR to process_device().
22434
22435 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 Test command
22438
22439 * commands/test.c: rewritten to use bash-like test
22440
22441 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22442
22443 Parttool autoloading and improvements
22444
22445 * Makefile.in (pkglib_DATA): add parttool.lst
22446 (parttool.lst): new target
22447 * genmk.rb: generate parttool-*
22448 (CLEANFILES): add #{parttool}
22449 (PARTTOOLFILES): new variable
22450 * genparttoollist.sh: new file
22451 * parttool/pcpart.c (grub_pcpart_boot): more feedback
22452 (grub_pcpart_type): likewise
22453 * commands/parttool.c (helpmsg): new variable
22454 (grub_cmd_parttool): output help if not enough arguments are supplied
22455 autoload modules
22456 (GRUB_MOD_INIT(parttool)): use helpmsg
22457
22458 2009-04-24 David S. Miller <davem@davemloft.net>
22459
22460 Avoiding opening same device multiple times in device iterator.
22461
22462 * kern/device.c: (grub_device_iterate): Define struct part_ent,
22463 and use it to build a list of partitions in iterate_disk() and
22464 iterate_partition().
22465
22466 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
22467 on disk->data.
22468
22469 * disk/ieee1275/nand.c (grub_nand_iterate): Return
22470 grub_devalias_iterate() result instead of unconditional 0.
22471 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
22472 Also, capture hook return value, either directly or via
22473 grub_children_iterate(), and propagate to caller.
22474 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
22475 grub_children_iterate): Return value is now 'int' instead of
22476 'grub_err_t'.
22477 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
22478 like a proper iterator, stopping when hooks return non-zero.
22479 (grub_devalias_iterate): Likewise.
22480
22481 2009-04-23 David S. Miller <davem@davemloft.net>
22482
22483 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
22484
22485 2009-04-22 David S. Miller <davem@davemloft.net>
22486
22487 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
22488 is larger than address_cells, use that value for address_cells too.
22489
22490 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
22491 IEEE1275_MAX_PATH_LEN): Define.
22492 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
22493 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
22494 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
22495 'devtype'. Explicitly NULL terminate devalias expansion.
22496
22497 * util/sparc64/ieee1275/misc.c: New file.
22498 * util/sparc64/ieee1275/grub-setup.c: New file.
22499 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
22500 * util/sparc64/ieee1275/grub-mkimage.c: New file.
22501 * util/sparc64/ieee1275/grub-install.in: New file.
22502 * util/ieee1275/ofpath.c: New file.
22503 * util/ieee1275/devicemap.c: New file.
22504 * util/devicemap.c: New file.
22505 * util/deviceiter.c: New file.
22506 * kern/sparc64/ieee1275/init.c: New file.
22507 * include/grub/util/ofpath.h: New file.
22508 * include/grub/util/deviceiter.h: New file.
22509 * util/grub-mkdevicemap.c: Include deviceiter.h.
22510 Implement using grub_util_emit_devicemap_entry and
22511 grub_util_iterate_devices.
22512 * conf/i386-corebook.rmk: Build util/deviceiter.c and
22513 util/devicemap.c into grub-mkdevicemap
22514 * conf/i386-efi.rmk: Likewise.
22515 * conf/i386-ieee1275.rmk: Likewise.
22516 * conf/i386-pc.rmk: Likewise.
22517 * conf/powerpc-ieee1275.rmk: Likewise.
22518 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
22519 images and installation utilities. Build kernel as image
22520 instead of as elf binary. Use common rules as much as possible.
22521
22522 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22523
22524 Correct GPT definition
22525
22526 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22527 of "attrib" member
22528
22529 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
22530
22531 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
22532
22533 2009-04-19 David S. Miller <davem@davemloft.net>
22534
22535 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
22536 (grub_rescue_cmd_linux): Rename to...
22537 (grub_cmd_linux): and fix prototype.
22538 (grub_rescue_cmd_initrd): Rename to...
22539 (grub_cmd_initrd): and fix prototype.
22540 (cmd_linux, cmd_initrd): New.
22541 (GRUB_MOD_INIT(linux)): Use grub_register_command().
22542 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
22543
22544 2009-04-17 Pavel Roskin <proski@gnu.org>
22545
22546 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
22547 format.
22548 (grub_ohci_transfer): Likewise.
22549
22550 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
22551
22552 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
22553 return without a value. Fix inconsistent indentation.
22554
22555 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
22556 match struct grub_fs.
22557
22558 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
22559 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
22560 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22561 * commands/lspci.c (grub_lspci_iter): Likewise.
22562
22563 2009-04-16 Bean <bean123ch@gmail.com>
22564
22565 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
22566 value.
22567
22568 2009-04-15 Pavel Roskin <proski@gnu.org>
22569
22570 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
22571 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
22572 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
22573 definitions.
22574
22575 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
22576
22577 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
22578 that no multiple data or metadata areas are supported and `Unknown
22579 metadata header'.
22580
22581 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 Move loader out of the kernel
22584
22585 * kern/loader.c: moved to ...
22586 * commands/boot.c: ... moved here
22587 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
22588 * commands/boot.c (grub_cmd_boot): moved here. All users updated
22589 * include/grub/kernel.h (grub_machine_fini): export
22590 * include/grub/loader.h (grub_loader_is_loaded): update declaration
22591 (grub_loader_set): likewise
22592 (grub_loader_unset): likewise
22593 (grub_loader_boot): likewise
22594 * conf/common.rmk: new module boot.mod
22595 (pkglib_MODULES): add boot.mod
22596 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
22597 (grub_emu_SOURCES): likewise
22598 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
22599 (grub_emu_SOURCES): likewise
22600 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
22601 (grub_emu_SOURCES): likewise
22602 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
22603 (grub_emu_SOURCES): likewise
22604 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
22605 (grub_emu_SOURCES): likewise
22606 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
22607 (grub_emu_SOURCES): likewise
22608 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
22609 (grub_emu_SOURCES): likewise
22610
22611 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22612
22613 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
22614
22615 * kern/misc.c (grub_itoa): Removed function
22616 (grub_ltoa): likewise
22617 (grub_vsprintf): use grub_lltoa
22618
22619 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 Restore grub-emu
22622
22623 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
22624 * conf/i386-coreboot.rmk: likewise
22625 * conf/i386-ieee1275.rmk: likewise
22626 * conf/powerpc-ieee1275.rmk: likewise
22627
22628 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
22629
22630 * INSTALL: Add that `./autogen.sh' needs to be run before
22631 `./configure.'.
22632
22633 2009-04-14 Bean <bean123ch@gmail.com>
22634
22635 * Makefile.in (pkglib_DATA): Add handler.lst.
22636 (handler.lst): New rule.
22637
22638 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
22639 * conf/i386-coreboot.rmk: Likewise.
22640 * conf/i386-ieee1275.rmk: Likewise.
22641 * conf/i386-efi.rmk: Likewise.
22642 * conf/x86_64-efi.rmk: Likewise.
22643 * conf/powerpc-ieee1275.rmk: Likewise.
22644 * conf/sparc64-ieee1275.rmk: Likewise.
22645
22646 * genhandlerlist.sh: New file.
22647
22648 * genmk.rb: Add rules to generate handler.lst.
22649
22650 * include/grub/normal.h (grub_file_getline): New function definition.
22651 (read_handler_list): Likewise.
22652 (free_handler_list): Likewise.
22653
22654 * include/grub/term.h (grub_term_register_input): Add name parameter
22655 for auto generation of handler.lst.
22656 (grub_term_register_output): Likewise.
22657
22658 * normal/handler.c: New file.
22659
22660 * normal/main.c (get_line): Renamed to grub_file_getline.
22661 (read_config_file): Use the newly renamed grub_file_getline.
22662 (read_command_list): Likewise.
22663 (read_fs_list): Likewise.
22664 (grub_normal_execute): Call read_handler_list to parse handler.lst.
22665 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
22666
22667 * term/efi/console.c (grub_console_init): Add name parameter for auto
22668 generation of handler.lst.
22669 * term/gfxterm.c: Likewise.
22670 * term/i386/pc/at_keyboard.c: Likewise.
22671 * term/i386/pc/console.c: Likewise.
22672 * term/i386/pc/serial.c: Likewise.
22673 * term/i386/pc/vesafb.c: Likewise.
22674 * term/i386/pc/vga.c: Likewise.
22675 * term/i386/pc/vga_text.c: Likewise.
22676 * term/ieee1275/ofconsole.c: Likewise.
22677 * term/usb_keyboard.c: Likewise.
22678
22679 2009-04-14 Bean <bean123ch@gmail.com>
22680
22681 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
22682 properly with null character.
22683
22684 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
22685
22686 * configure: Remove.
22687 * config.h.in: Likewise.
22688 * stamp-h.in: Likewise.
22689 * DISTLIST: Likewise.
22690 * conf/common.mk: Likewise.
22691 * conf/i386-coreboot.mk: Likewise.
22692 * conf/i386-efi.mk: Likewise.
22693 * conf/i386-ieee1275.mk: Likewise.
22694 * conf/i386.mk: Likewise.
22695 * conf/i386-pc.mk: Likewise.
22696 * conf/powerpc-ieee1275.mk: Likewise.
22697 * conf/sparc64-ieee1275.mk: Likewise.
22698 * conf/x86_64-efi.mk: Likewise.
22699
22700 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
22701 develop on GRUB.
22702
22703 2009-04-14 John Stanley <jpsinthemix@verizon.net>
22704 David S. Miller <davem@davemloft.net>
22705
22706 * util/hostdisk.c (make_device_name): Fix buffer length
22707 calculations.
22708
22709 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
22710
22711 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
22712 <sys/param.h> and <sys/sysctl.h>.
22713 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
22714 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
22715 opening the device and reset them afterwards.
22716
22717 2009-04-13 Pavel Roskin <proski@gnu.org>
22718
22719 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
22720 Reported by John Stanley <jpsinthemix@verizon.net>
22721
22722 2009-04-13 Robert Millan <rmh@aybabtu.com>
22723
22724 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
22725 that name for menuentries when appropriate.
22726
22727 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22728
22729 * util/grub.d/10_freebsd.in: Add a missing `fi'.
22730
22731 2009-04-13 Robert Millan <rmh@aybabtu.com>
22732
22733 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
22734 to Linux, simply abort telling the user it's no longer supported.
22735
22736 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22737
22738 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
22739 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
22740 `freebsd_loadenv' only when devices.hints exist.
22741
22742 2009-04-13 Pavel Roskin <proski@gnu.org>
22743
22744 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
22745
22746 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
22747
22748 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
22749 partition number.
22750 (grub_drive): Likewise.
22751
22752 2009-04-13 David S. Miller <davem@davemloft.net>
22753
22754 * kern/sparc64/ieee1275/ieee1275.c: New file.
22755 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
22756 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
22757 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
22758 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
22759 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
22760 grub_ieee1275_alloc_physmem): Declare new exported functions.
22761
22762 * include/grub/sparc64/ieee1275/loader.h: New file.
22763 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22764 * include/grub/sparc64/kernel.h: Likewise.
22765 * loader/sparc64/ieee1275/linux.c: Likewise.
22766
22767 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
22768 (grub_fstest_SOURCES): Likewise.
22769
22770 * util/hostdisk.c (make_device_name): Do not make any assumptions
22771 about the length of drive names.
22772
22773 * kern/dl.c (grub_dl_load_file): Close file immediately when
22774 we are done using it.
22775
22776 2009-04-12 David S. Miller <davem@davemloft.net>
22777
22778 * kern/misc.c (grub_ltoa): Fix cast when handling negative
22779 values. Noticed by Pavel Roskin.
22780
22781 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
22782 target compiler.
22783
22784 * genmk.rb: Add more flexible image type specification, also
22785 pass --strip-unneeded to objcopy.
22786 * conf/i386-pc.rmk: Use *_FORMAT.
22787 * conf/i386-pc.mk: Rebuilt.
22788
22789 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
22790 (OFDISK_HASH_SZ): Define.
22791 (ofdisk_hash): New hash table.
22792 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
22793 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
22794 instead of device phandle which is not unique.
22795
22796 * kern/sparc64/ieee1275/init.c: Delete, replace with...
22797 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
22798 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
22799 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
22800 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
22801 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
22802 GRUB_KERNEL_MACHINE_DATA_END): Define.
22803 (grub_kernel_image_size, grub_total_module_size): Declare.
22804
22805 2009-04-12 Pavel Roskin <proski@gnu.org>
22806
22807 * configure.ac: Change the logic when we check for target tools.
22808 Do it when the target is specified and it's different from the
22809 specified value of the host.
22810
22811 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
22812
22813 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
22814 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
22815 GNU/kFreeBSD. Check if a device is a character device. Use
22816 DIOCGMEDIASIZE to get the size.
22817 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
22818 support for GNU/kFreeBSD.
22819 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
22820 is a character device instead of a block device. Add support for
22821 FreeBSD device names.
22822
22823 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
22824 is a character device instead of a block device.
22825
22826 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
22827 is a character device instead of a block device.
22828
22829 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
22830
22831 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
22832 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
22833 FreeBSD. Check if a device is a character device. Use
22834 DIOCGMEDIASIZE to get the size.
22835 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
22836 support for FreeBSD.
22837 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
22838 is a character device instead of a block device. Add support for
22839 FreeBSD device names.
22840
22841 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
22842 a character device instead of a block device.
22843 (grub_util_check_char_device): New function.
22844
22845 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
22846 a character device instead of a block device.
22847
22848 * include/grub/util/getroot.h (grub_util_check_char_device): New
22849 prototype.
22850
22851 2009-04-11 David S. Miller <davem@davemloft.net>
22852
22853 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
22854 static libgcc.
22855 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
22856 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
22857 function, if present.
22858 (__bswapdi2): Likewise.
22859
22860 * include/grub/sparc64/ieee1275/boot.h: New file.
22861 * boot/sparc64/ieee1275/boot.S: Likewise.
22862 * boot/sparc64/ieee1275/diskboot.S: Likewise.
22863
22864 * kern/misc.c (grub_ltoa): New function.
22865 (grub_vsprintf): Use it to format 'long' integers.
22866
22867 2009-04-10 David S. Miller <davem@davemloft.net>
22868
22869 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
22870 slots are of type grub_ieee1275_cell_t.
22871 (grub_nand_read): Likewise.
22872 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
22873 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
22874 macros are used to compare values in arg/ret block of the call.
22875 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22876 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
22877 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
22878 grub_ieee1275_instance_to_path, grub_ieee1275_write,
22879 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
22880 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
22881 grub_ieee1275_close, grub_ieee1275_set_property,
22882 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
22883 grub_ieee1275_cell_t.
22884 * kern/ieee1275/openfw.c (grub_map): Likewise.
22885 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
22886 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
22887
22888 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
22889 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
22890 (grub_devalias_iterate): Likewise.
22891
22892 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22893
22894 UFS improvements
22895
22896 * fs/ufs.c (INODE_NBLOCKS): new definition
22897 (struct grub_ufs_dirent): added fields for non-BSD dirents
22898 (grub_ufs_get_file_block): fixed double indirect handling
22899 (grub_ufs_lookup_symlink): use more robust way to determine whether
22900 symlink is inline
22901 (grub_ufs_find_file): support for non-BSD dirents
22902 (grub_ufs_dir): support for non-BSD dirents
22903
22904 2009-04-10 Bean <bean123ch@gnail.com>
22905
22906 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
22907 attribute, otherwise the size would be wrong for i386 platform.
22908
22909 * include/grub/pci.h (grub_pci_read_word): New inline function.
22910 (grub_pci_read_byte): Likewise.
22911 (grub_pci_write): Likewise.
22912 (grub_pci_write_word): Likewise.
22913 (grub_pci_write_byte): Likewise.
22914
22915 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
22916
22917 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
22918 (find_framebuf): Scan pci to locate the frame buffer address.
22919
22920 * commands/efi/fixvideo.c: New file.
22921
22922 * commands/efi/loadbios.c: Likewise.
22923
22924 * commands/memrw.c: Likewise.
22925
22926 * util/grub-dumpbios.in: Likewise.
22927
22928 * conf/common.rmk (grub-dumpbios): New utility.
22929 (pkglib_MODULES): New module memrw.mod.
22930 (memrw_mod_SOURCE): New macro.
22931 (memrw_mod_CFLAGS): Likewise.
22932 (memrw_mod_LDFLAGS): Likewise.
22933
22934 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
22935 fixvideo.mod.
22936 (loadbios_mod_SOURCE): New macro.
22937 (loadbios_mod_CFLAGS): Likewise.
22938 (loadbios_mod_LDFLAGS): Likewise.
22939 (fixvideo_mod_SOURCE): Likewise.
22940 (fixvideo_mod_CFLAGS): Likewise.
22941 (fixvideo_mod_LDFLAGS): Likewise.
22942
22943 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
22944 fixvideo.mod.
22945 (loadbios_mod_SOURCE): New macro.
22946 (loadbios_mod_CFLAGS): Likewise.
22947 (loadbios_mod_LDFLAGS): Likewise.
22948 (fixvideo_mod_SOURCE): Likewise.
22949 (fixvideo_mod_CFLAGS): Likewise.
22950 (fixvideo_mod_LDFLAGS): Likewise.
22951
22952 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
22953
22954 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
22955
22956 2009-04-07 David S. Miller <davem@davemloft.net>
22957
22958 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
22959 support for R_SPARC_OLO10 relocations. Fix compile warning for
22960 R_SPARC_WDISP30 case.
22961 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
22962
22963 2009-04-06 Pavel Roskin <proski@gnu.org>
22964
22965 * include/grub/misc.h (ARRAY_SIZE): New macro.
22966 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
22967 New macro.
22968 * loader/i386/linux.c (allocate_pages): Use free_pages().
22969 (grub_linux_unload): Don't use free_pages().
22970 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
22971 wrong index. Treat all other modes as text modes.
22972 (grub_cmd_linux): Initialize vid_mode unconditionally to
22973 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
22974
22975 * commands/help.c (print_command_help): Use cmd->prio, not
22976 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
22977
22978 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 Parttool
22981
22982 * parttool/pcpart.c: new file
22983 * commands/parttool.c: likewise
22984 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
22985 (parttool_mod_SOURCES): new variable
22986 (parttool_mod_CFLAGS): likewise
22987 (parttool_mod_LDFLAGS): likewise
22988 (pcpart_mod_SOURCES): likewise
22989 (pcpart_mod_CFLAGS): likewise
22990 (pcpart_mod_LDFLAGS): likewise
22991 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
22992 and parttool/pcpart.c
22993 * conf/i386-efi.rmk: likewise
22994 * conf/i386-ieee1275.rmk: likewise
22995 * conf/i386-pc.rmk: likewise
22996 * conf/powerpc-ieee1275.rmk: likewise
22997 * conf/sparc64-ieee1275.rmk: likewise
22998 * conf/x86_64-ieee1275.rmk: likewise
22999
23000 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23001
23002 Support for mtime and further expandability of dir command
23003
23004 * include/grub/lib/datetime.h: moved to ...
23005 * include/grub/datetime.h: ... moved here and added
23006 declaration of grub_unixtime2datetime. All users updated
23007 * include/grub/fs.h: new syntax for dir and mtime functions in
23008 struct grub_fs
23009 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
23010 and GRUB_FSHELP_FLAGS_MASK
23011 * commands/ls.c (grub_ls_list_files): Write mtime in long format
23012 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
23013 (grub_ext2_mtime): new function
23014 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
23015 (grub_hfsplus_mtime): new function
23016 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
23017 (GRUB_UFS_ATTR_FILE): likewise
23018 (GRUB_UFS_ATTR_LNK): likewise
23019 (struct grub_ufs_sblock): new fields mtime
23020 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
23021 all users updated
23022 (grub_ufs_dir): mtime support
23023 (grub_ufs_mtime): new function
23024 * fs/affs.c (grub_affs_dir): use new dir syntax
23025 * fs/afs.c (grub_afs_dir): likewise
23026 * fs/cpio.c (grub_cpio_dir): likewise
23027 * fs/fat.c (grub_fat_find_dir): likewise
23028 * fs/hfs.c (grub_hfs_dir): likewise
23029 * fs/iso9660.c (grub_iso9660_dir): likewise
23030 * fs/jfs.c (grub_jfs_dir): likewise
23031 * fs/minix.c (grub_minix_dir): likewise
23032 * fs/ntfs.c (grub_ntfs_dir): likewise
23033 * fs/reiserfs.c (grub_reiserfs_dir): likewise
23034 * fs/sfs.c (grub_sfs_dir): likewise
23035 * fs/xfs.c (grub_xfs_dir): likewise
23036 * util/hostfs.c (grub_hostfs_dir): likewise
23037 * lib/datetime.c: moved to ...
23038 * normal/datetime.c: ... moved here
23039 (grub_unixtime2datetime): new function
23040 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
23041 * normal/completion.c (iterate_dir): use new dir syntax
23042 * normal/misc.c (grub_normal_print_device_info): tell the
23043 last modification time of a volume
23044 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
23045 * conf/common.rmk: added lib/datetime.c to ls.mod
23046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
23047 (normal_mod_SOURCES): likewise
23048 (datetime_mod_SOURCES): Removed lib/datetime.c
23049 * conf/i386-efi.rmk: likewise
23050 * conf/i386-ieee1275.rmk: likewise
23051 * conf/i386-pc.rmk: likewise
23052 * conf/powerpc-ieee1275.rmk: likewise
23053 * conf/sparc64-ieee1275.rmk: likewise
23054 * conf/x86_64-efi.rmk: likewise
23055
23056 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23057
23058 Trim trailing spaces in FAT label and support mtools-like labels
23059
23060 * fs/fat.c (grub_fat_iterate_dir): New function based
23061 on grub_fat_find_dir
23062 (grub_fat_find_dir): use grub_fat_iterate_dir
23063 (grub_fat_label): likewise
23064
23065 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23066
23067 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
23068 and command.h
23069 remove extraneous kernel_elf_HEADERS
23070
23071 2009-04-04 Bean <bean123ch@gnail.com>
23072
23073 * include/grub/util/misc.h: Add dummy function fsync for mingw.
23074
23075 * util/misc.c: Likewise.
23076
23077 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
23078
23079 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
23080 instead of grub_printf.
23081
23082 2009-04-03 Robert Millan <rmh@aybabtu.com>
23083
23084 * loader/i386/linux.c (grub_linux_setup_video): Fill
23085 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
23086 values from `mode info' structure instead of hardcoded
23087 values.
23088
23089 2009-04-01 Pavel Roskin <proski@gnu.org>
23090
23091 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
23092 unused now.
23093 * genmk.rb: Likewise.
23094 * configure.ac: Likewise.
23095
23096 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
23097
23098 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
23099 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
23100
23101 2009-04-01 David S. Miller <davem@davemloft.net>
23102
23103 * normal/sparc64/setjmp.S: Fix setjmp implementation.
23104 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
23105 (grub_setjmp): Mark with 'returns_twice' attribute.
23106 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
23107 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
23108 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
23109
23110 2009-04-01 Robert Millan <rmh@aybabtu.com>
23111
23112 Reapply fix from 2008-07-28 which was accidentally reverted; also
23113 perform the same fix to a similar check in same function.
23114
23115 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
23116 with the same number are found, just use issue a warning with
23117 grub_dprintf(), as this error has been reported to be non-fatal.
23118
23119 2009-03-31 Pavel Roskin <proski@gnu.org>
23120
23121 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
23122 for cross-compilation.
23123
23124 2009-03-30 Robert Millan <rmh@aybabtu.com>
23125
23126 Fix i386-ieee1275 build.
23127
23128 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
23129 Remove declaration.
23130
23131 2009-03-30 Pavel Roskin <proski@gnu.org>
23132
23133 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
23134 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
23135 zero-terminated, rely only on the strlen value. Fix comparison
23136 of strings differing in length.
23137
23138 2009-03-30 Robert Millan <rmh@aybabtu.com>
23139
23140 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
23141 checking for abi version. Improve error messages on BIOS to notify
23142 user about `linux16' command.
23143
23144 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
23145
23146 Leak fixes
23147
23148 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
23149 in case of collision
23150 * disk/scsi.c (grub_scsi_open): free scsi in case of error
23151
23152 2009-03-29 Robert Millan <rmh@aybabtu.com>
23153
23154 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
23155 set `vid_mode' accordingly.
23156 (grub_linux_boot): Process `vid_mode' and set video mode.
23157
23158 2009-03-29 Robert Millan <rmh@aybabtu.com>
23159
23160 * util/grub.d/10_linux.in (linux_entry): New function.
23161 Factorize generation of Linux boot entries.
23162
23163 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
23164
23165 Make the format of Environment Block plain text. The boot loader
23166 part is not tested well yet.
23167
23168 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
23169 (buffer): Removed.
23170 (envblk): Likewise.
23171 (usage): Remove "info" and "clear". Add "unset". Update the
23172 description of "set", as this does not delete variables any
23173 longer.
23174 (create_envblk_file): Complete rewrite.
23175 (open_envblk_file): Likewise.
23176 (cmd_info): Removed.
23177 (cmd_list): Likewise.
23178 (cmd_set): Likewise.
23179 (cmd_clear): Likewise.
23180 (list_variables): New function.
23181 (write_envblk): Likewise.
23182 (set_variables): Likewise.
23183 (unset_variables): Likewise.
23184 (main): Complete rewrite.
23185
23186 * commands/loadenv.c (buffer): Removed.
23187 (envblk): Likewise.
23188 (open_envblk_file): New function.
23189 (read_envblk_file): Complete rewrite.
23190 (grub_cmd_load_env): Likewise.
23191 (grub_cmd_list_env): Likewise.
23192 (struct blocklist): New struct.
23193 (free_blocklists): New function.
23194 (check_blocklists): Likewise.
23195 (write_blocklists): Likewise.
23196 (grub_cmd_save_env): Complete rewrite.
23197
23198 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
23199 a plain text signature.
23200 (GRUB_ENVBLK_MAXLEN): Removed.
23201 (struct grub_envblk): Complete rewrite.
23202 (grub_envblk_find): Removed.
23203 (grub_envblk_insert): Likewise.
23204 (grub_envblk_open): New prototype.
23205 (grub_envblk_set): Likewise.
23206 (grub_envblk_delete): Put const to VALUE.
23207 (grub_envblk_iterate): Put const to NAME and VALUE.
23208 (grub_envblk_close): New prototype.
23209 (grub_envblk_buffer): New inline function.
23210 (grub_envblk_size): Likewise.
23211
23212 * lib/envblk.c: Include grub/mm.h.
23213 (grub_env_find): Removed.
23214 (grub_envblk_open): New function.
23215 (grub_envblk_close): Likewise.
23216 (escaped_value_len): Likewise.
23217 (find_next_line): Likewise.
23218 (grub_envblk_insert): Removed.
23219 (grub_envblk_set): New function.
23220 (grub_envblk_delete): Complete rewrite.
23221 (grub_envblk_iterate): Likewise.
23222
23223 2009-03-28 Robert Millan <rmh@aybabtu.com>
23224
23225 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
23226 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
23227 variables. Use 16-bit loader.
23228 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
23229 loader.
23230 * kern/i386/loader.S (grub_linux_boot): Rename to ...
23231 (grub_linux16_boot): ... this. Update all users.
23232 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
23233 (grub_linux_boot): ... this. Update all users.
23234
23235 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
23236 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
23237 commands to `linux16' and `initrd16'.
23238 (GRUB_MOD_FINI(linux)): Rename to ...
23239 (GRUB_MOD_FINI(linux16)): ... this.
23240
23241 2009-03-24 Pavel Roskin <proski@gnu.org>
23242
23243 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
23244 not just for compilation.
23245
23246 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
23247
23248 Move multiboot helper out of kernel
23249
23250 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
23251 `loader/i386/multiboot_helper.S'.
23252 * conf/i386-coreboot.rmk: Likewise
23253 * conf/i386-ieee1275.rmk: Likewise
23254
23255 * kern/i386/loader.S: Move multiboot helpers from here...
23256 * loader/i386/multiboot_helper.S: ...moved here
23257 * include/grub/i386/loader.h: Move declarations of multiboot
23258 helpers from here...
23259 * include/grub/i386/multiboot.h: ...moved here
23260 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
23261
23262 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23263
23264 * kern/env.c (grub_env_context_open): Added an argument to specify
23265 whether a new context inherits exported variables from current
23266 one. This is useful when making a sandbox to interpret a config
23267 file.
23268 All callers updated.
23269
23270 * include/grub/env.h (grub_env_context_open): Updated the prototype.
23271
23272 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23273
23274 * kern/env.c (grub_env_context_close): Fix memory leaks.
23275
23276 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23277
23278 * normal/main.c (grub_normal_execute): Added an argument
23279 BATCH to specify if an interactive interface should be provided
23280 after reading a config file.
23281 All callers updated.
23282 (read_command_list): Prevent being executed twice.
23283 (read_fs_list): Likewise.
23284
23285 * include/grub/normal.h (grub_normal_execute): Updated the
23286 prototype.
23287
23288 2009-03-22 Pavel Roskin <proski@gno.org>
23289
23290 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
23291 _start.
23292 * kern/i386/pc/startup.S: Likewise.
23293 * kern/i386/efi/startup.S: Likewise.
23294 * kern/i386/ieee1275/startup.S: Likewise.
23295 * kern/i386/coreboot/startup.S: Likewise.
23296 * kern/x86_64/efi/startup.S: Likewise.
23297
23298 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
23299 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
23300 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
23301
23302 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 Bugfixes in multiboot for bugs uncovered by solaris kernel.
23305
23306 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
23307 limit detection.
23308 Use vaddr of correct segment for entry_point.
23309
23310 2009-03-21 Bean <bean123ch@gmail.com>
23311
23312 * commands/blocklist.c: Add include file <grub/command.h>, remove
23313 <grub/normal.h> and <grub/arg.h>.
23314 (grub_cmd_blocklist): Use the new command interface.
23315 (GRUB_MOD_INIT): Likewise.
23316 (GRUB_MOD_FINI): Likewise.
23317 * commands/boot.c: Likewise.
23318 * commands/cat.c: Likewise.
23319 * commands/cmp.c: Likewise.
23320 * commands/configfile.c: Likewise.
23321 * commands/crc.c: Likewise.
23322 * commands/echo.c: Likewise.
23323 * commands/halt.c: Likewise.
23324 * commands/handler.c: Likewise.
23325 * commands/hdparm.c: Likewise.
23326 * commands/help.c: Likewise.
23327 * commands/hexdump.c: Likewise.
23328 * commands/loadenv.c: Likewise.
23329 * commands/ls.c: Likewise.
23330 * commands/lsmmap.c: Likewise.
23331 * commands/lspci.c: Likewise.
23332 * commands/loadenv.c: Likewise.
23333 * commands/read.c: Likewise.
23334 * commands/reboot.c: Likewise.
23335 * commands/search.c: Likewise.
23336 * commands/sleep.c: Likewise.
23337 * commands/test.c: Likewise.
23338 * commands/usbtest.c: Likewise.
23339 * commands/videotest.c: Likewise.
23340 * commands/i386/cpuid.c: Likewise.
23341 * commands/i386/pc/halt.c: Likewise.
23342 * commands/i386/pc/play.c: Likewise.
23343 * commands/i386/pc/pxecmd.c: Likewise.
23344 * commands/i386/pc/vbeinfo.c: Likewise.
23345 * commands/i386/pc/vbetest.c: Likewise.
23346 * commands/ieee1275/suspend.c: Likewise.
23347 * disk/loopback.c: Likewise.
23348 * font/font_cmd.c: Likewise.
23349 * hello/hello.c: Likewise.
23350 * loader/efi/appleloader.c: Likewise.
23351 * loader/efi/chainloader.c: Likewise.
23352 * loader/i386/bsd.c: Likewise.
23353 * loader/i386/efi/linux.c: Likewise.
23354 * loader/i386/ieee1275/linux.c: Likewise.
23355 * loader/i386/linux.c: Likewise.
23356 * loader/i386/pc/chainloader.c: Likewise.
23357 * loader/i386/pc/linux.c: Likewise.
23358 * loader/powerpc/ieee1275/linux.c: Likewise.
23359 * loader/multiboot_loader.c: Likewise.
23360 * term/gfxterm.c: Likewise.
23361 * term/i386/pc/serial.c: Likewise.
23362 * term/terminfo.c: Likewise.
23363
23364 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
23365 * term/i386/pc/vga.c: Likewise.
23366 * video/readers/jpeg.c: Likewise.
23367 * video/readers/png.c: Likewise.
23368 * video/readers/tga.c: Likewise.
23369
23370 * util/grub-fstest (cmd_loopback): Removed.
23371 (cmd_blocklist): Likewise.
23372 (cmd_ls): Likewise.
23373 (grub_register_command): Likewise.
23374 (grub_unregister_command): Likewise.
23375 (execute_command): Use grub_command_find to locate command and execute
23376 it.
23377
23378 * include/grub/efi/chainloader.h: Removed.
23379 * loader/efi/chainloader_normal.c: Likewise.
23380 * loader/i386/bsd_normal.c: Likewise.
23381 * loader/i386/pc/chainloader_normal.c: Likewise.
23382 * loader/i386/pc/multiboot_normal.c: Likewise.
23383 * loader/linux_normal.c: Likewise.
23384 * loader/multiboot_loader_normal.c: Likewise.
23385 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23386
23387 * gencmdlist.sh: Scan new registration command grub_register_extcmd
23388 and grub_register_command_p1.
23389
23390 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
23391 kern/command.c, lib/arg.c and commands/extcmd.c.
23392 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
23393 (minicmd_mod_SOURCES): New variable.
23394 (minicmd_mod_CFLAGS): Likewise.
23395 (minicmd_mod_LDFLAGS): Likewise.
23396 (extcmd_mod_SOURCES): Likewise.
23397 (extcmd_mod_CFLAGS): Likewise.
23398 (extcmd_mod_LDFLAGS): Likewise.
23399 (boot_mod_SOURCES): Removed.
23400 (boot_mod_CFLAGS): Likewise.
23401 (boot_mod_LDFLAGS): Likewise.
23402
23403 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
23404 kern/corecmd.c.
23405 (kernel_img_HEADERS): Add command.h.
23406 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
23407 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
23408 and lib/arg.c.
23409 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
23410 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
23411 remove the corresponding normal mode command.
23412 (normal_mod_SOURCES): Remove normal/arg.c.
23413 * conf/i386-coreboot.rmk: Likewise.
23414 * conf/i386-efi.rmk: Likewise.
23415 * conf/i386-ieee1275.rmk: Likewise.
23416 * conf/powerpc-ieee1275.rmk: Likewise.
23417 * conf/x86_64-efi.rmk: Likewise.
23418
23419 * include/grub/arg.h: Move from here ...
23420 * include/grub/lib/arg.h: ... to here.
23421
23422 * normal/arg.c: Move from here ...
23423 * lib/arg.c: ... to here.
23424
23425 * commands/extcmd.c: New file.
23426 * commands/minicmd.c: Likewise.
23427 * include/grub/command.h: Likewise.
23428 * include/grub/extcmd.h: Likewise.
23429 * kern/command.c: Likewise.
23430 * kern/corecmd.c: Likewise.
23431
23432 * kern/list.c (grub_list_iterate): Return int instead of void.
23433 (grub_list_insert): New function.
23434 (grub_prio_list_insert): Likewise.
23435
23436 * kern/rescue.c (grub_rescue_command): Removed.
23437 (grub_rescue_command_list): Likewise.
23438 (grub_rescue_register_command): Likewise.
23439 (grub_rescue_unregister_command): Likewise.
23440 (grub_rescue_cmd_boot): Move to minicmd.c
23441 (grub_rescue_cmd_help): Likewise.
23442 (grub_rescue_cmd_info): Likewise.
23443 (grub_rescue_cmd_boot): Likewise.
23444 (grub_rescue_cmd_testload): Likewise.
23445 (grub_rescue_cmd_dump): Likewise.
23446 (grub_rescue_cmd_rmmod): Likewise.
23447 (grub_rescue_cmd_lsmod): Likewise.
23448 (grub_rescue_cmd_exit): Likewise.
23449 (grub_rescue_print_devices): Moved to corecmd.c.
23450 (grub_rescue_print_files): Likewise.
23451 (grub_rescue_cmd_ls): Likewise.
23452 (grub_rescue_cmd_insmod): Likewise.
23453 (grub_rescue_cmd_set): Likewise.
23454 (grub_rescue_cmd_unset): Likewise.
23455 (attempt_normal_mode): Use grub_command_find to get normal module.
23456 (grub_enter_rescue_mode): Use grub_register_core_commands to register
23457 commands, remove grub_rescue_register_command calls.
23458
23459 * normal/command.c (grub_register_command): Removed.
23460 (grub_unregister_command): Likewise.
23461 (grub_command_find): Likewise.
23462 (grub_iterate_commands): Likewise.
23463 (rescue_command): Likewise.
23464 (export_command): Moved to corecmd.c.
23465 (set_command): Removed.
23466 (unset_command): Likewise.
23467 (insmod_command): Likewise.
23468 (rmmod_command): Likewise.
23469 (lsmod_command): Likewise.
23470 (grub_command_init): Likewise.
23471
23472 * normal/completion.c (iterate_command): Use cmd->prio to check for
23473 active command.
23474 (complete_arguments): Use grub_extcmd_t structure to find options.
23475 (grub_normal_do_completion): Change function grub_iterate_commands to
23476 grub_command_iterate.
23477
23478 * normal/execute.c (grub_script_execute_cmd): No need to parse
23479 argument here.
23480
23481 * normal/main.c (grub_dyncmd_dispatcher): New function.
23482 (read_command_list): Register unload commands as dyncmd.
23483 (grub_cmd_normal): Use new command interface, register rescue,
23484 unregister normal at entry, register normal, unregister rescue at exit.
23485
23486 * include/grub/list.h (grub_list_test_t): New type.
23487 (grub_list_iterate): Return int instead of void.
23488 (grub_list_insert): New function.
23489 (GRUB_AS_NAMED_LIST_P): New macro.
23490 (GRUB_AS_PRIO_LIST): Likewise.
23491 (GRUB_AS_PRIO_LIST_P): Likewise.
23492 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
23493 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
23494 (grub_prio_list): New structure.
23495 (grub_prio_list_insert): New function.
23496 (grub_prio_list_remove): New inline function.
23497
23498 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
23499 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
23500 (GRUB_COMMAND_FLAG_MENU): Likewise.
23501 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23502 (GRUB_COMMAND_FLAG_TITLE): Likewise.
23503 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23504 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
23505 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
23506 (grub_command): Likewise.
23507 (grub_register_command): Likewise.
23508 (grub_command_find): Likewise.
23509 (grub_iterate_commands): Likewise.
23510 (grub_command_init): Likewise.
23511 (grub_arg_parse): Likewise.
23512 (grub_arg_show_help): Likewise.
23513
23514 * include/grub/rescue.h (grub_rescue_register_command): Removed.
23515 (grub_rescue_unregister_command): Likewise.
23516
23517 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
23518 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
23519 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
23520
23521 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
23522 grub_rescue_cmd_initrd.
23523 * include/grub/i386/loader.h: Likewise.
23524 * include/grub/x86_64/loader.h: Likewise.
23525
23526 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
23527
23528 2009-03-21 Bean <bean123ch@gmail.com>
23529
23530 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
23531 instead of stat in mingw environment.
23532
23533 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
23534
23535 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
23536
23537 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
23538 AC_CONFIG_LINKS.
23539
23540 2009-03-21 Bean <bean123ch@gmail.com>
23541
23542 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
23543 out of range error.
23544
23545 2009-03-18 Michel Dänzer <michel@daenzer.net>
23546
23547 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
23548 checking inode flags for EXT4_EXTENTS_FLAG.
23549
23550 2009-03-18 Robert Millan <rmh@aybabtu.com>
23551
23552 * loader/i386/linux.c: Include `<grub/video.h>' and
23553 `<grub/i386/pc/vbe.h>'..
23554 (grub_linux_setup_video): New function. Loosely based on the EFI one.
23555 (grub_linux32_boot): Attempt to configure video settings with
23556 grub_linux_setup_video().
23557 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
23558 to avoid grub_console_fini() which would step out of graphical mode
23559 unconditionally.
23560
23561 2009-03-14 Robert Millan <rmh@aybabtu.com>
23562
23563 Fix build on powerpc.
23564 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
23565
23566 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
23567
23568 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
23569 background image command.
23570
23571 2009-03-12 Colin D Bennett <colin@gibibit.com>
23572
23573 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
23574 (grub_gfxterm_putchar): Extract pairs of identical calls to
23575 draw_cursor out of conditional blocks.
23576
23577 2009-03-11 Pavel Roskin <proski@gnu.org>
23578
23579 * fs/hfs.c (grub_hfs_strncasecmp): New function.
23580 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
23581
23582 2009-03-11 Robert Millan <rmh@aybabtu.com>
23583
23584 * loader/i386/multiboot_elfxx.c
23585 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
23586
23587 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
23588
23589 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
23590 `kern/handler.c'.
23591
23592 2009-03-11 Robert Millan <rmh@aybabtu.com>
23593
23594 * loader/i386/multiboot.c (code_size): New variable.
23595 (grub_multiboot): Define offsets by adding to `code_size' rather
23596 than subtracting from `grub_multiboot_payload_size'. Provide
23597 4-byte alignment to MBI and others by increasing
23598 `boot_loader_name_length' appropriately.
23599
23600 * loader/i386/multiboot_elfxx.c
23601 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
23602
23603 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
23604
23605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
23606 `fs/ext2.c'.
23607
23608 2009-03-08 Robert Millan <rmh@aybabtu.com>
23609
23610 Make loader/i386/linux.c usable on i386-pc again.
23611
23612 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
23613 memory to heap.
23614 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
23615 `#error' stanza.
23616
23617 2009-03-07 Bean <bean123ch@gmail.com>
23618
23619 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
23620 allocation.
23621
23622 2009-03-06 Robert Millan <rmh@aybabtu.com>
23623
23624 Fix display issue on terminals with screen size other than 80x25
23625 (e.g. gfxterm with resolution higher than 640x480).
23626
23627 * normal/main.c (grub_normal_init_page): Display title text in a
23628 position relative to the center of the terminal instead of relying
23629 on a hardcoded offset.
23630
23631 2009-03-04 Robert Millan <rmh@aybabtu.com>
23632
23633 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
23634 installed.
23635
23636 * Makefile.in (host_kernel): New variable.
23637 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
23638 scripts instead of just the windows one.
23639 * configure.ac: Initialize and AC_SUBST `host_kernel'.
23640
23641 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23642
23643 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
23644 `kern/handler.c'.
23645 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23646 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23647 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23649 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23650 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23651
23652 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23653
23654 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
23655 or if there's no space for the disk label and print the partition number on a
23656 invalid magic.
23657
23658 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
23659
23660 * util/misc.c: Include <time.h>.
23661 (grub_millisleep): New function.
23662
23663 2009-03-04 Bean <bean123ch@gmail.com>
23664
23665 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
23666 another option -mno-red-zone.
23667
23668 * commands/handler.c: Change module description.
23669
23670 * kern/handler.c: Add missing space at the end of description line.
23671
23672 * kern/list.c: Likewise.
23673
23674 2009-03-03 Robert Millan <rmh@aybabtu.com>
23675
23676 Move more components to the relocation area, and fix mbi pointer
23677 handling to use the destination rather than the origin (thanks to
23678 Vladimir Serbinenko for spotting).
23679
23680 * loader/i386/multiboot.c (mbi_dest): New variable.
23681 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
23682 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
23683 relocation area.
23684
23685 2009-03-01 Bean <bean123ch@gmail.com>
23686
23687 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
23688 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
23689 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
23690 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
23691
23692 * loader/i386/efi/linux.c (acpi_guid): New variable.
23693 (acpi_guid): Likewise.
23694 (EBDA_SEG_ADDR): New constant.
23695 (LOW_MEM_ADDR): Likewise.
23696 (FAKE_EBDA_SEG): Likewise.
23697 (fake_bios_data): New function.
23698 (grub_linux_boot): Call fake_bios_data.
23699
23700 2009-03-01 Bean <bean123ch@gmail.com>
23701
23702 * commands/terminal.c: Removed.
23703
23704 * commands/handler.c: New file.
23705
23706 * include/grub/list.h: Likewise.
23707
23708 * include/grub/handler.h: Likewise.
23709
23710 * kern/list.c: Likewise.
23711
23712 * kern/handler.c: Likewise.
23713
23714 * kern/term.h: Include header file <grub/handler.h>.
23715 (grub_term_input): Move next field to the beginning.
23716 (grub_term_output): Likewise.
23717 (grub_term_input_class): New variable.
23718 (grub_term_output_class): Likewise.
23719 (grub_term_register_input): Changed to inline function.
23720 (grub_term_register_output): Likewise.
23721 (grub_term_unregister_input): Likewise.
23722 (grub_term_unregister_output): Likewise.
23723 (grub_term_set_current_input): Likewise.
23724 (grub_term_set_current_output): Likewise.
23725 (grub_term_get_current_input): Likewise.
23726 (grub_term_get_current_output): Likewise.
23727 (grub_term_iterate_input): Removed.
23728 (grub_term_iterate_output): Likewise.
23729
23730 * kern/term.c (grub_term_list_input): Removed.
23731 (grub_term_list_output): Likewise.
23732 (grub_term_input_class): New variable.
23733 (grub_term_output_class): Likewise.
23734 (grub_cur_term_input): Change variable as macro.
23735 (grub_cur_term_output): Likewise.
23736 (grub_term_register_input): Removed.
23737 (grub_term_register_output): Likewise.
23738 (grub_term_unregister_input): Likewise.
23739 (grub_term_unregister_output): Likewise.
23740 (grub_term_set_current_input): Likewise.
23741 (grub_term_set_current_output): Likewise.
23742 (grub_term_iterate_input): Likewise.
23743 (grub_term_iterate_output): Likewise.
23744 (grub_term_get_current_input): Likewise.
23745 (grub_term_get_current_output): Likewise.
23746
23747 * util/grub-editenv.c: Include header file <grub/handler.h>.
23748 (grub_term_get_current_input): Removed.
23749 (grub_term_get_current_output): Likewise.
23750 (grub_term_input_class): New variable.
23751 (grub_term_output_class): Likewise.
23752
23753 * util/grub-fstest.c (grub_term_get_current_input): Removed.
23754 (grub_term_get_current_output): Likewise.
23755 (grub_term_input_class): New variable.
23756 (grub_term_output_class): Likewise.
23757
23758 * util/grub-probe.c (grub_term_get_current_input): Removed.
23759 (grub_term_get_current_output): Likewise.
23760 (grub_term_input_class): New variable.
23761 (grub_term_output_class): Likewise.
23762
23763 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
23764 (grub_term_get_current_output): Likewise.
23765 (grub_term_input_class): New variable.
23766 (grub_term_output_class): Likewise.
23767
23768 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
23769 (terminal_mod_SOURCES): Likewise.
23770 (terminal_mod_CFLAGS): Likewise.
23771 (terminal_mod_LDFLAGS): Likewise.
23772
23773 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
23774 handler.c.
23775 (kernel_img_SOURCES): Add list.c and handler.c.
23776 (kernel_img_HEADERS): Add list.h and handler.h.
23777
23778 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23779 handler.c.
23780 (kernel_mod_SOURCES): Add list.c and handler.c.
23781 (kernel_mod_HEADERS): Add list.h and handler.h.
23782
23783 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
23784 handler.c.
23785 (kernel_elf_SOURCES): Add list.c and handler.c.
23786 (kernel_elf_HEADERS): Add list.h and handler.h.
23787
23788 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23789 handler.c.
23790 (kernel_elf_SOURCES): Add list.c and handler.c.
23791 (kernel_elf_HEADERS): Add list.h and handler.h.
23792
23793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23794 handler.c.
23795 (kernel_mod_SOURCES): Add list.c and handler.c.
23796 (kernel_mod_HEADERS): Add list.h and handler.h.
23797
23798 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23799 handler.c.
23800 (kernel_elf_SOURCES): Add list.c and handler.c.
23801 (kernel_elf_HEADERS): Add list.h and handler.h.
23802
23803 2009-02-27 Robert Millan <rmh@aybabtu.com>
23804
23805 Factorize elf32 / elf64 code in Multiboot loader. This will
23806 prevent it from getting out of sync again.
23807
23808 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
23809 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
23810 grub_multiboot_load_elf64): Move from here ...
23811 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
23812 grub_multiboot_load_elf): ... to here (new file).
23813
23814 2009-02-27 Robert Millan <rmh@aybabtu.com>
23815
23816 * util/grub.d/10_linux.in: Rename "single-user mode" to
23817 "recovery mode".
23818
23819 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 Don't leak in SCSI code.
23822 * disk/scsi.c (grub_scsi_close): free `scsi'.
23823
23824 2009-02-27 Robert Millan <rmh@aybabtu.com>
23825
23826 * loader/i386/pc/multiboot.c: Move from here ...
23827 * loader/i386/multiboot.c: ... to here. Update all users.
23828
23829 2009-02-27 Robert Millan <rmh@aybabtu.com>
23830
23831 Patch from Alexandre Bique <bique.alexandre@gmail.com>
23832 * util/i386/pc/grub-setup.c (setup): Fix directory path.
23833
23834 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
23835
23836 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
23837 b-tree.
23838
23839 2009-02-27 Robert Millan <rmh@aybabtu.com>
23840
23841 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
23842 `0x' qualifier as 0 when base is specified as parameter).
23843
23844 2009-02-24 Bean <bean123ch@gmail.com>
23845
23846 * configure.ac: Check for -mcmodel=large in x86_64 target.
23847
23848 * include/grub/efi/api.h (efi_call_10): New macro.
23849 (efi_wrap_10): New function.
23850
23851 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
23852 (GRUB_PE32_REL_BASED_HIGH): Likewise.
23853 (GRUB_PE32_REL_BASED_LOW): Likewise.
23854 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
23855 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
23856 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
23857 (GRUB_PE32_REL_BASED_SECTION): Likewise.
23858 (GRUB_PE32_REL_BASED_REL): Likewise.
23859 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
23860 (GRUB_PE32_REL_BASED_DIR64): Likewise.
23861 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
23862
23863 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
23864 issue.
23865
23866 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
23867 (efi_wrap_10): New function.
23868
23869 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
23870
23871 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
23872 MB/MBP model (NV chipset).
23873 (devdata_devs): Add devpath_5 to the list.
23874
23875 * load/i386/efi/linux.c (video_base): Remove variable.
23876 (RGB_MASK): New macro.
23877 (RGB_MAGIC): Likewise.
23878 (LINE_MIN): Likewise.
23879 (LINE_MAX): Likewise.
23880 (FBTEST_STEP): Likewise.
23881 (FBTEST_COUNT): Likewise.
23882 (fb_list): New variable.
23883 (grub_find_video_card): Remove function.
23884 (find_framebuf): New function.
23885 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
23886 line length.
23887
23888 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
23889 problem for x86_64.
23890
23891 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
23892
23893 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
23894
23895 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
23896 coding tool name.
23897
23898 2009-02-22 Robert Millan <rmh@aybabtu.com>
23899
23900 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
23901 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
23902 in our relocation, instead of using it directly from heap. Also
23903 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
23904
23905 2009-02-21 Robert Millan <rmh@aybabtu.com>
23906
23907 Implement USB keyboard support (based on patch by Marco Gerards)
23908
23909 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
23910 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
23911 (usb_keyboard_mod_LDFLAGS): New variables.
23912
23913 * term/usb_keyboard.c: New file.
23914
23915 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 Corrected wrong declaration
23918
23919 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
23920
23921 2009-02-14 Christian Franke <franke@computer.org>
23922
23923 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
23924 (grub_lspci_iter): Print class code and programming interface byte.
23925
23926 2009-02-14 Christian Franke <franke@computer.org>
23927
23928 * gendistlist.sh: Ignore `.svn' directories.
23929
23930 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
23931
23932 * fs/fat.c: Add 2009 to Copyright line.
23933
23934 2009-02-14 Christian Franke <franke@computer.org>
23935
23936 * commands/hdparm.c: New file. Provides `hdparm' command
23937 which sends ATA commands via grub_disk_ata_pass_through ().
23938
23939 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
23940
23941 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
23942 and <grub/cpu/io.h> to include/grub/ata.h.
23943 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
23944 (GRUB_CDROM_SECTOR_SIZE): Remove.
23945 (GRUB_ATA_*): Move to include/grub/ata.h.
23946 (GRUB_ATAPI_*): Likewise.
23947 (enum grub_ata_commands): Likewise.
23948 (enum grub_ata_timeout_milliseconds): Likewise.
23949 (struct grub_ata_device): Likewise.
23950 (grub_ata_regset): Likewise.
23951 (grub_ata_regget): Likewise.
23952 (grub_ata_regset2): Likewise.
23953 (grub_ata_regget2): Likewise.
23954 (grub_ata_check_ready): Likewise.
23955 (grub_ata_wait_not_busy): Remove static, exported in
23956 include/grub/ata.h.
23957 (grub_ata_wait_drq): Likewise.
23958 (grub_ata_pio_read): Likewise.
23959
23960 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
23961 function for hdparm.mod.
23962
23963 * include/grub/ata.h: New file, contains declarations from
23964 disk/ata.c.
23965 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
23966
23967 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
23968 (grub_disk_ata_pass_through): New exported variable.
23969
23970 * kern/disk.c (grub_disk_ata_pass_through): New variable.
23971
23972 2009-02-13 Colin D Bennett <colin@gibibit.com>
23973
23974 Support multiple fallback entries, and provide an API to support
23975 executing default+fallback menu entries. Renamed the `terminal' menu
23976 viewer to `text'.
23977
23978 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
23979 variable declaration.
23980 (grub_menu_execute_callback): New structure declaration.
23981 (grub_menu_execute_callback_t): New typedef.
23982 (grub_menu_execute_with_fallback): New function declaration.
23983 (grub_menu_get_entry): Likewise.
23984 (grub_menu_get_timeout): Likewise.
23985 (grub_menu_set_timeout): Likewise.
23986
23987 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
23988
23989 * normal/menu.c (grub_wait_after_message): Moved to
23990 `normal/menu_text.c'.
23991 (draw_border): Likewise.
23992 (print_message): Likewise.
23993 (print_entry): Likewise.
23994 (print_entries): Likewise.
23995 (grub_menu_init_page): Likewise.
23996 (get_entry_number): Likewise.
23997 (print_timeout): Likewise.
23998 (run_menu): Likewise.
23999 (grub_menu_execute_entry): Likewise.
24000 (show_text_menu): Likewise.
24001 (get_and_remove_first_entry_number): New function.
24002 (grub_menu_execute_with_fallback): Likewise.
24003 (get_entry): Renamed to ...
24004 (grub_menu_get_entry): .. this and made it global.
24005 (get_timeout): Renamed to ...
24006 (grub_menu_get_timeout): ... this and made it global.
24007 (set_timeout): Renamed to ...
24008 (grub_menu_set_timeout): ... this and made it global.
24009 (grub_normal_terminal_menu_viewer): Renamed to ...
24010 (grub_normal_text_menu_viewer): ... this.
24011
24012 * normal/menu_text.c: New file. Extracted text-menu-specific code
24013 from normal/menu.c.
24014
24015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
24016 (normal_mod_SOURCES): Likewise.
24017
24018 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24019 (normal_mod_SOURCES): Likewise.
24020
24021 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24022 (normal_mod_SOURCES): Likewise.
24023
24024 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
24025 (normal_mod_SOURCES): Likewise.
24026
24027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24028 (normal_mod_SOURCES): Likewise.
24029
24030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24031 (normal_mod_SOURCES): Likewise.
24032
24033 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24034 (normal_mod_SOURCES): Likewise.
24035
24036 2009-02-11 Robert Millan <rmh@aybabtu.com>
24037
24038 * util/grub.d/00_header.in: Update old reference to `font' command.
24039
24040 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
24041
24042 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
24043
24044 Based on patch from Javier Martín.
24045
24046 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24047
24048 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
24049 to avoid false positives with FAT.
24050 (grub_fstest_SOURCES): Likewise.
24051 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24052 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24053 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24054 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24055 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24056 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24057
24058 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24059
24060 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
24061 bpb.version_specific.fat12_or_fat16.fstype and
24062 bpb.version_specific.fat32.fstype.
24063
24064 2009-02-08 Robert Millan <rmh@aybabtu.com>
24065
24066 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
24067
24068 2009-02-08 Robert Millan <rmh@aybabtu.com>
24069
24070 * Makefile.in (host_os, host_cpu): New variables.
24071 (target_os): Remove. Update all users.
24072
24073 2009-02-08 Marco Gerards <marco@gnu.org>
24074
24075 * Makefile.in (enable_grub_emu_usb): New variable.
24076 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
24077 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
24078 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
24079 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
24080 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
24081 `usbtest.mod' and `usbms.mod'.
24082 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
24083 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
24084 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
24085 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
24086 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
24087 variables.
24088
24089 * disk/usbms.c: New file.
24090
24091 * include/grub/usb.h: Likewise.
24092
24093 * include/grub/usbtrans.h: Likewise.
24094
24095 * include/grub/usbdesc.h: Likewise.
24096
24097 * bus/usb/usbtrans.c: Likewise.
24098
24099 * bus/usb/ohci.c: Likewise.
24100
24101 * bus/usb/uhci.c: Likewise.
24102
24103 * bus/usb/usbhub.c: Likewise.
24104
24105 * bus/usb/usb.c: Likewise.
24106
24107 * commands/usbtest.c: Likewise.
24108
24109 * util/usb.c: Likewise.
24110
24111 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
24112
24113 * configure.ac: Test for libusb presence.
24114
24115 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
24116
24117 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
24118
24119 * kern/mm.c: Add more comments.
24120
24121 2009-02-08 Robert Millan <rmh@aybabtu.com>
24122
24123 Patch from Javier Martín.
24124 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
24125 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
24126
24127 2009-02-08 Robert Millan <rmh@aybabtu.com>
24128
24129 * fs/cpio.c: Split tar functionality to ...
24130 * fs/tar.c: ... here (new file). Update all users.
24131
24132 2009-02-07 Robert Millan <rmh@aybabtu.com>
24133
24134 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
24135 backward-incompatible features.
24136
24137 Based on patch from Javier Martín, with some adjustments.
24138
24139 2009-02-07 Michael Scherer <misc@mandriva.org>
24140
24141 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
24142
24143 2009-02-07 Robert Millan <rmh@aybabtu.com>
24144
24145 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
24146 position of `disk/lvm.c' to ensure grub_init_all() always picks it
24147 after the RAID stuff.
24148
24149 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
24150
24151 Fixes problem when running vbetest command as reported by
24152 Vladimir Serbinenko <phcoder@gmail.com>.
24153
24154 * (grub_vbe_set_video_mode): Fixed problem with text modes.
24155
24156 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
24157
24158 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
24159 /dev/md/NpN style mdraid devices.
24160
24161 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24162
24163 * util/unifont2pff.rb: Remove.
24164
24165 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24166
24167 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
24168 `#'.
24169
24170 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24171
24172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
24173 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24174 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24175 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24177 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24178 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24179
24180 2009-02-02 Christian Franke <franke@computer.org>
24181
24182 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
24183
24184 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
24185
24186 * INSTALL: Note that we now require at least autoconf 2.59 and
24187 that LZO is optional.
24188
24189 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24190
24191 Base on patch on bug #24154 created by Tomas Tintera
24192 <trosos@seznam.cz>.
24193
24194 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
24195
24196 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24197
24198 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
24199 <bero@arklinux.org>.
24200
24201 * normal/parser.y (script_init): Add missing semicolon.
24202
24203 2009-01-31 Colin D Bennett <colin@gibibit.com>
24204
24205 * normal/main.c: Add include to grub/menu_viewer.h.
24206 (free_menu_entry_classes): Added.
24207 (grub_normal_menu_addentry): Added class property handling.
24208 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
24209 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
24210
24211 * normal/menu_viewer.c: New file.
24212
24213 * normal/menu.c (run_menu_entry): Renamed to ...
24214 (grub_menu_execute_entry): ... this and made it as global.
24215 (grub_menu_run): Renamed to ...
24216 (show_text_menu): ... this and made it local.
24217 (show_text_menu): Adapt to new function names.
24218 (grub_normal_terminal_menu_viewer): New global variable.
24219
24220 * include/grub/menu.h: New file.
24221
24222 * include/grub/menu_viewer.h: New file.
24223
24224 * include/grub/normal.h: Added include to grub/menu.h.
24225 (grub_menu_entry): Moved to include/grub/menu.h.
24226 (grub_menu_entry_t): Likewise.
24227 (grub_menu): Likewise.
24228 (grub_menu_t): Likewise.
24229 (grub_normal_terminal_menu_viewer): Added.
24230 (grub_menu_execute_entry): Likewise.
24231 (grub_menu_run): Removed.
24232
24233 * DISTLIST: Added include/grub/menu.h.
24234 Added include/grub/menu_viewer.h.
24235 Added normal/menu_viewer.c.
24236
24237 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
24238
24239 * normal/execute.c (grub_script_execute_menuentry): Changed to use
24240 arglist for menutitle arguments.
24241
24242 * normal/main.c (grub_normal_menu_addentry): Likewise.
24243
24244 * normal/parser.y (menuentry): Likewise.
24245
24246 * normal/script.c (grub_script_create_cmdmenu): Likewise.
24247
24248 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
24249 (grub_script_create_cmdmenu): Likewise.
24250
24251 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
24252
24253 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
24254 changes.
24255
24256 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
24257
24258 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
24259
24260 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
24261
24262 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24263
24264 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24265
24266 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24267
24268 2009-01-30 Christian Franke <franke@computer.org>
24269
24270 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
24271 in option help text.
24272
24273 2009-01-27 Pavel Roskin <proski@gnu.org>
24274
24275 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
24276
24277 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24278
24279 * commands/lsmmap.c: Add include to grub/machine/memory.h.
24280
24281 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
24282
24283 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
24284 unregister function.
24285
24286 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24287
24288 * disk/scsi.c (grub_scsi_read): Fix sign problem.
24289
24290 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
24291
24292 * util/grub-mkfont.c (usage): Fix typo.
24293
24294 * util/elf/grub-mkimage.c (load_modules): Fix warning.
24295
24296 2009-01-26 Daniel Mierswa <impulze@impulze.org>
24297
24298 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
24299
24300 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
24301
24302 * kern/misc.c (grub_strcasecmp): New function.
24303 (grub_strcasecmp): Use grub_size_t instead of int for length.
24304 Fix return value.
24305 * include/grub/misc.h: Update function prototypes.
24306
24307 2009-01-26 Robert Millan <rmh@aybabtu.com>
24308
24309 * configure.ac: Fix cross-compilation check.
24310
24311 2009-01-22 Christian Franke <franke@computer.org>
24312
24313 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
24314 (precision) digit string. Allow `.format2' without `format1' (width).
24315 Limit input chars for `%s' output to `format2' if specified. This is
24316 compatible with standard printf ().
24317
24318 2009-01-22 Christian Franke <franke@computer.org>
24319
24320 * disk/ata.c (grub_ata_wait_status): Replace by ...
24321 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
24322 other status bits may be invalid while BSY is asserted.
24323 (grub_ata_check_ready): New function.
24324 (grub_ata_cmd): Removed.
24325 (grub_ata_wait_drq): New function.
24326 (grub_ata_strncpy): Remove inline.
24327 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
24328 and error check now done by grub_ata_wait_drq ().
24329 (grub_ata_pio_write): Likewise.
24330 (grub_atapi_identify): Set DEV before check for !BSY. Use
24331 grub_ata_wait_drq () to wait for data.
24332 (grub_ata_device_initialize): Add status register check to
24333 detect missing SATA slave devices. Add debug messages.
24334 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
24335 (grub_atapi_packet): Set DEV before check for !BSY. Replace
24336 transfer loop by grub_ata_pio_write ().
24337 (grub_ata_identify): Set DEV before check for !BSY. Use
24338 grub_ata_wait_drq () to wait for data.
24339 (grub_ata_setaddress): Set DEV before check for !BSY.
24340 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
24341 read/write in one loop. Fix invalid command on write. Fix incomplete
24342 command on (size % batch) == 0. Add missing error check after write of
24343 last block. Add debug messages.
24344 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
24345
24346 2009-01-19 Christian Franke <franke@computer.org>
24347
24348 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
24349 (GRUB_ATAPI_IREASON_*): Likewise.
24350 (grub_ata_pio_write): Fix timeout error return.
24351 (grub_atapi_identify): Add grub_ata_wait () after cmd.
24352 (grub_atapi_wait_drq): New function.
24353 (grub_atapi_packet): New parameter `size'.
24354 Use grub_atapi_wait_drq () and direct write instead of
24355 grub_ata_pio_write ().
24356 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
24357 reads the number of bytes requested by the device for each DRQ
24358 assertion.
24359 (grub_atapi_write): Remove old implementation, return not
24360 implemented instead.
24361
24362 2009-01-19 Christian Franke <franke@computer.org>
24363
24364 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
24365 of 512 to calculate data size.
24366 (grub_scsi_read12): Likewise.
24367 (grub_scsi_write10): Likewise.
24368 (grub_scsi_write12): Likewise.
24369 (grub_scsi_read): Adjust size according to blocksize.
24370 Add checks for invalid blocksize and unaligned transfer.
24371
24372 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
24373
24374 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
24375
24376 * term/gfxterm.c (write_char): Fix background rendering for wide
24377 width glyphs.
24378
24379 2009-01-19 Robert Millan <rmh@aybabtu.com>
24380
24381 * config.guess: Update to latest version from config git.
24382 * config.sub: Likewise.
24383
24384 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
24385
24386 * Makefile.in: Change font compilation to use new grub-mkfont instead
24387 of java version.
24388
24389 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
24390 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24391 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24392 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24393 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24394 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24395 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24396 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24397 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24398
24399 2009-01-16 Christian Franke <franke@computer.org>
24400
24401 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
24402 (enum grub_ata_timeout_milliseconds): New enum.
24403 (grub_ata_wait_status): Add parameter milliseconds.
24404 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
24405 recovery from timed-out commands.
24406 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
24407 return grub_errno instead of REG_ERROR.
24408 (grub_ata_pio_write): Add parameter milliseconds.
24409 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
24410 Pass milliseconds to grub_ata_wait_status () and
24411 grub_ata_pio_read ().
24412 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
24413 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
24414 grub_ata_wait_status (). Fix IDENTIFY timeout check.
24415 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
24416 It is not suitable for device detection, because DEV bit is ignored,
24417 the command may run too long, and not all devices set the signature
24418 properly.
24419 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
24420 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
24421 Fix device selection, DEV bit must be set first to address the registers
24422 of the correct device.
24423 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
24424 grub_ata_pio_read/write ().
24425 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
24426 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
24427
24428 2009-01-13 Carles Pina i Estany <carles@pina.cat>
24429
24430 * util/grub-editenv.c (main): Use fseeko(), not fseek().
24431
24432 2009-01-13 Bean <bean123ch@gmail.com>
24433
24434 * util/grub-mkfont.c (write_font): forget to remove some debug code.
24435
24436 2009-01-13 Bean <bean123ch@gmail.com>
24437
24438 * Makefile.in: (enable_grub_mkfont): New variable.
24439 (freetype_cflags): Likewise.
24440 (freetype_libs): Likewise.
24441
24442 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
24443 (grub_mkfont_SOURCES): New variable.
24444 (grub_mkfont_CFLAGS): Likewise.
24445 (grub_mkfont_LDFLAGS): Likewise.
24446
24447 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
24448 library if `--enable-grub-mkfont' is requested.
24449 (enable_grub_mkfont): New variable.
24450 (freetype_cflags): Likewise.
24451 (freetype_libs): Likewise.
24452
24453 * util/grub-mkfont.c: New file.
24454
24455 2009-01-12 Christian Franke <franke@computer.org>
24456
24457 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
24458 mode check. Fix setting of compat_use[].
24459
24460 2009-01-10 Robert Millan <rmh@aybabtu.com>
24461
24462 Update a few copyright years which we forgot to do in 2008 (only for
24463 files whose changes made in 2008 were copyright-significant)
24464
24465 * Makefile.in: Add 2008 to Copyright line.
24466 * disk/ieee1275/ofdisk.c: Likewise.
24467 * disk/efi/efidisk.c: Likewise.
24468 * kern/dl.c: Likewise.
24469 * kern/sparc64/ieee1275/init.c: Likewise.
24470 * kern/mm.c: Likewise.
24471 * kern/efi/mm.c: Likewise.
24472 * boot/i386/pc/boot.S: Likewise.
24473 * genfslist.sh: Likewise.
24474 * fs/iso9660.c: Likewise.
24475 * fs/hfs.c: Likewise.
24476 * fs/jfs.c: Likewise.
24477 * fs/minix.c: Likewise.
24478 * fs/ufs.c: Likewise.
24479 * gensymlist.sh.in: Likewise.
24480 * genkernsyms.sh.in: Likewise.
24481 * include/grub/misc.h: Likewise.
24482 * include/grub/types.h: Likewise.
24483 * include/grub/symbol.h: Likewise.
24484 * include/grub/elf.h: Likewise.
24485 * include/grub/kernel.h: Likewise.
24486 * include/grub/disk.h: Likewise.
24487 * include/grub/dl.h: Likewise.
24488 * include/grub/i386/linux.h: Likewise.
24489 * include/grub/i386/pc/biosdisk.h: Likewise.
24490 * include/grub/efi/api.h: Likewise.
24491 * include/grub/efi/pe32.h: Likewise.
24492 * include/grub/util/misc.h: Likewise.
24493 * normal/execute.c: Likewise.
24494 * normal/arg.c: Likewise.
24495 * normal/completion.c: Likewise.
24496 * normal/lexer.c: Likewise.
24497 * normal/parser.y: Likewise.
24498 * normal/misc.c: Likewise.
24499 * commands/i386/pc/vbeinfo.c: Likewise.
24500 * commands/hexdump.c: Likewise.
24501 * commands/terminal.c: Likewise.
24502 * commands/ls.c: Likewise.
24503 * commands/help.c: Likewise.
24504 * partmap/pc.c: Likewise.
24505 * loader/efi/chainloader.c: Likewise.
24506 * loader/multiboot_loader.c: Likewise.
24507 * loader/i386/pc/multiboot2.c: Likewise.
24508 * term/efi/console.c: Likewise.
24509 * term/i386/pc/serial.c: Likewise.
24510 * util/lvm.c: Likewise.
24511 * util/console.c: Likewise.
24512 * util/i386/efi/grub-mkimage.c: Likewise.
24513 * util/raid.c: Likewise.
24514
24515 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
24516
24517 * commands/videotest.c: Removed include to grub/machine/memory.h.
24518
24519 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
24520 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
24521 (video_mod_SOURCES): Removed.
24522 (video_mod_CFLAGS): Likewise.
24523 (video_mod_LDFLAGS): Likewise.
24524 (gfxterm_mod_SOURCES): Likewise.
24525 (gfxterm_mod_CFLAGS): Likewise.
24526 (gfxterm_mod_LDFLAGS): Likewise.
24527 (videotest_mod_SOURCES): Likewise.
24528 (videotest_mod_CFLAGS): Likewise.
24529 (videotest_mod_LDFLAGS): Likewise.
24530 (bitmap_mod_SOURCES): Likewise.
24531 (bitmap_mod_CFLAGS): Likewise.
24532 (bitmap_mod_LDFLAGS): Likewise.
24533 (tga_mod_SOURCES): Likewise.
24534 (tga_mod_CFLAGS): Likewise.
24535 (tga_mod_LDFLAGS): Likewise.
24536 (jpeg_mod_SOURCES): Likewise.
24537 (jpeg_mod_CFLAGS): Likewise.
24538 (jpeg_mod_LDFLAGS): Likewise.
24539 (png_mod_SOURCES): Likewise.
24540 (png_mod_CFLAGS): Likewise.
24541 (png_mod_LDFLAGS): Likewise.
24542
24543 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
24544 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
24545 (video_mod_SOURCES): Added.
24546 (video_mod_CFLAGS): Likewise.
24547 (video_mod_LDFLAGS): Likewise.
24548 (videotest_mod_SOURCES): Likewise.
24549 (videotest_mod_CFLAGS): Likewise.
24550 (videotest_mod_LDFLAGS): Likewise.
24551 (bitmap_mod_SOURCES): Likewise.
24552 (bitmap_mod_CFLAGS): Likewise.
24553 (bitmap_mod_LDFLAGS): Likewise.
24554 (tga_mod_SOURCES): Likewise.
24555 (tga_mod_CFLAGS): Likewise.
24556 (tga_mod_LDFLAGS): Likewise.
24557 (jpeg_mod_SOURCES): Likewise.
24558 (jpeg_mod_CFLAGS): Likewise.
24559 (jpeg_mod_LDFLAGS): Likewise.
24560 (png_mod_SOURCES): Likewise.
24561 (png_mod_CFLAGS): Likewise.
24562 (png_mod_LDFLAGS): Likewise.
24563 (gfxterm_mod_SOURCES): Likewise.
24564 (gfxterm_mod_CFLAGS): Likewise.
24565 (gfxterm_mod_LDFLAGS): Likewise.
24566
24567 * term/gfxterm.c: Removed include to grub/machine/memory.h,
24568 grub/machine/console.h.
24569
24570 2009-01-04 Jerone Young <jerone@gmail.com>
24571
24572 Make on screen instructions clearer
24573
24574 Based on patch created by Jidanni <jidanni@jidanni.org>
24575
24576 * normal/menu.c: print clearer instructions on the screen
24577
24578 2009-01-02 Colin D Bennett <colin@gibibit.com>
24579
24580 New font engine.
24581
24582 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
24583 build system and fixed gfxterm.c to work with different sized fonts.
24584
24585 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
24586
24587 * configure: Re-generated.
24588
24589 * DISTLIST: Removed font/manager.c.
24590 Added font/font.c.
24591 Added font/font_cmd.c.
24592
24593 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
24594 compilation.
24595
24596 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
24597
24598 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
24599
24600 * kern/term.c: Changed users of grub_utf8_to_ucs4.
24601
24602 * normal/menu.c: Likewise.
24603
24604 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
24605 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
24606
24607 * include/grub/font.h: Replaced with new file.
24608
24609 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
24610 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
24611 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
24612 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
24613 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
24614 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
24615 fg_red, fg_green, fg_blue, fg_alpha.
24616 (grub_video_adapter): Removed blit_glyph.
24617 (grub_video_blit_glyph): Removed.
24618
24619 * font/manager.c: Removed file.
24620
24621 * font/font.c: New file.
24622
24623 * font/font_cmd.c: Likewise.
24624
24625 * video/video.c (grub_video_blit_glyph): Removed.
24626
24627 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
24628 (grub_video_vbe_map_rgba): Likewise.
24629 (grub_video_vbe_unmap_color_int): Likewise.
24630 (grub_video_vbe_blit_glyph): Removed.
24631 (grub_video_vbe_adapter): Removed blit_glyph.
24632
24633 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
24634 (get_pixel): Likewise.
24635 (set_pixel): Likewise.
24636
24637 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
24638
24639 * term/gfxterm.c: Adapted to new font engine.
24640
24641 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
24642
24643 * term/i386/pc/vga.c: Likewise.
24644
24645 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
24646
24647 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24648
24649 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24650
24651 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24652
24653 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24654
24655 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24656
24657 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24658
24659 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24660
24661 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24662
24663 * util/grub.d/00_header.in: Changed to use new loadfont command.
24664
24665 * util/grub-mkconfig_lib.in: Changed font extension.
24666
24667 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
24668
24669 * util/getroot.c (grub_util_get_grub_dev): Add support for
24670 /dev/md/dNNpNN style partitionable mdraid devices.
24671
24672 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
24673
24674 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
24675 at a time limit of the PXE TFTP API correctly.
24676 (grub_pxefs_close): Likewise.
24677
24678 2008-11-29 Robert Millan <rmh@aybabtu.com>
24679
24680 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
24681 grub_ata_device_initialize() calls.
24682
24683 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
24684
24685 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
24686 iteration failed.
24687 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
24688
24689 2008-11-28 Robert Millan <rmh@aybabtu.com>
24690
24691 Fix build on powerpc-ieee1275. Based on patch created by
24692 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
24693 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24694 `kern/ieee1275/mmap.c'.
24695 * include/grub/powerpc/ieee1275/memory.h: New file.
24696
24697 Provide grub-install on coreboot.
24698 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
24699 (grub_install_SOURCES): New variable.
24700 * util/i386/pc/grub-install.in: Add a few condition checks to make it
24701 usable on coreboot.
24702
24703 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
24704
24705 * util/grub-fstest.c (grub_term_get_current_input): Change return type
24706 to `grub_term_input_t'.
24707 (grub_term_get_current_output): Change return type to
24708 `grub_term_output_t'.
24709
24710 2008-11-22 Robert Millan <rmh@aybabtu.com>
24711
24712 Fix breakage on coreboot due to declaration mismatch.
24713 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
24714 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
24715 grub_vga_text_cls().
24716
24717 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
24718 comments. Avoid copying one more byte than necessary (just in case).
24719
24720 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
24721 to 0x200000 (avoids trouble with some OFW implementations, and matches
24722 with the one in Yaboot).
24723 Reported by Manoel Abranches
24724
24725 2008-11-20 Robert Millan <rmh@aybabtu.com>
24726
24727 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
24728 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
24729
24730 * util/grub-mkconfig_lib.in (grub_warn): New function.
24731 (convert_system_path_to_grub_path): Use grub_warn() when issuing
24732 warnings, to obtain consistent formatting.
24733 * util/grub.d/00_header.in: Likewise.
24734 * util/update-grub_lib.in: Likewise.
24735
24736 * loader/i386/linux.c (allocate_pages): Fix a warning.
24737 Move comment text to `#error' stanza.
24738
24739 Harmonize ieee1275's grub_available_iterate() with the generic
24740 grub_machine_mmap_iterate() interface (fixes a recently-introduced
24741 build problem on i386-ieee1275):
24742 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
24743 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
24744 parameter `type'. Update all users of this function.
24745 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24746 `kern/ieee1275/mmap.c'.
24747 * kern/ieee1275/init.c
24748 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
24749 with ...
24750 (grub_machine_mmap_iterate): ... this.
24751 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
24752 return type to `grub_err_t'. Update all implementations of this
24753 function prototype.
24754 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
24755 Likewise.
24756
24757 Add `lsmmap' command (lists firmware-provided memory map):
24758 * commands/lsmmap.c: New file.
24759 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
24760 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
24761 variables.
24762 * conf/powerpc-ieee1275.rmk: Likewise.
24763 * conf/i386-coreboot.rmk: Likewise.
24764 * conf/i386-ieee1275.rmk: Likewise.
24765
24766 2008-11-19 Robert Millan <rmh@aybabtu.com>
24767
24768 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
24769 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
24770 constraints to initrd allocation (based on code from
24771 loader/i386/pc/linux.c). Without them, initrd was allocated too high
24772 for Linux to find it.
24773
24774 2008-11-14 Robert Millan <rmh@aybabtu.com>
24775
24776 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
24777 order to cope with duplicate slashes.
24778
24779 2008-11-14 Robert Millan <rmh@aybabtu.com>
24780
24781 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
24782 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
24783 don't want to mess with lower memory, because it is used in the Linux
24784 loader.
24785
24786 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
24787 an appropriate place in lower memory, between 0x10000 and 0x90000,
24788 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
24789 is in our heap (probably as a result of it being corrupted during
24790 decompression). Add #error instance with comment to explain why this
24791 loader isn't currently usable on PC/BIOS.
24792
24793 2008-11-14 Robert Millan <rmh@aybabtu.com>
24794
24795 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
24796 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
24797
24798 2008-11-12 Robert Millan <rmh@aybabtu.com>
24799
24800 Make loader/i386/linux.c buildable on i386-pc (although disabled).
24801
24802 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
24803 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
24804 from here ...
24805 * include/grub/i386/pc/memory.h: ... to here.
24806
24807 2008-11-12 Robert Millan <rmh@aybabtu.com>
24808
24809 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
24810 split).
24811
24812 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
24813 (grub_console_cur_color, grub_console_real_putchar)
24814 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24815 (grub_console_setcolorstate, grub_console_setcolor)
24816 (grub_console_getcolor): Move from here ...
24817 * include/grub/i386/vga_common.h: ... to here (new file).
24818
24819 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
24820 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
24821 `<grub/i386/io.h>'.
24822 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
24823 `<grub/i386/vga_common.h>'.
24824
24825 2008-11-12 Robert Millan <rmh@aybabtu.com>
24826
24827 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
24828 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
24829 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
24830 variables.
24831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24832 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
24833
24834 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
24835 grub_console_init() with call to grub_vga_text_init().
24836 (grub_machine_fini): Replace call to
24837 grub_console_fini() with call to grub_vga_text_fini() and
24838 grub_at_keyboard_fini().
24839
24840 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
24841 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24842 (grub_console_setcolorstate, grub_console_setcolor)
24843 (grub_console_getcolor): New function prototypes.
24844
24845 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
24846 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
24847 (grub_vga_text_setcursor): Static-ize.
24848 (grub_vga_text_term): New structure.
24849 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
24850
24851 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
24852 (grub_console_cur_color, grub_console_standard_color)
24853 (grub_console_normal_color, grub_console_highlight_color)
24854 (map_char, grub_console_putchar, grub_console_getcharwidth)
24855 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
24856 (grub_console_getcolor): Move from here ...
24857 * term/i386/vga_common.c: ... to here (same function names).
24858
24859 2008-11-12 Robert Millan <rmh@aybabtu.com>
24860
24861 Use newly-added Multiboot support in coreboot.
24862
24863 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24864 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
24865
24866 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
24867 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
24868 (codestart): Store the MBI in `startup_multiboot_info' when we're
24869 being loaded using Multiboot.
24870
24871 * kern/i386/coreboot/init.c (grub_machine_init): Move
24872 grub_at_keyboard_init() call to beginning of function (useful for
24873 debugging). Call grub_machine_mmap_init() before attempting to use
24874 grub_machine_mmap_iterate().
24875 (grub_lower_mem, grub_upper_mem): Move from here ...
24876 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
24877 here (new file).
24878
24879 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
24880 function prototype.
24881
24882 2008-11-12 Robert Millan <rmh@aybabtu.com>
24883
24884 Fix a regression introduced by the at_keyboard.mod split. Because
24885 some terminals are default on some platforms and non-default on
24886 others, the first terminal being registered determines which is
24887 going to be default.
24888
24889 * kern/term.c (grub_term_register_input): If this is the first
24890 terminal being registered, set it as the current one.
24891 (grub_term_register_output): Likewise.
24892
24893 * term/efi/console.c (grub_console_init): Do not call
24894 grub_term_set_current_output() or grub_term_set_current_input().
24895 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
24896 * term/i386/pc/console.c (grub_console_init): Likewise.
24897 (grub_console_fini): Do not call grub_term_set_current_input()
24898 (but leave grub_term_set_current_output() to restore text mode).
24899
24900 2008-11-10 Robert Millan <rmh@aybabtu.com>
24901
24902 * util/grub.d/00_header.in: Add backward compatibility check for
24903 versions of terminal.mod that don't understand `terminal_input' or
24904 `terminal_output'.
24905
24906 2008-11-09 Robert Millan <rmh@aybabtu.com>
24907
24908 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
24909 `terminal_input' / `terminal_output', not `terminal'.
24910
24911 2008-11-08 Robert Millan <rmh@aybabtu.com>
24912
24913 * Makefile.in (include_DATA): Fix srcdir=. assumption.
24914 (DISTCLEANFILES): Add `build_env.mk'.
24915
24916 2008-11-08 Robert Millan <rmh@aybabtu.com>
24917
24918 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
24919 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
24920 members. Update all users.
24921 * util/console.c (grub_ncurses_term): Split in ...
24922 (grub_ncurses_term_input): ... this, and ...
24923 (grub_ncurses_term_output): ... this. Update all users.
24924 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
24925
24926 2008-11-08 Robert Millan <rmh@aybabtu.com>
24927
24928 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
24929 (PKGDATA): Add $(pkgdata_SRCDIR).
24930 (pkglib_BUILDDIR): New variable.
24931 (pkgdata_SRCDIR): New variable.
24932 (build_env.mk): New target.
24933 (include_DATA): New variable.
24934 (install-local): Install $(include_DATA) files in $(includedir).
24935
24936 2008-11-07 Pavel Roskin <proski@gnu.org>
24937
24938 * gendistlist.sh: Use C locale for sorting to ensure consistent
24939 output on all systems.
24940
24941 * util/grub.d/00_header.in: Remove incorrect space before
24942 "serial".
24943
24944 2008-11-07 Robert Millan <rmh@aybabtu.com>
24945
24946 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
24947 per specification.
24948 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
24949 * loader/multiboot_loader.c (find_multi_boot2_header): New function
24950 (based on find_multi_boot1_header).
24951 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
24952 using find_multi_boot2_header(), and abort if neither Multiboot or
24953 Multiboot headers were found.
24954
24955 2008-11-07 Robert Millan <rmh@aybabtu.com>
24956
24957 Modularize at_keyboard.mod:
24958
24959 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
24960 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24961 (at_keyboard_mod_LDFLAGS): New variables.
24962
24963 Actual terminal split:
24964
24965 * include/grub/term.h (struct grub_term): Split in ...
24966 (struct grub_term_input): ... this, and ...
24967 (struct grub_term_output): ... this. Update all users.
24968 (grub_term_set_current): Split in ...
24969 (grub_term_set_current_input): ... this, and ...
24970 (grub_term_set_current_output): ... this.
24971 (grub_term_get_current): Split in ...
24972 (grub_term_get_current_input): ... this, and ...
24973 (grub_term_get_current_output): ... this.
24974 (grub_term_register): Split in ...
24975 (grub_term_register_input): ... this, and ...
24976 (grub_term_register_output): ... this.
24977 (grub_term_unregister): Split in ...
24978 (grub_term_unregister_input): ... this, and ...
24979 (grub_term_unregister_output): ... this.
24980 (grub_term_iterate): Split in ...
24981 (grub_term_iterate_input): ... this, and ...
24982 (grub_term_iterate_output): ... this.
24983
24984 * kern/term.c (grub_term_list): Split in ...
24985 (grub_term_list_input): ... this, and ...
24986 (grub_term_list_output): ... this. Update all users.
24987 (grub_cur_term): Split in ...
24988 (grub_cur_term_input): ... this, and ...
24989 (grub_cur_term_output): ... this. Update all users.
24990 (grub_term_set_current): Split in ...
24991 (grub_term_set_current_input): ... this, and ...
24992 (grub_term_set_current_output): ... this.
24993 (grub_term_get_current): Split in ...
24994 (grub_term_get_current_input): ... this, and ...
24995 (grub_term_get_current_output): ... this.
24996 (grub_term_register): Split in ...
24997 (grub_term_register_input): ... this, and ...
24998 (grub_term_register_output): ... this.
24999 (grub_term_unregister): Split in ...
25000 (grub_term_unregister_input): ... this, and ...
25001 (grub_term_unregister_output): ... this.
25002 (grub_term_iterate): Split in ...
25003 (grub_term_iterate_input): ... this, and ...
25004 (grub_term_iterate_output): ... this.
25005
25006 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
25007 a check for input and one for output (and only attempt to get keys
25008 from user when input works).
25009
25010 * util/grub-probe.c (grub_term_get_current): Split in ...
25011 (grub_term_get_current_input): ... this, and ...
25012 (grub_term_get_current_output): ... this.
25013 * util/grub-fstest.c: Likewise.
25014 * util/i386/pc/grub-setup.c: Likewise.
25015 * util/grub-editenv.c: Likewise.
25016
25017 Portability adjustments:
25018
25019 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
25020 `term/i386/pc/at_keyboard.c'.
25021 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
25022 grub_keyboard_controller_init() (now handled by terminal .init).
25023 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
25024 grub_at_keyboard_init().
25025 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
25026 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
25027 at_keyboard.mod via input terminal interface).
25028 * include/grub/i386/coreboot/console.h: Convert into a stub for
25029 `<grub/i386/pc/console.h>'.
25030
25031 Migrate full terminals to new API:
25032
25033 * term/efi/console.c (grub_console_term): Split into ...
25034 (grub_console_term_input): ... this, and ...
25035 (grub_console_term_output): ... this. Update all users.
25036 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
25037 (grub_ofconsole_init): Split into ...
25038 (grub_ofconsole_init_input): ... this, and ...
25039 (grub_ofconsole_init_output): ... this.
25040 (grub_ofconsole_term): Split into ...
25041 (grub_ofconsole_term_input): ... this, and ...
25042 (grub_ofconsole_term_output): ... this. Update all users.
25043 * term/i386/pc/serial.c (grub_serial_term): Split into ...
25044 (grub_serial_term_input): ... this, and ...
25045 (grub_serial_term_output): ... this. Update all users.
25046 * term/i386/pc/console.c (grub_console_term): Split into ...
25047 (grub_console_term_input): ... this, and ...
25048 (grub_console_term_output): ... this. Update all users.
25049 (grub_console_term_input): Only enable it on PC/BIOS platform.
25050 (grub_console_init): Remove grub_keyboard_controller_init() call.
25051
25052 Migrate input terminals to new API:
25053
25054 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
25055 `i386' and `i386/pc' to enable build on x86_64 (this driver is
25056 i386-specific anyway).
25057 (grub_console_checkkey): Rename to ...
25058 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
25059 users.
25060 (grub_keyboard_controller_orig): New variable.
25061 (grub_console_getkey): Rename to ...
25062 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
25063 users.
25064 (grub_keyboard_controller_init): Static-ize. Save original
25065 controller value so that it can be restored ...
25066 (grub_keyboard_controller_fini): ... here (new function).
25067 (grub_at_keyboard_term): New structure.
25068 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
25069 functions.
25070
25071 Migrate output terminals to new API:
25072
25073 * term/i386/pc/vga.c (grub_vga_term): Change type to
25074 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25075 members. Update all users.
25076 * term/gfxterm.c (grub_video_term): Change type to
25077 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25078 members. Update all users.
25079 * include/grub/i386/pc/console.h (grub_console_checkkey)
25080 (grub_console_getkey): Do not export (no longer needed by gfxterm,
25081 etc).
25082
25083 Migrate `terminal' command and userland tools to new API:
25084
25085 * commands/terminal.c (grub_cmd_terminal): Split into ...
25086 (grub_cmd_terminal_input): ... this, and ...
25087 (grub_cmd_terminal_output): ... this.
25088 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
25089 `terminal_input' and `terminal_output'.
25090 * util/grub.d/00_header.in: Adjust `terminal' calls to new
25091 `terminal_input' / `terminal_output' API.
25092 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
25093 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
25094 provided ${GRUB_TERMINAL}, convert it).
25095
25096 2008-11-04 Robert Millan <rmh@aybabtu.com>
25097
25098 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
25099 for FreeBSD.
25100 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
25101
25102 2008-11-03 Bean <bean123ch@gmail.com>
25103
25104 * kern/elf.c (grub_elf32_load): Revert to previous code.
25105 (grub_elf64_load): Likewise.
25106
25107 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
25108
25109 2008-11-01 Robert Millan <rmh@aybabtu.com>
25110
25111 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
25112 (TARGET_CPPFLAGS): Likewise.
25113 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
25114
25115 2008-11-01 Carles Pina i Estany <carles@pina.cat>
25116
25117 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
25118
25119 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25120
25121 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
25122 addition of objects until the code is not going to be able to fail.
25123
25124 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25125
25126 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
25127 (add a missing NULL check, and correct them by moving the pointer
25128 operations after the actual check).
25129
25130 2008-10-29 Robert Millan <rmh@aybabtu.com>
25131
25132 * util/i386/pc/grub-install.in: Handle empty string as output from
25133 make_system_path_relative_to_its_root().
25134
25135 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
25136
25137 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
25138 circular metadata worst case scenario. If the metadata is circular
25139 then copy the wrap in place.
25140 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
25141 project lib/format_text/layout.h
25142 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
25143
25144 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25145
25146 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
25147
25148 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25149
25150 * util/update-grub_lib.in: Mention filename in warning message.
25151
25152 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25153
25154 * NEWS: Update for rename of update-grub to grub-mkconfig.
25155
25156 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25157
25158 * util/update-grub_lib.in: Copy to ...
25159 * util/grub-mkconfig_lib.in: ... this. Update all users.
25160 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
25161 * util/update-grub.in: Rename to ...
25162 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
25163 option. Add `--output' option to allow users to specify the generated
25164 configuration file. Default to stdout.
25165 (update_grub_dir): Rename to ...
25166 (grub_mkconfig_dir): ... this.
25167 (grub_cfg): Default to an empty string.
25168 * conf/common.rmk (update-grub): Rename to ...
25169 (grub-mkconfig): ... this.
25170 (update-grub_lib): Copy to ...
25171 (grub-mkconfig_lib): ... this.
25172 (update-grub_SCRIPTS): Copy to ...
25173 (grub-mkconfig_SCRIPTS): ... this. Update all users.
25174 (update-grub_DATA): Rename to ...
25175 (grub-mkconfig_DATA): ... this.
25176
25177 2008-09-28 Robert Millan <rmh@aybabtu.com>
25178
25179 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
25180 to `modified'. Add the real `created' field.
25181 (grub_iso9660_uuid): Use `modified' rather than `created' for
25182 constructing the UUID.
25183
25184 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
25185
25186 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
25187 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
25188
25189 2008-09-28 Bean <bean123ch@gmail.com>
25190
25191 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
25192 Thanks to Christian Franke for finding this bug.
25193
25194 2008-09-25 Robert Millan <rmh@aybabtu.com>
25195
25196 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
25197 instances of grub_util_get_disk_name() (see previous commit).
25198
25199 2008-09-25 Robert Millan <rmh@aybabtu.com>
25200
25201 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
25202 `util/i386/get_disk_name.c'.
25203 * conf/i386-efi.rmk: Likewise.
25204 * conf/x86_64-efi.rmk: Likewise.
25205 * conf/i386-coreboot.rmk: Likewise.
25206 * conf/i386-ieee1275.rmk: Likewise.
25207 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
25208 `util/ieee1275/get_disk_name.c'.
25209 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
25210 * util/ieee1275/get_disk_name.c: Remove file.
25211 * util/i386/get_disk_name.c: Remove file.
25212 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
25213 "hd%d" for device.map entries, rather than using
25214 grub_util_get_disk_name().
25215
25216 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25217
25218 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
25219 warning.
25220 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
25221
25222 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25223
25224 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
25225 Changed to 0x5100.
25226 (GRUB_TERM_PPAGE): Changed to 0x4900.
25227
25228 2008-09-24 Robert Millan <rmh@aybabtu.com>
25229
25230 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
25231 macros (they were i386-pc specific).
25232 * include/grub/sparc64/ieee1275/console.h: Likewise.
25233 * include/grub/efi/console.h: Likewise.
25234
25235 2008-09-22 Bean <bean123ch@gmail.com>
25236
25237 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
25238 resident and in attribute list.
25239
25240 * include/grub/ntfs.h (BMP_LEN): Removed.
25241
25242 2008-09-22 Bean <bean123ch@gmail.com>
25243
25244 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
25245 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
25246
25247 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
25248 error occurs, as grub_disk_open will call grub_disk_close, which will
25249 call p->close (scsi).
25250
25251 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25252
25253 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
25254 (AC_PREREQ): Bumped to 2.59.
25255 (AC_TRY_COMPILE): Replace obsolete macro with ...
25256 (AC_COMPILE_IFELSE): ... this.
25257 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
25258 (AC_LINK_IFELSE): ... this.
25259
25260 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25261
25262 * autogen.sh: Add a call to `gendistlist.sh'.
25263
25264 2008-09-19 Christian Franke <franke@computer.org>
25265
25266 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
25267 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
25268 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
25269 Export __enable_execute_stack() to modules.
25270 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
25271 New function.
25272
25273 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25274
25275 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
25276 Sort the list.
25277
25278 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25279
25280 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
25281 #include <grub/util/hostdisk.h>.
25282
25283 2008-09-08 Robert Millan <rmh@aybabtu.com>
25284
25285 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
25286 segments when their filesz is zero (grub_file_read() interprets
25287 zero-size as "read until EOF", which results in memory corruption).
25288 Use `lowest_segment' rather than 0 for calculating the current
25289 segment load address.
25290
25291 2008-09-08 Robert Millan <rmh@aybabtu.com>
25292
25293 * util/hostdisk.c (open_device): Replace a grub_util_info() call
25294 with grub_dprintf("hostdisk", ...), as it was so verbose that it
25295 clobbered useful information.
25296
25297 2008-09-08 Robert Millan <rmh@aybabtu.com>
25298
25299 * include/grub/util/biosdisk.h: Move to ...
25300 * include/grub/util/hostdisk.h: ... here. Update all users.
25301 * util/biosdisk.c: Move to ...
25302 * util/hostdisk.c: ... here. Update all users.
25303
25304 2008-09-07 Robert Millan <rmh@aybabtu.com>
25305
25306 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
25307 variables.
25308 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
25309 and length can be stored directly in the `mbi->mmap_addr' and
25310 `mbi->mmap_length' struct fields.
25311
25312 2008-09-07 Robert Millan <rmh@aybabtu.com>
25313
25314 * conf/i386.rmk: New file. Provides declaration for building
25315 `cpuid.mod'.
25316 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
25317 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
25318 variables.
25319 Include `conf/i386.mk'.
25320 * conf/i386-efi.rmk: Likewise.
25321 * conf/x86_64-efi.rmk: Likewise.
25322 * conf/i386-coreboot.rmk: Likewise.
25323 * conf/i386-ieee1275.rmk: Likewise.
25324
25325 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
25326
25327 Based on patch created by Colin D Bennett <colin@gibibit.com>.
25328 Adds optimization support for BGR based modes.
25329
25330 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
25331 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25332 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25333 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25334 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25335 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25336 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25338 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25339 (grub_video_i386_vbeblit_index_index): Likewise.
25340 (grub_video_i386_vbeblit_replace_directN): Added.
25341 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25342 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25343 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25344 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25345 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25346 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25347 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25348 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25349 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25350 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25351 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25352 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25353 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25354
25355 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
25356 (grub_video_i386_vbefill_R8G8B8): Likewise.
25357 (grub_video_i386_vbefill_index): Likewise.
25358 (grub_video_i386_vbefill_direct32): Added.
25359 (grub_video_i386_vbefill_direct24): Likewise.
25360 (grub_video_i386_vbefill_direct16): Likewise.
25361 (grub_video_i386_vbefill_direct8): Likewise.
25362
25363 * include/grub/video.h (grub_video_blit_format): Removed
25364 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
25365 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
25366 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
25367 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
25368 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
25369
25370 * video/video.c (grub_video_get_blit_format): Updated to use new
25371 blit formats. Added handling for 16 bit color modes.
25372
25373 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
25374 fillers.
25375 (common_blitter): Updated to use new blitters.
25376
25377 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
25378 Removed.
25379 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25380 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25381 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25382 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25383 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25384 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25385 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25386 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25387 (grub_video_i386_vbeblit_index_index): Likewise.
25388 (grub_video_i386_vbeblit_replace_directN): Added.
25389 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25390 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25391 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25392 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25393 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25394 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25395 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25396 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25397 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25398 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25399 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25400 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25401 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25402
25403 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
25404 (grub_video_i386_vbefill_R8G8B8): Likewise.
25405 (grub_video_i386_vbefill_index): Likewise.
25406 (grub_video_i386_vbefill_direct32): Added.
25407 (grub_video_i386_vbefill_direct24): Likewise.
25408 (grub_video_i386_vbefill_direct16): Likewise.
25409 (grub_video_i386_vbefill_direct8): Likewise.
25410
25411 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
25412 types.
25413
25414 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
25415 types.
25416
25417 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
25418 blitter types.
25419
25420 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
25421 types.
25422
25423 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25424
25425 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
25426 RAID level 1.
25427
25428 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25429
25430 * fs/iso9660.c (grub_iso9660_date): New structure.
25431 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
25432 (grub_iso9660_uuid): New function.
25433
25434 2008-09-05 Bean <bean123ch@gmail.com>
25435
25436 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
25437
25438 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
25439 insensitive bit for names in Win32 and Win32 & DOS namespace.
25440
25441 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
25442
25443 * include/grub/types.h (LONG_MAX): Likewise.
25444
25445 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25446
25447 * util/getroot.c: Include <config.h>.
25448 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
25449 add support for /dev/md/N devices and handle LVM double dash escaping.
25450
25451 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25452
25453 * config.guess: Update to latest version from config git.
25454 * config.sub: Likewise.
25455
25456 2008-09-03 Robert Millan <rmh@aybabtu.com>
25457
25458 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
25459 `disk->total_sectors'.
25460
25461 2008-09-01 Colin D Bennett <colin@gibibit.com>
25462
25463 * include/grub/normal.h: Fixed incorrect comment for
25464 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
25465
25466 2008-09-01 Colin D Bennett <colin@gibibit.com>
25467
25468 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
25469 values with defines.
25470
25471 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
25472 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
25473 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
25474 (GRUB_VBE_MODEATTR_COLOR): Likewise.
25475 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
25476 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
25477 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
25478 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
25479 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
25480 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
25481 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
25482 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
25483 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
25484 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
25485 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
25486 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
25487 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
25488 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
25489 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
25490
25491 2008-08-31 Robert Millan <rmh@aybabtu.com>
25492
25493 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
25494 declaration.
25495 (grub_multiboot): Fix a few warnings.
25496
25497 2008-08-31 Robert Millan <rmh@aybabtu.com>
25498
25499 * loader/i386/pc/multiboot.c: Update comment not to say that
25500 boot_device support is unimplemented.
25501
25502 2008-08-31 Robert Millan <rmh@aybabtu.com>
25503
25504 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
25505 or memory map support are unimplemented.
25506
25507 2008-08-31 Colin D Bennett <colin@gibibit.com>
25508
25509 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
25510
25511 2008-08-31 Colin D Bennett <colin@gibibit.com>
25512
25513 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
25514 total video memory in 'vbeinfo' output; show color format details for
25515 each video mode.
25516
25517 2008-08-30 Pavel Roskin <proski@gnu.org>
25518
25519 * util/genmoddep.c: Remove for real this time.
25520 * DISTLIST: Remove util/genmoddep.c.
25521
25522 2008-08-30 Robert Millan <rmh@aybabtu.com>
25523
25524 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
25525 as required by Multiboot spec (it was already 4-byte aligned, but
25526 only by chance).
25527
25528 2008-08-29 Pavel Roskin <proski@gnu.org>
25529
25530 * kern/powerpc/ieee1275/crt0.S: Rename to ...
25531 * kern/powerpc/ieee1275/startup.S: ... this.
25532 * conf/powerpc-ieee1275.rmk: Adjust for the above.
25533 * DISTLIST: Likewise.
25534
25535 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
25536 grub/cpu/kernel.h. Add start label for consistency with other
25537 platforms. Add grub_prefix immediately after start. Add jump
25538 to the code after grub_prefix.
25539 * include/grub/powerpc/kernel.h: Provide valid values for
25540 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
25541
25542 2008-08-29 Bean <bean123ch@gmail.com>
25543
25544 * configure.ac: Change host_os to cygwin for mingw.
25545 (asprintf): New check for function.
25546
25547 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
25548 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
25549
25550 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
25551 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
25552 sync, sleep and grub_util_get_disk_size for mingw.
25553
25554 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
25555 to get size in mingw.
25556 (open_device): Use flag O_BINARY if it's defined.
25557 (find_root_device): Add dummy code for mingw.
25558
25559 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
25560 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
25561 (get_scsi_disk_name): Return 0 for mingw.
25562
25563 * util/hostfs.c: #include <grub/util/misc.h>.
25564 (grub_hostfs_open): Use "rb" flag to open file, use
25565 grub_util_get_disk_size to get disk size for mingw.
25566
25567 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
25568 (asprintf): New function if HAVE_ASPRINTF is not set.
25569 (sync): New function for mingw.
25570 (sleep): Likewise.
25571 (grub_util_get_disk_size): Likewise.
25572
25573 2008-08-28 Pavel Roskin <proski@gnu.org>
25574
25575 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
25576 kern/time.c.
25577
25578 2008-08-28 Robert Millan <rmh@aybabtu.com>
25579
25580 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
25581
25582 2008-08-28 Robert Millan <rmh@aybabtu.com>
25583
25584 Change find_grub_drive() syntax so it doesn't prevent it from
25585 detecting NULL names as errors.
25586
25587 * util/biosdisk.c (find_grub_drive): Move free slot search code
25588 from here ...
25589 (find_free_slot): ... to here.
25590 (read_device_map): Use find_free_slot() to search for free slots.
25591
25592 2008-08-27 Marco Gerards <marco@gnu.org>
25593
25594 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
25595 (scsi_mod_SOURCES): New variable.
25596 (scsi_mod_CFLAGS): Likewise
25597 (scsi_mod_LDFLAGS): Likewise.
25598
25599 * disk/scsi.c: New file.
25600
25601 * include/grub/scsi.h: Likewise.
25602
25603 * include/grub/scsicmd.h: Likewise.
25604
25605 * disk/ata.c: Include <grub/scsi.h>.
25606 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
25607 instead.
25608 (grub_ata_iterate): Skip ATAPI devices.
25609 (grub_ata_open): Only handle ATAPI devices.
25610 (struct grub_atapi_read): Removed.
25611 (grub_atapi_readsector): Likewise.
25612 (grub_ata_read): No longer handle ATAPI devices.
25613 (grub_ata_write): Likewise.
25614 (grub_atapi_iterate): New function.
25615 (grub_atapi_read): Likewise.
25616 (grub_atapi_write): Likewise.
25617 (grub_atapi_open): Likewise.
25618 (grub_atapi_close): Likewise.
25619 (grub_atapi_dev): New variable.
25620 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
25621 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
25622
25623 * include/grub/disk.h (enum grub_disk_dev_id): Add
25624 `GRUB_DISK_DEVICE_SCSI_ID'.
25625
25626 2008-08-26 Robert Millan <rmh@aybabtu.com>
25627
25628 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
25629 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
25630 descriptive.
25631
25632 2008-08-23 Bean <bean123ch@gmail.com>
25633
25634 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
25635 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
25636 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
25637 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
25638 dm_nv.mod.
25639 (raid5rec_mod_SOURCES): New macro.
25640 (raid5rec_mod_CFLAGS): Likewise.
25641 (raid5rec_mod_LDFLAGS): Likewise.
25642 (raid6rec_mod_SOURCES): Likewise.
25643 (raid6rec_mod_CFLAGS): Likewise.
25644 (raid6rec_mod_LDFLAGS): Likewise.
25645 (mdraid_mod_SOURCES): Likewise.
25646 (mdraid_mod_CFLAGS): Likewise.
25647 (mdraid_mod_LDFLAGS): Likewise.
25648 (dm_nv_mod_SOURCES): Likewise.
25649 (dm_nv_mod_CFLAGS): Likewise.
25650 (dm_nv_mod_LDFLAGS): Likewise.
25651
25652 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
25653 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
25654 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
25655
25656 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
25657 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
25658
25659 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25660
25661 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25662
25663 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25664
25665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25666
25667 * disk/raid5_recover.c: New file.
25668
25669 * disk/raid6_recover.c: Likewise.
25670
25671 * disk/mdraid_linux.c: Likewise.
25672
25673 * disk/dmraid_nvidia.c: Likewise.
25674
25675 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
25676 ULONG_MAX.
25677
25678 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
25679 calculate the size of raid device.
25680 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
25681 different layout of raid5.
25682 (grub_raid_scan_device): Remove code specific to mdraid.
25683 (grub_raid_list): New variable.
25684 (free_array): New function.
25685 (grub_raid_register): Likewise.
25686 (grub_raid_unregister): Likewise.
25687 (grub_raid_rescan): Likewise.
25688 (GRUB_MOD_INIT): Don't iterate device here.
25689 (GRUB_MOD_FINI): Use free_array to release resource.
25690
25691 * include/grub/raid.h: Remove macro and structure specific to mdraid.
25692 (grub_raid5_recover_func_t): New function variable type.
25693 (grub_raid6_recover_func_t): Likewise.
25694 (grub_raid5_recover_func): New variable.
25695 (grub_raid6_recover_func): Likewise.
25696 (grub_raid_register): New function.
25697 (grub_raid_unregister): Likewise.
25698 (grub_raid_rescan): Likewise.
25699 (grub_raid_block_xor): Likewise.
25700
25701 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
25702 (CMD_CRC): New macro.
25703 (part): Removed.
25704 (read_file): Handle device as well as file.
25705 (cmd_crc): New function.
25706 (fstest): Handle multiple disks.
25707 (options): Remove part, raw and long, add root and diskcount.
25708 (usage): Add crc, remove -p, -r, -l, add -r and -c.
25709 (main): Find the first non option entry and ignore subsequent options,
25710 add handling for the new options, support multiple disks.
25711
25712 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
25713
25714 2008-08-23 Bean <bean123ch@gmail.com>
25715
25716 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
25717
25718 * genfslist.sh: Ignore kernel.mod.
25719
25720 * genpartmaplist.sh: Likewise.
25721
25722 2008-08-23 Robert Millan <rmh@aybabtu.com>
25723
25724 * util/getroot.c (find_root_device): Skip anything that starts with
25725 a dot, not just directories. This avoids things like /dev/.tmp.md0.
25726
25727 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
25728
25729 * util/update-grub.in (GRUB_GFXMODE): Export variable.
25730 * util/grub.d/00_header.in: Allow the administrator to change default
25731 gfxmode via ${GRUB_GFXMODE}.
25732
25733 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
25734
25735 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
25736
25737 2008-08-21 Robert Millan <rmh@aybabtu.com>
25738
25739 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
25740 loader.
25741 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
25742 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
25743
25744 2008-08-20 Carles Pina i Estany <carles@pina.cat>
25745
25746 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
25747 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
25748
25749 2008-08-19 Robert Millan <rmh@aybabtu.com>
25750
25751 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
25752 (struct grub_virtual_screen): Remove `cursor_color'.
25753 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
25754 initialization.
25755 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
25756
25757 2008-08-18 Robert Millan <rmh@aybabtu.com>
25758
25759 Unify (identical) linux_normal.c files.
25760 * loader/i386/efi/linux_normal.c: Move from here ...
25761 * loader/linux_normal.c: ... to here. Update all users.
25762 * loader/i386/pc/linux_normal.c: Delete. Update all users.
25763 * loader/i386/ieee1275/linux_normal.c: Likewise.
25764
25765 2008-08-18 Robert Millan <rmh@aybabtu.com>
25766
25767 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
25768 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
25769 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
25770 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
25771 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
25772 New macros.
25773 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
25774 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
25775 (GRUB_LINUX_CL_END_OFFSET): ... to here.
25776 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
25777 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
25778 (GRUB_EFI_CL_END_OFFSET): Rename to ...
25779 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
25780 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
25781 Initialize `params->video_cursor_x' and `params->video_cursor_y'
25782 portably using grub_getxy().
25783 Replace `-EFI' with `-bzImage' in boot message.
25784
25785 2008-08-17 Robert Millan <rmh@aybabtu.com>
25786
25787 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
25788
25789 2008-08-17 Robert Millan <rmh@aybabtu.com>
25790
25791 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
25792
25793 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
25794 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
25795 (grub_machine_mmap_iterate): New function declaration.
25796 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
25797 structure.
25798 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
25799 macros.
25800
25801 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
25802 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
25803 Move e820 parsing from here ...
25804 * kern/i386/pc/mmap.c: New file.
25805 (grub_machine_mmap_iterate): ... to here.
25806
25807 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
25808 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
25809 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
25810 (grub_available_iterate): Redeclare to return `void', and redeclare
25811 its hook to use grub_uint64_t as addr and size parameters, and rename
25812 to ...
25813 (grub_machine_mmap_iterate): ... this. Update all users.
25814
25815 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
25816 to make it more readable. Rename to ...
25817 (grub_machine_mmap_iterate): ... this.
25818
25819 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
25820 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
25821 (grub_multiboot): Allocate an extra region after the payload, and fill
25822 it with a Multiboot memory map. Adjust a.out loader to calculate size
25823 with the extra space.
25824 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
25825 with the extra space.
25826
25827 2008-08-17 Carles Pina i Estany <carles@pina.cat>
25828
25829 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
25830
25831 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
25832
25833 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
25834 mdate-sh to the list `find' searches for.
25835 * DISTLIST: Regenerated.
25836
25837 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
25838
25839 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
25840 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
25841 genmoddep.awk, gensymlist.sh.in.
25842 (DISTDIRS): Add bus, docs, hook, lib.
25843 * DISTLIST: Regenerated.
25844 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
25845
25846 2008-08-16 Robert Millan <rmh@aybabtu.com>
25847
25848 * disk/raid.c (grub_raid_init): Handle/report errors set by
25849 grub_device_iterate().
25850 * disk/lvm.c (grub_lvm_init): Likewise.
25851
25852 2008-08-15 Bean <bean123ch@gmail.com>
25853
25854 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25855 and datehook.mod.
25856 (datetime_mod_SOURCES): New macro.
25857 (datetime_mod_CFLAGS): Likewise.
25858 (datetime_mod_LDFLAGS): Likewise.
25859 (date_mod_SOURCES): Likewise.
25860 (date_mod_CFLAGS): Likewise.
25861 (date_mod_LDFLAGS): Likewise.
25862 (datehook_mod_SOURCES): Likewise.
25863 (datehook_mod_CFLAGS): Likewise.
25864 (datehook_mod_LDFLAGS): Likewise.
25865
25866 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25867 and datehook.mod.
25868 (datetime_mod_SOURCES): New macro.
25869 (datetime_mod_CFLAGS): Likewise.
25870 (datetime_mod_LDFLAGS): Likewise.
25871 (date_mod_SOURCES): Likewise.
25872 (date_mod_CFLAGS): Likewise.
25873 (date_mod_LDFLAGS): Likewise.
25874 (datehook_mod_SOURCES): Likewise.
25875 (datehook_mod_CFLAGS): Likewise.
25876 (datehook_mod_LDFLAGS): Likewise.
25877
25878 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25879 and datehook.mod.
25880 (datetime_mod_SOURCES): New macro.
25881 (datetime_mod_CFLAGS): Likewise.
25882 (datetime_mod_LDFLAGS): Likewise.
25883 (date_mod_SOURCES): Likewise.
25884 (date_mod_CFLAGS): Likewise.
25885 (date_mod_LDFLAGS): Likewise.
25886 (datehook_mod_SOURCES): Likewise.
25887 (datehook_mod_CFLAGS): Likewise.
25888 (datehook_mod_LDFLAGS): Likewise.
25889
25890 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25891 and datehook.mod.
25892 (datetime_mod_SOURCES): New macro.
25893 (datetime_mod_CFLAGS): Likewise.
25894 (datetime_mod_LDFLAGS): Likewise.
25895 (date_mod_SOURCES): Likewise.
25896 (date_mod_CFLAGS): Likewise.
25897 (date_mod_LDFLAGS): Likewise.
25898 (datehook_mod_SOURCES): Likewise.
25899 (datehook_mod_CFLAGS): Likewise.
25900 (datehook_mod_LDFLAGS): Likewise.
25901
25902 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25903 and datehook.mod.
25904 (datetime_mod_SOURCES): New macro.
25905 (datetime_mod_CFLAGS): Likewise.
25906 (datetime_mod_LDFLAGS): Likewise.
25907 (date_mod_SOURCES): Likewise.
25908 (date_mod_CFLAGS): Likewise.
25909 (date_mod_LDFLAGS): Likewise.
25910 (datehook_mod_SOURCES): Likewise.
25911 (datehook_mod_CFLAGS): Likewise.
25912 (datehook_mod_LDFLAGS): Likewise.
25913
25914 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
25915
25916 * commands/date.c: New file.
25917
25918 * hook/datehook.c: Likewise.
25919
25920 * include/grub/lib/datetime.h: Likewise.
25921
25922 * include/grub/i386/cmos.h: Likewise.
25923
25924 * lib/datetime.c: Likewise.
25925
25926 * lib/i386/datetime.c: Likewise.
25927
25928 * lib/efi/datetime.c: Likewise.
25929
25930 2008-08-14 Robert Millan <rmh@aybabtu.com>
25931
25932 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
25933 (grub_mkelfimage_SOURCES): New variable.
25934 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
25935
25936 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
25937 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
25938 * conf/powerpc-ieee1275.rmk: Likewise.
25939 * conf/i386-ieee1275.rmk: Likewise.
25940
25941 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
25942 * kern/i386/coreboot/init.c: Likewise.
25943
25944 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
25945 with `<grub/cpu/kernel.h>'.
25946 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
25947 to ...
25948 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
25949 * kern/i386/coreboot/startup.S: Likewise.
25950
25951 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
25952 (GRUB_MOD_GAP): Remove.
25953 * include/grub/powerpc/kernel.h: New file.
25954 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
25955 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25956 * include/grub/i386/kernel.h: New file.
25957 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
25958 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
25959 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25960
25961 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
25962 `grub-mkelfimage'.
25963 Use --directory when invoking grub_mkimage.
25964
25965 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
25966 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
25967 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
25968 and GRUB_KERNEL_CPU_PREFIX.
25969
25970 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
25971
25972 * include/grub/err.h (grub_err_printf): New function prototype.
25973 * util/misc.c (grub_err_printf): New function.
25974 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
25975 grub_printf.
25976 * kern/err.c (grub_print_error): Use grub_err_printf.
25977
25978 2008-08-13 Robert Millan <rmh@aybabtu.com>
25979
25980 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
25981
25982 2008-08-13 Robert Millan <rmh@aybabtu.com>
25983
25984 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
25985 boot entry.
25986
25987 2008-08-12 Robert Millan <rmh@aybabtu.com>
25988
25989 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
25990 of the relocation code from here ...
25991 (grub_multiboot): ... to here.
25992 (forward_relocator, backward_relocator): Move from here ...
25993 * kern/i386/loader.S (grub_multiboot_forward_relocator)
25994 (grub_multiboot_backward_relocator): ... to here.
25995 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
25996 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
25997 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
25998 (grub_multiboot_forward_relocator_end)
25999 (grub_multiboot_backward_relocator)
26000 (grub_multiboot_backward_relocator_end): New variables.
26001
26002 2008-08-12 Bean <bean123ch@gmail.com>
26003
26004 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
26005
26006 2008-08-11 Robert Millan <rmh@aybabtu.com>
26007
26008 * kern/i386/linuxbios/startup.S: Move from here ...
26009 * kern/i386/coreboot/startup.S: ... to here.
26010
26011 * kern/i386/linuxbios/init.c: Move from here ...
26012 * kern/i386/coreboot/init.c: ... to here.
26013
26014 * kern/i386/linuxbios/table.c: Move from here ...
26015 * kern/i386/coreboot/mmap.c: ... to here.
26016
26017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
26018
26019 2008-08-11 Robert Millan <rmh@aybabtu.com>
26020
26021 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
26022 errors. Leave it to the upper layer to handle them.
26023
26024 2008-08-09 Christian Franke <franke@computer.org>
26025
26026 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
26027 * conf/common.rmk: Install `grub-pe2elf' only if requested.
26028 Install `grub.d/10_windows' only on Cygwin.
26029 * configure.ac: Add subst of `target_os'.
26030 Check `target_os' also before setting TARGET_OBJ2ELF.
26031 Add `--enable-grub-pe2elf'.
26032
26033 2008-08-08 Robert Millan <rmh@aybabtu.com>
26034
26035 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26036 (grub_last_time): Change type to grub_uint64_t.
26037 (grub_disk_open): Migrate code from to using grub_get_time_ms().
26038 (grub_disk_close): Likewise.
26039
26040 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26041 (run_menu): Migrate code from to using grub_get_time_ms().
26042
26043 * util/misc.c (grub_get_time_ms): New function.
26044
26045 2008-08-08 Marco Gerards <marco@gnu.org>
26046
26047 * disk/ata.c (grub_ata_regget): Change return type to
26048 `grub_uint8_t'.
26049 (grub_ata_regget2): Likewise.
26050 (grub_ata_wait_status): New function.
26051 (grub_ata_wait_busy): Removed function, updated all users to use
26052 `grub_ata_wait_status'.
26053 (grub_ata_wait_drq): Likewise.
26054 (grub_ata_cmd): New function.
26055 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
26056 error handling.
26057 (grub_ata_pio_write): Add error handling.
26058 (grub_atapi_identify): Likewise.
26059 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
26060 handling.
26061 (grub_ata_identify): Use `grub_ata_cmd' and improve error
26062 handling. Actually use the detected registers. Reorder the
26063 detection logic such that it is easier to read.
26064 (grub_ata_pciinit): Do not assign the same ID to each controller.
26065 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
26066 handling.
26067 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
26068
26069 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
26070
26071 2008-08-08 Marco Gerards <marco@gnu.org>
26072
26073 * NEWS: Update.
26074
26075 2008-08-07 Bean <bean123ch@gmail.com>
26076
26077 * include/grub/x86_64/pci.h: New file.
26078
26079 2008-08-07 Christian Franke <franke@computer.org>
26080
26081 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
26082 (TIMER2_GATE): Likewise.
26083 (grub_pit_wait): Add enable/disable of the timer2 gate
26084 bit of port 0x61. This fixes a possible infinite loop.
26085
26086 2008-08-07 Bean <bean123ch@gmail.com>
26087
26088 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
26089 kern/i386/tsc.c and kern/i386/pit.c.
26090
26091 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
26092 x86_64 platform.
26093
26094 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
26095 <grub/i386/tsc.h>.
26096
26097 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
26098
26099 2008-08-07 Bean <bean123ch@gmail.com>
26100
26101 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
26102
26103 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
26104
26105 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
26106 multiple inclusion. Add #include <grub/types.h>.
26107
26108 2008-08-06 Christian Franke <franke@computer.org>
26109
26110 * conf/common.rmk: Build and install `10_windows'.
26111 * util/grub.d/10_windows.in: New script.
26112
26113 2008-08-06 Pavel Roskin <proski@gnu.org>
26114
26115 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
26116
26117 2008-08-06 Robert Millan <rmh@aybabtu.com>
26118
26119 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
26120 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
26121
26122 2008-08-06 Bean <bean123ch@gmail.com>
26123
26124 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
26125 (grub_pxefs_fs_int): Remove dummy definition.
26126 (grub_pxefs_open): Use data->block_size to store the current block
26127 size setting.
26128 (grub_pxefs_read): Use block size stored in data->block_size. As the
26129 value of grub_pxe_blksize can be changed after the file is opened.
26130
26131 2008-08-06 Bean <bean123ch@gmail.com>
26132
26133 * fs/i386/pc/pxe.c (curr_file): new variable.
26134 (grub_pxefs_open): Simply the handling of pxe file system. Don't
26135 require the dummy internal file system anymore.
26136 (grub_pxefs_read): Removed.
26137 (grub_pxefs_close): Likewise.
26138 (grub_pxefs_fs_int): Likewise.
26139 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
26140 connection when we switch file.
26141 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
26142
26143 2008-08-06 Robert Millan <rmh@aybabtu.com>
26144
26145 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
26146 `halt.mod'.
26147 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
26148 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
26149
26150 * kern/i386/halt.c: New file.
26151 * kern/i386/reboot.c: Likewise.
26152 * include/grub/i386/reboot.h: Likewise.
26153 * include/grub/i386/halt.h: Likewise.
26154
26155 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
26156 Include `<grub/cpu/halt.h>'.
26157 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
26158 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
26159
26160 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
26161 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
26162 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
26163 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
26164 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
26165 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
26166 from here ...
26167 * include/grub/i386/at_keyboard.h: ... to here.
26168
26169 2008-08-05 Robert Millan <rmh@aybabtu.com>
26170
26171 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
26172 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
26173 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
26174 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26175 `kern/generic/millisleep.c'.
26176
26177 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
26178 instead of grub_get_rtc().
26179 (grub_tsc_init): Initialize `tsc_boot_time'.
26180
26181 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
26182 (grub_machine_init): Use grub_tsc_init() rather than
26183 installing an RTC-based handler via grub_install_get_time_ms().
26184
26185 * kern/i386/pit.c: New file.
26186 * include/grub/i386/pit.h: Likewise.
26187
26188 2008-08-05 Bean <bean123ch@gmail.com>
26189
26190 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
26191
26192 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
26193 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
26194 (pxe_mod_SOURCES): New macro.
26195 (pxe_mod_CFLAGS): Likewise.
26196 (pxe_mod_LDFLAGS): Likewise.
26197 (pxecmd_mod_SOURCES): Likewise.
26198 (pxecmd_mod_CFLAGS): Likewise.
26199 (pxecmd_mod_LDFLAGS): Likewise.
26200
26201 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
26202 (grub_pxe_call): Likewise.
26203
26204 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
26205
26206 * commands/i386/pc/pxecmd.c: New file.
26207
26208 * fs/i386/pc/pxe.c: Likewise.
26209
26210 * include/grub/i386/pc/pxe.h: Likewise.
26211
26212 2008-08-05 Bean <bean123ch@gmail.com>
26213
26214 * util/console.c (grub_console_cur_color): New variable.
26215 (grub_console_standard_color): Likewise.
26216 (grub_console_normal_color): Likewise.
26217 (grub_console_highlight_color): Likewise.
26218 (color_map): Likewise.
26219 (use_color): Likewise.
26220 (NUM_COLORS): New macro.
26221 (grub_ncurses_setcolorstate): Handle color properly.
26222 (grub_ncurses_setcolor): Don't change color here, just remember the
26223 settings, color will be set in grub_ncurses_setcolorstate.
26224 (grub_ncurses_getcolor): New function.
26225 (grub_ncurses_init): Initialize color pairs.
26226 (grub_ncurses_term): New member grub_ncurses_getcolor.
26227
26228 2008-08-05 Colin D Bennett <colin@gibibit.com>
26229
26230 High resolution timer support. Implemented for x86 CPUs using TSC.
26231 Extracted generic grub_millisleep() so it's linked in only as needed.
26232 This requires a Pentium compatible CPU; if the RDTSC instruction is
26233 not supported, then it falls back on the generic grub_get_time_ms()
26234 implementation that uses the machine's RTC.
26235
26236 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
26237 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26238 `kern/generic/millisleep.c'.
26239
26240 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
26241 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
26242
26243 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
26244 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
26245
26246 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26247
26248 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26249 `kern/generic/millisleep.c'.
26250
26251 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26252
26253 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
26254
26255 * kern/generic/rtc_get_time_ms.c: New file.
26256
26257 * kern/generic/millisleep.c: New file.
26258
26259 * kern/misc.c: Don't include
26260 <kern/time.h> anymore.
26261 (grub_millisleep_generic): Removed.
26262
26263 * commands/sleep.c (grub_interruptible_millisleep): Uses
26264 grub_get_time_ms() instead of grub_get_rtc().
26265
26266 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
26267 function.
26268 (grub_cpu_is_cpuid_supported): New inline function.
26269 (grub_cpu_is_tsc_supported): New inline function.
26270 (grub_tsc_init): New function prototype.
26271 (grub_tsc_get_time_ms): New function prototype.
26272
26273 * kern/i386/tsc.c (grub_get_time_ms): New file.
26274
26275 * include/grub/time.h: Include <grub/types.h.
26276 (grub_millisleep_generic): Removed.
26277 (grub_get_time_ms): New prototype.
26278 (grub_install_get_time_ms): New prototype.
26279 (grub_rtc_get_time_ms): New prototype.
26280
26281 * kern/time.c (grub_get_time_ms): New function.
26282 (grub_install_get_time_ms): New function.
26283
26284 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
26285 <grub/time.h> anymore.
26286 (grub_millisleep): Removed.
26287 (grub_machine_init): Call grub_tsc_init.
26288
26289 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
26290 get_time_ms() implementation.
26291
26292 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
26293 (ieee1275_get_time_ms): New function.
26294 (grub_machine_init): Install get_time_ms() implementation.
26295
26296 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
26297 (grub_machine_init): Call grub_tsc_init().
26298 (grub_millisleep): Removed.
26299
26300 * kern/ieee1275/init.c (grub_millisleep): Removed.
26301 (grub_machine_init): Install ieee1275_get_time_ms()
26302 implementation.
26303 (ieee1275_get_time_ms): New function.
26304 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
26305 real work.
26306
26307 2008-08-05 Marco Gerards <marco@gnu.org>
26308
26309 * disk/ata.c: Include <grub/pci.h>.
26310 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
26311 (grub_ata_initialize): Rewritten.
26312 (grub_ata_device_initialize): New function.
26313
26314 2008-08-04 Pavel Roskin <proski@gnu.org>
26315
26316 * kern/main.c: Include grub/mm.h.
26317
26318 2008-08-04 Robert Millan <rmh@aybabtu.com>
26319
26320 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
26321 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
26322 corruption problem).
26323
26324 2008-08-04 Robert Millan <rmh@aybabtu.com>
26325
26326 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
26327 warnings introduced in my last commit.
26328
26329 2008-08-03 Robert Millan <rmh@aybabtu.com>
26330
26331 Make PCI available on all i386 architectures.
26332
26333 * include/grub/i386/pc/pci.h: Move from here ...
26334 * include/grub/i386/pci.h: ... to here.
26335
26336 * include/grub/i386/pc/pci.h: Remove.
26337 * include/grub/i386/efi/pci.h: Remove.
26338 * include/grub/x86_64/efi/pci.h: Remove.
26339
26340 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
26341 `<grub/cpu/pci.h>'.
26342
26343 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
26344 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
26345 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
26346
26347 * conf/i386-ieee1275.rmk: Likewise.
26348
26349 2008-08-03 Robert Millan <rmh@aybabtu.com>
26350
26351 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
26352 (grub_console_setcursor): Make it possible to set cursor off.
26353
26354 2008-08-03 Robert Millan <rmh@aybabtu.com>
26355
26356 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
26357 of modules instead of assuming which platform provides what.
26358 * util/update-grub.in: Likewise.
26359
26360 2008-08-03 Robert Millan <rmh@aybabtu.com>
26361
26362 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
26363 instead of `grub_install_dos_part' to determine whether a drive needs
26364 to be prepended to prefix (`grub_install_dos_part' is not reliable,
26365 because it can be overridden when loading GRUB via Multiboot).
26366
26367 2008-08-02 Robert Millan <rmh@aybabtu.com>
26368
26369 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
26370
26371 2008-08-02 Robert Millan <rmh@aybabtu.com>
26372
26373 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
26374 of informational grub_dprintf() calls.
26375
26376 2008-08-02 Robert Millan <rmh@aybabtu.com>
26377
26378 * disk/memdisk.c (memdisk_size): Don't initialize.
26379 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
26380
26381 * include/grub/i386/pc/kernel.h
26382 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
26383 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
26384 (grub_memdisk_image_size, grub_arch_memdisk_addr)
26385 (grub_arch_memdisk_size): Remove.
26386
26387 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
26388 field (was only used to transfer a constant). Add `type' field to
26389 support multiple module types.
26390 (grub_module_iterate): New function.
26391
26392 * kern/device.c (grub_device_open): Do not hide error messages
26393 when grub_disk_open() fails. Use grub_print_error() instead.
26394
26395 * kern/i386/pc/init.c (grub_arch_modules_addr)
26396 (grub_arch_memdisk_size): Remove functions.
26397 (grub_arch_modules_addr): Return the module address in high memory
26398 (now that it isn't copied anymore).
26399
26400 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
26401 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
26402 decompression routine (grub_total_module_size already includes that
26403 now). Don't copy modules back to low memory.
26404
26405 * kern/main.c: Include `<grub/mm.h>'.
26406 (grub_load_modules): Split out (and use) ...
26407 (grub_module_iterate): ... this function, which iterates through
26408 module objects and runs a hook.
26409 Comment out grub_mm_init_region() call, as it would cause non-ELF
26410 modules to be overwritten.
26411
26412 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
26413 the memdisk image in its own region, make it part of the module list.
26414 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
26415 (main): Parse --memdisk|-m option, and pass user-provided path as
26416 parameter to generate_image().
26417 (add_segments): Pass `memdisk_path' down to load_modules().
26418 (load_modules): Embed memdisk image in module section when requested.
26419 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
26420 `header.type' instead of `header.offset'.
26421
26422 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
26423 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
26424 (memdisk_mod_LDFLAGS): New variables.
26425 * conf/i386-coreboot.rmk: Likewise.
26426 * conf/i386-ieee1275.rmk: Likewise.
26427
26428 2008-08-02 Robert Millan <rmh@aybabtu.com>
26429
26430 * loader/i386/pc/multiboot.c (playground, forward_relocator)
26431 (backward_relocator): New variables. Used to allocate and relocate
26432 the payload, respectively.
26433 (grub_multiboot_load_elf32): Load into heap instead of requested
26434 address, install the appropriate relocator code in each bound of
26435 the payload, and set the entry point such that
26436 grub_multiboot_real_boot() will jump to one of them.
26437
26438 * kern/i386/loader.S (grub_multiboot_payload_size)
26439 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26440 (grub_multiboot_payload_entry_offset): New variables.
26441 (grub_multiboot_real_boot): Set cpu context to what the relocator
26442 expects, and jump to the relocator instead of the payload.
26443
26444 * include/grub/i386/loader.h (grub_multiboot_payload_size)
26445 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26446 (grub_multiboot_payload_entry_offset): Export.
26447
26448 2008-08-01 Bean <bean123ch@gmail.com>
26449
26450 * normal/menu_entry.c (editor_getline): Don't return the original
26451 string as result, as it will be released by lexer once it has done
26452 using it.
26453
26454 2008-08-01 Robert Millan <rmh@aybabtu.com>
26455
26456 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
26457 within menuentries, not before them.
26458 util/grub.d/10_hurd.in: Likewise.
26459
26460 2008-08-01 Bean <bean123ch@gmail.com>
26461
26462 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
26463 (bufio_mod_SOURCES): New macro.
26464 (bufio_mod_CFLAGS): Likewise.
26465 (bufio_mod_LDFLAGS): Likewise.
26466
26467 * include/grub/bufio.h: New file.
26468
26469 * io/bufio.c: Likewise.
26470
26471 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
26472 (grub_video_reader_png): Use grub_buffile_open to open file.
26473
26474 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
26475 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
26476
26477 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
26478 (grub_video_reader_tga): Use grub_buffile_open to open file.
26479
26480 * font/manager.c: Include <grub/bufio.h>.
26481 (add_font): Use grub_buffile_open to open file.
26482
26483 2008-07-31 Robert Millan <rmh@aybabtu.com>
26484
26485 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
26486 ELF segments, use a macro for arbitrarily accessing any of them instead
26487 of preparing a pointer that allows access to one at a time.
26488 (grub_multiboot_load_elf64): Likewise.
26489
26490 2008-07-31 Bean <bean123ch@gmail.com>
26491
26492 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
26493 GRUB_KERNEL_MACHINE_DATA_END.
26494
26495 2008-07-30 Robert Millan <rmh@aybabtu.com>
26496
26497 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
26498 Increase from 0x50 to 0x60.
26499 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
26500 use UUIDs to identify the root drive for them. If that's not
26501 possible, abort.
26502 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
26503 check, for cross-disk installs.
26504
26505 2008-07-30 Robert Millan <rmh@aybabtu.com>
26506
26507 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
26508 is non-empty, use it to set the `prefix' environment variable instead
26509 of the usual approach.
26510 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
26511 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
26512 environment variable instead of dummy make_install_device().
26513
26514 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
26515 (start): Insert a data section, with `grub_prefix' variable.
26516 * kern/i386/linuxbios/startup.S: Likewise.
26517
26518 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
26519 New variable reference.
26520 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
26521 New macro. Defines offset of `grub_prefix' within startup.S (relative
26522 to `start').
26523 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
26524 section within startup.S (relative to `start').
26525 * include/grub/i386/coreboot/kernel.h: Likewise.
26526
26527 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
26528 Overwrite grub_prefix with its contents, at the beginning of the
26529 first segment.
26530 (main): Understand -p|--prefix.
26531
26532 2008-07-30 Robert Millan <rmh@aybabtu.com>
26533
26534 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
26535
26536 2008-07-30 Robert Millan <rmh@aybabtu.com>
26537
26538 * term/i386/pc/vga_text.c (grub_console_cls): Use
26539 grub_console_gotoxy() to go back to beginning of the screen.
26540 Found by Patrick Georgi <patrick.georgi@coresystems.de>
26541
26542 2008-07-29 Christian Franke <franke@computer.org>
26543
26544 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26545 Add conversion of emulated mount points on Cygwin.
26546
26547 2008-07-29 Christian Franke <franke@computer.org>
26548
26549 * util/update-grub.in: Add a check for admin
26550 group on Cygwin.
26551 Remove old `grub.cfg.new' before creation.
26552 Add `-f' to `mv' to handle the different filesystem
26553 semantics of Windows.
26554
26555 2008-07-29 Bean <bean123ch@gmail.com>
26556
26557 * normal/main.c (get_line): Fix buffer overflow bug.
26558
26559 2008-07-28 Robert Millan <rmh@aybabtu.com>
26560
26561 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
26562 (struct grub_apple_header): New struct. Describes the layout of
26563 the partmap header.
26564 (apple_partition_map_iterate): Check the header magic as well as the
26565 partition magic (which was already being checked).
26566
26567 2008-07-28 Pavel Roskin <proski@gnu.org>
26568
26569 * genmk.rb: Add a warning to the beginning of the output that
26570 it's a generated file and should not be edited.
26571
26572 2008-07-28 Robert Millan <rmh@aybabtu.com>
26573
26574 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
26575 with the same number are found, just use issue a warning with
26576 grub_dprintf(), as this error has been reported to be non-fatal.
26577
26578 2008-07-27 Robert Millan <rmh@aybabtu.com>
26579
26580 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
26581 information.
26582
26583 2008-07-27 Bean <bean123ch@gmail.com>
26584
26585 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
26586 (grub_fat_find_dir): Ignore case when comparing filename.
26587
26588 2008-07-27 Bean <bean123ch@gmail.com>
26589
26590 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
26591 smallino, as it's more descriptive, and i8count can be confused with
26592 the other field count.
26593 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
26594 inode type.
26595
26596 2008-07-27 Bean <bean123ch@gmail.com>
26597
26598 * commands/crc.c: New file.
26599
26600 * lib/crc.c: Likewise.
26601
26602 * include/grub/lib/crc.h: Likewise.
26603
26604 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
26605
26606 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
26607 (hexdump): Move this function to ...
26608
26609 * lib/hexdump.c: ... here.
26610
26611 * include/grub/hexdump.h: Renamed to ...
26612
26613 * include/grub/lib/hexdump.h: ... this.
26614
26615 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
26616
26617 * util/grub-editenv.c: Likewise.
26618
26619 * include/envblk.h: Renamed to ...
26620
26621 * include/lib/envblk.h: ... this.
26622
26623 * util/envblk.c: Renamed to ...
26624
26625 * lib/envblk.c: ... this.
26626
26627 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
26628 lib/hexdump.c.
26629 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
26630 (pkglib_MODULES): Add crc.mod.
26631 (hexdump_mod_SOURCES): Add lib/hexdump.c.
26632 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
26633 (crc_mod_SOURCES): New macro.
26634 (crc_mod_CFLAGS): Likewise.
26635 (crc_mod_LDFLAGS): Likewise.
26636
26637 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
26638
26639 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26640
26641 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26642
26643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26644
26645 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26646
26647 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
26648
26649 * commands/help.c: Include <grub/term.h>.
26650 (TERM_WIDTH): Removed. Updated all users.
26651
26652 2008-07-27 Pavel Roskin <proski@gnu.org>
26653
26654 * util/getroot.c (find_root_device): Rephrase a comment to avoid
26655 spurious warnings about a comment within a comment.
26656
26657 2008-07-25 Robert Millan <rmh@aybabtu.com>
26658
26659 * util/getroot.c (find_root_device): Skip devices that match
26660 /dev/dm-[0-9]. This lets the real device be found for any type of
26661 abstraction (LVM, EVMS, RAID..).
26662 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
26663 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
26664 device is found first, find_root_device() will now skip it.
26665
26666 2008-07-24 Pavel Roskin <proski@gnu.org>
26667
26668 * include/grub/types.h: Use __builtin_bswap32() and
26669 __builtin_bswap64() with gcc 4.3 and newer.
26670
26671 2008-07-24 Christian Franke <franke@computer.org>
26672
26673 * util/i386/pc/grub-install.in: If `--debug' is specified,
26674 pass `--verbose' to grub-setup.
26675 Abort script if make_system_path_relative_to_its_root() fails.
26676
26677 2008-07-24 Bean <bean123ch@gmail.com>
26678
26679 * configure.ac: Fixed a bug caused by the previous cygwin patch,
26680 variable `target_platform' should be `platform'.
26681
26682 2008-07-24 Bean <bean123ch@gmail.com>
26683
26684 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
26685 (grub_png_init_fixed_block): New function.
26686 (grub_png_decode_image_data): Handle fixed huffman code compression.
26687
26688 2008-07-24 Bean <bean123ch@gmail.com>
26689
26690 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
26691 (grub_pe2elf_SOURCES): New macro.
26692 (CLEANFILES): Add grub-pe2elf.
26693
26694 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
26695 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
26696 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
26697 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
26698 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
26699 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
26700 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
26701 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
26702 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
26703 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
26704 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
26705 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
26706 (GRUB_PE32_DT_FUNCTION): Likewise.
26707 (GRUB_PE32_REL_I386_DIR32): Likewise.
26708 (GRUB_PE32_REL_I386_REL32): Likewise.
26709 (grub_pe32_symbol): New structure.
26710 (grub_pe32_reloc): Likewise.
26711
26712 * util/grub-pe2elf.c: New file.
26713
26714 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
26715 start symbol in non pc platform.
26716
26717 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
26718
26719 The following patches are from Christian Franke.
26720
26721 * include/grub/dl.h: Remove .previous, gas supports this only
26722 for ELF format.
26723
26724 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
26725 Remove .type, gas supports this only for ELF format.
26726
26727 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
26728 nullbytes in symbol table. This fixes an infinite loop if table is
26729 zero filled.
26730
26731 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
26732 TARGET_IMG_LDFLAGS and EXEEXT.
26733
26734 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
26735 TARGET_IMG_LDFLAGS_AC.
26736 (grub_CHECK_STACK_ARG_PROBE): New function.
26737
26738 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
26739
26740 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
26741
26742 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
26743 to set TARGET_IMG_LD* accordingly.
26744 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
26745 Add call to grub_CHECK_STACK_ARG_PROBE.
26746 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
26747
26748 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
26749
26750 * genmk.rb: Add EXEEXT to CLEANFILES.
26751
26752 2008-07-23 Robert Millan <rmh@aybabtu.com>
26753
26754 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
26755 define the codes for arrows and lines used for the menu).
26756 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
26757 as well.
26758
26759 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
26760 fonts, because the latter are too slow.
26761
26762 2008-07-21 Bean <bean123ch@gmail.com>
26763
26764 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
26765 a20. Run keyboard test last, as it will cause macbook to halt.
26766
26767 2008-07-18 Pavel Roskin <proski@gnu.org>
26768
26769 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
26770 load foreign architecture modules correctly anyway. Keep
26771 support for loading host architecture modules, whether we
26772 compile them or not.
26773
26774 2008-07-17 Pavel Roskin <proski@gnu.org>
26775
26776 * configure.ac: Use -m32 or -m64 regardless of whether we had to
26777 change target_cpu. The compiler default can mismatch target_cpu
26778 in any case.
26779
26780 * disk/efi/efidisk.c: Fix format warnings on x86_64.
26781 * kern/efi/efi.c: Likewise.
26782
26783 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
26784 target compiler is functional.
26785 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
26786 are set up.
26787
26788 * configure.ac: Default to efi platform for x86_64-apple. Allow
26789 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
26790 adjustments from the rest, only do them if target is not
26791 explicitly given. Merge other adjustments with the final sanity
26792 check. Remove an extraneous check for supported CPU. Be
26793 specific which CPU and which platform is not supported.
26794
26795 * configure.ac: Default to pc platform for x86_64.
26796
26797 2008-07-17 Robert Millan <rmh@aybabtu.com>
26798
26799 Partial LinuxBIOS -> Coreboot rename.
26800
26801 * conf/i386-linuxbios.rmk: Renamed to ...
26802 * conf/i386-coreboot.rmk: ... this.
26803 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
26804 * configure.ac: Accept "coreboot" as input platform (but maintain
26805 compatibility with "linuxbios").
26806 * include/grub/i386/linuxbios: Renamed to ...
26807 * include/grub/i386/coreboot: ... this.
26808
26809 2008-07-17 Bean <bean123ch@gmail.com>
26810
26811 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
26812 (appleldr_mod_SOURCE): New variable.
26813 (appleldr_mod_CFLAGS): Likewise.
26814 (appleldr_mod_LDFLAGS): Likewise.
26815 (pci_mod_SOURCES): Likewise.
26816 (pci_mod_CFLAGS): Likewise.
26817 (pci_mod_LDFLAGS): Likewise.
26818 (lspci_mod_SOURCES): Likewise.
26819 (lspci_mod_CFLAGS): Likewise.
26820 (lspci_mod_LDFLAGS): Likewise.
26821
26822 * conf/x86_64-efi.rmk: New file.
26823
26824 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
26825 macro.
26826 (grub_efidisk_write): Likewise.
26827
26828 * include/efi/api.h (efi_call_0): New macro.
26829 (efi_call_1): Likewise.
26830 (efi_call_2): Likewise.
26831 (efi_call_3): Likewise.
26832 (efi_call_4): Likewise.
26833 (efi_call_5): Likewise.
26834 (efi_call_6): Likewise.
26835
26836 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
26837 grub_rescue_cmd_chainloader.
26838
26839 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
26840 (grub_pe32_optional_header): Change some fields based on i386 or
26841 x86_64 platform.
26842 (GRUB_PE32_PE32_MAGIC): Likewise.
26843
26844 * include/grub/efi/uga_draw.h: New file.
26845
26846 * include/grub/elf.h (STN_ABS): New constant.
26847 (R_X86_64_NONE): Relocation constant for x86_64.
26848 (R_X86_64_64): Likewise.
26849 (R_X86_64_PC32): Likewise.
26850 (R_X86_64_GOT32): Likewise.
26851 (R_X86_64_PLT32): Likewise.
26852 (R_X86_64_COPY): Likewise.
26853 (R_X86_64_GLOB_DAT): Likewise.
26854 (R_X86_64_JUMP_SLOT): Likewise.
26855 (R_X86_64_RELATIVE): Likewise.
26856 (R_X86_64_GOTPCREL): Likewise.
26857 (R_X86_64_32): Likewise.
26858 (R_X86_64_32S): Likewise.
26859 (R_X86_64_16): Likewise.
26860 (R_X86_64_PC16): Likewise.
26861 (R_X86_64_8): Likewise.
26862 (R_X86_64_PC8): Likewise.
26863
26864 * include/grub/i386/efi/pci.h: New file.
26865
26866 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
26867 Change it value based on platform.
26868 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
26869 (GRUB_E820_RAM): Likewise.
26870 (GRUB_E820_RESERVED): Likewise.
26871 (GRUB_E820_ACPI): Likewise.
26872 (GRUB_E820_NVS): Likewise.
26873 (GRUB_E820_EXEC_CODE): Likewise.
26874 (GRUB_E820_MAX_ENTRY): Likewise.
26875 (grub_e820_mmap): New structure.
26876 (linux_kernel_header): Change the efi field according to different
26877 kernel version, also field from linux_kernel_header.
26878
26879 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
26880
26881 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
26882 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
26883 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
26884 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
26885 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
26886 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
26887 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
26888 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
26889 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
26890 (GRUB_PCI_ADDR_IO_MASK): Likewise.
26891
26892 * include/grub/x86_64/efi/kernel.h: New file.
26893
26894 * include/grub/x86_64/efi/loader.h: Likewise.
26895
26896 * include/grub/x86_64/efi/machine.h: Likewise.
26897
26898 * include/grub/x86_64/efi/pci.h: Likewise.
26899
26900 * include/grub/x86_64/efi/time.h: Likewise.
26901
26902 * include/grub/x86_64/linux.h: Likewise.
26903
26904 * include/grub/x86_64/setjmp.h: Likewise.
26905
26906 * include/grub/x86_64/time.h: Likewise.
26907
26908 * include/grub/x86_64/types.h: Likewise.
26909
26910 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
26911 GRUB_TARGET_SIZEOF_VOID_P.
26912
26913 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
26914 (grub_efi_locate_handle): Likewise.
26915 (grub_efi_open_protocol): Likewise.
26916 (grub_efi_set_text_mode): Likewise.
26917 (grub_efi_stall): Likewise.
26918 (grub_exit): Likewise.
26919 (grub_reboot): Likewise.
26920 (grub_halt): Likewise.
26921 (grub_efi_exit_boot_services): Likewise.
26922 (grub_get_rtc): Likewise.
26923
26924 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
26925 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
26926 (grub_efi_allocate_pages): Wrap efi calls.
26927 (grub_efi_free_pages): Wrap efi calls.
26928 (grub_efi_get_memory_map): Wrap efi calls.
26929
26930 * kern/x86_64/dl.c: New file.
26931
26932 * kern/x86_64/efi/callwrap.S: Likewise.
26933
26934 * kern/x86_64/efi/startup.S: Likewise.
26935
26936 * loader/efi/appleloader.c: Likewise.
26937
26938 * loader/efi/chainloader.c (cmdline): New variable.
26939 (grub_chainloader_unload): Wrap efi calls.
26940 (grub_chainloader_boot): Likewise.
26941 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
26942 command line.
26943
26944 * loader/efi/chainloader_normal.c (chainloader_command):
26945 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
26946 command line.
26947
26948 * loader/i386/efi/linux.c (allocate_pages): Change allocation
26949 method.
26950 (grub_e820_add_region): New function.
26951 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
26952 booting.
26953 (grub_find_video_card): New function.
26954 (grub_linux_setup_video): New function.
26955 (grub_rescue_cmd_linux): Probe for video information.
26956
26957 * normal/x86_64/setjmp.S: New file.
26958
26959 * term/efi/console.c (map_char): New function.
26960 (grub_console_putchar): Map unicode char.
26961 (grub_console_checkkey): Wrap efi calls.
26962 (grub_console_getkey): Likewise.
26963 (grub_console_getwh): Likewise.
26964 (grub_console_gotoxy): Likewise.
26965 (grub_console_cls): Likewise.
26966 (grub_console_setcolorstate): Likewise.
26967 (grub_console_setcursor): Likewise.
26968
26969 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
26970
26971 2008-07-16 Pavel Roskin <proski@gnu.org>
26972
26973 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
26974 format strings.
26975
26976 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
26977 pointer, not an integer. This fixes a warning and prevents
26978 precision loss on 64-bit systems.
26979 (relocate_addresses): Remove unneeded cast.
26980
26981 2008-07-15 Pavel Roskin <proski@gnu.org>
26982
26983 * kern/i386/ieee1275/init.c: Include grub/cache.h.
26984
26985 * term/ieee1275/ofconsole.c: Disable code unused on i386.
26986
26987 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
26988 Fix comparison between signed and unsigned.
26989
26990 * include/grub/i386/ieee1275/console.h: Declare
26991 grub_console_init() and grub_console_fini().
26992
26993 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
26994 It's empty and unused.
26995
26996 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
26997 beginning to avoid warnings with some compilers.
26998
26999 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
27000 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
27001
27002 2008-07-14 Pavel Roskin <proski@gnu.org>
27003
27004 * kern/env.c (grub_register_variable_hook): Don't copy empty
27005 string, it leaks memory. Pass "" to grub_env_set(), it should
27006 handle constant strings.
27007
27008 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
27009 * commands/cmp.c (grub_cmd_cmp): Likewise.
27010 * kern/dl.c (grub_dl_flush_cache): Likewise.
27011 (grub_dl_load_core): Likewise.
27012 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
27013 (grub_elf64_load_phdrs): Likewise.
27014
27015 2008-07-13 Pavel Roskin <proski@gnu.org>
27016
27017 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
27018 between signed and unsigned.
27019 (LzmaEnc_Finish): Fix warning about an unused parameter.
27020
27021 2008-07-13 Bean <bean123ch@gmail.com>
27022
27023 * Makefile.in (enable_lzo): New rule.
27024
27025 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
27026
27027 * configure.ac (ENABLE_LZO): New option --enable-lzo.
27028
27029 * boot/i386/pc/lnxboot.S: #include <config.h>.
27030
27031 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
27032 its value according to the compression algorithm used, lzo or lzma.
27033
27034 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
27035 compression algorithm according to configure macro.
27036
27037 * kern/i386/pc/startup.S (codestart): Likewise.
27038
27039 * kern/i386/pc/lzma_decode.S: New file.
27040
27041 * include/grub/lib/LzFind.h: Likewise.
27042
27043 * include/grub/lib/LzHash.h: Likewise.
27044
27045 * include/grub/lib/LzmaDec.h: Likewise.
27046
27047 * include/grub/lib/LzmaEnc.h: Likewise.
27048
27049 * include/grub/lib/LzmaTypes.h: Likewise.
27050
27051 * lib/LzFind.c: Likewise.
27052
27053 * lib/LzmaDec.c: Likewise.
27054
27055 * lib/LzmaEnc.c: Likewise.
27056
27057 2008-07-13 Bean <bean123ch@gmail.com>
27058
27059 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
27060 (grub_ext4_extent_header): New structure.
27061 (grub_ext4_extent): Likewise.
27062 (grub_ext4_extent_idx): Likewise.
27063 (grub_ext4_find_leaf): New function.
27064 (grub_ext2_read_block): Handle extents.
27065
27066 2008-07-12 Robert Millan <rmh@aybabtu.com>
27067
27068 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
27069
27070 2008-07-11 Robert Millan <rmh@aybabtu.com>
27071
27072 * util/grub.d/40_custom.in: New file. Example on how to add custom
27073 entries to /etc/grub.d.
27074 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
27075 40_custom (implicitly, by merging all the grub.d rules).
27076
27077 2008-07-11 Pavel Roskin <proski@gnu.org>
27078
27079 * commands/read.c (grub_getline): Fix invalid memory access.
27080 Don't add newline to the variable value.
27081
27082 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
27083 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
27084 (serial_hw_get_port): Check validity of the port number.
27085 (grub_cmd_serial): Check return value of serial_hw_get_port().
27086
27087 2008-07-07 Pavel Roskin <proski@gnu.org>
27088
27089 * boot/i386/pc/diskboot.S (notification_string): Replace
27090 "Loading kernel" with just "loading". This is shorter, less
27091 confusing and saves a few bytes for possible future changes.
27092
27093 2008-07-05 Pavel Roskin <proski@gnu.org>
27094
27095 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
27096 size for ATAPI devices, they are undefined. Output sector
27097 number in decimal form.
27098
27099 * disk/ata.c: Use named constants for status bits.
27100
27101 2008-07-04 Pavel Roskin <proski@gnu.org>
27102
27103 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
27104 grub_addr_t before casting it to the void pointer to fix a
27105 warning. Non-addressable regions are discarded earlier.
27106 (grub_arch_modules_addr): Cast _end to grub_addr_t.
27107 * kern/i386/linuxbios/table.c: Include grub/misc.h.
27108 (check_signature): Don't shadow table_header.
27109 (grub_linuxbios_table_iterate): Cast numeric constants to
27110 grub_linuxbios_table_header_t.
27111 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
27112 grub_stop().
27113
27114 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
27115 prevent warnings.
27116
27117 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
27118 pointer, which can cause warnings. Support 64-bit addresses.
27119
27120 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
27121 of sizeof(long). This fixes PowerPC image generation on x86_64.
27122
27123 2008-07-04 Robert Millan <rmh@aybabtu.com>
27124
27125 This fixes a performance issue when pc & gpt partmap iterators
27126 didn't abort iteration even after our hook found what it was
27127 looking for (often causing expensive probes of non-existent drives).
27128
27129 Some callers relied on previous buggy behaviour, since they would
27130 raise an error when their own hooks caused early abortion of its
27131 iteration.
27132
27133 * kern/device.c (grub_device_open): Improve error message.
27134 * disk/lvm.c (grub_lvm_open): Likewise.
27135 * disk/raid.c (grub_raid_open): Likewise.
27136
27137 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
27138 when hook requests it, independently of grub_errno.
27139 (pc_partition_map_probe): Do not fail when find_func() caused
27140 early abortion of pc_partition_map_iterate().
27141
27142 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
27143 when hook requests it, independently of grub_errno.
27144 (gpt_partition_map_probe): Do not fail when find_func() caused
27145 early abortion of gpt_partition_map_iterate().
27146
27147 * kern/partition.c (grub_partition_iterate): Abort parent iteration
27148 when hook requests it, independently of grub_errno. Do not fail when
27149 part_map_iterate_hook() caused early abortion of p->iterate().
27150
27151 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
27152 when grub_partition_iterate() returned with non-zero.
27153
27154 2008-07-03 Pavel Roskin <proski@gnu.org>
27155
27156 * disk/ata.c (grub_ata_pio_write): Check status before writing,
27157 like we do in grub_ata_pio_read().
27158 (grub_ata_readwrite): Always write individual sectors. Fix the
27159 sector count for the remainder.
27160 (grub_ata_write): Enable writing to ATA devices. Correctly
27161 report error for ATAPI devices.
27162
27163 2008-07-02 Pavel Roskin <proski@gnu.org>
27164
27165 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
27166 warning.
27167
27168 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
27169 for every read sector, we already increment it for the whole
27170 batch. This fixes reading more than 256 sectors at once.
27171
27172 * util/grub-editenv.c (cmd_info): Cast argument to long
27173 explicitly. ptrdiff_t reduces to int on i386.
27174
27175 * util/grub-editenv.c (main): Be specific which parameter is
27176 missing.
27177
27178 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
27179 (memdisk): Make memdisk_orig_addr a pointer.
27180
27181 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
27182 for file offsets, use grub_off_t instead. Fix printf format
27183 warnings.
27184
27185 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
27186 there. Real unexpected warnings should not drown in the noise
27187 about known problems.
27188
27189 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
27190 grub_disk_addr_t for memory addresses.
27191
27192 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
27193 explicitly to fix a warning.
27194
27195 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
27196
27197 * Makefile.in (MODULE_LDFLAGS): New variable.
27198 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
27199 the linker accepts --build-id=none.
27200 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
27201 MODULE_LDFLAGS.
27202 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
27203
27204 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
27205 those in Linux XFS code. Provide a way to access 64-bit parent
27206 inode.
27207 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
27208 the end of struct grub_xfs_dir_header.
27209
27210 2008-07-02 Bean <bean123ch@gmail.com>
27211
27212 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
27213 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27214 and GRUB_IEEE1275_FLAG_NO_ANSI.
27215
27216 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
27217 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27218 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
27219
27220 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
27221 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
27222
27223 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
27224 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
27225
27226 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
27227 esc sequence on non ANSI terminal.
27228 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
27229
27230 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
27231 beginning of file.
27232
27233 2008-07-02 Bean <bean123ch@gmail.com>
27234
27235 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
27236 (grub_editenv_SOURCES): New variable.
27237 (pkglib_MODULES): Add loadenv.mod.
27238 (loadenv_mod_SOURCES): New variable.
27239 (loadenv_mod_CFLAGS): Likewise.
27240 (loadenv_mod_LDFLAGS): Likewise.
27241
27242 * include/grub/envblk.h: New file.
27243
27244 * util/envblk.c: New file.
27245
27246 * util/grub-editenv.c: New file.
27247
27248 * commands/loadenv.c: New file.
27249
27250 2008-07-01 Pavel Roskin <proski@gnu.org>
27251
27252 * include/multiboot2.h (struct multiboot_tag_module): Use char,
27253 not unsigned char. This fixes warnings and is consistent with
27254 other tags.
27255
27256 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
27257
27258 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
27259
27260 * term/tparm.c (analyze): Always set *popcount.
27261
27262 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
27263 cast to fix a warning.
27264
27265 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
27266 cast to suppress a warning.
27267
27268 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
27269 grub_fshelp_read_file() expects.
27270
27271 * fs/fat.c: Fix UUID calculation on big-endian systems. We
27272 write uuid as a 32-bit value in CPU byte order, so declare and
27273 use it as such.
27274
27275 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
27276 long if the format specifier expects it.
27277 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
27278 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27279 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
27280 long to fix a warning.
27281 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
27282 grub_dprintf() arguments to fix warnings.
27283
27284 2008-06-30 Pavel Roskin <proski@gnu.org>
27285
27286 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
27287 install_bsd_part immediately before core.img is embedded or
27288 modified on disk. This fixes core.img verification if core.img
27289 cannot be embedded.
27290
27291 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
27292 core_path to calculate the blocklist.
27293 Patch from Javier Martín <lordhabbit@gmail.com>
27294
27295 2008-06-29 Robert Millan <rmh@aybabtu.com>
27296
27297 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
27298 block to disk block.
27299 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
27300 Patch from Niels Böhm <bitbucket@arcor.de>
27301
27302 2008-06-29 Robert Millan <rmh@aybabtu.com>
27303
27304 * util/update-grub_lib.in (font_path): Search for fonts in
27305 /boot/grub first, which is more likely to be readable (we aren't
27306 deciding where fonts live, just looking for them).
27307
27308 2008-06-26 Pavel Roskin <proski@gnu.org>
27309
27310 * util/biosdisk.c (read_device_map): Don't leave dead map
27311 entries for devices failing stat() check.
27312
27313 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
27314 core_path_dev for the core.img path on the target device.
27315
27316 2008-06-26 Robert Millan <rmh@aybabtu.com>
27317
27318 * disk/fs_uuid.c: New file.
27319 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
27320 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
27321 (fs_uuid_mod_LDFLAGS): New variables.
27322 * include/grub/disk.h (grub_disk_dev_id): Add
27323 `GRUB_DISK_DEVICE_UUID_ID'.
27324 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
27325 implement iterate().
27326
27327 2008-06-26 Robert Millan <rmh@aybabtu.com>
27328
27329 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
27330 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
27331 Linux image includes no initrd.
27332
27333 2008-06-21 Javier Martín <lordhabbit@gmail.com>
27334
27335 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
27336 call to resolve the core image location that effectively appended the
27337 name twice.
27338
27339 2008-06-21 Robert Millan <rmh@aybabtu.com>
27340
27341 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
27342 call from here ...
27343
27344 * util/grub.d/10_hurd.in: ... to here ...
27345 * util/grub.d/10_linux.in: ... and here.
27346
27347 2008-06-19 Robert Millan <rmh@aybabtu.com>
27348
27349 * kern/main.c (grub_main): Export `prefix' variable immediately
27350 after it has been set by grub_machine_set_prefix().
27351
27352 2008-06-19 Robert Millan <rmh@aybabtu.com>
27353
27354 * commands/search.c (search_label, search_fs_uuid, search_file): Print
27355 search result when not saving to variable, not the other way around.
27356 When saving to variable, abort iteration as soon as a match is found.
27357
27358 2008-06-19 Robert Millan <rmh@aybabtu.com>
27359
27360 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
27361 check for partition that provides /boot/grub. Its logic is flawed,
27362 as it prevents prepare_grub_to_access_device() from being called
27363 multiple times.
27364
27365 2008-06-19 Robert Millan <rmh@aybabtu.com>
27366
27367 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
27368 "insmod" command directly when abstraction modules are needed,
27369 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
27370 since it had already been processed).
27371
27372 2008-06-19 Pavel Roskin <proski@gnu.org>
27373
27374 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
27375 changed. This is needed in case GRUB_LIBDIR changes.
27376 * conf/i386-ieee1275.rmk: Likewise.
27377 * conf/i386-linuxbios.rmk: Likewise.
27378 * conf/i386-pc.rmk: Likewise.
27379 * conf/powerpc-ieee1275.rmk: Likewise.
27380
27381 2008-06-18 Pavel Roskin <proski@gnu.org>
27382
27383 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
27384 kernel_elf_symlist.c to symlist.c for consistency with other
27385 architectures. Update all users.
27386 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27387
27388 2008-06-18 Robert Millan <rmh@aybabtu.com>
27389
27390 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
27391 it in prefix.
27392
27393 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
27394 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
27395 a RAID device, run setup() for all members independently on whether
27396 LVM abstraction is being used.
27397 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
27398 If grub-mkimage has set `*install_dos_part == -2', don't override this
27399 value.
27400 Perform *install_dos_part adjustments independently on whether
27401 we're embedding or not.
27402 Clarify error message when image is too big for embedding.
27403 Remove duplicate *install_dos_part stanza.
27404
27405 2008-06-17 Robert Millan <rmh@aybabtu.com>
27406
27407 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
27408 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
27409 variables.
27410 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
27411 values in grub_ofconsole_normal_color and
27412 grub_ofconsole_highlight_color (they're not directly related to
27413 background and foreground).
27414 (grub_ofconsole_setcolorstate): Extract background and foreground
27415 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
27416
27417 2008-06-17 Robert Millan <rmh@aybabtu.com>
27418
27419 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
27420 /boot/grub for the check in last commit, not /boot (they could be
27421 different partitions).
27422
27423 2008-06-16 Robert Millan <rmh@aybabtu.com>
27424
27425 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
27426 asked to setup access for the same partition that provides /boot,
27427 don't bother using UUIDs since our root already has the value we
27428 want.
27429
27430 2008-06-16 Robert Millan <rmh@aybabtu.com>
27431
27432 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
27433 I2O devices.
27434 Patch from Sven Mueller <sven@debian.org>.
27435
27436 2008-06-16 Robert Millan <rmh@aybabtu.com>
27437
27438 * util/update-grub.in: Check for $EUID instead of $UID.
27439 Reported by Vincent Zweije.
27440
27441 2008-06-16 Bean <bean123ch@gmail.com>
27442
27443 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
27444 (grub_ext2_read_block): Likewise.
27445 (grub_ext2_read_inode): Likewise.
27446 (grub_ext2_mount): Likewise.
27447 (grub_ext2_close): Likewise.
27448 (grub_ext3_get_journal): Removed.
27449
27450 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
27451 (grub_reiserfs_read_symlink): Likewise.
27452 (grub_reiserfs_mount): Likewise.
27453 (grub_reiserfs_open): Likewise.
27454 (grub_reiserfs_read): Likewise.
27455 (grub_reiserfs_close): Likewise.
27456 (grub_reiserfs_get_journal): Removed.
27457
27458 * fs/fshelp.c (grub_fshelp_read): Removed.
27459 (grub_fshelp_map_block): Likewise.
27460
27461 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
27462 (grub_fshelp_journal): Likewise.
27463 (grub_fshelp_read): Likewise.
27464 (grub_fshelp_map_block): Likewise.
27465
27466 2008-06-16 Pavel Roskin <proski@gnu.org>
27467
27468 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
27469 floating point anymore.
27470 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
27471
27472 2008-06-15 Pavel Roskin <proski@gnu.org>
27473
27474 * commands/ls.c (grub_ls_list_files): Use integer calculations
27475 for human readable format, avoid floating point use.
27476 * kern/misc.c (grub_ftoa): Remove.
27477 (grub_vsprintf): Remove floating point support.
27478
27479 2008-06-15 Robert Millan <rmh@aybabtu.com>
27480
27481 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
27482 devices.
27483 Reported by Max Vozeler.
27484
27485 2008-06-15 Robert Millan <rmh@aybabtu.com>
27486
27487 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
27488 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
27489 skipped later.
27490 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
27491 the beginning of the prefix.
27492
27493 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
27494 It is assumed that if we have a memdisk, grub-mkimage has set
27495 grub_prefix to include the "(memdisk)" drive in it.
27496
27497 2008-06-15 Robert Millan <rmh@aybabtu.com>
27498
27499 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
27500 Initialize keyboard controller after registering the terminal, so that
27501 grub_printf() can be called from grub_keyboard_controller_init().
27502
27503 2008-06-15 Robert Millan <rmh@aybabtu.com>
27504
27505 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
27506 extent-btree which is written as big endian on disk.
27507 Reported by Alain Greppin <al@chilibi.org>.
27508
27509 2008-06-14 Robert Millan <rmh@aybabtu.com>
27510
27511 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
27512 * util/i386/pc/grub-install.in (modules): Likewise.
27513
27514 2008-06-13 Pavel Roskin <proski@gnu.org>
27515
27516 * commands/ls.c (grub_ls_list_files): Fix format warnings.
27517
27518 2008-06-13 Bean <bean123ch@gmail.com>
27519
27520 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
27521
27522 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
27523
27524 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
27525 to indicate sparse block.
27526
27527 2008-06-12 Pavel Roskin <proski@gnu.org>
27528
27529 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
27530 number, grub_fshelp_read() does it for us.
27531
27532 * fs/fshelp.c (grub_fshelp_read): New function. Implement
27533 linear disk read with journal translation.
27534 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
27535 * include/grub/fshelp.h: Declare grub_fshelp_read().
27536
27537 2008-06-09 Pavel Roskin <proski@gnu.org>
27538
27539 * fs/minix.c (grub_minix_mount): Handle error reading
27540 superblock.
27541
27542 2008-06-08 Robert Millan <rmh@aybabtu.com>
27543
27544 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
27545 don't append the RAID prefix afterwards.
27546 Reported by Clint Adams.
27547
27548 2008-06-08 Robert Millan <rmh@aybabtu.com>
27549
27550 Based on description from Pavel:
27551 * kern/disk.c (grub_disk_check_range): Rename to ...
27552 (grub_disk_adjust_range): ... this. Add a comment explaining the
27553 tasks performed by this function.
27554
27555 2008-06-08 Robert Millan <rmh@aybabtu.com>
27556
27557 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
27558 `num_serial' (for consistency with other variables).
27559 (struct grub_ntfs_data): Add `uuid' member.
27560 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
27561 (grub_ntfs_uuid): New function.
27562 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
27563
27564 2008-06-07 Pavel Roskin <proski@gnu.org>
27565
27566 * util/biosdisk.c (open_device): Revert last change to the
27567 function, it broke installation. The sector needs to be
27568 different dependent on which device is opened.
27569
27570 2008-06-06 Robert Millan <rmh@aybabtu.com>
27571
27572 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
27573 rest of GRUB, and breakage doesn't happen if its value were modified.
27574
27575 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27576 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
27577 a constant (same value).
27578 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
27579 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
27580
27581 2008-06-06 Robert Millan <rmh@aybabtu.com>
27582
27583 * util/biosdisk.c (open_device): Do not modify sector offset when
27584 accessing a partition. kern/disk.c already handles this for us.
27585
27586 2008-06-06 Robert Millan <rmh@aybabtu.com>
27587
27588 * util/grub-emu.c (grub_machine_init): Move code in this function from
27589 here ...
27590 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
27591 segfault in case grub_printf() is called).
27592
27593 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
27594 grub_probe. Update all users not to explicitly add it again.
27595 (grub_device): New variable; contains corresponding device for grubdir.
27596 (fs_module, partmap_module, devabstraction_module): Pass
27597 `--device ${grub_device}' to grub_probe to avoid traversing /dev
27598 every time.
27599
27600 2008-06-05 Robert Millan <rmh@aybabtu.com>
27601
27602 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
27603 is found, print it (same layout as with labels).
27604
27605 2008-06-04 Robert Millan <rmh@aybabtu.com>
27606
27607 * util/biosdisk.c (get_drive): Rename to ...
27608 (find_grub_drive): ... this. Update all users.
27609
27610 (get_os_disk): Rename to ...
27611 (convert_system_partition_to_system_disk): ... this. Update all users.
27612
27613 (find_drive): Rename to ...
27614 (find_system_device): ... this. Update all users.
27615
27616 2008-06-04 Robert Millan <rmh@aybabtu.com>
27617
27618 * util/biosdisk.c (get_os_disk): Handle IDA devices.
27619 * util/grub-mkdevicemap.c (get_mmc_disk_name)
27620 (make_device_map): Likewise.
27621
27622 2008-06-01 Robert Millan <rmh@aybabtu.com>
27623
27624 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
27625 before dereferencing it.
27626
27627 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
27628 union with fat12/fat16-specific ones. Add some new fields, including
27629 `num_serial' for both versions.
27630 (struct grub_fat_data): Add `uuid' member.
27631 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
27632 names. Initialize `data->uuid' using `num_serial'.
27633 (grub_fat_uuid): New function.
27634 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
27635
27636 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
27637 (grub_reiserfs_uuid): New function.
27638 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
27639 member.
27640
27641 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
27642 (grub_xfs_uuid): New function.
27643 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
27644
27645 2008-06-01 Robert Millan <rmh@aybabtu.com>
27646
27647 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
27648 code that is backward compatible with pre-uuid search command.
27649
27650 2008-05-31 Robert Millan <rmh@aybabtu.com>
27651
27652 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
27653 floppies after everything else, to ensure floppy drive isn't accessed
27654 unnecessarily (patch from Bean).
27655
27656 2008-05-31 Robert Millan <rmh@aybabtu.com>
27657
27658 * commands/search.c (search_label, search_fs_uuid, search_file): Do
27659 not print device names when we were asked to set a variable.
27660
27661 2008-05-31 Robert Millan <rmh@aybabtu.com>
27662
27663 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
27664 using "cursor-on" and "cursor-off" commands (understood at least by
27665 the Open Firmware flavour on OLPC).
27666
27667 2008-05-31 Michael Gorven <michael@gorven.za.net>
27668
27669 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
27670 on and off sequences.
27671
27672 2008-05-31 Robert Millan <rmh@aybabtu.com>
27673
27674 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
27675 * util/update-grub.in: Likewise.
27676
27677 2008-05-30 Pavel Roskin <proski@gnu.org>
27678
27679 * util/biosdisk.c (linux_find_partition): Simplify logic and
27680 make the code more universal. Keep special processing for
27681 devfs, but use a simple rule for all other devices. If the
27682 device ends with a number, append 'p' and the partition number.
27683 Otherwise, append only the partition number.
27684
27685 2008-05-30 Robert Millan <rmh@aybabtu.com>
27686
27687 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
27688 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
27689 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
27690 the `root' parameter to Linux.
27691
27692 2008-05-30 Robert Millan <rmh@aybabtu.com>
27693
27694 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
27695 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
27696 --fs_uuid with --fs-uuid.
27697 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
27698 all filesystems support them).
27699
27700 2008-05-30 Robert Millan <rmh@aybabtu.com>
27701
27702 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
27703 grub_printf() flags, since we're printing in units of 2 bytes.
27704
27705 2008-05-30 Robert Millan <rmh@aybabtu.com>
27706
27707 * util/grub.d/00_header.in: Remove obsolete comment referencing
27708 convert_system_path_to_grub_path().
27709 * util/update-grub.in: Likewise.
27710 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
27711 (convert_system_path_to_grub_path): Add a warning message explaining
27712 that this function is deprecated. Rely on is_path_readable_by_grub()
27713 for the readability checks.
27714 (font_path): Use is_path_readable_by_grub() for the readability
27715 check rather than convert_system_path_to_grub_path().
27716
27717 2008-05-30 Robert Millan <rmh@aybabtu.com>
27718
27719 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
27720 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
27721 converting it first.
27722 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
27723 grub.cfg for access to font file, and afterwards call it again to set
27724 the root device.
27725
27726 2008-05-30 Robert Millan <rmh@aybabtu.com>
27727
27728 * commands/search.c (options): Add --fs_uuid option.
27729 (search_fs_uuid): New function.
27730 (grub_cmd_search): Fix --set argument passing.
27731 Use search_fs_uuid() when requested via --fs_uuid.
27732 (grub_search_init): Update help message.
27733 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
27734 and redeclare it as an array of 16-bit words.
27735 (grub_ext2_uuid): New function.
27736 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
27737 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
27738 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
27739 (GRUB_DEVICE_BOOT_UUID): New variables.
27740 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
27741 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
27742 whenever possible.
27743 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
27744 just assume `root' variable has the right value.
27745 * util/grub.d/10_linux.in: Likewise.
27746 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
27747 via PRINT_FS_UUID.
27748 (main): Recognise `-t fs_uuid' argument.
27749
27750 2008-05-30 Robert Millan <rmh@aybabtu.com>
27751
27752 * util/biosdisk.c (map): Redefine structure to hold information
27753 about GRUB drive name.
27754 (get_drive): Reimplement without assuming (and verifying) BIOS-like
27755 drive names.
27756 (call_hook): Remove.
27757 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
27758 member. Assume drive has partitions.
27759 (grub_util_biosdisk_open): Access device names via `.device' struct
27760 member.
27761 (open_device): Likewise.
27762 (find_drive): Likewise.
27763 (read_device_map): Adjust map[] usage to match the new struct
27764 definition. Don't check for duplicates (still possible, but not cheap
27765 anymore).
27766 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
27767 (make_device_name): Remove assumption of BIOS-like drive names.
27768
27769 2008-05-30 Pavel Roskin <proski@gnu.org>
27770
27771 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
27772 compiling execute.c doesn't need grub_script.tab.h anymore.
27773 (normal/command.c_DEPENDENCIES): Likewise.
27774 (normal/function.c_DEPENDENCIES): Likewise.
27775 * conf/i386-ieee1275.rmk: Likewise.
27776 * conf/i386-linuxbios.rmk: Likewise.
27777 * conf/i386-pc.rmk: Likewise.
27778 * conf/powerpc-ieee1275.rmk: Likewise.
27779 * conf/sparc64-ieee1275.rmk: Likewise.
27780
27781 2008-05-29 Pavel Roskin <proski@gnu.org>
27782
27783 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
27784 when scanning metadata for volume group name.
27785
27786 * include/grub/script.h: Don't include grub_script.tab.h. It's
27787 a generated file, which may only be included from the files with
27788 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
27789 use union YYSTYPE, as the later allows forward declaration.
27790 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
27791
27792 2008-05-29 Robert Millan <rmh@aybabtu.com>
27793
27794 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
27795 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
27796 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
27797 (grub_console_checkkey): Add grub_dprintf() call to report unknown
27798 scan codes.
27799
27800 2008-05-29 Robert Millan <rmh@aybabtu.com>
27801
27802 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
27803 control key combinations.
27804
27805 2008-05-29 Robert Millan <rmh@aybabtu.com>
27806
27807 * util/powerpc/ieee1275/grub-install.in: Move from here ...
27808 * util/ieee1275/grub-install.in: ... to here.
27809 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
27810 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
27811 (grub_install_SOURCES): Likewise.
27812
27813 2008-05-29 Robert Millan <rmh@aybabtu.com>
27814
27815 * fs/affs.c: Update copyright year.
27816 * fs/ext2.c: Likewise.
27817 * fs/fshelp.c: Likewise.
27818 * fs/hfsplus.c: Likewise.
27819 * fs/ntfs.c: Likewise.
27820 * fs/xfs.c: Likewise.
27821 * include/grub/fshelp.h: Likewise.
27822 * util/grub-mkdevicemap.c: Likewise.
27823
27824 2008-05-28 Robert Millan <rmh@aybabtu.com>
27825
27826 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
27827 might need to be fatfs to support some firmware implementations
27828 (e.g. OFW or EFI).
27829
27830 2008-05-28 Robert Millan <rmh@aybabtu.com>
27831
27832 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
27833 devices.
27834 * util/grub-mkdevicemap.c (get_mmc_disk_name)
27835 (make_device_map): Likewise.
27836
27837 2008-05-20 Bean <bean123ch@gmail.com>
27838
27839 * fs/fshelp.c (grub_fshelp_map_block): New function.
27840 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
27841 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
27842
27843 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
27844 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
27845 (grub_fshelp_journal): New structure.
27846 (grub_fshelp_map_block): New function prototype.
27847 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
27848 (grub_fshelp_map_block): Likewise.
27849
27850 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
27851 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
27852 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
27853 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
27854 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
27855 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
27856 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
27857 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
27858 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
27859 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
27860 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
27861 (grub_ext2_sblock): New members for journal support.
27862 (grub_ext3_journal_header): New structure.
27863 (grub_ext3_journal_revoke_header): Likewise.
27864 (grub_ext3_journal_block_tag): Likewise.
27865 (grub_ext3_journal_sblock): Likewise.
27866 (grub_fshelp_node): New members logfile and journal.
27867 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
27868 grub_fshelp_map_block to get real block number.
27869 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
27870 number.
27871 (grub_ext2_read_inode): Likewise.
27872 (grub_ext3_get_journal): New function.
27873 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
27874 (grub_ext2_close): Release memory used by journal.
27875
27876 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
27877 (REISERFS_MAGIC_DESC_BLOCK): New macro.
27878 (grub_reiserfs_transaction_header): Renamed to
27879 grub_reiserfs_description_block, replace field data with real_blocks.
27880 (grub_reiserfs_commit_block): New structure.
27881 (grub_reiserfs_data): New member journal.
27882 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
27883 number.
27884 (grub_reiserfs_read_symlink): Likewise.
27885 (grub_reiserfs_iterate_dir): Likewise.
27886 (grub_reiserfs_open): Likewise.
27887 (grub_reiserfs_read): Likewise.
27888 (grub_reiserfs_get_journal): New function.
27889 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
27890 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
27891 using grub_reiserfs_get_journal.
27892 (grub_reiserfs_close): Release memory used by journal.
27893
27894 * fs/affs.c (grub_affs_read_block): Change block type to
27895 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
27896
27897 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
27898
27899 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
27900
27901 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
27902
27903 * fs/udf.c (grub_udf_read_block): Change block type to
27904 grub_disk_addr_t. Use type cast to avoid warning.
27905
27906 * fs/xfs.c (grub_xfs_read_block): Likewise.
27907
27908 2008-05-16 Christian Franke <franke@computer.org>
27909
27910 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
27911 to ensure that break with ESC will always work.
27912 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
27913 Remove ESC from keyboard queue.
27914
27915 2008-05-16 Christian Franke <franke@computer.org>
27916
27917 * util/biosdisk.c: [__CYGWIN__] Add includes.
27918 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
27919 (get_os_disk): Move variable declarations to OS specific
27920 parts to avoid warning.
27921 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
27922 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
27923 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
27924 Cygwin.
27925 * util/getroot.c: [__CYGWIN__] Add includes.
27926 (strip_extra_slashes): Fix "/" case.
27927 [__CYGWIN__] (get_win32_path): New function.
27928 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
27929 [__CYGWIN__] (find_root_device): Disable.
27930 [__CYGWIN__] (get_bootsec_serial): New function.
27931 [__CYGWIN__] (find_cygwin_root_device): Likewise.
27932 [__linux__] (grub_guess_root_device): Add early returns to simplify
27933 structure.
27934 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
27935 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
27936 check for Linux only.
27937
27938 2008-05-15 Bean <bean123ch@gmail.com>
27939
27940 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
27941 keyboard hang problem in apple's intel mac.
27942
27943 2008-05-09 Robert Millan <rmh@aybabtu.com>
27944
27945 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
27946 devices.
27947 * util/grub-mkdevicemap.c (get_virtio_disk_name)
27948 (make_device_map): Likewise.
27949 Reported by Aurelien Jarno <aurel32@debian.org>
27950
27951 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
27952
27953 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
27954 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
27955 (make_device_map): Output entries for xvd type disks.
27956
27957 2008-05-07 Robert Millan <rmh@aybabtu.com>
27958
27959 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
27960 devices.
27961 * util/grub-mkdevicemap.c (get_cciss_disk_name)
27962 (make_device_map): Likewise.
27963 Reported by Roland Dreier <rdreier@cisco.com>
27964
27965 2008-05-07 Robert Millan <rmh@aybabtu.com>
27966
27967 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
27968 grub_strstr() call. Correct a few mistakes in failure path handling.
27969
27970 2008-05-06 Robert Millan <rmh@aybabtu.com>
27971
27972 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
27973 Do not print a trailing slash (therefore, the root directory is an
27974 empty string).
27975 (convert_system_path_to_grub_path): Do not remove trailing slash
27976 from make_system_path_relative_to_its_root() output.
27977
27978 * util/i386/pc/grub-install.in: Add trailing slash to output from
27979 make_system_path_relative_to_its_root().
27980
27981 2008-05-06 Robert Millan <rmh@aybabtu.com>
27982
27983 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
27984 ensures that output lines aren't intermangled with those sent to
27985 stderr (via grub_util_info()).
27986 * util/grub-probe.c (grub_refresh): Likewise.
27987 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
27988
27989 2008-05-05 Christian Franke <franke@computer.org>
27990
27991 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
27992 Add Cygwin device names.
27993 (get_ide_disk_name) [__CYGWIN__]: Likewise.
27994 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
27995 (check_device): Return error instead of success on empty name.
27996 (make_device_map): Move label inside linux specific code to
27997 prevent compiler warning.
27998
27999 2008-04-30 Robert Millan <rmh@aybabtu.com>
28000
28001 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
28002 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
28003 first boot option.
28004 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
28005
28006 2008-04-29 Robert Millan <rmh@aybabtu.com>
28007
28008 * docs/grub.cfg: New file (example GRUB configuration).
28009
28010 2008-04-26 Robert Millan <rmh@aybabtu.com>
28011
28012 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
28013 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
28014 and `disk/ieee1275/nand.c'.
28015
28016 2008-04-25 Bean <bean123ch@gmail.com>
28017
28018 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
28019 i386-linuxbios.
28020
28021 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
28022 change the buffer size to 4096 for cdrom device.
28023
28024 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
28025 and nand.mod.
28026 (_linux_mod_SOURCES): New variable.
28027 (_linux_mod_CFLAGS): Likewise.
28028 (_linux_mod_LDFLAGS): Likewise.
28029 (linux_mod_SOURCES): Likewise.
28030 (linux_mod_CFLAGS): Likewise.
28031 (linux_mod_LDFLAGS): Likewise.
28032 (nand_mod_SOURCES): Likewise.
28033 (nand_mod_CFLAGS): Likewise.
28034 (nand_mod_LDFLAGS): Likewise.
28035
28036 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
28037 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
28038 type property. (nand device in olpc don't have this property)
28039
28040 * include/grub/disk.h (grub_disk_dev_id): New macro
28041 GRUB_DISK_DEVICE_NAND_ID.
28042
28043 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
28044 function prototype.
28045 (grub_rescue_cmd_initrd): Likewise.
28046
28047 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
28048 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
28049 ofw_cif_handler and ofw_idt, adjust padding number.
28050
28051 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
28052 GRUB_MACHINE_IEEE1275 is defined.
28053
28054 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
28055 Use NESTED_FUNC_ATTR attribute on the hook parameter.
28056
28057 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
28058 on nested function heap_init.
28059 (grub_upper_mem): New variable for i386-ieee1275.
28060 (grub_get_extended_memory): New function for i386-ieee1275.
28061 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
28062
28063 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
28064 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
28065 property.
28066
28067 * loader/i386/ieee1275/linux.c: New file.
28068
28069 * loader/i386/ieee1275/linux_normal.c: New file.
28070
28071 * disk/ieee1275/nand.c: New file.
28072
28073 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
28074
28075 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
28076 value.
28077 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
28078
28079 2008-04-18 Robert Millan <rmh@aybabtu.com>
28080
28081 Restructures early code path on ieee1275 to unify grub_main() as
28082 the first C function that is executed in every platform.
28083
28084 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
28085 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
28086 cmain().
28087 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
28088 * kern/ieee1275/cmain.c (cmain): Rename to ...
28089 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
28090 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
28091 at the beginning.
28092
28093 2008-04-18 Robert Millan <rmh@aybabtu.com>
28094
28095 * util/update-grub.in: Fix syntax error when setting
28096 `GRUB_PRELOAD_MODULES'.
28097 Reported by Stephane Chazelas <stephane@artesyncp.com>
28098
28099 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
28100
28101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
28102 section into account, newer toolchains generate unique build ids
28103 * configure.ac: remove the test for --build-id=none acceptance,
28104 we want build ids to be preserved
28105 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
28106 far from other sections don't cause the raw binary images grow
28107 size
28108
28109 2008-04-15 Robert Millan <rmh@aybabtu.com>
28110
28111 * disk/lvm.c: Update copyright year.
28112 * kern/misc.c: Likewise.
28113
28114 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28115
28116 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
28117 there is no memory left for physical volume name.
28118
28119 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28120
28121 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
28122 volume name mapping to support bigger than 9 character names properly.
28123
28124 2008-04-13 Robert Millan <rmh@aybabtu.com>
28125
28126 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
28127 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
28128
28129 2008-04-13 Christian Franke <franke@computer.org>
28130
28131 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
28132 to create a floppy emulation boot CD when non emulation mode
28133 does not work.
28134 Enable Joliet CD filesystem extension.
28135
28136 2008-04-13 Robert Millan <rmh@aybabtu.com>
28137
28138 * kern/misc.c (grub_strncat): Fix off-by-one error.
28139 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
28140
28141 * kern/env.c (grub_env_context_close): Clear current context, not
28142 previous one.
28143 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
28144
28145 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
28146
28147 2008-04-13 Robert Millan <rmh@aybabtu.com>
28148
28149 Improve robustness when handling LVM.
28150
28151 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
28152 (and leave `*p' unmodified).
28153 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
28154 through it.
28155 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
28156 iterating through it.
28157 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
28158 through it.
28159 (grub_lvm_scan_device): Check the return value (and fail gracefully
28160 when due) on each grub_lvm_getvalue() or grub_strstr() call.
28161 Don't assume `vg->pvs != NULL' when iterating through it.
28162
28163 2008-04-13 Robert Millan <rmh@aybabtu.com>
28164
28165 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
28166 * genmk.rb (partmap): New variable.
28167 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
28168 (#{partmap}): New target rule.
28169 * genpartmaplist.sh: New file.
28170 * Makefile.in (pkglib_DATA): Add partmap.lst.
28171 (partmap.lst): New target rule.
28172 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
28173 modules (including all partition maps), instead of preloading them.
28174
28175 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
28176
28177 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
28178 `linux-boot-prober' (if installed) to detect other operating
28179 systems which are installed on the computer and add them to
28180 the boot menu.
28181 * conf/common.rmk: Build and install 30_os-prober.
28182
28183 2008-04-12 Robert Millan <rmh@aybabtu.com>
28184
28185 * kern/powerpc/ieee1275/init.c: Move from here ...
28186 * kern/ieee1275/init.c: ... to here. Update all users.
28187
28188 * kern/powerpc/ieee1275/cmain.c: Move from here ...
28189 * kern/ieee1275/cmain.c: ... to here. Update all users.
28190
28191 * kern/powerpc/ieee1275/openfw.c: Move from here ...
28192 * kern/ieee1275/openfw.c: ... to here. Update all users.
28193
28194 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
28195 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
28196
28197 2008-04-10 Pavel Roskin <proski@gnu.org>
28198
28199 * configure.ac: Always use "_cv_" in cache variables for
28200 compatibility with Autoconf 2.62.
28201
28202 2008-04-07 Robert Millan <rmh@aybabtu.com>
28203
28204 Revert grub/machine/init.h addition by Pavel (since it breaks on
28205 i386-ieee1275 and others):
28206 * util/i386/pc/misc.c: Remove grub/machine/init.h.
28207 * util/powerpc/ieee1275/misc.c: Likewise.
28208
28209 2008-04-07 Robert Millan <rmh@aybabtu.com>
28210
28211 * util/grub-probe.c (probe): Improve error message.
28212
28213 2008-04-07 Robert Millan <rmh@aybabtu.com>
28214
28215 * util/biosdisk.c (read_device_map): Skip devices that don't exist
28216 (this prevents the presence of a bogus entry from ruining the whole
28217 thing).
28218
28219 2008-04-06 Pavel Roskin <proski@gnu.org>
28220
28221 * util/biosdisk.c: Include grub/util/biosdisk.h.
28222 * util/grub-fstest.c (execute_command): Make static.
28223 * util/grub-mkdevicemap.c (check_device): Likewise.
28224 * util/i386/pc/misc.c: Include grub/machine/init.h.
28225 * util/powerpc/ieee1275/misc.c: Likewise.
28226 * util/lvm.c: Include grub/util/lvm.h.
28227 * util/misc.c: Include grub/kernel.h, grub/misc.h and
28228 grub/cache.h.
28229 * util/raid.c: Include grub/util/raid.h.
28230 (grub_util_getdiskname): Make static.
28231
28232 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
28233 grub_hostfs_fini(), as they are called from grub_init_all() and
28234 grub_fini_all() respectively. This fixes an infinite loop in
28235 grub-fstest due to double registration of hostfs.
28236 Reported by Christian Franke <Christian.Franke@t-online.de>
28237
28238 2008-04-05 Pavel Roskin <proski@gnu.org>
28239
28240 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
28241 all 8 functions. Otherwise, probe function 0 only.
28242
28243 2008-04-04 Pavel Roskin <proski@gnu.org>
28244
28245 * commands/lspci.c (grub_lspci_iter): Print the bus number
28246 correctly.
28247
28248 * commands/lspci.c (grub_pci_classes): Fix typos.
28249 (grub_lspci_iter): Don't print func twice. Print vendor ID
28250 before device ID, as it's normally done.
28251
28252 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28253 Fix signedness warnings.
28254 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
28255 Likewise.
28256 * util/ieee1275/get_disk_name.c: Include config.h so that
28257 _GNU_SOURCE is defined and getline() is declared. Mark an
28258 unused argument as such. Fix a signedness warning.
28259
28260 2008-04-02 Pavel Roskin <proski@gnu.org>
28261
28262 * genkernsyms.sh.in: Use more robust assignments for CC and
28263 srcdir. Quote srcdir.
28264 * gensymlist.sh.in: Likewise. Assert at the compile time that
28265 the symbol table is not empty.
28266
28267 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
28268 * fs/cpio.c (grub_cpio_read): Likewise.
28269
28270 2008-04-01 Pavel Roskin <proski@gnu.org>
28271
28272 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
28273 * disk/host.c (grub_host_open): Likewise.
28274 * disk/loopback.c (grub_loopback_open): Likewise.
28275 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
28276 disk->id as in disk/host.c, not a multi-character constant.
28277
28278 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
28279 later is obsolete, potentially dangerous and sets a bad example.
28280 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
28281 * util/misc.c (grub_util_get_image_size): Likewise.
28282
28283 * disk/loopback.c (options): Improve help for "--partitions".
28284
28285 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
28286 options to align them with the short options, e.g. "echo -e".
28287
28288 2008-03-31 Bean <bean123ch@gmail.com>
28289
28290 * video/reader/png.c (grub_png_data): New member is_16bit and
28291 image_data.
28292 (grub_png_decode_image_header): Detect 16 bit png image.
28293 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
28294 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
28295 (grub_video_reader_png): Release memory occupied by image_data.
28296
28297 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
28298 4096 bytes.
28299 (grub_nfs_mount): Skip the test for sector per cluster.
28300
28301 * include/grub/ntfs.h (MAX_SPC): Removed.
28302
28303 2008-03-31 Bean <bean123ch@gmail.com>
28304
28305 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
28306 (grub_probe_SOURCES): Add fs/afs.c.
28307 (grub_fstest_SOURCES): Likewise.
28308 (afs_mod_SOURCES): New variable.
28309 (afs_mod_CFLAGS): Likewise.
28310 (afs_mod_LDFLAGS): Likewise.
28311
28312 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
28313 (grub_emu_SOURCES): Likewise.
28314
28315 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28316
28317 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28318
28319 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28320
28321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28322
28323 * fs/afs.c: New file.
28324
28325 2008-03-30 Pavel Roskin <proski@gnu.org>
28326
28327 * disk/host.c: Include grub/misc.h to fix a warning.
28328 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
28329 warnings about implicit declarations.
28330
28331 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
28332 variable.
28333 * include/grub/i386/loader.h: Change declaration of
28334 grub_linux_boot() to match what grub_loader_set() expects.
28335 * util/getroot.c (grub_guess_root_device): Return const char* to
28336 fix a warning.
28337 * util/grub-probe.c (probe): Fix a warning about uninitialized
28338 abstraction_name variable.
28339 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
28340 second argument as unused to fix a warning.
28341
28342 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
28343 missing grub_error() call.
28344
28345 * util/update-grub_lib.in: Define datarootdir, since Autoconf
28346 2.60 and newer uses it to define datadir.
28347
28348 * commands/sleep.c: Fix warning about implicit declaration.
28349 * disk/memdisk.c: Likewise.
28350 * loader/aout.c: Likewise.
28351 * loader/i386/bsd_normal.c: Likewise.
28352 * util/grub-probe.c: Likewise.
28353
28354 * commands/i386/cpuid.c (has_longmode): Make static.
28355 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
28356 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
28357
28358 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
28359 GDT. This is more robust, as %ds can change.
28360 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
28361 calling real_to_prot().
28362 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
28363
28364 2008-03-28 Pavel Roskin <proski@gnu.org>
28365
28366 * kern/i386/pc/startup.S: Assert that uncompressed functions
28367 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
28368 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
28369 code, as they push parts of the code (error handlers) beyond
28370 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
28371 code as correctness and size.
28372
28373 2008-03-28 Pavel Roskin <proski@gnu.org>
28374
28375 * kern/i386/pc/startup.S
28376 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
28377 data block address to the real mode, keep offset minimal. This
28378 works around a bug in AWARD BIOS on old Athlon systems, which
28379 makes CD detection hang.
28380
28381 2008-03-26 Pavel Roskin <proski@gnu.org>
28382
28383 * normal/color.c (grub_parse_color_name_pair): Make `name' a
28384 const.
28385 * include/grub/normal.h: Add grub_parse_color_name_pair()
28386 declaration.
28387
28388 2008-03-24 Bean <bean123ch@gmail.com>
28389
28390 * disk/i386/pc/biosdisk.c (cd_start): Removed.
28391 (cd_count): Removed.
28392 (cd_drive): New variable.
28393 (grub_biosdisk_get_drive): Don't check for (cdN) device.
28394 (grub_biosdisk_call_hook): Likewise.
28395 (grub_biosdisk_iterate): Change cdrom detection method.
28396 (grub_biosdisk_open): Replace cd_start with cd_drive.
28397 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
28398 detect cdrom device.
28399
28400 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
28401 Removed.
28402 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
28403 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
28404 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
28405 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
28406 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
28407 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
28408 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
28409 (grub_biosdisk_cdrp): New structure.
28410 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
28411
28412 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
28413
28414 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
28415 device.
28416
28417 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
28418 New function.
28419
28420 2008-03-20 Robert Millan <rmh@aybabtu.com>
28421
28422 Remove 2 TiB limit in ata.mod.
28423 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
28424 (grub_ata_dumpinfo): Print sector count with 0x%llx.
28425 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
28426 grub_uint64_t instead of grub_uint32_t.
28427
28428 2008-03-05 Bean <bean123ch@gmail.com>
28429
28430 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
28431 (grub_multiboot): Set boot device.
28432
28433 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
28434
28435 2008-03-02 Bean <bean123ch@gmail.com>
28436
28437 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
28438 symlink_buffer.
28439
28440 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
28441
28442 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
28443 texinfo.tex.
28444
28445 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
28446 modified.
28447
28448 * docs/fdl.texi: New file.
28449
28450 * docs/mdate-sh: New file. Copied from gnulib.
28451 * docs/texinfo.tex: Likewise.
28452
28453 * config.guess: Updated from gnulib.
28454 * install-sh: Likewise.
28455
28456 2008-02-28 Robert Millan <rmh@aybabtu.com>
28457
28458 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
28459 (aout_mod_SOURCES): New variable.
28460 (aout_mod_CFLAGS): Likewise.
28461 (aout_mod_LDFLAGS): Likewise.
28462
28463 * conf/i386-ieee1275.rmk: Likewise.
28464
28465 2008-02-28 Robert Millan <rmh@aybabtu.com>
28466
28467 * util/update-grub.in: Reorganise terminal validity check. Accept
28468 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
28469 Based on suggestion by Franklin PIAT.
28470
28471 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
28472
28473 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
28474 function.
28475 * util/getroot.c (grub_util_check_block_device): New function that
28476 returns the given argument if it is a block device and returns NULL else.
28477 * util/grub-probe.c (argument_is_device): New variable.
28478 (probe): Promote device_name from a variable to an argument. Receive
28479 device_name from grub_util_check_block_device() if path is NULL and from
28480 grub_guess_root_device() else. Do not free() device_name anymore.
28481 (options): Introduce new parameter '-d, --device'.
28482 (main): Add description of the new parameter to the help screen.
28483 Rename path variable to argument. Set argument_is_device if the '-d'
28484 option is given. Pass argument to probe() depending on
28485 argument_is_device.
28486
28487 2008-02-24 Bean <bean123ch@gmail.com>
28488
28489 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
28490 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
28491 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
28492 (GRUB_ISO9660_VOLDESC_PART): Likewise.
28493 (GRUB_ISO9660_VOLDESC_END): Likewise.
28494 (grub_iso9660_primary_voldesc): New member escape.
28495 (grub_iso9660_data): New member joliet.
28496 (grub_iso9660_convert_string): New function.
28497 (grub_iso9660_mount): Detect joliet extension.
28498 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
28499 (grub_iso9660_iso9660_label): Likewise.
28500
28501 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
28502 (grub_setup_SOURCES): Add fs/udf.c.
28503 (grub_fstest_SOURCES): Likewise.
28504 (udf_mod_SOURCES): New variable.
28505 (udf_mod_CFLAGS): Likewise.
28506 (udf_mod_LDFLAGS): Likewise.
28507
28508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
28509 (grub_emu_SOURCES): Likewise.
28510
28511 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28512
28513 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28514
28515 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28516
28517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28518
28519 * fs/udf.c: New file.
28520
28521 2008-02-24 Robert Millan <rmh@aybabtu.com>
28522
28523 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
28524 (normal/lexer.c_DEPENDENCIES): New variables.
28525 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28526 (normal/lexer.c_DEPENDENCIES): Likewise.
28527 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
28528 (normal/lexer.c_DEPENDENCIES): Likewise.
28529 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
28530 (normal/lexer.c_DEPENDENCIES): Likewise.
28531 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28532 (normal/lexer.c_DEPENDENCIES): Likewise.
28533 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28534 (normal/lexer.c_DEPENDENCIES): Likewise.
28535
28536 2008-02-23 Robert Millan <rmh@aybabtu.com>
28537
28538 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
28539 since they were intended to be in hex. This didn't break previously
28540 because of a bug in gpt_partition_map_iterate() (see below).
28541
28542 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
28543 when checking the validity of GPT header.
28544 Remove `partno', since it always provides the same information as `i'.
28545
28546 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
28547
28548 * include/grub/efi/time.h: Fix a wrong comment.
28549
28550 2008-02-19 Pavel Roskin <proski@gnu.org>
28551
28552 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
28553 message.
28554
28555 2008-02-19 Bean <bean123ch@gmail.com>
28556
28557 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
28558 (aout_mod_SOURCES): New variable.
28559 (aout_mod_CFLAGS): Likewise.
28560 (aout_mod_LDFLAGS): Likewise.
28561 (_bsd_mod_SOURCES): New variable.
28562 (_bsd_mod_CFLAGS): Likewise.
28563 (_bsd_mod_LDFLAGS): Likewise.
28564 (bsd_mod_SOURCES): New variable.
28565 (bsd_mod_CFLAGS): Likewise.
28566 (bsd_mod_LDFLAGS): Likewise.
28567
28568 * include/grub/aout.h: New file.
28569
28570 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
28571
28572 * include/grub/i386/bsd.h: New file.
28573
28574 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
28575 to make it public.
28576
28577 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
28578 function is called, so that it's possible to change it inside the hook.
28579 (grub_elf64_load): Likewise.
28580 (grub_elf_file): Don't close the file if elf header is not found.
28581 (grub_elf_close): Close the file if grub_elf_file fails (The new
28582 grub_elf_file won't close it).
28583 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
28584 (grub_elf64_size): Likewise.
28585
28586 * kern/i386/loader.S (grub_unix_real_boot): New function.
28587
28588 * loader/aout.c: New file.
28589
28590 * loader/i386/bsd.c: New file.
28591
28592 * loader/i386/bsd_normal.c: New file.
28593
28594 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
28595
28596 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
28597 can test other formats.
28598
28599 2008-02-19 Robert Millan <rmh@aybabtu.com>
28600
28601 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
28602 (grub_gpt_partition_type_empty): Redefine with macro from
28603 `<grub/gpt_partition.h>'.
28604 (gpt_partition_map_iterate): Adjust partition type comparison.
28605
28606 Export `entry' as partmap-specific `part.data' struct.
28607 (grub_gpt_header, grub_gpt_partentry): Move from here ...
28608
28609 * include/grub/gpt_partition.h (grub_gpt_header)
28610 (grub_gpt_partentry): ... to here (new file).
28611
28612 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
28613
28614 (grub_gpt_partition_type_bios_boot): New const variable, defined
28615 with macro from `<grub/gpt_partition.h>'.
28616
28617 (setup): Replace `first_start' with `embed_region', which keeps
28618 track of the embed region (and is partmap-agnostic).
28619
28620 Replace find_first_partition_start() with find_usable_region(),
28621 which finds a usable region for embedding using partmap-specific
28622 knowledge (supports PC/MSDOS and GPT).
28623
28624 Fix all assumptions that the embed region start at sector 1, using
28625 `embed_region.start' from now on. Similarly, use `embed_region.end'
28626 rather than `first_start' to calculate available size.
28627
28628 In grub_util_info() message, replace "into after the MBR" with an
28629 indication of the specific sector our embed region starts at.
28630
28631 2008-02-19 Robert Millan <rmh@aybabtu.com>
28632
28633 * DISTLIST: Replace `commands/ieee1275/halt.c' and
28634 `commands/ieee1275/reboot.c' with `commands/halt.c' and
28635 `commands/reboot.c'.
28636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
28637 (halt_mod_SOURCES): Likewise.
28638 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
28639 (halt_mod_SOURCES): Likewise.
28640
28641 2008-02-17 Christian Franke <franke@computer.org>
28642
28643 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
28644
28645 2008-02-17 Robert Millan <rmh@aybabtu.com>
28646
28647 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
28648 set `first_start' to 0 for non-PC/MSDOS partition maps.
28649
28650 2008-02-16 Robert Millan <rmh@aybabtu.com>
28651
28652 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
28653 do not assume partition map is PC/MSDOS before performing checks that
28654 are specific to that layout.
28655
28656 2008-02-13 Robert Millan <rmh@aybabtu.com>
28657
28658 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
28659 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
28660 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
28661
28662 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
28663
28664 * configure.ac: Only a cosmetic change on the handling of
28665 -fno-stack-protector.
28666
28667 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
28668
28669 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
28670 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
28671 reboot.c.
28672 (grub_install_SOURCES): Add halt.mod and reboot.mod.
28673 (halt_mod_SOURCES): New variable.
28674 (halt_mod_CFLAGS): Likewise.
28675 (halt_mod_LDFLAGS): Likewise.
28676 (reboot_mod_SOURCES): Likewise.
28677 (reboot_mod_CFLAGS): Likewise.
28678 (reboot_mod_LDFLAGS): Likewise.
28679
28680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
28681 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
28682 reboot.c.
28683 (halt_mod_SOURCES): Likewise.
28684 (reboot_mod_SOURCES): Likewise.
28685
28686 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
28687 commands/i386/pc/reboot.c by commands/reboot.c.
28688 (reboot_mod_SOURCES): Likewise.
28689
28690 * commands/i386/pc/reboot.c: merge this file ...
28691
28692 * commands/ieee1275/reboot.c: ... and this file ...
28693
28694 * commands/reboot.c: ... to this file.
28695 Add some precompiler directive to include the correct header for
28696 each machine.
28697
28698 * commands/ieee1275/halt.c: move this file ...
28699
28700 * commands/halt.c: ... to here.
28701 Add some precompiler directive to include the correct header for
28702 each machine.
28703
28704 * include/grub/efi/efi.h (grub_reboot): New function declaration.
28705 (grub_halt): Likewise.
28706
28707 * kern/efi/efi.c (grub_reboot): New function.
28708 (grub_halt): Likewise.
28709
28710 2008-02-12 Robert Millan <rmh@aybabtu.com>
28711
28712 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
28713 /dev (like it is done for /dev/mapper). This doesn't provide support
28714 for EVMS, but at least it is now easy to identify the problem when it
28715 arises.
28716
28717 2008-02-11 Robert Millan <rmh@aybabtu.com>
28718
28719 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
28720 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
28721 comparing it with -1, not 0.
28722
28723 2008-02-10 Robert Millan <rmh@aybabtu.com>
28724
28725 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
28726 `disk/lvm.c'.
28727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28728 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28729
28730 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
28731 `disk/lvm.c' to the end of the list.
28732 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28733 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28734
28735 2008-02-10 Robert Millan <rmh@aybabtu.com>
28736
28737 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
28738 grub_print_error() instead. This will let user know why we're entering
28739 rescue mode.
28740 Based on suggestions from Sam Morris.
28741
28742 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
28743
28744 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
28745 on remaining N args, instead of "--" arg N times.
28746
28747 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
28748
28749 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
28750 (fill_with_default_glyph): Changed to use unknown_glyph for fill
28751 pattern for unknown glyphs.
28752
28753 2008-02-09 Robert Millan <rmh@aybabtu.com>
28754
28755 * configure.ac: Probe for `help2man'.
28756 * Makefile.in (builddir): New variable.
28757 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
28758 or otherwise add a few flags/options to it.
28759 (install-local): For every executable utility or script that is
28760 installed, invoke $(HELP2MAN) to install a manpage based on --help
28761 output.
28762
28763 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
28764 that it doesn't prevent --help from working in build tree.
28765
28766 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
28767 with `bug-grub@gnu.org'.
28768 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
28769 * util/update-grub.in (usage): New function.
28770 Implement proper argument check, with support for --help and --version
28771 (as well as existing -y).
28772
28773 2008-02-09 Christian Franke <franke@computer.org>
28774
28775 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
28776 avoid overwriting previous output.
28777 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
28778
28779 2008-02-09 Robert Millan <rmh@aybabtu.com>
28780
28781 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
28782 drawing the menu.
28783
28784 2008-02-09 Robert Millan <rmh@aybabtu.com>
28785
28786 * commands/sleep.c: New file.
28787 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
28788 (sleep_mod_SOURCES): New variable.
28789 (sleep_mod_CFLAGS): Likewise.
28790 (sleep_mod_LDFLAGS): Likewise.
28791
28792 2008-02-09 Robert Millan <rmh@aybabtu.com>
28793
28794 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
28795 situations in which we can deduce the RAID size and the superblock
28796 doesn't match it.
28797
28798 2008-02-09 Robert Millan <rmh@aybabtu.com>
28799
28800 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
28801 and return a grub_diskmemberlist_t composed of LVM physical volumes.
28802 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
28803
28804 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
28805 and return a grub_diskmemberlist_t composed of physical array members.
28806 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
28807
28808 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
28809 prototype.
28810 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
28811 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
28812 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
28813
28814 * util/grub-probe.c (probe): Move partmap probing code from here ...
28815 (probe_partmap): ... to here.
28816 (probe): Use probe_partmap() once for the disk we're probing, and
28817 additionally, when such disk contains a memberlist() struct member,
28818 once for each disk that is contained in the structure returned by
28819 memberlist().
28820
28821 2008-02-09 Robert Millan <rmh@aybabtu.com>
28822
28823 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
28824 environment variable to 'all' in order to obtain debug output from
28825 non-util/ code.
28826 * util/i386/pc/grub-setup.c (main): Likewise.
28827
28828 2008-02-08 Robert Millan <rmh@aybabtu.com>
28829
28830 * disk/raid.c (grub_raid_scan_device): Check for
28831 `array->device[sb.this_disk.number]' rather than for
28832 `array->device[sb.this_disk.number]->name', since the latter is not
28833 guaranteed to be accessible.
28834
28835 2008-02-08 Robert Millan <rmh@aybabtu.com>
28836
28837 * disk/raid.c: Update copyright.
28838 * fs/cpio.c: Likewise.
28839 * include/grub/raid.h: Likewise.
28840 * loader/i386/pc/multiboot.c: Likewise.
28841 * util/hostfs.c: Likewise.
28842
28843 2008-02-08 Robert Millan <rmh@aybabtu.com>
28844
28845 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
28846 to a grub_disk_t array.
28847 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
28848 `device[x]'.
28849 (grub_raid_scan_device): Replace `device[x].name' accesses with
28850 `device[x]->name'. Simplify initialization of `array->device[x]'.
28851
28852 2008-02-08 Robert Millan <rmh@aybabtu.com>
28853
28854 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
28855 grub_dprintf() calls.
28856 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
28857 error message.
28858
28859 2008-02-07 Christian Franke <franke@computer.org>
28860
28861 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
28862 instead of fseek and ftell to support large files.
28863 (grub_hostfs_read): Likewise.
28864
28865 2008-02-07 Robert Millan <rmh@aybabtu.com>
28866
28867 Patch from Jeroen Dekkers.
28868 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
28869 failure, since successfully reading all array members might not be
28870 required.
28871
28872 2008-02-06 Robert Millan <rmh@aybabtu.com>
28873
28874 * util/grub-probe.c (probe): Simplify partmap probing (with the
28875 assumption that the first word up to the underscore equals to
28876 the module name).
28877
28878 2008-02-06 Christian Franke <franke@computer.org>
28879
28880 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
28881 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
28882 last block of a cpio or tar stream.
28883 Check for "TRAILER!!!" instead of any empty data
28884 block to detect last block of a cpio stream.
28885 (grub_cpio_dir): Fix constness of variable np.
28886 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
28887 cpio or tar trailer is detected. This fixes a crash
28888 on open of a non existing file.
28889
28890 2008-02-05 Bean <bean123ch@gmail.com>
28891
28892 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
28893 address of entry.
28894 (grub_multiboot_load_elf64): Likewise.
28895 (grub_multiboot): Initialize mbi structure.
28896
28897 * util/grub-fstest.c: Don't include unused header file script.h.
28898
28899 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
28900 of file.
28901 (grub_fstest_SOURCES): Likewise.
28902
28903 2008-02-05 Robert Millan <rmh@aybabtu.com>
28904
28905 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
28906 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
28907 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
28908 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
28909
28910 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
28911 (translation_table): Replace hardcoded values with macros
28912 provided by `<grub/term.h>'.
28913
28914 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
28915 (keyboard_map): Correct/add a few values, with macros provided
28916 by `<grub/term.h>'.
28917 (keyboard_map_shift): Zero values that don't differ from their
28918 `keyboard_map' equivalents.
28919 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
28920 Discard the second scan code that is always sent by Caps lock.
28921 Only use `keyboard_map_shift' when it provides a non-zero value,
28922 otherwise fallback to `keyboard_map'.
28923
28924 2008-02-04 Bean <bean123ch@gmail.com>
28925
28926 * Makefile.in (enable_grub_fstest): New variable.
28927
28928 * conf/common.rmk (grub_fstest_init.lst): New rule.
28929 (grub_fstest_init.h): Likewise.
28930 (grub_fstest_init.c): Likewise.
28931 (util/grub-fstest.c_DEPENDENCIES): New variable.
28932 (grub_fstest_SOURCES): Likewise.
28933
28934 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
28935
28936 * util/grub-fstest.c: New file.
28937
28938 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28939
28940 Make grub-setup handle a separate root device.
28941
28942 * util/i386/pc/grub-setup.c (setup): Always open the root device,
28943 so that the root device can be compared with the destination
28944 device.
28945 When embedding the core image, if the root and destination devices
28946 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
28947 0xFF.
28948 When not embedding, set ROOT_DRIVE to 0xFF.
28949
28950 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28951
28952 Add support for having a grub directory in a different drive. This
28953 is still only the data handling part.
28954
28955 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
28956 (codestart): Save %dh in GRUB_ROOT_DRIVE.
28957 (grub_root_drive): New variable.
28958
28959 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
28960 instead of GRUB_BOOT_DRIVE to construct a device name. Set
28961 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
28962 as it was.
28963
28964 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
28965
28966 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
28967 macro.
28968 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
28969
28970 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
28971 is bogus, because PXE booting does not specify any drive
28972 correctly.
28973
28974 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
28975 am not sure if this is really correct.
28976
28977 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
28978 is always identical to the boot drive when booting from a CD.
28979
28980 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
28981 longer.
28982 (root_drive): New variable.
28983 (real_start): Unconditionally set %dh to ROOT_DRIVE.
28984 (setup_sectors): Push %dx right after popping it, because %dh will
28985 be modified later.
28986 (copy_buffer): Restore %dx.
28987
28988 2008-02-03 Robert Millan <rmh@aybabtu.com>
28989
28990 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
28991 use `cdboot.img' for cdrom images.
28992
28993 2008-02-03 Robert Millan <rmh@aybabtu.com>
28994
28995 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
28996 only setup gfxterm when `font' command has succeeded.
28997
28998 2008-02-03 Robert Millan <rmh@aybabtu.com>
28999
29000 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
29001 (grub_rescue_cmd_multiboot_loader)
29002 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
29003
29004 2008-02-03 Pavel Roskin <proski@gnu.org>
29005
29006 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
29007 %edx and %esi from stack only after grub_gate_a20() is called.
29008 grub_gate_a20() clobbers %edx.
29009
29010 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29011
29012 * configure.ac (AC_INIT): Bumped to 1.96.
29013
29014 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
29015 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
29016 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
29017 video/readers/png.c.
29018
29019 2008-02-03 Bean <bean123ch@gmail.com>
29020
29021 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
29022 (cdboot_img_SOURCES): New variable.
29023 (cdboot_img_ASFLAGS): New variable.
29024 (cdboot_img_LDFLAGS): New variable.
29025
29026 * boot/i386/pc/cdboot.S: New file.
29027
29028 * disk/i386/pc/biosdisk.c (cd_start): New variable.
29029 (cd_count): Likewise.
29030 (grub_biosdisk_get_drive): Add support for cd device.
29031 (grub_biosdisk_call_hook): Likewise.
29032 (grub_biosdisk_iterate): Likewise.
29033 (grub_biosdisk_open): Likewise.
29034 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
29035 (grub_biosdisk_rw): Support reading from cd device.
29036 (GRUB_MOD_INIT): Iterate cd devices.
29037
29038 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
29039 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
29040 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
29041
29042 * kern/i386/pc/init.c (make_install_device): Check for cd device.
29043
29044 2008-02-02 Robert Millan <rmh@aybabtu.com>
29045
29046 * commands/read.c: New file.
29047 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
29048 (read_mod_SOURCES): New variable.
29049 (read_mod_CFLAGS): Likewise.
29050 (read_mod_LDFLAGS): Likewise.
29051
29052 2008-02-02 Robert Millan <rmh@aybabtu.com>
29053
29054 * normal/main.c (grub_normal_execute): Check for `menu->size' when
29055 determining whether menu has to be displayed.
29056
29057 2008-02-02 Marco Gerards <marco@gnu.org>
29058
29059 * bus/pci.c: New file.
29060
29061 * include/grub/pci.h: Likewise.
29062
29063 * include/grub/i386/pc/pci.h: Likewise.
29064
29065 * commands/lspci.c: Likewise.
29066
29067 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
29068 `lspci.mod'.
29069 (pci_mod_SOURCES): New variable.
29070 (pci_mod_CFLAGS): Likewise.
29071 (pci_mod_LDFLAGS): Likewise.
29072 (lspci_mod_SOURCES): Likewise.
29073 (lspci_mod_CFLAGS): Likewise.
29074 (lspci_mod_LDFLAGS): Likewise.
29075
29076 2008-02-02 Bean <bean123ch@gmail.com>
29077
29078 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
29079 (grub_ufs_get_file_block): Fix indirect block calculation problem.
29080
29081 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
29082 (grub_xfs_btree_node): New structure.
29083 (grub_xfs_btree_root): New structure.
29084 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
29085 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
29086 (GRUB_XFS_EXTENT_BLOCK): Likewise.
29087 (GRUB_XFS_EXTENT_SIZE): Likewise.
29088 (grub_xfs_read_block): Support btree format type.
29089 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
29090 Use directory block as basic unit.
29091
29092 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
29093
29094 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
29095 __attribute__ ((__regparm__ (1))).
29096
29097 2008-02-01 Robert Millan <rmh@aybabtu.com>
29098
29099 Correct a mistake in previous commit.
29100
29101 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
29102 top.
29103 (normal/command.c_DEPENDENCIES): New variable.
29104
29105 2008-02-01 Robert Millan <rmh@aybabtu.com>
29106
29107 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
29108 top.
29109 (normal/command.c_DEPENDENCIES): New variable.
29110 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
29111 * conf/i386-ieee1275.rmk: Likewise.
29112 * conf/i386-linuxbios.rmk: Likewise.
29113 * conf/i386-pc.rmk: Likewise.
29114 * conf/sparc64-ieee1275.rmk: Likewise.
29115 * conf/powerpc-ieee1275.rmk: Likewise.
29116 (grub_emu_SOURCES): Add `fs/fshelp.c'.
29117
29118 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
29119
29120 2008-02-01 Robert Millan <rmh@aybabtu.com>
29121
29122 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
29123 call at beginning of function.
29124
29125 2008-01-31 Pavel Roskin <proski@gnu.org>
29126
29127 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
29128 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
29129 (grub_mkrescue_SOURCES): Likewise.
29130 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
29131
29132 2008-01-30 Robert Millan <rmh@aybabtu.com>
29133
29134 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
29135 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
29136 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
29137 (grub_probe_SOURCES): ... to here.
29138
29139 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
29140 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
29141 * conf/i386-ieee1275.rmk: Likewise.
29142 * conf/i386-linuxbios.rmk: Likewise.
29143 * conf/powerpc-ieee1275.rmk: Likewise.
29144
29145 2008-01-30 Tristan Gingold <gingold@free.fr>
29146
29147 * kern/rescue.c: Silently accept empty lines.
29148
29149 2008-01-29 Bean <bean123ch@gmail.com>
29150
29151 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
29152 (real_code_2): Code cleanup and change comment style.
29153 (move_memory): Avoid using 32-bit address mode.
29154
29155 2008-01-29 Bean <bean123ch@gmail.com>
29156
29157 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
29158 (png_mod_SOURCES): New variable.
29159 (png_mod_CFLAGS): Likewise.
29160 (png_mod_LDFLAGS): Likewise.
29161
29162 * video/readers/png.c: New file.
29163
29164 2008-01-28 Robert Millan <rmh@aybabtu.com>
29165
29166 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
29167 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
29168 `ifndef GRUB_MOD_GAP' hack.
29169 * util/elf/grub-mkimage.c (add_segments): Likewise.
29170
29171 2008-01-27 Robert Millan <rmh@aybabtu.com>
29172
29173 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
29174 `GRUB_MOD_GAP' for platforms in which it's not defined.
29175 * util/elf/grub-mkimage.c (add_segments): Likewise.
29176
29177 2008-01-27 Robert Millan <rmh@aybabtu.com>
29178
29179 Get grub-emu to build again (including parallel builds).
29180
29181 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
29182 Split into ...
29183 (util/grub-emu.c_DEPENDENCIES): ... this, ...
29184 (normal/execute.c_DEPENDENCIES): ... this, ...
29185 (grub-emu_DEPENDENCIES): ... and this.
29186
29187 * conf/i386-efi.rmk: Likewise.
29188 * conf/i386-linuxbios.rmk: Likewise.
29189 * conf/i386-ieee1275.rmk: Likewise.
29190 * conf/powerpc-ieee1275.rmk: Likewise.
29191 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
29192
29193 2008-01-27 Robert Millan <rmh@aybabtu.com>
29194
29195 * NEWS: Add a few items.
29196
29197 2008-01-27 Robert Millan <rmh@aybabtu.com>
29198
29199 Fix parallel builds with grub-emu. Based on earlier commit for
29200 grub-probe and grub-setup.
29201
29202 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29203 (util/grub-emu.c_DEPENDENCIES): ... this.
29204 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29205 (util/grub-emu.c_DEPENDENCIES): ... this.
29206 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29207 (util/grub-emu.c_DEPENDENCIES): ... this.
29208 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29209 (util/grub-emu.c_DEPENDENCIES): ... this.
29210 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29211 (util/grub-emu.c_DEPENDENCIES): ... this.
29212
29213 2008-01-27 Pavel Roskin <proski@gnu.org>
29214
29215 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
29216 to create a gap between _end and the modules added to the image
29217 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
29218 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
29219 * util/elf/grub-mkimage.c (add_segments): Likewise.
29220
29221 2008-01-26 Pavel Roskin <proski@gnu.org>
29222
29223 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
29224 just return an error.
29225
29226 2008-01-26 Bean <bean123ch@gmail.com>
29227
29228 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
29229 (grub_reiserfs_get_item): Save offset of the next item.
29230 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
29231
29232 2008-01-25 Robert Millan <rmh@aybabtu.com>
29233
29234 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
29235 make all filesystem sources appear together (possibly fixing omissions
29236 while at it).
29237 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29238 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29239 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29241
29242 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
29243 add `kern/file.c'.
29244 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
29245 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29246 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
29247 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29248
29249 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
29250 (probe): Add a sanity check to make sure of our ability to read
29251 requested files when probing for filesystem type.
29252
29253 * genmk.rb: Update copyright year (2007).
29254
29255 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
29256 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
29257 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
29258 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
29259 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
29260 : Remove function prototypes.
29261
29262 2008-01-25 Robert Millan <rmh@aybabtu.com>
29263
29264 Revert my previous commits (based on wrong assumption of how grub_errno
29265 works).
29266
29267 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
29268 * kern/file.c (grub_file_open): Likewise.
29269
29270 2008-01-24 Pavel Roskin <proski@gnu.org>
29271
29272 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
29273 that hang if GRUB tries to setup colors.
29274 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
29275 colors for firmwares that don't support it.
29276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
29277 Recognize Open Hack'Ware, set flags to work around its
29278 limitations.
29279
29280 2008-01-24 Robert Millan <rmh@aybabtu.com>
29281
29282 * kern/file.c (grub_file_open): Do not account previous failures of
29283 unrelated functions when grub_errno is checked for.
29284 Reported by Oleg Strikov.
29285
29286 2008-01-24 Bean <bean123ch@gmail.com>
29287
29288 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
29289 (grub_ufs_sblock): New member volume name.
29290 (grub_ufs_find_file): Fix string copy bug.
29291 (grub_ufs_label): Implement this function properly.
29292
29293 * fs/hfs.c (grub_hfs_cnid_type): New enum.
29294 (grub_hfs_iterate_records): Use the correct file number for extents
29295 and catalog file. Fix problem in next index calculation.
29296 (grub_hfs_find_node): Replace recursive function call with loop.
29297 (grub_hfs_iterate_dir): Replace recursive function call with loop.
29298
29299 2008-01-23 Robert Millan <rmh@aybabtu.com>
29300
29301 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
29302 `<grub/symbol.h>' and `<grub/multiboot.h>'.
29303 (grub_multiboot2_real_boot): New function prototype.
29304
29305 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
29306 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
29307
29308 * kern/i386/ieee1275/init.c (grub_os_area_addr)
29309 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
29310
29311 2008-01-23 Robert Millan <rmh@aybabtu.com>
29312
29313 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
29314 #ifdef'ed out grub_printf().
29315
29316 2008-01-23 Robert Millan <rmh@aybabtu.com>
29317
29318 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
29319 grub_dprintf calls, since they make "debug=all" mode unusable.
29320 (grub_console_checkkey): Likewise.
29321
29322 2008-01-23 Robert Millan <rmh@aybabtu.com>
29323
29324 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29325 `term/i386/pc/at_keyboard.c'.
29326 (pkglib_MODULES): Add `serial.mod'.
29327 (serial_mod_SOURCES): New variable.
29328 (serial_mod_CFLAGS): Likewise.
29329 (serial_mod_LDFLAGS): Likewise.
29330
29331 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
29332 `<grub/powerpc/ieee1275/console.h>'.
29333 (grub_keyboard_controller_init): New function prototype.
29334 (grub_console_checkkey): Likewise.
29335 (grub_console_getkey): Likewise.
29336
29337 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
29338 keyboard on i386.
29339
29340 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
29341 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
29342
29343 2008-01-23 Robert Millan <rmh@aybabtu.com>
29344
29345 * kern/i386/pc/init.c (make_install_device): When memdisk image is
29346 present, "(memdisk)/boot/grub" becomes the default prefix.
29347
29348 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
29349 a memdisk tarball with all the modules. Add --overlay=DIR option that
29350 allows users to overlay additional files into the image.
29351
29352 2008-01-23 Robert Millan <rmh@aybabtu.com>
29353
29354 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
29355 and `machine/memory.h'.
29356 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
29357 (_multiboot_mod_SOURCES): New variable.
29358 (_multiboot_mod_CFLAGS): Likewise.
29359 (_multiboot_mod_LDFLAGS): Likewise.
29360 (multiboot_mod_SOURCES): Likewise.
29361 (multiboot_mod_CFLAGS): Likewise.
29362 (multiboot_mod_LDFLAGS): Likewise.
29363
29364 * include/grub/i386/ieee1275/loader.h: New file.
29365
29366 * include/grub/i386/ieee1275/machine.h: Likewise.
29367
29368 * include/grub/i386/ieee1275/memory.h: Likewise.
29369
29370 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
29371 variable declaration.
29372 (grub_os_area_size): Likewise.
29373
29374 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
29375 (grub_lower_mem, grub_upper_mem): New variables.
29376 (grub_stop_floppy): New function (just to make
29377 grub_multiboot2_real_boot() happy).
29378
29379 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
29380 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
29381 (grub_stop): New function.
29382 Include `"../realmode.S"' and `"../loader.S"'.
29383
29384 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
29385 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
29386
29387 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
29388 rely on grub_multiboot2_real_boot() for final boot.
29389
29390 2008-01-22 Robert Millan <rmh@aybabtu.com>
29391
29392 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
29393 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
29394 device that doesn't look like an SD card.
29395 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
29396 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
29397 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
29398 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
29399 found.
29400
29401 2008-01-22 Robert Millan <rmh@aybabtu.com>
29402
29403 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
29404 avoid claiming over our own code.
29405
29406 2008-01-22 Bean <bean123ch@gmail.com>
29407
29408 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
29409 (jpeg_mod_SOURCES): New variable.
29410 (jpeg_mod_CFLAGS): Likewise.
29411 (jpeg_mod_LDFLAGS): Likewise.
29412
29413 * video/readers/jpeg.c : New file.
29414
29415 2008-01-22 Bean <bean123ch@gmail.com>
29416
29417 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
29418 there are no more items.
29419
29420 2008-01-21 Robert Millan <rmh@aybabtu.com>
29421
29422 * kern/mm.c (grub_mm_init_region): Improve debug message.
29423
29424 2008-01-21 Robert Millan <rmh@aybabtu.com>
29425
29426 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
29427 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
29428 address.
29429 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
29430 a C macro.
29431 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
29432 Indicates start of upper memory.
29433 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
29434 (generate_image): Abort when image size is big enough to corrupt
29435 upper memory.
29436
29437 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
29438 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
29439 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29440 instead of hardcoding 0xA0000.
29441 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
29442 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29443 instead of hardcoding 0xA0000.
29444
29445 2008-01-21 Robert Millan <rmh@aybabtu.com>
29446
29447 * disk/memdisk.c (memdisk_size): New variable.
29448 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
29449 `memdisk_size'.
29450 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
29451 image to dynamic memory.
29452 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
29453 `memdisk_size'. Free memdisk block.
29454
29455 2008-01-21 Robert Millan <rmh@aybabtu.com>
29456
29457 Fix detection of very small filesystems (like tar).
29458
29459 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
29460 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
29461 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
29462 a problem with this disk).
29463
29464 2008-01-21 Robert Millan <rmh@aybabtu.com>
29465
29466 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
29467 on grub_biosdisk_rw_standard() error.
29468
29469 2008-01-21 Robert Millan <rmh@aybabtu.com>
29470
29471 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
29472 recent changes.
29473 * kern/elf.c: Likewise.
29474 * kern/ieee1275/ieee1275.c: Likewise.
29475 * kern/powerpc/ieee1275/openfw.c: Likewise.
29476 * term/ieee1275/ofconsole.c: Likewise.
29477
29478 2008-01-21 Robert Millan <rmh@aybabtu.com>
29479
29480 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
29481
29482 * include/grub/kernel.h (grub_arch_memdisk_addr)
29483 (grub_arch_memdisk_size): Moved from here ...
29484
29485 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
29486 (grub_arch_memdisk_size): ... to here.
29487
29488 2008-01-21 Robert Millan <rmh@aybabtu.com>
29489
29490 Mostly based on bugfix from Bean.
29491
29492 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
29493 attribute with hook() parameter.
29494 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
29495 declaration.
29496 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
29497 attribute with hook() parameter.
29498 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
29499 declaration.
29500
29501 2008-01-21 Robert Millan <rmh@aybabtu.com>
29502
29503 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
29504 (pkglib_MODULES): Add `memdisk.mod'.
29505 (memdisk_mod_SOURCES): New variable.
29506 (memdisk_mod_CFLAGS): Likewise.
29507 (memdisk_mod_LDFLAGS): Likewise.
29508
29509 * disk/memdisk.c: New file.
29510
29511 * include/grub/disk.h (grub_disk_dev_id): Add
29512 `GRUB_DISK_DEVICE_MEMDISK_ID'.
29513
29514 * include/grub/i386/pc/kernel.h
29515 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
29516 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
29517 (grub_kernel_image_size): New variable declaration.
29518 (grub_total_module_size): Likewise.
29519 (grub_memdisk_image_size): Likewise.
29520
29521 * include/grub/i386/pc/memory.h
29522 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
29523
29524 * include/grub/kernel.h: Include `<grub/symbol.h>'.
29525 (grub_arch_memdisk_addr): New variable declaration.
29526 (grub_arch_memdisk_size): Likewise.
29527
29528 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
29529 (grub_arch_memdisk_size): Likewise.
29530
29531 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
29532 (codestart): Replace hardcoded `0x100000' with
29533 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
29534
29535 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
29536 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
29537 not NULL, append the contents of the file it refers to, at the end of
29538 the compressed kernel image. Initialize `grub_memdisk_image_size'
29539 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
29540 (options): Add "memdisk"|'m' option.
29541 (main): Parse --memdisk|-m option, and pass user-provided path as
29542 parameter to generate_image().
29543
29544 2008-01-20 Robert Millan <rmh@aybabtu.com>
29545
29546 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
29547 grub_dprintf() calls from here ...
29548 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
29549
29550 2008-01-20 Robert Millan <rmh@aybabtu.com>
29551
29552 Fix detection of "real mode" when /options/real-mode? doesn't exist.
29553
29554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
29555 declaration.
29556 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
29557 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
29558 `GRUB_IEEE1275_FLAG_REAL_MODE'.
29559 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
29560 property).
29561 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
29562 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
29563
29564 2008-01-19 Robert Millan <rmh@aybabtu.com>
29565
29566 Get rid of confusing function (superseded by
29567 `grub_ieee1275_get_integer_property')
29568 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
29569 prototype.
29570 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
29571 function.
29572 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
29573 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
29574 in native endianness from grub_ieee1275_get_integer_property().
29575
29576 2008-01-19 Robert Millan <rmh@aybabtu.com>
29577
29578 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
29579 command after "shut-down", since implementations differ on which
29580 the command for halt is.
29581
29582 2008-01-19 Robert Millan <rmh@aybabtu.com>
29583
29584 * include/grub/i386/linuxbios/console.h: Add header protection.
29585 (grub_keyboard_controller_init): New function prototype.
29586 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
29587 (KEYBOARD_COMMAND_READ): Likewise.
29588 (KEYBOARD_COMMAND_WRITE): Likewise.
29589 (KEYBOARD_SCANCODE_SET1): Likewise.
29590 (grub_keyboard_controller_write): New function.
29591 (grub_keyboard_controller_read): Likewise.
29592 (grub_keyboard_controller_init): Likewise.
29593
29594 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
29595 (grub_console_init): On coreboot/LinuxBIOS, call
29596 grub_keyboard_controller_init().
29597
29598 2008-01-19 Robert Millan <rmh@aybabtu.com>
29599
29600 PowerPC changes provided by Pavel Roskin.
29601
29602 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
29603 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
29604 don't rely on cmain() doing it.
29605 * kern/i386/ieee1275/startup.S (_start): Store %eax in
29606 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
29607
29608 2008-01-16 Robert Millan <rmh@aybabtu.com>
29609
29610 * include/grub/i386/linuxbios/memory.h
29611 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
29612 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
29613 receive `table_header' as argument. Instead, probe for it in the
29614 known memory ranges where it can be present.
29615 (grub_available_iterate): Do not pass a fixed `table_header' address
29616 to grub_linuxbios_table_iterate().
29617
29618 2008-01-15 Robert Millan <rmh@aybabtu.com>
29619
29620 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
29621 * conf/i386-ieee1275.rmk: New file.
29622 * include/grub/i386/ieee1275/console.h: Likewise.
29623 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
29624 * include/grub/i386/ieee1275/kernel.h: Likewise.
29625 * include/grub/i386/ieee1275/time.h: Likewise.
29626 * kern/i386/ieee1275/init.c: Likewise.
29627 * kern/i386/ieee1275/startup.S: Likewise.
29628
29629 2008-01-15 Robert Millan <rmh@aybabtu.com>
29630
29631 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
29632 when pointers are 32-bit (but still do set it to one when they are
29633 64-bit).
29634
29635 2008-01-15 Robert Millan <rmh@aybabtu.com>
29636
29637 * include/grub/ieee1275/ieee1275.h
29638 (grub_ieee1275_get_integer_property): New function prototype.
29639
29640 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
29641 (grub_ieee1275_get_integer_property): New function. Wraps around
29642 grub_ieee1275_get_property() to handle endianness.
29643
29644 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
29645 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
29646 where appropriate.
29647 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
29648 (grub_map): Likewise.
29649 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
29650
29651 2008-01-15 Bean <bean123ch@gmail.com>
29652
29653 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
29654 (grub_script_execute_cmdline): Reset grub_errno.
29655
29656 * normal/main.c (read_config_file): Reset grub_errno.
29657
29658 * normal/parse.y (script_init): New.
29659 (script): Move function and menuentry here.
29660 (delimiter): New.
29661 (command): Add delimiter at the end of command.
29662 (commands): Adjust to match the new command.
29663 (commandblock): Remove grub_script_lexer_record_start.
29664 (menuentry): Add grub_script_lexer_record_start, use the new commands.
29665 (if): Use the new commands.
29666
29667 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
29668
29669 2008-01-15 Robert Millan <rmh@aybabtu.com>
29670
29671 * normal/menu.c (run_menu): Move timeout message from here ...
29672 (print_timeout): ... to here.
29673 (run_menu): Use print_timeout() once during initial draw to print
29674 the whole message, and again in every clock tick to update only
29675 the number of seconds.
29676
29677 2008-01-15 Robert Millan <rmh@aybabtu.com>
29678
29679 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
29680 actual size of `available' from grub_ieee1275_get_property(), and
29681 restrict parsing to that bound.
29682
29683 2008-01-15 Christian Franke <franke@computer.org>
29684
29685 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
29686 (argp_program_version): Remove variable.
29687 (argp_program_bug_address): Likewise.
29688 (options): Convert from struct argp_option to struct option.
29689 (struct arguments): Remove.
29690 (parse_opt): Remove.
29691 (usage): New function.
29692 (main): Replace struct args members by simple variables.
29693 Replace argp_parse() by getopt_long().
29694 Add switch to evaluate options.
29695 Add missing "(...)" around root_dev in prefix string.
29696
29697 2008-01-14 Robert Millan <rmh@aybabtu.com>
29698
29699 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
29700 for grub_ieee1275_exit(), in order to improve portability.
29701
29702 2008-01-14 Robert Millan <rmh@aybabtu.com>
29703
29704 * util/grub.d/10_linux.in (prefix): Define.
29705 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
29706
29707 2008-01-13 Pavel Roskin <proski@gnu.org>
29708
29709 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
29710 grub_errno if no errors have been detected.
29711
29712 2008-01-12 Robert Millan <rmh@aybabtu.com>
29713
29714 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
29715 (grub_util_get_dev_abstraction): New function prototype.
29716
29717 * util/getroot.c: Include `<grub/util/getroot.h>'
29718 (grub_util_get_grub_dev): Move detection of abstraction type to ...
29719 (grub_util_get_dev_abstraction): ... here (new function).
29720
29721 * util/grub-probe.c: Convert PRINT_* to an enum. Add
29722 `PRINT_ABSTRACTION'.
29723 (probe): Probe for abstraction type when requested.
29724 (main): Understand `--target=abstraction'.
29725
29726 * util/i386/efi/grub-install.in: Add abstraction module to core
29727 image when it is found to be necessary.
29728 * util/i386/pc/grub-install.in: Likewise.
29729 * util/powerpc/ieee1275/grub-install.in: Likewise.
29730
29731 * util/update-grub_lib.in (font_path): Return system path without
29732 converting to GRUB path.
29733 * util/update-grub.in: Convert system path returned by font_path()
29734 to a GRUB path. Use `grub-probe -t abstraction' to determine what
29735 abstraction module is needed for loading fonts (if any). Export
29736 that as `GRUB_PRELOAD_MODULES'.
29737 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
29738 insmod commands).
29739
29740 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
29741
29742 Remove some unused code from reiserfs.
29743
29744 * fs/reiserfs.c (struct grub_reiserfs_key)
29745 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
29746 (struct grub_reiserfs_node_body): Removed.
29747 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29748 Likewise.
29749 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29750 Likewise.
29751 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29752 Likewise.
29753 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29754 Likewise.
29755 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29756 Likewise.
29757 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
29758 Likewise.
29759 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29760 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29761 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29762
29763 2008-01-10 Robert Millan <rmh@aybabtu.com>
29764
29765 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
29766 Determines if a file is garbage left by packaging systems, etc.
29767 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
29768 for processing /etc/grub.d scripts.
29769 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
29770 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
29771 as a condition for processing Linux images.
29772
29773 2008-01-10 Pavel Roskin <proski@gnu.org>
29774
29775 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
29776 to compile reiserfs.c on PowerPC.
29777
29778 2008-01-10 Robert Millan <rmh@aybabtu.com>
29779
29780 * kern/device.c (grub_device_iterate): Do not abort device iteration
29781 when one of the devices cannot be opened.
29782 * kern/disk.c (grub_disk_open): Do not account previous failures of
29783 unrelated functions when grub_errno is checked for.
29784
29785 2008-01-08 Robert Millan <rmh@aybabtu.com>
29786
29787 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
29788 `! grub_linux_is_bzimage', change order of address comparison to make
29789 it more intuitive, and improve "too big zImage" error message.
29790
29791 2008-01-08 Robert Millan <rmh@aybabtu.com>
29792
29793 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
29794 `$(update-grub_DATA)'.
29795 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
29796 targets.
29797
29798 2008-01-07 Robert Millan <rmh@aybabtu.com>
29799
29800 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
29801 which instruction is modified by grub-setup during installation
29802 (since it wasn't obvious by only looking at this file).
29803
29804 2008-01-07 Robert Millan <rmh@aybabtu.com>
29805
29806 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
29807 listing actual TODO items.
29808
29809 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29810
29811 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
29812 correctly.
29813 (grub_reiserfs_get_key_offset): Likewise.
29814 (grub_reiserfs_set_key_offset): Likewise.
29815 (grub_reiserfs_set_key_type): Likewise.
29816 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
29817
29818 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
29819 better to remove the bitfield version completely.
29820
29821 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29822
29823 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
29824 allocated from the heap, due to the fshelp implementation.
29825 (grub_reiserfs_dir): Free NODE, due to the same reason.
29826
29827 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29828
29829 Mostly from Vincent Pelletier:
29830
29831 * fs/reiserfs.c: New file.
29832
29833 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
29834 (reiserfs_mod_SOURCES): New variable.
29835 (reiserfs_mod_CFLAGS): Likewise.
29836 (reiserfs_mod_LDFLAGS): Likewise.
29837
29838 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
29839 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
29840 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
29841 normal/color.c.
29842
29843 2008-01-06 Robert Millan <rmh@aybabtu.com>
29844
29845 * normal/color.c: Remove `<grub/env.h>'.
29846
29847 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
29848
29849 * include/grub/normal.h: Include <grub/env.h>.
29850
29851 2008-01-05 Robert Millan <rmh@aybabtu.com>
29852
29853 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
29854 usage example with `(hd0,1)'.
29855 Reported by Samuel Thibault.
29856
29857 2008-01-05 Robert Millan <rmh@aybabtu.com>
29858
29859 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
29860 (grub_linux_boot_zimage): Rename to ...
29861 (grub_linux_boot): ... this.
29862 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
29863 (grub_linux_boot_zimage): Conditionalize zImage copy.
29864
29865 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
29866 (grub_linux_boot_bzimage): Remove prototype.
29867 (grub_linux_boot_zimage): Rename to ...
29868 (grub_linux_boot): ... this.
29869
29870 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
29871 (grub_linux_boot): Remove function.
29872
29873 2008-01-05 Robert Millan <rmh@aybabtu.com>
29874
29875 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
29876 (grub_env_write_color_highlight): Likewise.
29877 (grub_wait_after_message): Likewise.
29878
29879 * normal/color.c: New file.
29880
29881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29882 (normal_mod_DEPENDENCIES): Likewise.
29883
29884 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29885 (normal_mod_DEPENDENCIES): Likewise.
29886
29887 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29888 (normal_mod_DEPENDENCIES): Likewise.
29889
29890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29891 (normal_mod_DEPENDENCIES): Likewise.
29892
29893 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
29894 for waiting after a message is printed.
29895 * normal/main.c (read_config_file): Likewise.
29896 (grub_normal_init): Register grub_env_write_color_normal() and
29897 grub_env_write_color_highlight() hooks. Mark `color_normal' and
29898 `color_highlight' variables as global.
29899
29900 * normal/menu.c (grub_wait_after_message): New function.
29901 (grub_color_menu_normal): New variable. Replaces ...
29902 (GRUB_COLOR_MENU_NORMAL): ... this macro.
29903 (grub_color_menu_highlight): New variable. Replaces ...
29904 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
29905 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
29906 `GRUB_TERM_COLOR_STANDARD'.
29907 (print_message): Use `grub_setcolorstate' to reload colors. Rename
29908 `normal_code' and `highlight_code' to `old_color_normal' and
29909 `old_color_highlight', respectively.
29910 (grub_menu_init_page): Update colors when drawing the menu, based on
29911 `menu_color_normal' and `menu_color_highlight' variables.
29912 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
29913 a message is printed.
29914
29915 2008-01-05 Robert Millan <rmh@aybabtu.com>
29916
29917 * kern/env.c (grub_env_context_open): Propagate hooks for global
29918 variables to new context.
29919
29920 * kern/main.c (grub_set_root_dev): Export `root' variable.
29921
29922 2008-01-05 Robert Millan <rmh@aybabtu.com>
29923
29924 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
29925 discs unconditionally, since udev and others have options to provide
29926 them.
29927
29928 2008-01-05 Robert Millan <rmh@aybabtu.com>
29929
29930 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
29931
29932 2008-01-04 Christian Franke <franke@computer.org>
29933
29934 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
29935 of eisa_mmap.
29936
29937 2008-01-03 Pavel Roskin <proski@gnu.org>
29938
29939 * kern/i386/linuxbios/init.c: Put "void" to all function
29940 declarations with no arguments.
29941 * kern/powerpc/ieee1275/init.c: Likewise.
29942 * term/i386/pc/at_keyboard.c: Likewise.
29943 * term/i386/pc/vga_text.c: Likewise.
29944 * util/grub-mkdevicemap.c: Likewise.
29945
29946 2008-01-02 Robert Millan <rmh@aybabtu.com>
29947
29948 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
29949 message when loaded image is out of bounds.
29950 (grub_multiboot_load_elf64): Likewise.
29951
29952 2008-01-02 Pavel Roskin <proski@gnu.org>
29953
29954 * util/grub.d/10_linux.in: Try version without ".old" when
29955 looking for initrd. It's better to use initrd from the newer
29956 kernel of the same version than no initrd at all.
29957
29958 2008-01-01 Robert Millan <rmh@aybabtu.com>
29959
29960 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
29961
29962 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
29963
29964 * include/grub/video.h: Added grub_video_unmap_color and
29965 grub_video_get_active_render_target.
29966 (grub_video_adapter): Added unmap_color and get_active_render_target.
29967
29968 * video/video.c: Added grub_video_unmap_color and
29969 grub_video_get_active_render_target.
29970 (grub_video_get_info): Changed method to accept NULL pointer as an
29971 argument to allow detection of active video adapter.
29972
29973 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
29974 grub_video_vbe_unmap_color_int.
29975 Added grub_video_vbe_unmap_color and
29976 grub_video_vbe_get_active_render_target.
29977 (grub_video_vbe_adapter): Added unmap_color and
29978 get_active_render_target.
29979
29980 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
29981 with grub_video_vbe_unmap_color_int.
29982
29983 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
29984 (DEFAULT_NORMAL_COLOR): Likewise.
29985 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
29986 (DEFAULT_FG_COLOR): Removed.
29987 (DEFAULT_BG_COLOR): Likewise.
29988 (DEFAULT_CURSOR_COLOR): Changed value.
29989 (grub_virtual_screen): Added standard_color_setting,
29990 normal_color_setting, highlight_color_setting and term_color.
29991 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
29992 (bitmap_width): Added.
29993 (bitmap_height): Likewise.
29994 (bitmap): Likewise.
29995 (set_term_color): Likewise.
29996 (grub_virtual_screen_setup): Changed to use new terminal coloring
29997 settings.
29998 (grub_gfxterm_init): Added init for bitmap.
29999 (grub_gfxterm_fini): Added destroy for bitmap.
30000 (redraw_screen_rect): Updated to use background bitmap and new
30001 terminal coloring.
30002 (scroll_up): Added optimization for case when there is no bitmap.
30003 (grub_gfxterm_cls): Fixed to use correct background color.
30004 (grub_virtual_screen_setcolorstate): Changed to use new terminal
30005 coloring.
30006 (grub_virtual_screen_setcolor): Likewise.
30007 (grub_virtual_screen_getcolor): Added.
30008 (grub_gfxterm_background_image_cmd): Likewise.
30009 (grub_video_term): Added setcolor and getcolor.
30010 (MOD_INIT): Added registration of background_image command.
30011 (MOD_TERM): Added unregistration for background_image command.
30012
30013 2007-12-30 Pavel Roskin <proski@gnu.org>
30014
30015 * loader/multiboot_loader.c: Fix multiboot command
30016 unregistration. Fix all typos in the word "multiboot".
30017
30018 2007-12-29 Pavel Roskin <proski@gnu.org>
30019
30020 * util/grub.d/10_linux.in: Refactor search for initrd. Add
30021 support for initrd names used in Fedora.
30022
30023 2007-12-26 Bean <bean123ch@gmail.com>
30024
30025 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
30026 (cpio_mod_SOURCES): New variable.
30027 (cpio_mod_CFLAGS): Likewise.
30028 (cpio_mod_LDFLAGS): Likewise.
30029
30030 * fs/cpio.c: New file.
30031
30032 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
30033
30034 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30035
30036 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30037
30038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30039
30040 2007-12-25 Robert Millan <rmh@aybabtu.com>
30041
30042 * include/grub/term.h (struct grub_term): Add `getcolor' function.
30043 (grub_getcolor): New function.
30044
30045 * kern/term.c (grub_getcolor): New function.
30046 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
30047 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
30048 (print_entry): Set normal and highlight colors to
30049 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
30050 respectively, before printing and restore them to old
30051 values afterwards.
30052 (grub_menu_init_page): Likewise. Fill an additional colored space
30053 that would otherwise be left blank.
30054
30055 * term/efi/console.c (grub_console_getcolor): New function.
30056 (struct grub_console_term.getcolor): New variable.
30057 * term/i386/pc/console.c (grub_console_getcolor): New function.
30058 (struct grub_console_term.getcolor): New variable.
30059 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
30060 (struct grub_console_term.getcolor): New variable.
30061
30062 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
30063 (struct grub_console_term.setcolor): Remove variable.
30064 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
30065 (struct grub_console_term.setcolor): Remove variable.
30066 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
30067 (struct grub_console_term.setcolor): Remove variable.
30068 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
30069 (struct grub_console_term.setcolor): Remove variable.
30070
30071 2007-12-25 Robert Millan <rmh@aybabtu.com>
30072
30073 * configure.ac: Search for possible unifont.hex locations, and
30074 define UNIFONT_HEX if found.
30075
30076 * Makefile.in (UNIFONT_HEX): Define variable.
30077 (DATA): Rename to ...
30078 (PKGLIB): ... this. Update all users.
30079 (PKGDATA): New variable.
30080 (pkgdata_IMAGES): Rename to ...
30081 (pkglib_IMAGES): ... this. Update all users.
30082 (pkgdata_MODULES): Rename to ...
30083 (pkglib_MODULES): ... this. Update all users.
30084 (pkgdata_PROGRAMS): Rename to ...
30085 (pkglib_PROGRAMS): ... this. Update all users.
30086 (pkgdata_DATA): Rename to ...
30087 (pkglib_DATA): ... this. Update all users.
30088 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
30089 (unicode.pff, ascii.pff): New rules.
30090 (all-local): Add `$(PKGDATA)' dependency.
30091 (install-local): Process `$(PKGDATA)'.
30092
30093 * util/update-grub_lib.in (font_path): Search for *.pff files in
30094 a few more locations, including `${pkgdata}'.
30095
30096 2007-12-23 Robert Millan <rmh@aybabtu.com>
30097
30098 Patch from Bean <bean123ch@gmail.com>:
30099 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
30100 `size'.
30101
30102 2007-12-21 Bean <bean123ch@gmail.com>
30103
30104 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
30105 (ntfscomp_mod_SOURCES): New variable.
30106 (ntfscomp_mod_CFLAGS): Likewise.
30107 (ntfscomp_mod_LDFLAGS): Likewise.
30108
30109 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
30110 (grub_probe_SOURCES): Likewise.
30111 (grub_emu_SOURCES): Likewise.
30112
30113 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30114 (grub_emu_SOURCES): Likewise.
30115
30116 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30117 (grub_emu_SOURCES): Likewise.
30118
30119 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30120 (grub_emu_SOURCES): Likewise.
30121
30122 * fs/ntfs.c (grub_ntfscomp_func): New variable.
30123 (read_run_list): Renamed to grub_ntfs_read_run_list.
30124 (decomp_nextvcn): Moved to ntfscomp.c.
30125 (decomp_getch): Likewise.
30126 (decomp_get16): Likewise.
30127 (decomp_block): Likewise.
30128 (read_block): Likewise.
30129 (read_data): Partially moved to ntfscomp.c.
30130 (fixup): Change unsigned to grub_uint16_t.
30131 (read_mft): Change unsigned long to grub_uint32_t.
30132 (read_attr): Likewise.
30133 (read_data): Likewise.
30134 (read_run_data): Likewise.
30135 (read_run_list): Likewise.
30136 (read_mft): Likewise.
30137
30138 * fs/ntfscomp.c: New file.
30139
30140 * include/grub/ntfs.h: New file.
30141
30142 2007-12-16 Robert Millan <rmh@aybabtu.com>
30143
30144 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
30145 IDE disk check, since Linux is known to support 20 IDE disks.
30146 Reported by Colin Watson.
30147
30148 2007-12-15 Bean <bean123ch@gmail.com>
30149
30150 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
30151 (lnxboot_img_SOURCES): New variable.
30152 (lnxboot_img_ASFLAGS): Likewise.
30153 (lnxboot_img_LDFLAGS): Likewise.
30154
30155 * boot/i386/pc/lnxboot.S: New file.
30156
30157 2007-11-24 Pavel Roskin <proski@gnu.org>
30158
30159 * configure.ac: Test if '--build-id=none' is supported by the
30160 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
30161 objcopy to generate incorrect binary files (binutils
30162 2.17.50.0.18-1 as shipped by Fedora 8).
30163 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
30164 linking, so that build ID doesn't break the test.
30165
30166 2007-11-24 Pavel Roskin <proski@gnu.org>
30167
30168 * include/grub/i386/time.h: use "void" in the argument list
30169 of grub_cpu_idle().
30170 * include/grub/powerpc/time.h: Likewise.
30171 * include/grub/sparc64/time.h: Likewise.
30172
30173 2007-11-18 Christian Franke <franke@computer.org>
30174
30175 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
30176 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
30177 This fixes the problem that function keys did not work in grub-emu.
30178
30179 2007-11-18 Christian Franke <franke@computer.org>
30180
30181 * disk/host.c (grub_host_open): Remove attribute unused from
30182 name parameter. Add check for "host". This fixes the problem
30183 that grub-emu does not find partitions.
30184
30185 2007-11-18 Christian Franke <franke@computer.org>
30186
30187 * util/hostfs.c (is_dir): New function.
30188 (grub_hostfs_dir): Handle missing dirent.d_type case.
30189 (grub_hostfs_read): Add missing fseek().
30190 (grub_hostfs_label): Clear label pointer. This fixes a crash
30191 of grub-emu on "ls (host)".
30192
30193 2007-11-18 Christian Franke <franke@computer.org>
30194
30195 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
30196 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
30197 to 64 bit boundary by default.
30198
30199 2007-11-18 Bean <bean123ch@gmail.com>
30200
30201 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
30202 (hexdump_mod_SOURCES): New variable.
30203 (hexdump_mod_CFLAGS): Likewise.
30204 (hexdump_mod_LDFLAGS): Likewise.
30205
30206 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30207
30208 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30209
30210 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30211
30212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30213
30214 * include/grub/hexdump.h: New file.
30215
30216 * commands/hexdump.c: New file.
30217
30218 2007-11-10 Robert Millan <rmh@aybabtu.com>
30219
30220 * commands/i386/pc/play.c (beep_off): Switch order of arguments
30221 in grub_outb() calls.
30222 (beep_on): Likewise.
30223
30224 2007-11-10 Christian Franke <franke@computer.org>
30225
30226 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
30227 (grub_menu_run): Likewise.
30228
30229 2007-11-10 Robert Millan <rmh@aybabtu.com>
30230
30231 * include/grub/i386/efi/machine.h: New file.
30232 * include/grub/i386/linuxbios/machine.h: Likewise.
30233 * include/grub/i386/pc/machine.h: Likewise.
30234 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30235 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30236
30237 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
30238 (serial_hw_io_addr): New variable.
30239 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
30240 instead of `(unsigned short *) 0x400'.
30241
30242 2007-11-10 Bean <bean123ch@gmail.com>
30243
30244 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
30245
30246 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30247
30248 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
30249 (vga_mod_SOURCES): Added.
30250 (vga_mod_CFLAGS): Likewise.
30251 (vga_mod_LDFLAGS): Likewise.
30252
30253 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
30254 grub_outb() calls.
30255 (set_map_mask): Likewise.
30256 (set_read_map): Likewise.
30257 (set_read_address): Likewise.
30258 (vga_font): Removed variable.
30259 (get_vga_glyph): Removed function.
30260 (invalidate_char): Likewise.
30261 (write_char): Changed to use grub_font_get_glyph() for font
30262 information.
30263 (grub_vga_putchar): Likewise.
30264 (grub_vga_getcharwidth): Likewise.
30265
30266 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30267
30268 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
30269 flags.
30270 (pxeboot_img_LDFLAGS): Likewise.
30271 (diskboot_img_LDFLAGS): Likewise.
30272 (kernel_img_LDFLAGS): Likewise.
30273
30274 2007-11-06 Robert Millan <rmh@aybabtu.com>
30275
30276 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
30277 in grub_outb() calls.
30278 (serial_hw_init): Likewise.
30279
30280 2007-11-05 Robert Millan <rmh@aybabtu.com>
30281
30282 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
30283 spaces. Skip non-regular files.
30284
30285 2007-11-05 Robert Millan <rmh@aybabtu.com>
30286
30287 * kern/disk.c (grub_disk_firmware_fini)
30288 (grub_disk_firmware_is_tainted): New variables.
30289
30290 * include/grub/disk.h (grub_disk_firmware_fini)
30291 (grub_disk_firmware_is_tainted): Likewise.
30292
30293 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
30294 (grub_disk_biosdisk_fini): ... to here.
30295 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
30296 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
30297 is set. Register grub_disk_biosdisk_fini() in
30298 `grub_disk_firmware_fini'.
30299
30300 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
30301 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
30302 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
30303 to finish existing firmware disk interface.
30304
30305 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
30306 (ata_mod_SOURCES): New variable.
30307 (ata_mod_CFLAGS): Likewise.
30308 (ata_mod_LDFLAGS): Likewise.
30309
30310 2007-11-05 Robert Millan <rmh@aybabtu.com>
30311
30312 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
30313 (grub_ata_wait): Reimplement using grub_millisleep().
30314
30315 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
30316 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
30317
30318 2007-11-03 Marco Gerards <marco@gnu.org>
30319
30320 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
30321 (CRTC_ADDR_PORT): New macro.
30322 (CRTC_DATA_PORT): Likewise.
30323 (CRTC_CURSOR): Likewise.
30324 (CRTC_CURSOR_ADDR_HIGH): Likewise.
30325 (CRTC_CURSOR_ADDR_LOW): Likewise.
30326 (update_cursor): New function.
30327 (grub_console_real_putchar): Call `update_cursor'.
30328 (grub_console_gotoxy): Likewise.
30329 (grub_console_cls): Set the default color when clearing the
30330 screen.
30331 (grub_console_setcursor): Implemented.
30332
30333 2007-11-03 Marco Gerards <marco@gnu.org>
30334
30335 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
30336 become activate.
30337 (grub_ata_pio_write): Likewise.
30338
30339 (grub_atapi_identify): Wait after issuing an ATA command.
30340 (grub_atapi_packet): Likewise.
30341 (grub_ata_identify): Likewise.
30342 (grub_ata_readwrite): Likewise.
30343
30344 2007-11-03 Marco Gerards <marco@gnu.org>
30345
30346 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
30347 (grub_ata_pio_write): Likewise.
30348 (grub_ata_readwrite): Use `grub_error', instead of
30349 returning `grub_errno'.
30350
30351 2007-11-03 Marco Gerards <marco@gnu.org>
30352
30353 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
30354 grub_ata_pio_write once for every single sector, instead of for
30355 multiple sectors.
30356
30357 2007-10-31 Robert Millan <rmh@aybabtu.com>
30358
30359 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
30360
30361 * conf/i386-linuxbios.rmk: New file.
30362
30363 * kern/i386/pc/hardware.c: Likewise.
30364 * term/i386/pc/at_keyboard.c: Likewise.
30365 * term/i386/pc/vga_text.c: Likewise.
30366
30367 * include/grub/i386/linuxbios/boot.h: Likewise.
30368 * include/grub/i386/linuxbios/console.h: Likewise.
30369 * include/grub/i386/linuxbios/init.h: Likewise.
30370 * include/grub/i386/linuxbios/kernel.h: Likewise.
30371 * include/grub/i386/linuxbios/loader.h: Likewise.
30372 * include/grub/i386/linuxbios/memory.h: Likewise.
30373 * include/grub/i386/linuxbios/serial.h: Likewise.
30374 * include/grub/i386/linuxbios/time.h: Likewise.
30375
30376 * kern/i386/linuxbios/init.c: Likewise.
30377 * kern/i386/linuxbios/startup.S: Likewise.
30378 * kern/i386/linuxbios/table.c: Likewise.
30379
30380 2007-10-31 Marco Gerards <marco@gnu.org>
30381
30382 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
30383 (ata_mod_SOURCES): New variable.
30384 (ata_mod_CFLAGS): Likewise.
30385 (ata_mod_LDFLAGS): Likewise.
30386
30387 * disk/ata.c: New file.
30388
30389 * include/grub/disk.h (grub_disk_dev_id): Add
30390 `GRUB_DISK_DEV_ATA_ID'.
30391
30392 2007-10-31 Robert Millan <rmh@aybabtu.com>
30393
30394 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
30395 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
30396
30397 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
30398 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
30399
30400 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
30401 `<grub/types.h>'.
30402
30403 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
30404
30405 2007-10-27 Robert Millan <rmh@aybabtu.com>
30406
30407 * include/grub/types.h (ULONG_MAX): Define macro.
30408
30409 2007-10-22 Robert Millan <rmh@aybabtu.com>
30410
30411 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
30412 `"../realmode.S"'.
30413 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
30414
30415 2007-10-22 Robert Millan <rmh@aybabtu.com>
30416
30417 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
30418 (pkgdata_MODULES): Add `biosdisk.mod'.
30419 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
30420 variables.
30421
30422 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
30423 (grub_biosdisk_init): Replace with ...
30424 (GRUB_MOD_INIT(biosdisk)): ... this.
30425 (grub_biosdisk_fini): Replace with ...
30426 (GRUB_MOD_FINI(biosdisk)): ... this.
30427
30428 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
30429 (grub_machine_init): Remove call to grub_biosdisk_init().
30430 (grub_machine_fini): Remove call to grub_machine_fini().
30431
30432 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
30433
30434 2007-10-22 Robert Millan <rmh@aybabtu.com>
30435
30436 * include/grub/time.h: New file.
30437 * include/grub/i386/time.h: Likewise.
30438 * include/grub/powerpc/time.h: Likewise.
30439 * include/grub/sparc64/time.h: Likewise.
30440
30441 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
30442 instances to ...
30443 (KERNEL_MACHINE_TIME_HEADER): ... this.
30444 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30445 instances to ...
30446 (KERNEL_MACHINE_TIME_HEADER): ... this.
30447 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30448 instances to ...
30449 (KERNEL_MACHINE_TIME_HEADER): ... this.
30450
30451 * kern/i386/efi/init.c: Include `<grub/time.h>'.
30452 (grub_millisleep): New function.
30453 * kern/i386/pc/init.c: Include `<grub/time.h>'.
30454 (grub_millisleep): New function.
30455 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
30456 Remove `grub/machine/time.h' include.
30457 (grub_millisleep): New function.
30458 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
30459 Remove `grub/machine/time.h' include.
30460 (grub_millisleep): New function.
30461
30462 * include/grub/misc.h (grub_div_roundup): New function.
30463
30464 * kern/misc.c: Include `<grub/time.h>'.
30465 (grub_millisleep_generic): New function.
30466
30467 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
30468 Add `time.h'.
30469 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
30470 Add `time.h'.
30471 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
30472 `machine/time.h'. Add `time.h'.
30473 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30474
30475 2007-10-21 Robert Millan <rmh@aybabtu.com>
30476
30477 * include/grub/misc.h (grub_max): New function.
30478
30479 2007-10-21 Robert Millan <rmh@aybabtu.com>
30480
30481 * util/misc.c (grub_util_info): Call fflush() before returning.
30482
30483 2007-10-20 Robert Millan <rmh@aybabtu.com>
30484
30485 * genmk.rb (Image): Copy `extra_flags' from here ...
30486 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
30487
30488 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
30489 to `argc' and `args' arguments.
30490
30491 2007-10-17 Robert Millan <rmh@aybabtu.com>
30492
30493 * kern/i386/loader.S: New file.
30494
30495 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
30496 * kern/i386/loader.S (grub_linux_prot_size)... to here.
30497 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
30498 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
30499 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
30500 * kern/i386/loader.S (grub_linux_real_addr)... to here.
30501 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
30502 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
30503 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
30504 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
30505 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
30506 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
30507 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
30508 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
30509
30510 * kern/i386/realmode.S: New file.
30511
30512 * kern/i386/pc/startup.S (protstack): Moved from here ...
30513 * kern/i386/realmode.S (protstack)... to here.
30514 * kern/i386/pc/startup.S (gdt): Moved from here ...
30515 * kern/i386/realmode.S (gdt)... to here.
30516 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
30517 * kern/i386/realmode.S (prot_to_real)... to here.
30518
30519 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
30520 `kern/i386/realmode.S'.
30521
30522 2007-10-17 Robert Millan <rmh@aybabtu.com>
30523
30524 * include/grub/i386/loader.h: New file.
30525
30526 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
30527 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30528 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30529 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30530 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
30531 * include/grub/i386/loader.h (grub_linux_prot_size)
30532 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30533 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30534 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30535 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
30536
30537 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
30538
30539 2007-10-15 Robert Millan <rmh@aybabtu.com>
30540
30541 * normal/misc.c (grub_normal_print_device_info): Do not probe for
30542 filesystem when dev->disk is unset.
30543 Do probe for filesystem even when dev->disk->has_partitions is set.
30544 In case a filesystem is found, always report it.
30545 In case it isn't, if dev->disk->has_partitions is set, report that
30546 a partition table was found instead of reporting that no filesystem
30547 could be identified.
30548
30549 2007-10-12 Robert Millan <rmh@aybabtu.com>
30550
30551 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
30552 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
30553
30554 * include/grub/types.h (grub_host_to_target16): New macro.
30555 (grub_host_to_target32): Likewise.
30556 (grub_host_to_target64): Likewise.
30557 (grub_target_to_host16): Likewise.
30558 (grub_target_to_host32): Likewise.
30559 (grub_target_to_host64): Likewise.
30560
30561 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
30562 Renamed from to ...
30563 (GRUB_MOD_ALIGN): ...this. Update all users.
30564
30565 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
30566 grub_host_to_target32.
30567 Replace grub_be_to_cpu32 with grub_target_to_host32.
30568 (load_modules): Likewise.
30569 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
30570 Replace grub_be_to_cpu32 with grub_target_to_host32.
30571 Replace grub_cpu_to_be16 with grub_host_to_target16.
30572 Replace grub_cpu_to_be32 grub_host_to_target32.
30573
30574 2007-10-12 Robert Millan <rmh@aybabtu.com>
30575
30576 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
30577 * util/elf/grub-mkimage.c: ... here.
30578
30579 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
30580 `util/powerpc/ieee1275/grub-mkimage.c'.
30581
30582 2007-10-07 Robert Millan <rmh@aybabtu.com>
30583
30584 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
30585 and make it easier to figure out.
30586 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
30587 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
30588 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
30589 leave us with less than HEAP_MIN_SIZE total heap.
30590 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
30591
30592 2007-10-03 Robert Millan <rmh@aybabtu.com>
30593
30594 * include/grub/i386/io.h: New file.
30595 * commands/i386/pc/play.c (inb): Removed.
30596 (outb): Removed.
30597 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30598 with grub_outb().
30599 * term/i386/pc/serial.c (inb): Removed.
30600 (outb): Removed.
30601 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30602 with grub_outb().
30603 * term/i386/pc/vga.c (inb): Removed.
30604 (outb): Removed.
30605 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
30606 with grub_outb().
30607
30608 2007-10-02 Robert Millan <rmh@aybabtu.com>
30609
30610 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
30611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30612 Reported by Marcin Kurek.
30613
30614 2007-09-07 Robert Millan <rmh@aybabtu.com>
30615
30616 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
30617 SmartFirmware version updates (as released by Sven Luther), and avoid
30618 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
30619 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
30620 known broken.
30621
30622 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30623
30624 From Hitoshi Ozeki:
30625 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
30626 when merging two regions.
30627
30628 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30629
30630 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
30631 * normal/completion.c (grub_normal_do_completion): Likewise.
30632 Reported by Hitoshi Ozeki.
30633
30634 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30635
30636 Do not use devices at boot in chainloading.
30637
30638 * loader/i386/pc/chainloader.c (boot_drive): New variable.
30639 (boot_part_addr): Likewise.
30640 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
30641 with BOOT_DRIVE and BOOT_PART_ADDR.
30642 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
30643 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
30644
30645 2007-08-29 Robert Millan <rmh@aybabtu.com>
30646
30647 Patch from Simon Peter <dn.tlp@gmx.net>:
30648 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
30649 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
30650 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
30651 util/i386/pc/grub-setup.c_DEPENDENCIES.
30652 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
30653 util/grub-probe.c_DEPENDENCIES.
30654 * conf/powerpc-ieee1275.rmk: Likewise.
30655
30656 2007-08-28 Robert Millan <rmh@aybabtu.com>
30657
30658 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
30659 to tell grub-mkdevicemap how to name devices.
30660 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
30661 feature).
30662
30663 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
30664 util/i386/get_disk_name.c.
30665 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
30666 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
30667 util/ieee1275/get_disk_name.c.
30668
30669 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
30670
30671 * DISTLIST: Add util/i386/get_disk_name.c and
30672 util/ieee1275/get_disk_name.c.
30673
30674 * util/grub-mkdevicemap.c: Replace device naming logic with
30675 grub_util_get_disk_name() calls.
30676
30677 2007-08-20 Robert Millan <rmh@aybabtu.com>
30678
30679 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
30680 (so that it works for both plural and singular quantities).
30681
30682 2007-08-05 Robert Millan <rmh@aybabtu.com>
30683
30684 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
30685 so that [xz] isn't taken into account when determining order.
30686
30687 2007-08-02 Marco Gerards <marco@gnu.org>
30688
30689 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
30690 `include/multiboot2.h', `include/grub/elfload.h',
30691 `include/multiboot.h', `include/grub/multiboot.h',
30692 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
30693 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
30694 `kern/elf.c', `loader/multiboot_loader.c',
30695 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
30696 `loader/i386/pc/multiboot2.c',
30697 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
30698 `util/i386/pc/grub-mkrescue.in'. Remove
30699 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
30700 `include/grub/i386/pc/util/biosdisk.h' and
30701 `include/grub/powerpc/ieee1275/multiboot.h'.
30702
30703 2007-08-02 Bean <bean123ch@gmail.com>
30704
30705 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
30706 (ntfs_mod_SOURCES): New variable.
30707 (ntfs_mod_CFLAGS): Likewise.
30708 (ntfs_mod_LDFLAGS): Likewise.
30709
30710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
30711 (grub_probe_SOURCES): Likewise.
30712 (grub_emu_SOURCES): Likewise.
30713
30714 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
30715 (grub_emu_SOURCES): Likewise.
30716
30717 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
30718 (grub_emu_SOURCES): Likewise.
30719
30720 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
30721
30722 * fs/ntfs.c: New file.
30723
30724 2007-08-02 Bean <bean123ch@gmail.com>
30725
30726 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
30727
30728 * file.h (grub_file): Likewise.
30729
30730 * fshelp.h (grub_fshelp_read_file): Likewise.
30731
30732 * util/i386/pc/grub-setup.c (setup): Likewise.
30733 (save_first_sector): Likewise.
30734 (save_blocklists): Likewise.
30735
30736 * fs/affs.c (grub_affs_read_file): Likewise.
30737
30738 * fs/ext2.c (grub_ext2_read_file): Likewise.
30739
30740 * fs/fat.c (grub_fat_read_data): Likewise.
30741
30742 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
30743
30744 * fs/hfs.c (grub_hfs_read_file): Likewise.
30745
30746 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30747
30748 * fs/jfs.c (grub_jfs_read_file): Likewise.
30749
30750 * fs/minix.c (grub_minix_read_file): Likewise.
30751
30752 * fs/sfs.c (grub_sfs_read_file): Likewise.
30753
30754 * fs/ufs.c (grub_ufs_read_file): Likewise.
30755
30756 * fs/xfs.c (grub_xfs_read_file): Likewise.
30757
30758 * command/blocklist.c (read_blocklist): Likewise.
30759 (print_blocklist): Likewise.
30760
30761 2007-08-02 Marco Gerards <marco@gnu.org>
30762
30763 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
30764 `util/hostfs.c'.
30765
30766 * disk/host.c: New file.
30767
30768 * util/hostfs.c: Likewise.
30769
30770 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
30771 return `GRUB_ERR_BAD_FS'.
30772 * fs/sfs.c (grub_sfs_mount): Likewise.
30773 * fs/xfs.c (grub_xfs_mount): Likewise.
30774
30775 * include/grub/disk.h (enum grub_disk_dev_id): Add
30776 `GRUB_DISK_DEVICE_HOST_ID'.
30777
30778 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
30779
30780 2007-07-24 Jerone Young <jerone@gmail.com>
30781
30782 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
30783 modules for compilation.
30784 * conf/powerpc-ieee1275.rmk: Likewise.
30785
30786 * include/multiboot.h: Move multiboot definitions to one file. Rename
30787 many definitions to not get grub specific.
30788 * include/multiboot2.h: Create header with multiboot 2 definitions.
30789 * include/grub/multiboot.h: Header for grub specific function
30790 prototypes and definitions.
30791 * include/grub/multiboot2.h: Likewise.
30792 * include/grub/multiboot_loader.h: Likewise.
30793 * include/grub/i386/pc/multiboot.h: Removed.
30794 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
30795
30796 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
30797 and 2 to allow for one multiboot and module commands.
30798 * loader/multiboot2.c: Add multiboot2 functionality.
30799 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
30800 and definition names.
30801 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
30802 2 functions.
30803 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
30804 ieee1275 specific multiboot2 code.
30805
30806 * kern/i386/pc/startup.S: Change headers and definition names for
30807 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
30808
30809 2007-07-22 Robert Millan <rmh@aybabtu.com>
30810
30811 * geninitheader.sh: Process file specified in first parameter rather
30812 than hardcoding grub_modules_init.lst.
30813 * geninit.sh: Likewise. Also, construct header name dynamically rather
30814 than hardcoding grub_modules_init.h.
30815
30816 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
30817 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
30818 grub_probe_init.[ch] and grub_setup_init.[ch].
30819
30820 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
30821 grub_modules_init.h with grub_emu_init.h.
30822 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
30823 grub_probe_init.[ch] files.
30824 * conf/i386-efi.rmk: Likewise.
30825 * conf/i386-pc.rmk: Likewise.
30826 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
30827 grub_setup_init.[ch] files.
30828
30829 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
30830 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
30831 to initialize modules rather than a list of hardcoded functions.
30832 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
30833 grub_init_all() to initialize modules rather than a list of hardcoded
30834 functions.
30835
30836 2007-07-22 Robert Millan <rmh@aybabtu.com>
30837
30838 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
30839 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
30840
30841 2007-07-22 Robert Millan <rmh@aybabtu.com>
30842
30843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
30844 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
30845 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
30846 flag when running on SmartFirmware.
30847 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
30848 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
30849 was set.
30850
30851 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
30852 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
30853 rather than decreasing it.
30854
30855 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
30856 there's not enough space to do it, fail in the same way as when it
30857 can't be done because there are no partitions.
30858
30859 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
30860 when nvsetenv failed.
30861
30862 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30863
30864 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
30865 because this rule is automatically generated.
30866 (grub-mkrescue): Removed for the same reason as above.
30867
30868 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30869
30870 Migrate to GNU General Public License Version 3.
30871
30872 * COPYING: Replaced with the plain text version of GPLv3.
30873
30874 * config.guess: Updated from gnulib.
30875 * config.sub: Likewise.
30876
30877 * geninit.sh: Output a GPLv3 copyright notice.
30878 * geninitheader.sh: Likewise.
30879 * genmodsrc.sh: Likewise.
30880 * gensymlist.sh.in: Likewise.
30881
30882 * boot/i386/pc/boot.S: Upgraded to GPLv3.
30883 * boot/i386/pc/diskboot.S: Likewise.
30884 * boot/i386/pc/pxeboot.S: Likewise.
30885 * commands/blocklist.c: Likewise.
30886 * commands/boot.c: Likewise.
30887 * commands/cat.c: Likewise.
30888 * commands/cmp.c: Likewise.
30889 * commands/configfile.c: Likewise.
30890 * commands/echo.c: Likewise.
30891 * commands/help.c: Likewise.
30892 * commands/ls.c: Likewise.
30893 * commands/search.c: Likewise.
30894 * commands/terminal.c: Likewise.
30895 * commands/test.c: Likewise.
30896 * commands/videotest.c: Likewise.
30897 * commands/i386/cpuid.c: Likewise.
30898 * commands/i386/pc/halt.c: Likewise.
30899 * commands/i386/pc/play.c: Likewise.
30900 * commands/i386/pc/reboot.c: Likewise.
30901 * commands/i386/pc/vbeinfo.c: Likewise.
30902 * commands/i386/pc/vbetest.c: Likewise.
30903 * commands/ieee1275/halt.c: Likewise.
30904 * commands/ieee1275/reboot.c: Likewise.
30905 * commands/ieee1275/suspend.c: Likewise.
30906 * disk/loopback.c: Likewise.
30907 * disk/lvm.c: Likewise.
30908 * disk/raid.c: Likewise.
30909 * disk/efi/efidisk.c: Likewise.
30910 * disk/i386/pc/biosdisk.c: Likewise.
30911 * disk/ieee1275/ofdisk.c: Likewise.
30912 * font/manager.c: Likewise.
30913 * fs/affs.c: Likewise.
30914 * fs/ext2.c: Likewise.
30915 * fs/fat.c: Likewise.
30916 * fs/fshelp.c: Likewise.
30917 * fs/hfs.c: Likewise.
30918 * fs/hfsplus.c: Likewise.
30919 * fs/iso9660.c: Likewise.
30920 * fs/jfs.c: Likewise.
30921 * fs/minix.c: Likewise.
30922 * fs/sfs.c: Likewise.
30923 * fs/ufs.c: Likewise.
30924 * fs/xfs.c: Likewise.
30925 * hello/hello.c: Likewise.
30926 * include/grub/acorn_filecore.h: Likewise.
30927 * include/grub/arg.h: Likewise.
30928 * include/grub/bitmap.h: Likewise.
30929 * include/grub/boot.h: Likewise.
30930 * include/grub/cache.h: Likewise.
30931 * include/grub/device.h: Likewise.
30932 * include/grub/disk.h: Likewise.
30933 * include/grub/dl.h: Likewise.
30934 * include/grub/elfload.h: Likewise.
30935 * include/grub/env.h: Likewise.
30936 * include/grub/err.h: Likewise.
30937 * include/grub/file.h: Likewise.
30938 * include/grub/font.h: Likewise.
30939 * include/grub/fs.h: Likewise.
30940 * include/grub/fshelp.h: Likewise.
30941 * include/grub/gzio.h: Likewise.
30942 * include/grub/hfs.h: Likewise.
30943 * include/grub/kernel.h: Likewise.
30944 * include/grub/loader.h: Likewise.
30945 * include/grub/lvm.h: Likewise.
30946 * include/grub/misc.h: Likewise.
30947 * include/grub/mm.h: Likewise.
30948 * include/grub/net.h: Likewise.
30949 * include/grub/normal.h: Likewise.
30950 * include/grub/parser.h: Likewise.
30951 * include/grub/partition.h: Likewise.
30952 * include/grub/pc_partition.h: Likewise.
30953 * include/grub/raid.h: Likewise.
30954 * include/grub/rescue.h: Likewise.
30955 * include/grub/script.h: Likewise.
30956 * include/grub/setjmp.h: Likewise.
30957 * include/grub/symbol.h: Likewise.
30958 * include/grub/term.h: Likewise.
30959 * include/grub/terminfo.h: Likewise.
30960 * include/grub/tparm.h: Likewise.
30961 * include/grub/types.h: Likewise.
30962 * include/grub/video.h: Likewise.
30963 * include/grub/efi/api.h: Likewise.
30964 * include/grub/efi/chainloader.h: Likewise.
30965 * include/grub/efi/console.h: Likewise.
30966 * include/grub/efi/console_control.h: Likewise.
30967 * include/grub/efi/disk.h: Likewise.
30968 * include/grub/efi/efi.h: Likewise.
30969 * include/grub/efi/pe32.h: Likewise.
30970 * include/grub/efi/time.h: Likewise.
30971 * include/grub/i386/linux.h: Likewise.
30972 * include/grub/i386/setjmp.h: Likewise.
30973 * include/grub/i386/types.h: Likewise.
30974 * include/grub/i386/efi/kernel.h: Likewise.
30975 * include/grub/i386/efi/loader.h: Likewise.
30976 * include/grub/i386/efi/time.h: Likewise.
30977 * include/grub/i386/pc/biosdisk.h: Likewise.
30978 * include/grub/i386/pc/boot.h: Likewise.
30979 * include/grub/i386/pc/chainloader.h: Likewise.
30980 * include/grub/i386/pc/console.h: Likewise.
30981 * include/grub/i386/pc/init.h: Likewise.
30982 * include/grub/i386/pc/kernel.h: Likewise.
30983 * include/grub/i386/pc/loader.h: Likewise.
30984 * include/grub/i386/pc/memory.h: Likewise.
30985 * include/grub/i386/pc/multiboot.h: Likewise.
30986 * include/grub/i386/pc/serial.h: Likewise.
30987 * include/grub/i386/pc/time.h: Likewise.
30988 * include/grub/i386/pc/vbe.h: Likewise.
30989 * include/grub/i386/pc/vbeblit.h: Likewise.
30990 * include/grub/i386/pc/vbefill.h: Likewise.
30991 * include/grub/i386/pc/vbeutil.h: Likewise.
30992 * include/grub/i386/pc/vga.h: Likewise.
30993 * include/grub/ieee1275/ieee1275.h: Likewise.
30994 * include/grub/ieee1275/ofdisk.h: Likewise.
30995 * include/grub/powerpc/libgcc.h: Likewise.
30996 * include/grub/powerpc/setjmp.h: Likewise.
30997 * include/grub/powerpc/types.h: Likewise.
30998 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
30999 * include/grub/powerpc/ieee1275/console.h: Likewise.
31000 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
31001 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
31002 * include/grub/powerpc/ieee1275/loader.h: Likewise.
31003 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
31004 * include/grub/powerpc/ieee1275/time.h: Likewise.
31005 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
31006 * include/grub/sparc64/libgcc.h: Likewise.
31007 * include/grub/sparc64/setjmp.h: Likewise.
31008 * include/grub/sparc64/types.h: Likewise.
31009 * include/grub/sparc64/ieee1275/console.h: Likewise.
31010 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31011 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31012 * include/grub/sparc64/ieee1275/time.h: Likewise.
31013 * include/grub/util/biosdisk.h: Likewise.
31014 * include/grub/util/getroot.h: Likewise.
31015 * include/grub/util/lvm.h: Likewise.
31016 * include/grub/util/misc.h: Likewise.
31017 * include/grub/util/raid.h: Likewise.
31018 * include/grub/util/resolve.h: Likewise.
31019 * io/gzio.c: Likewise.
31020 * kern/device.c: Likewise.
31021 * kern/disk.c: Likewise.
31022 * kern/dl.c: Likewise.
31023 * kern/elf.c: Likewise.
31024 * kern/env.c: Likewise.
31025 * kern/err.c: Likewise.
31026 * kern/file.c: Likewise.
31027 * kern/fs.c: Likewise.
31028 * kern/loader.c: Likewise.
31029 * kern/main.c: Likewise.
31030 * kern/misc.c: Likewise.
31031 * kern/mm.c: Likewise.
31032 * kern/parser.c: Likewise.
31033 * kern/partition.c: Likewise.
31034 * kern/rescue.c: Likewise.
31035 * kern/term.c: Likewise.
31036 * kern/efi/efi.c: Likewise.
31037 * kern/efi/init.c: Likewise.
31038 * kern/efi/mm.c: Likewise.
31039 * kern/i386/dl.c: Likewise.
31040 * kern/i386/efi/init.c: Likewise.
31041 * kern/i386/efi/startup.S: Likewise.
31042 * kern/i386/pc/init.c: Likewise.
31043 * kern/i386/pc/lzo1x.S: Likewise.
31044 * kern/i386/pc/startup.S: Likewise.
31045 * kern/ieee1275/ieee1275.c: Likewise.
31046 * kern/powerpc/cache.S: Likewise.
31047 * kern/powerpc/dl.c: Likewise.
31048 * kern/powerpc/ieee1275/cmain.c: Likewise.
31049 * kern/powerpc/ieee1275/crt0.S: Likewise.
31050 * kern/powerpc/ieee1275/init.c: Likewise.
31051 * kern/powerpc/ieee1275/openfw.c: Likewise.
31052 * kern/sparc64/cache.S: Likewise.
31053 * kern/sparc64/dl.c: Likewise.
31054 * kern/sparc64/ieee1275/init.c: Likewise.
31055 * kern/sparc64/ieee1275/openfw.c: Likewise.
31056 * loader/efi/chainloader.c: Likewise.
31057 * loader/efi/chainloader_normal.c: Likewise.
31058 * loader/i386/efi/linux.c: Likewise.
31059 * loader/i386/efi/linux_normal.c: Likewise.
31060 * loader/i386/pc/chainloader.c: Likewise.
31061 * loader/i386/pc/chainloader_normal.c: Likewise.
31062 * loader/i386/pc/linux.c: Likewise.
31063 * loader/i386/pc/linux_normal.c: Likewise.
31064 * loader/i386/pc/multiboot.c: Likewise.
31065 * loader/i386/pc/multiboot_normal.c: Likewise.
31066 * loader/powerpc/ieee1275/linux.c: Likewise.
31067 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31068 * normal/arg.c: Likewise.
31069 * normal/cmdline.c: Likewise.
31070 * normal/command.c: Likewise.
31071 * normal/completion.c: Likewise.
31072 * normal/execute.c: Likewise.
31073 * normal/function.c: Likewise.
31074 * normal/lexer.c: Likewise.
31075 * normal/main.c: Likewise.
31076 * normal/menu.c: Likewise.
31077 * normal/menu_entry.c: Likewise.
31078 * normal/misc.c: Likewise.
31079 * normal/parser.y: Likewise.
31080 * normal/script.c: Likewise.
31081 * normal/i386/setjmp.S: Likewise.
31082 * normal/powerpc/setjmp.S: Likewise.
31083 * normal/sparc64/setjmp.S: Likewise.
31084 * partmap/acorn.c: Likewise.
31085 * partmap/amiga.c: Likewise.
31086 * partmap/apple.c: Likewise.
31087 * partmap/gpt.c: Likewise.
31088 * partmap/pc.c: Likewise.
31089 * partmap/sun.c: Likewise.
31090 * term/gfxterm.c: Likewise.
31091 * term/terminfo.c: Likewise.
31092 * term/efi/console.c: Likewise.
31093 * term/i386/pc/console.c: Likewise.
31094 * term/i386/pc/serial.c: Likewise.
31095 * term/i386/pc/vesafb.c: Likewise.
31096 * term/i386/pc/vga.c: Likewise.
31097 * term/ieee1275/ofconsole.c: Likewise.
31098 * util/biosdisk.c: Likewise.
31099 * util/console.c: Likewise.
31100 * util/genmoddep.c: Likewise.
31101 * util/getroot.c: Likewise.
31102 * util/grub-emu.c: Likewise.
31103 * util/grub-mkdevicemap.c: Likewise.
31104 * util/grub-probe.c: Likewise.
31105 * util/lvm.c: Likewise.
31106 * util/misc.c: Likewise.
31107 * util/raid.c: Likewise.
31108 * util/resolve.c: Likewise.
31109 * util/update-grub.in: Likewise.
31110 * util/update-grub_lib.in: Likewise.
31111 * util/grub.d/00_header.in: Likewise.
31112 * util/grub.d/10_hurd.in: Likewise.
31113 * util/grub.d/10_linux.in: Likewise.
31114 * util/i386/efi/grub-install.in: Likewise.
31115 * util/i386/efi/grub-mkimage.c: Likewise.
31116 * util/i386/pc/grub-install.in: Likewise.
31117 * util/i386/pc/grub-mkimage.c: Likewise.
31118 * util/i386/pc/grub-mkrescue.in: Likewise.
31119 * util/i386/pc/grub-setup.c: Likewise.
31120 * util/i386/pc/misc.c: Likewise.
31121 * util/powerpc/ieee1275/grub-install.in: Likewise.
31122 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
31123 * util/powerpc/ieee1275/misc.c: Likewise.
31124 * video/bitmap.c: Likewise.
31125 * video/video.c: Likewise.
31126 * video/i386/pc/vbe.c: Likewise.
31127 * video/i386/pc/vbeblit.c: Likewise.
31128 * video/i386/pc/vbefill.c: Likewise.
31129 * video/i386/pc/vbeutil.c: Likewise.
31130 * video/readers/tga.c: Likewise.
31131
31132 2007-07-02 Robert Millan <rmh@aybabtu.com>
31133
31134 * conf/i386-efi.rmk: Replace obsolete reference to
31135 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
31136 with util/getroot.c.
31137 * conf/powerpc-ieee1275.rmk: Likewise.
31138 * conf/sparc64-ieee1275.rmk: Likewise.
31139
31140 * util/grub-emu.c (main): Fix unchecked pointer handling.
31141
31142 2007-07-02 Robert Millan <rmh@aybabtu.com>
31143
31144 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
31145 invocation to fail, in order to support partition-less media.
31146
31147 * util/i386/pc/grub-install.in: Likewise.
31148
31149 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
31150 which fs or partmap modules are needed (akin to its sister scripts).
31151
31152 Also use grub-probe to get rid of unportable /proc/mounts check.
31153
31154 Print the same informational message that the other scripts do, before
31155 exiting.
31156
31157 2007-06-23 Robert Millan <rmh@aybabtu.com>
31158
31159 * util/update-grub_lib.in (font_path): New function. Determine whether
31160 a font file can be found and, if so, echo the GRUB path to it.
31161
31162 * util/update-grub.in: Handle multiple terminals depending on user
31163 input, platform availability and font file presence. Propagate
31164 variables of our findings to /etc/grub.d/ children.
31165
31166 * util/grub.d/00_header.in: Handle multiple terminals, based on
31167 environment setup by update-grub.
31168
31169 2007-06-23 Robert Millan <rmh@aybabtu.com>
31170
31171 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
31172
31173 2007-06-21 Robert Millan <rmh@aybabtu.com>
31174
31175 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
31176 indicate end of data section in kernel image.
31177 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
31178 GRUB_KERNEL_MACHINE_DATA_END.
31179
31180 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
31181 space for it.
31182 * kern/i386/efi/startup.S: Likewise.
31183
31184 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
31185 during image generation. Implement --prefix option to override this
31186 patch.
31187 * util/i386/efi/grub-mkimage.c: Likewise.
31188
31189 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
31190 code to make path relative to its root into a separate function.
31191
31192 * util/i386/pc/grub-install.in: Use newly provided
31193 make_system_path_relative_to_its_root() to convert ${grubdir}, then
31194 pass the result to grub-install --prefix.
31195
31196 2007-06-13 Robert Millan <rmh@aybabtu.com>
31197
31198 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
31199 DEFAULT_DEVICE_MAP.
31200 * util/grub-emu.c: Use above definitions from misc.h instead of
31201 defining them.
31202 * util/grub-mkdevicemap.c: Likewise.
31203 * util/i386/pc/grub-setup.c: Likewise.
31204 * util/grub-probe.c: Likewise.
31205 (probe): Abort with grub_util_error() when either
31206 grub_guess_root_device or grub_util_get_grub_dev fails.
31207
31208 2007-06-12 Robert Millan <rmh@aybabtu.com>
31209
31210 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
31211 "pager" assignment.
31212 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
31213 "pcdata".
31214 * util/grub-probe.c (probe): Likewise for "drive_name".
31215
31216 2007-06-11 Robert Millan <rmh@aybabtu.com>
31217
31218 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
31219 not just the cdrom one.
31220
31221 2007-06-11 Robert Millan <rmh@aybabtu.com>
31222
31223 * util/i386/pc/grub-mkrescue.in: Add "set -e".
31224 Add --pkglibdir=DIR option to override pkglibdir.
31225 Mention --image-type=TYPE in help output.
31226 Fix --grub-mkimage (it was a no-op).
31227 Abort gracefully when no parameter is given.
31228
31229 2007-06-11 Robert Millan <rmh@aybabtu.com>
31230
31231 * util/i386/pc/grub-mkrescue.in: New file.
31232 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
31233 * Makefile.in: Handle bin_SCRIPTS.
31234
31235 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
31236
31237 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
31238 list of video modes.
31239
31240 2007-06-06 Robert Millan <rmh@aybabtu.com>
31241
31242 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
31243 file doesn't exist, or if it is in a filesystem grub can't read.
31244
31245 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
31246 not abort if GRUB_DRIVE could not be defined. Rearrange generated
31247 header comment to fit in 80 columns when the variables are resolved.
31248
31249 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
31250 could be identified by update-grub. Remove redundant check for
31251 unifont.pff existence (since convert_system_path_to_grub_path now
31252 handles that).
31253
31254 2007-06-04 Robert Millan <rmh@aybabtu.com>
31255
31256 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
31257
31258 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
31259
31260 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
31261
31262 2007-06-04 Robert Millan <rmh@aybabtu.com>
31263
31264 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
31265
31266 * include/grub/partition.h: Declare grub_apple_partition_map_init and
31267 grub_apple_partition_map_fini.
31268
31269 * util/biosdisk.c
31270 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
31271 to access >2 TiB disks).
31272
31273 Print disk->total_sectors with %llu instead of %lu, since this
31274 variable is always 64-bit (prevents wrong disk size from being displayed
31275 on either >2 TiB disk or big-endian CPU).
31276
31277 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
31278 into a generic case that supports all (sane) partition maps.
31279
31280 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
31281 breaks big-endian.
31282
31283 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
31284 and grub_apple_partition_map_fini() after that.
31285
31286 2007-06-01 Robert Millan <rmh@aybabtu.com>
31287
31288 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
31289
31290 * util/grub.d/00_header.in: Only enable gfxterm when
31291 convert_system_path_to_grub_path() succeeds.
31292
31293 2007-05-20 Robert Millan <rmh@aybabtu.com>
31294
31295 * util/update-grub_lib.in: New file.
31296 * DISTLIST: Add update-grub_lib.in.
31297 * conf/common.rmk: Generate update-grub_lib and install it in
31298 $(lib_DATA).
31299 * Makefile.in: Add install routine for $(lib_DATA).
31300
31301 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
31302 function provided by update-grub_lib to support arbitrary paths of
31303 unifont.pff.
31304 * util/update-grub.in: Use convert_system_path_to_grub_path() to
31305 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
31306
31307 2007-05-19 Robert Millan <rmh@aybabtu.com>
31308
31309 * commands/i386/cpuid.c: New module.
31310 * DISTLIST: Add it.
31311 * conf/i386-efi.rmk: Enable cpuid.mod.
31312 * conf/i386-pc.rmk: Likewise.
31313
31314 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31315
31316 * kern/disk.c (grub_disk_read): Check return value of
31317 grub_realloc().
31318
31319 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31320
31321 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
31322 arrays.
31323 * disk/raid.c (grub_raid_open): Likewise.
31324
31325 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31326
31327 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
31328 stack instead of on the heap.
31329
31330 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
31331 before doing a read on it.
31332
31333 * configure.ac: Only use -fno-stack-protector for the target
31334 environment.
31335
31336 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31337
31338 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
31339 __attribute_ ((unused)) to mode_type argument.
31340
31341 * util/getroot.c (grub_guess_root_device): Fix #endif.
31342
31343 * kern/misc.c (memcmp): Fix prototype.
31344
31345 * include/grub/partition.h [GRUB_UTIL]
31346 (grub_gpt_partition_map_init): Add prototype.
31347 (grub_gpt_partition_map_fini): Likewise.
31348
31349 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
31350 at the right place.
31351
31352 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
31353 (grub_fat_read_data): Likewise.
31354 (grub_fat_find_dir): Likewise.
31355
31356 * font/manager.c (find_glyph): Make table a const.
31357 (grub_font_get_glyph): Remove bitmap from if statement.
31358
31359 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
31360
31361 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
31362 code, first search for device in /dev/mapper, then in /dev.
31363 (grub_util_get_grub_dev): New function.
31364 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
31365 prototype.
31366 * util/grub-probe.c (probe): Remove check for RAID, call
31367 grub_util_get_grub_dev() instead of
31368 grub_util_biosdisk_get_grub_dev().
31369 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
31370 grub_util_biosdisk_get_grub_dev().
31371 * util/i386/pc/grub-setup.c (main): Likewise.
31372
31373 2007-05-16 Robert Millan <rmh@aybabtu.com>
31374
31375 * DISTLIST: Update for the latest changes.
31376 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
31377 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
31378 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
31379 grub/util/biosdisk.h.
31380 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
31381 grub/util/biosdisk.h.
31382
31383 2007-05-16 Robert Millan <rmh@aybabtu.com>
31384
31385 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
31386
31387 2007-05-16 Robert Millan <rmh@aybabtu.com>
31388
31389 * util/i386/efi/grub-install.in: New.
31390 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
31391 newly added grub-install.
31392 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
31393 include.
31394 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
31395 grub/util/biosdisk.h.
31396 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
31397 grub/util/biosdisk.h.
31398
31399 2007-05-16 Robert Millan <rmh@aybabtu.com>
31400
31401 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
31402 * include/grub/util/biosdisk.h: ... here.
31403 * util/i386/pc/biosdisk.c: Moved to ...
31404 * util/biosdisk.c: ... here.
31405 * util/i386/pc/getroot.c: Moved to ...
31406 * util/getroot.c: ... here.
31407 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
31408 * util/grub-mkdevicemap.c: ... here.
31409 * util/i386/pc/grub-probe.c: Moved to ...
31410 * util/grub-probe.c: ... here.
31411
31412 2007-05-15 Robert Millan <rmh@aybabtu.com>
31413
31414 * util/update-grub.in: Remove duplicated line in grub.cfg header
31415 message.
31416
31417 2007-05-13 Robert Millan <rmh@aybabtu.com>
31418
31419 * util/update-grub.in: Fix a few assumptions about the devices holding
31420 /, /boot and /boot/grub being the same.
31421 * util/grub.d/00_header.in: Likewise.
31422 * util/grub.d/10_hurd.in: Likewise.
31423 * util/grub.d/10_linux.in: Likewise.
31424
31425 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
31426 patterns. Use that to define the `.old' suffix as older than `'.
31427
31428 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
31429
31430 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
31431 the grub.cfg header message.
31432
31433 2007-05-11 Robert Millan <rmh@aybabtu.com>
31434
31435 * util/update-grub.in: Create device.map if it doesn't already exist,
31436 before attempting to run grub-probe.
31437 Check for grub-probe and grub-mkdevicemap with the same code
31438 grub-install is using.
31439 Remove test mode.
31440
31441 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
31442
31443 * Makefile.in: Add the datarootdir autoconf variable.
31444
31445 2007-05-09 Robert Millan <rmh@aybabtu.com>
31446
31447 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
31448 fail gracefully if dev->disk->partition == NULL.
31449
31450 2007-05-07 Robert Millan <rmh@aybabtu.com>
31451
31452 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
31453 determine partition map module.
31454 * util/i386/pc/grub-install.in: Use this feature to decide which
31455 partition module to load, instead of hardcoding pc and gpt.
31456
31457 2007-05-07 Robert Millan <rmh@aybabtu.com>
31458
31459 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
31460 source directory differs from build directory.
31461
31462 2007-05-05 Robert Millan <rmh@aybabtu.com>
31463
31464 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
31465 initialisation.
31466
31467 2007-05-05 Robert Millan <rmh@aybabtu.com>
31468
31469 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
31470
31471 2007-05-05 Robert Millan <rmh@aybabtu.com>
31472
31473 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
31474 command-line arguments via ${GRUB_CMDLINE_LINUX}.
31475
31476 2007-05-05 Robert Millan <rmh@aybabtu.com>
31477
31478 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
31479 (grub_probe_SOURCES): Likewise.
31480 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
31481 GPT and initialize dos_part and bsd_part accordingly.
31482 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
31483 install_bsd_part.
31484 (main): Activate gpt module for use during partition identification,
31485 and deactivate it afterwards.
31486 * util/i386/pc/grub-install.in: Add gpt module to core.img.
31487 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
31488 partition identification, and deactivate it afterwards.
31489
31490 2007-05-05 Robert Millan <rmh@aybabtu.com>
31491
31492 * term/i386/pc/console.c (grub_console_fini): Call
31493 grub_term_set_current() before grub_term_unregister().
31494
31495 2007-05-04 Robert Millan <rmh@aybabtu.com>
31496
31497 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
31498 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
31499 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
31500 and update-grub_DATA.
31501 * conf/common.rmk: Build and install update-grub components.
31502 * conf/common.mk: Regenerate.
31503 * util/update-grub.in: New. Core of update-grub.
31504 * util/grub.d/00_header.in: New. Generates grub.cfg header.
31505 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
31506 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
31507 * util/grub.d/README: New. Document grub.d directory layout.
31508
31509 2007-05-01 Robert Millan <rmh@aybabtu.com>
31510
31511 * util/grub-emu.c: Move initialization functions
31512 grub_util_biosdisk_init() and grub_init_all() before
31513 grub_util_biosdisk_get_grub_dev(), which relies on them.
31514
31515 2007-04-19 Robert Millan <rmh@aybabtu.com>
31516
31517 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
31518 it is used later.
31519
31520 2007-04-18 Jerone Young <jerone@gmail.com>
31521
31522 * kernel/elf.c: Add missing parenthesis for conditional statement
31523 stanza.
31524
31525 2007-04-10 Jerone Young <jerone@gmail.com>
31526
31527 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
31528 continue on and look for device node with real device name.
31529
31530 2007-04-10 Jerone Young <jerone@gmail.com>
31531
31532 * configure.ac: Add argument for autoconf to use transformation
31533 ability.
31534 * Makefile.in: Add autoconf package transformation code.
31535 * util/i386/pc/grub-install.in: Likewise.
31536 * util/powerpc/ieee1275/grub-install.in: Likewise.
31537
31538 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31539
31540 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
31541 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
31542 (EXT2_REVISION): Likewise.
31543 (EXT2_INODE_SIZE): Likewise.
31544 (struct grub_ext2_block_group): Added a missing member
31545 "used_dirs".
31546 (grub_ext2_read_inode): Divide by the inode size in a superblock
31547 instead of 128 to obtain INODES_PER_BLOCK.
31548 Use the macro EXT2_INODE_SIZE instead of directly using
31549 SBLOCK->INODE_SIZE.
31550
31551 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31552
31553 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
31554 superblock instead of the structure size to compute an
31555 offset. This fixes the problem that GRUB could not read a
31556 filesystem when inode size is different from 128-byte.
31557
31558 2007-03-05 Marco Gerards <marco@gnu.org>
31559
31560 * normal/main.c (read_config_file): When "menu" is not set, create
31561 an initial context.
31562
31563 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
31564
31565 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
31566 (HEAP_LIMIT): New macro.
31567 (grub_claim_heap): Claim memory up to `heaplimit'.
31568
31569 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
31570
31571 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
31572 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
31573 (_start): Likewise.
31574 (grub_arch_modules_addr): Return address after `_end'.
31575 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
31576 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
31577 (add_segments): Calculate `_end' from phdr size and location.
31578 (ALIGN_UP): Moved to ...
31579 * include/grub/misc.h: here.
31580 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
31581 New macro.
31582 (GRUB_IEEE1275_MODULE_BASE): Removed.
31583
31584 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31585
31586 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
31587 loop boundary.
31588
31589 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31590
31591 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
31592 All users updated.
31593 (grub_elf64_load_hook_t): Likewise.
31594 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
31595 debug output.
31596
31597 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
31598
31599 * kern/mm.c: Update copyright.
31600 (grub_mm_debug): Correct syntax error.
31601 (grub_mm_dump_free): New function.
31602 (grub_debug_free): Call `grub_free'.
31603 * include/grub/mm.h: Update copyright.
31604 (grub_mm_dump_free): Add declaration.
31605
31606 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
31607
31608 * include/grub/ieee1275/ieee1275.h: Update copyright.
31609 * kern/powerpc/ieee1275/init.c: Likewise.
31610 * kern/powerpc/ieee1275/openfw.c: Likewise.
31611
31612 * loader/powerpc/ieee1275/linux.c: Likewise.
31613 * include/grub/elfload.h: Likewise.
31614 * kern/elf.c: Likewise.
31615 (grub_elf32_load): Pass `base' and `size' parameters. Update all
31616 callers.
31617 (grub_elf64_load): Likewise.
31618 (grub_elf32_load_segment): Move to a nested function.
31619 (grub_elf64_load_segment): Likewise.
31620
31621 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
31622
31623 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
31624 prototype.
31625 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
31626 (grub_heap_len): Likewise.
31627 (HEAP_SIZE): New macro.
31628 (grub_claim_heap): New function.
31629 (grub_machine_init): Don't claim heap directly. Call
31630 `grub_claim_heap'.
31631 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
31632 (grub_available_iterate): New function.
31633
31634 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
31635
31636 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
31637 * configure.ac: Use it for testing the HOST and TARGET compilers.
31638
31639 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
31640
31641 * Makefile.in (enable_grub_emu): New variable.
31642 * configure.ac (--enable-grub-emu): New option.
31643 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
31644 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
31645 * conf/i386-pc.rmk: Likewise.
31646 * conf/powerpc-ieee1275.rmk: Likewise.
31647 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
31648
31649 2006-12-12 Marco Gerards <marco@gnu.org>
31650
31651 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
31652
31653 * kern/env.c (grub_env_unset): Don't free the member `value' when
31654 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
31655 pointer.
31656
31657 * normal/main.c (current_menu): Removed.
31658 (free_menu): Unset the `menu' environment variable.
31659 (grub_normal_menu_addentry): Make use of the environment variable
31660 `menu', instead of using the global `current_menu'. Allocate
31661 memory for the sourcecode of this entry.
31662 (read_config_file): New argument `nested', changed all callers.
31663 Only in the case of a new context, initialize a new menu. Set the
31664 `menu' environment variable.
31665 (grub_normal_execute): Don't set and unset the environment
31666 variable `menu' here anymore. Only free the menu when leaving the
31667 context.
31668
31669 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
31670 leak.
31671
31672 2006-12-11 Marco Gerards <marco@gnu.org>
31673
31674 * normal/menu_entry.c (run): Fix off by one bug so the last line
31675 is executed. Move the loader check to outside the loop.
31676
31677 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
31678
31679 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
31680
31681 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
31682
31683 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
31684 the number of sectors. Reported by Andrey Shuvikov
31685 <mr_hyro@yahoo.com>.
31686
31687 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
31688
31689 * kern/disk.c (grub_disk_read): When there is a read error, always
31690 try to read only the necessary data.
31691
31692 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
31693 disk/raid.c.
31694 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
31695 prototype.
31696 [GRUB_UTIL] (grub_raid_fini): Likewise.
31697 [GRUB_UTIL] (grub_lvm_init): Likewise.
31698 [GRUB_UTIL] (grub_lvm_fini): Likewise.
31699 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
31700 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
31701 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
31702 and grub_raid_fini().
31703
31704 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
31705
31706 * include/grub/types.h (__unused): Rename to UNUSED.
31707 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
31708 (grub_elf64_size): Likewise.
31709
31710 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
31711
31712 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
31713 grub_error_push and grub_error_pop in the error-handling path.
31714 (grub_elf32_load_segment): Only call grub_file_read with non-zero
31715 length.
31716
31717 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
31718
31719 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
31720 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31722 (kernel_elf_SOURCES): Likewise.
31723 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
31724 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
31725 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
31726 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
31727 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
31728 (elf_mod_SOURCES): New variable.
31729 (elf_mod_CFLAGS): Likewise.
31730 (elf_mod_LDFLAGS): Likewise.
31731 * include/grub/types.h (__unused): New macro.
31732 * include/grub/elfload.h: New file.
31733 * kern/elf.c: Likewise.
31734 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
31735 (ELF32_LOADMASK): New macro.
31736 (ELF64_LOADMASK): Likewise.
31737 (vmlinux): Removed.
31738 (grub_linux_load32): New function.
31739 (grub_linux_load64): Likewise.
31740 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
31741 Use grub_elf_t instead of grub_file_t.
31742
31743 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
31744
31745 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
31746 `catch_result' to struct set_color_args.
31747
31748 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
31749
31750 * normal/menu.c: Include grub/script.h.
31751 * normal/menu_entry.c: Likewise.
31752 * include/grub/normal.h: Do not include grub/script.h.
31753
31754 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31755
31756 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
31757
31758 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31759
31760 * kern/disk.c (grub_disk_open): Print debug messages when opening a
31761 disk.
31762 (grub_disk_close): Print debug messages when closing a disk.
31763 (grub_disk_read): Print debug messages when disk read fails.
31764 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
31765 filesystem type.
31766 * kern/partition.c: Include misc.h.
31767 (grub_partition_iterate): Print debug messages when detecting
31768 partition type.
31769
31770 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31771
31772 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
31773 is negative.
31774 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
31775
31776 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
31777
31778 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
31779 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
31780
31781 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
31782
31783 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
31784 instead of sizeof(lv). Patch by Michael Guntsche.
31785
31786 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
31787
31788 * disk/lvm.c: Rename VGS to VG_LIST.
31789 (grub_lvm_iterate): Change VGS->LV to VG-LV.
31790 (grub_lvm_open): Likewise.
31791 Thanks to Michael Guntsche for finding this bug.
31792
31793 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31794
31795 * configure.ac (AC_INIT): Bumped to 1.95.
31796
31797 2006-10-14 Robert Millan <rmh@aybabtu.com>
31798
31799 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
31800 with "/dev/.static/dev/md".
31801
31802 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31803
31804 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
31805 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
31806 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
31807 DRIVE_NAME are always freed.
31808
31809 * util/i386/pc/biosdisk.c (make_device_name): Add one into
31810 DOS_PART, as a DOS partition is counted from one instead of zero
31811 now. Reported by Robert Millan.
31812
31813 2006-10-14 Robert Millan <rmh@aybabtu.com>
31814
31815 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
31816 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
31817 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
31818 string returned by grub_guess_root_device.
31819 * util/i386/pc/grub-setup.c: Likewise.
31820 * util/i386/pc/grub-probefs.c: Likewise.
31821
31822 * util/i386/pc/grub-probefs.c: Rename to ...
31823 * util/i386/pc/grub-probe.c: ... this.
31824 * DISTLIST: Remove grub-probefs, add grub-probe.
31825 * conf/i386-efi.rmk: Likewise.
31826 * conf/i386-pc.rmk: Likewise.
31827 * util/i386/pc/grub-install.in: Likewise.
31828
31829 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
31830 choose which information we want to print.
31831
31832 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31833
31834 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
31835 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
31836 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
31837 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
31838 video/readers/tga.c and video/i386/pc/vbeutil.c.
31839
31840 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
31841
31842 Added support for RAID and LVM.
31843
31844 * disk/lvm.c: New file.
31845 * disk/raid.c: Likewise.
31846 * include/grub/lvm.h: Likewise.
31847 * include/grub/raid.h: Likewise.
31848 * include/grub/util/lvm.h: Likewise.
31849 * include/grub/util/raid.h: Likewise.
31850 * util/lvm.c: Likewise.
31851 * util/raid.c: Likewise.
31852
31853 * include/grub/disk.h (grub_disk_dev_id): Add
31854 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
31855 (grub_disk_get_size): New prototype.
31856 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
31857 returns a partition.
31858 (grub_disk_get_size): New function.
31859
31860 * kern/i386/pc/init.c (make_install_device): Copy the prefix
31861 verbatim if grub_install_dos_part is -2.
31862
31863 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
31864 and LVM devices.
31865
31866 * util/i386/pc/grub-setup.c (setup): New argument
31867 MUST_EMBED. Force embedding of GRUB when the argument is
31868 true. Close FILE before returning.
31869 (main): Add support for RAID and LVM.
31870
31871 * conf/common.rmk: Add RAID and LVM modules.
31872 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
31873 util/lvm.c.
31874 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
31875
31876 * kern/misc.c (grub_strstr): New function.
31877 * include/grub/misc.h (grub_strstr): New prototype.
31878
31879 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
31880
31881 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
31882
31883 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
31884
31885 * kern/misc.c (grub_strtoull): Guess the base only if not
31886 specified.
31887
31888 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31889
31890 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
31891 PowerMac support.
31892
31893 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31894
31895 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
31896
31897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
31898 Remove `flags' argument. All callers changed.
31899 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
31900 (IEEE1275_IHANDLE_INVALID): New variable.
31901 (IEEE1275_CELL_INVALID): New variable.
31902 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31903 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
31904 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
31905 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
31906 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
31907 codes from Open Firmware. All callers updated.
31908 (grub_ieee1275_next_property): Directly return Open Firmware return
31909 code.
31910 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
31911 Standardize error checking from `grub_ieee1275_get_property'.
31912 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
31913 `devalias' to `aliases'. Correct comments. Consolidate error paths.
31914
31915 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
31916
31917 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
31918 `instance_to_package_args' to `instance_to_path_args'.
31919
31920 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
31921 `grub_ieee1275_chosen'.
31922
31923 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
31924 `grub_ieee1275_interpret'.
31925
31926 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
31927
31928 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
31929
31930 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
31931
31932 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
31933 (__cmpdi): Likewise.
31934
31935 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
31936 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
31937 `grub_ssize_t'.
31938
31939 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
31940
31941 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
31942 to type `grub_ssize_t'.
31943 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
31944
31945 2006-09-22 Marco Gerards <marco@gnu.org>
31946
31947 * normal/script.c (grub_script_create_cmdmenu): Skip leading
31948 newlines.
31949
31950 2006-09-22 Marco Gerards <marco@gnu.org>
31951
31952 * commands/echo.c: New file.
31953
31954 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
31955
31956 * conf/common.rmk (echo_mod_SOURCES): New variable.
31957 (echo_mod_CFLAGS): Likewise.
31958 (echo_mod_LDFLAGS): Likewise.
31959
31960 2006-09-22 Marco Gerards <marco@gnu.org>
31961
31962 * normal/main.c (get_line): Malloc memory instead of using
31963 preallocated memory. Removed the arguments `cmdline' and
31964 `max_len'. Updated all callers.
31965
31966 2006-09-22 Marco Gerards <marco@gnu.org>
31967
31968 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
31969 (normal_mod_DEPENDENCIES): Likewise.
31970
31971 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
31972 (normal_mod_DEPENDENCIES): Likewise.
31973
31974 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
31975
31976 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
31977
31978 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
31979 programs.
31980 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
31981 (normal_mod_DEPENDENCIES): Likewise.
31982 * conf/i386-pc.mk: Regenerate.
31983 * conf/i386-efi.mk: Likewise
31984 * conf/common.mk: Likewise.
31985 * conf/powerpc-ieee1275.mk: Likewise.
31986 * conf/sparc64-ieee1275.mk: Likewise.
31987
31988 2006-09-22 Robert Millan <rmh@aybabtu.com>
31989
31990 Sync with i386 version.
31991 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
31992 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
31993
31994 2006-09-21 Robert Millan <rmh@aybabtu.com>
31995
31996 Import from GRUB Legacy (lib/device.c):
31997 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
31998 (init_device_map) [__linux__]: Add support for I2O devices.
31999
32000 2006-09-14 Marco Gerards <marco@gnu.org>
32001
32002 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
32003 `-melf_i386'.
32004
32005 2006-09-14 Robert Millan <rmh@aybabtu.com>
32006
32007 * util/i386/pc/grub-install.in: Skip menu.lst when removing
32008 /boot/grub/*.lst.
32009
32010 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
32011
32012 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
32013 before adding it to device.map.
32014
32015 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
32016
32017 * genmk.rb: Let GCC generate dependencies the first time it
32018 compiles a file; using the -MD option.
32019 * conf/common.mk: Regenerate.
32020 * conf/i386-pc.mk: Likewise.
32021 * conf/i386-efi.mk: Likewise.
32022 * conf/powerpc-ieee1275.mk: Likewise.
32023 * conf/sparc64-ieee1275.mk: Likewise.
32024
32025 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
32026
32027 Move the prototypes of grub_setjmp and grub_longjmp to
32028 cpu/setjmp.h, so that each architecture may specify different
32029 attributes.
32030
32031 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
32032 (grub_longjmp): Likewise.
32033 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
32034 (grub_longjmp): Likewise.
32035 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
32036 (grub_longjmp): Likewise.
32037
32038 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
32039 [!GRUB_UTIL] (grub_longjmp): Removed.
32040
32041 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
32042
32043 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
32044 "color!" method does not return any value.
32045
32046 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32047
32048 * include/grub/bitmap.h: New file.
32049
32050 * include/grub/i386/pc/vbeutil.h: Likewise.
32051
32052 * video/bitmap.c: Likewise.
32053
32054 * video/readers/tga.c: Likewise.
32055
32056 * video/i386/pc/vbeutil.c: Likewise.
32057
32058 * commands/videotest.c: Code cleanup and updated to reflect to new
32059 video API.
32060
32061 * term/gfxterm.c: Likewise.
32062
32063 * video/video.c: Likewise.
32064
32065 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
32066 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
32067 (bitmap_mod_SOURCES): New entry.
32068 (bitmap_mod_CFLAGS): Likewise.
32069 (bitmap_mod_LDFLAGS): Likewise.
32070 (tga_mod_SOURCES): Likewise.
32071 (tga_mod_CFLAGS): Likewise.
32072 (tga_mod_LDFLAGS): Likewise.
32073
32074 * include/grub/video.h (grub_video_blit_operators): New enum type.
32075 (grub_video_render_target): Changed as forward declaration and moved
32076 actual definition to be video driver specific.
32077 (grub_video_adapter.blit_bitmap): Added blitting operator.
32078 (grub_video_adapter.blit_render_target): Likewise.
32079 (grub_video_blit_bitmap): Likewise.
32080 (grub_video_blit_render_target): Likewise.
32081
32082 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
32083 driver specific render target definition.
32084 (grub_video_vbe_map_rgba): Added driver internal helper.
32085 (grub_video_vbe_unmap_color): Updated to use
32086 grub_video_i386_vbeblit_info.
32087 (grub_video_vbe_get_video_ptr): Likewise.
32088
32089 * include/grub/i386/pc/vbeblit.h
32090 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
32091 grub_video_i386_vbeblit_info.
32092 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
32093 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
32094 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
32095 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
32096 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
32097 (grub_video_i386_vbeblit_index_index): Likewise.
32098 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
32099 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
32100 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
32101 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
32102 operator.
32103 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
32104 operator.
32105
32106 * video/i386/pc/vbeblit.c: Updated to reflect changes on
32107 include/grub/i386/pc/vbeblit.h.
32108
32109 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
32110 Updated to use grub_video_i386_vbeblit_info.
32111 (grub_video_i386_vbefill_R8G8B8): Likewise.
32112 (grub_video_i386_vbefill_index): Likewise.
32113 (grub_video_i386_vbefill): Added generic filler.
32114
32115 * video/i386/pc/vbefill.c: Updated to reflect changes on
32116 include/grub/i386/pc/vbefill.h.
32117
32118 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
32119 grub_video_i386_vbeblit_info.
32120 (grub_video_vbe_unmap_color): Likewise.
32121 (grub_video_vbe_blit_glyph): Likewise.
32122 (grub_video_vbe_scroll): Likewise.
32123 (grub_video_vbe_draw_pixel): Removed function.
32124 (grub_video_vbe_get_pixel): Likewise.
32125 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
32126 updated code to use it.
32127 (common_blitter): Added common blitter for render target and bitmap.
32128 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
32129 (grub_video_vbe_blit_render_target): Likewise.
32130
32131 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
32132
32133 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
32134 is in text mode if there is no console control protocol instance
32135 available.
32136
32137 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32138
32139 * include/grub/video.h: Code cleanup.
32140
32141 * include/grub/i386/pc/vbe.h: Likewise.
32142
32143 * video/i386/pc/vbe.c: Likewise.
32144
32145 * video/i386/pc/vbeblit.c: Likewise.
32146
32147 * video/i386/pc/vbefill.c: Likewise.
32148
32149 * video/video.c: Likewise. Also added more comments.
32150
32151 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32152
32153 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
32154 (struct grub_biosdisk_dap): Likewise.
32155
32156 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
32157 linkage settings for all functions.
32158
32159 2006-07-12 Marco Gerards <marco@gnu.org>
32160
32161 * configure.ac (--enable-mm-debug): Fix typo.
32162
32163 * genkernsyms.sh.in: Use proper quoting for `CC'.
32164
32165 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
32166
32167 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
32168 (normal_mod_ASFLAGS): Remove "-m32".
32169
32170 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
32171
32172 * util/misc.c: Include config.h.
32173 [!HAVE_MEMALIGN]: Do not include malloc.h.
32174 (grub_memalign): Use posix_memalign, if present. Then, use
32175 memalign, if present. Otherwise, emit an error.
32176
32177 * util/grub-emu.c: Do not include malloc.h.
32178
32179 * include/grub/util/misc.h: Include unistd.h. This is required for
32180 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
32181 D. Eades III <hde@foobar-qux.org>.
32182
32183 * configure.ac (AC_GNU_SOURCE): Added.
32184 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
32185 type.
32186
32187 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
32188
32189 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
32190 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
32191
32192 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
32193
32194 * include/grub/types.h (grub_host_addr_t): Rename to
32195 grub_target_addr_t.
32196 (grub_host_off_t): Rename to grub_target_off_t.
32197 (grub_host_size_t): Rename to grub_target_size_t.
32198 (grub_host_ssize_t): Rename to grub_target_ssize_t.
32199 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
32200
32201 * include/grub/kernel.h (struct grub_module_header): Change type
32202 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
32203 (grub_module_info): Likewise.
32204
32205 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32206
32207 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
32208 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
32209 Velazquez <jesus.velazquez@gmail.com>.
32210
32211 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32212
32213 Count partitions from 1 instead of 0 in the string representation
32214 of partitions. Still use 0-based internally.
32215
32216 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
32217 (sun_partition_map_iterate): Use grub_partition_t instead of
32218 struct grub_partition *. Cast DESC->START_CYLINDER to
32219 grub_uint64_t after converting the endian.
32220 (sun_partition_map_probe): Subtract 1 for PARTNUM.
32221 (sun_partition_map_get_name): Add 1 to P->INDEX.
32222
32223 * partmap/pc.c (grub_partition_parse): Subtract 1 for
32224 PCDATA->DOS_PART.
32225 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
32226
32227 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
32228 zero instead of one.
32229 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
32230 (gpt_partition_map_get_name): Add 1 into P->INDEX.
32231
32232 * partmap/apple.c (apple_partition_map_iterate): Change the type
32233 of POS to unsigned.
32234 (apple_partition_map_probe): Subtract 1 for PARTNUM.
32235 (apple_partition_map_get_name): Add 1 into P->INDEX.
32236
32237 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
32238 of POS to unsigned.
32239 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
32240 calculate the offset of a partition.
32241 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
32242 (amiga_partition_map_get_name): Add 1 into P->INDEX.
32243
32244 * partmap/acorn.c (acorn_partition_map_find): Change the type of
32245 SECTOR to grub_disk_addr_t.
32246 (acorn_partition_map_iterate): Likewise.
32247 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
32248 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
32249 top.
32250 (acorn_partition_map_get_name): Add 1 into P->INDEX.
32251
32252 * kern/i386/pc/init.c (make_install_device): Add 1 into
32253 GRUB_INSTALL_DOS_PART.
32254
32255 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
32256 conditional.
32257
32258 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32259
32260 Clean up the code to support 64-bit addressing in disks and
32261 files. This change is not enough for filesystems yet.
32262
32263 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
32264 type of "start" to grub_uint64_t.
32265 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
32266 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
32267 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
32268 convert addresses.
32269
32270 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
32271 to grub_disk_addr_t.
32272
32273 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
32274 string.
32275
32276 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32277
32278 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
32279 to char *.
32280
32281 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
32282
32283 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
32284
32285 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
32286
32287 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
32288 to grub_off_t, to detect an error from grub_file_seek.
32289 (grub_multiboot_load_elf32): Likewise.
32290
32291 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
32292 maximum unsigned long value when an overflow is detected.
32293 (grub_strtoull): New function.
32294 (grub_divmod64): Likewise.
32295 (grub_lltoa): use grub_divmod64.
32296
32297 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
32298 grub_disk_addr_t.
32299 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
32300 the pointer to next character. Use grub_strtoull instead of
32301 grub_strtoul.
32302 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
32303 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
32304 respectively.
32305
32306 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
32307 return value is signed.
32308 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
32309 test if OFFSET is less than zero, as OFFSET is unsigned now.
32310
32311 * kern/disk.c (struct grub_disk_cache): Change the type of
32312 "sector" to grub_disk_addr_t.
32313 (grub_disk_cache_get_index): Change the type of SECTOR to
32314 grub_disk_addr_t. Calculate the hash with SECTOR casted to
32315 unsigned after shifting.
32316 (grub_disk_cache_invalidate): Change the type of SECTOR to
32317 grub_disk_addr_t.
32318 (grub_disk_cache_unlock): Likewise.
32319 (grub_disk_cache_store): Likewise.
32320 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
32321 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
32322 grub_disk_addr_t and grub_uint64_t, respectively.
32323 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
32324 body, as the value of OFFSET is tweaked by
32325 grub_disk_check_range. Change the types of START_SECTOR, LEN and
32326 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
32327 respectively.
32328 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
32329 body, as the value of OFFSET is tweaked by
32330 grub_disk_check_range. Change the types of LEN and N to
32331 grub_size_t.
32332
32333 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
32334 and "saved_offset" to grub_off_t.
32335 (test_header): Cast BUF to char *.
32336 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
32337 to char *.
32338 (grub_gzio_read): Change the types of OFFSET and SIZE to
32339 grub_off_t and grub_size_t, respectively.
32340
32341 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
32342 Removed.
32343 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
32344 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
32345 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
32346 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
32347 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
32348
32349 * include/grub/types.h (grub_off_t): Unconditionally set to
32350 grub_uint64_t.
32351 (grub_disk_addr_t): Changed to grub_uint64_t.
32352
32353 * include/grub/partition.h (struct grub_partition): Change the
32354 types of "start", "len" and "offset" to grub_disk_addr_t,
32355 grub_uint64_t and grub_disk_addr_t, respectively.
32356 (grub_partition_get_start): Return grub_disk_addr_t.
32357 (grub_partition_get_len): Return grub_uint64_t.
32358
32359 * include/grub/misc.h (grub_strtoull): New prototype.
32360 (grub_divmod64): Likewise.
32361
32362 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
32363 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
32364 grub_off_t, respectively.
32365 All callers and references changed.
32366
32367 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
32368 grub_size_t in "read".
32369 All callers and references changed.
32370
32371 * include/grub/file.h (struct grub_file): Change the types of
32372 "offset" and "size" to grub_off_t and grub_off_t,
32373 respectively. Change the type of SECTOR to grub_disk_addr_t in
32374 "read_hook".
32375 (grub_file_read): Change the type of LEN to grub_size_t.
32376 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
32377 grub_off_t.
32378 (grub_file_size): Return grub_off_t.
32379 (grub_file_tell): Likewise.
32380 All callers and references changed.
32381
32382 * include/grub/disk.h (struct grub_disk_dev): Change the types of
32383 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
32384 "write".
32385 (struct grub_disk): Change the type of "total_sectors" to
32386 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
32387 "read_hook".
32388 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
32389 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
32390 (grub_disk_write): Likewise.
32391 All callers and references changed.
32392
32393 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
32394 char * for grub_strncmp to silence gcc.
32395 (grub_iso9660_mount): Likewise.
32396 (grub_iso9660_mount): Likewise.
32397 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
32398 return statement.
32399 (grub_iso9660_iterate_dir): Likewise.
32400 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
32401
32402 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
32403 LEN to grub_disk_addr_t and grub_size_t, respectively.
32404
32405 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32406
32407 * fs/jfs.c (grub_jfs_read_file): Likewise.
32408
32409 * fs/minix.c (grub_jfs_read_file): Likewise.
32410
32411 * fs/sfs.c (grub_jfs_read_file): Likewise.
32412
32413 * fs/ufs.c (grub_jfs_read_file): Likewise.
32414
32415 * fs/xfs.c (grub_jfs_read_file): Likewise.
32416
32417 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
32418 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
32419 respectively.
32420
32421 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
32422 BLKNR to -1 instead of returning GRUB_ERRNO.
32423 (grub_ext2_read_file): Change the types of SECTOR and
32424 LEN to grub_disk_addr_t and grub_size_t, respectively.
32425
32426 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
32427 LEN to grub_disk_addr_t and grub_size_t, respectively.
32428
32429 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
32430 grub_file_read.
32431
32432 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
32433 string. Do not cast SECTOR explicitly.
32434
32435 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
32436 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
32437 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
32438 grub_disk_addr_t and grub_size_t, respectively. If the sector is
32439 over 2TB and LBA mode is not supported, raise an error.
32440 (get_safe_sectors): New function.
32441 (grub_biosdisk_read): Use get_safe_sectors.
32442 (grub_biosdisk_write): Likewise.
32443
32444 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
32445 (grub_efidisk_write): Likewise.
32446
32447 * disk/loopback.c (delete_loopback): Cosmetic changes.
32448 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
32449 correctly.
32450 (grub_loopback_open): Likewise.
32451 (grub_loopback_read): Likewise. Also, change the type of POS to
32452 grub_off_t, and fix the usage of grub_memset.
32453
32454 * commands/i386/pc/play.c: Include grub/machine/time.h.
32455
32456 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
32457 print FILE->SIZE.
32458
32459 * commands/configfile.c: Include grub/env.h.
32460
32461 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
32462 GRUB_ERRNO directly instead. Change the type of POS to
32463 grub_off_t. Follow the coding standard.
32464
32465 * commands/blocklist.c: Include grub/partition.h.
32466 (grub_cmd_blocklist): Return an error if the underlying device is
32467 not a disk. Take the starting sector of a partition into account,
32468 if a partition is used.
32469
32470 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
32471 a length field.
32472 (lba_mode): Support 64-bit addresses.
32473 (chs_mode): Likewise.
32474 (copy_buffer): Adapted to the new offsets of a length field and a
32475 segment field.
32476 (blocklist_default_start): Allocate 64-bit space.
32477
32478 * boot/i386/pc/boot.S (force_lba): Removed.
32479 (boot_drive): Moved to under KERNEL_SECTOR.
32480 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
32481 space.
32482 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
32483 is useless.
32484 (lba_mode): Refactored to support a 64-bit address. More size
32485 optimization.
32486 (setup_sectors): Likewise.
32487
32488 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32489
32490 * DISTLIST: Added include/grub/i386/linux.h. Removed
32491 include/grub/i386/pc/linux.h
32492
32493 * configure.ac (AC_INIT): Bumped to 1.94.
32494
32495 * config.guess: Updated from gnulib.
32496 * config.sub: Likewise.
32497 * install-sh: Likewise.
32498 * mkinstalldirs: Likewise.
32499
32500 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32501
32502 * conf/common.rmk (grub_modules_init.lst): Depended on
32503 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
32504 MODSRCFILES.
32505
32506 * genmk.rb (PModule::rule): Reverted the previous change.
32507
32508 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32509
32510 * conf/common.rmk (grub_modules_init.lst): Depends on
32511 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
32512 that the target does not exist before producing.
32513 (grub_modules_init.h): Remove the target before generating.
32514 (grub_emu_init.c): Likewise.
32515
32516 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
32517
32518 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
32519
32520 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
32521 for the target-specific tests. Make sure that we also have the
32522 up-to-date target variables for those tests.
32523
32524 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32525
32526 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
32527 (PModule::rule): Likewise.
32528
32529 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32530
32531 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
32532 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
32533 target-specific flags should be prefixed.
32534 (PModule::rule): Likewise.
32535
32536 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
32537
32538 * configure.ac (CMP): Check if cmp is available explicitly.
32539
32540 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
32541
32542 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
32543 (target_cpu): New variable.
32544 (pkglibdir): Use target_cpu instead of host_cpu.
32545
32546 * util/i386/pc/grub-install.in (host_cpu): Removed.
32547 (target_cpu): New variable.
32548 (pkglibdir): Use target_cpu instead of host_cpu.
32549
32550 * util/genmoddep.c: Removed.
32551
32552 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
32553 instead of GRUB_HOST_SIZEOF_VOID_P.
32554 * kern/dl.c: Likewise.
32555
32556 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
32557 ...
32558 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32559 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32560 (GRUB_TARGET_SIZEOF_LONG): ... this.
32561 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32562 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32563 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
32564 to ...
32565 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32566 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32567 (GRUB_TARGET_SIZEOF_LONG): ... this.
32568 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32569 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32570 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
32571 to ...
32572 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
32573 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
32574 (GRUB_TARGET_SIZEOF_LONG): ... this.
32575 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
32576 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
32577
32578 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
32579 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
32580 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
32581 instead of GRUB_HOST_SIZEOF_LONG.
32582 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
32583 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
32584 GRUB_CPU_WORDS_BIGENDIAN.
32585 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
32586 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
32587 grub_host_ssize_t.
32588
32589 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
32590 (genmoddep_SOURCES): Likewise.
32591 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
32592 (genmoddep_SOURCES): Likewise.
32593 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
32594 (genmoddep_SOURCES): Likewise.
32595 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
32596 Likewise.
32597 (genmoddep_SOURCES): Likewise.
32598
32599 * genmoddep.awk: New file.
32600
32601 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
32602 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
32603 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
32604 (PModule::rule): Likewise.
32605 (Program::rule): Likewise.
32606 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
32607 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
32608 respectively.
32609
32610 * configure.ac: Rewritten intensively to use host and target
32611 instead of build and host, respectively.
32612
32613 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
32614 (host_cpu): Removed.
32615 (target_cpu): New variable.
32616 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
32617 (BUILD_CC): Removed.
32618 (BUILD_CFLAGS): Likewise.
32619 (BUILD_CPPFLAGS): Likewise.
32620 (TARGET_CC): New variable.
32621 (TARGET_CFLAGS): Likewise.
32622 (TARGET_CPPFLAGS): Likewise.
32623 (TARGET_LDFLAGS): Likewise.
32624 (AWK): Likewise.
32625 (include): Use target_cpu instead of host_cpu.
32626 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
32627
32628 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
32629
32630 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
32631
32632 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
32633 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
32634 field 'false' to 'exec_on_false'.
32635 (grub_script_create_cmdif): Renamed argument names to reflect above
32636 changes.
32637
32638 * normal/execute.c (grub_script_execute_cmdif): Likewise.
32639
32640 * normal/script.c (grub_script_create_cmdif): Likewise.
32641
32642 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
32643
32644 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
32645 top.
32646 (grub_hfsplus_btree_recptr): Likewise.
32647 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
32648 FILEBLOCK both to pass a block number and store next block
32649 number.
32650 (grub_hfsplus_read_block): Rewritten heavily to support an extent
32651 overflow file correctly. Specify errors appropriately, because
32652 fshelp expects that GRUB_ERRNO is set when fails. Reuse
32653 grub_hfsplus_btree_recptr to get the pointer to a found key.
32654 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
32655 is found.
32656
32657 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
32658 linux.mod.
32659 (_linux_mod_SOURCES): New variable.
32660 (_linux_mod_CFLAGS): Likewise.
32661 (_linux_mod_LDFLAGS): Likewise.
32662 (linux_mod_SOURCES): Likewise.
32663 (linux_mod_CFLAGS): Likewise.
32664 (linux_mod_LDFLAGS): Likewise.
32665
32666 * DISTLIST: Added loader/i386/efi/linux.c,
32667 loader/i386/efi/linux_normal.c and
32668 include/grub/i386/efi/loader.h.
32669
32670 * loader/i386/efi/linux.c: New file.
32671 * loader/i386/efi/linux_normal.c: Likewise.
32672 * include/grub/i386/efi/loader.h: Likewise.
32673
32674 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
32675
32676 * commands/blocklist.c: New file.
32677
32678 * DISTLIST: Added commands/blocklist.c.
32679
32680 * term/efi/console.c (grub_console_highlight_color): Use a lighter
32681 color for the background, and a darker color for the foreground.
32682 (grub_console_checkkey): Return READ_KEY.
32683 (grub_console_cls): Set the background to
32684 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
32685
32686 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
32687
32688 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
32689 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
32690
32691 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
32692 prototype.
32693
32694 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
32695 BG. The spec is wrong again.
32696
32697 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
32698 prototype.
32699 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
32700
32701 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32702 commands/blocklist.c.
32703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32704
32705 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
32706 (blocklist_mod_SOURCES): New variable.
32707 (blocklist_mod_CFLAGS): Likewise.
32708 (blocklist_mod_LDFLAGS): Likewise.
32709
32710 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
32711
32712 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
32713 duplication.
32714 (lba_mode): Use %eax more intensively to reduce the code size.
32715
32716 2006-05-20 Marco Gerards <marco@gnu.org>
32717
32718 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
32719
32720 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
32721 for `menuentry'.
32722 (script): Accept leading newlines.
32723 (newlines): New rule to describe 0 or more newlines.
32724 (commands): Accept `command' with trailing newline. Fixed the
32725 order in which arguments were passed to `grub_script_add_cmd'.
32726 Accept commands separated by newlines.
32727 (function): Changed to accept newlines.
32728 (menuentry) Rewritten.
32729
32730 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
32731 front of the list, instead of to the end.
32732
32733 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
32734
32735 * util/i386/pc/grub-install.in (bindir): New variable.
32736 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
32737 Shaver <lbgwjl@gmail.com>.
32738
32739 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
32740
32741 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
32742 grub/machine/linux.h
32743 * loader/i386/pc/linux.c: Likewise.
32744
32745 * include/grub/i386/pc/linux.h: Moved to ...
32746 * include/grub/i386/linux.h: ... here.
32747
32748 * include/grub/i386/linux.h (struct linux_kernel_params): New
32749 struct.
32750
32751 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
32752
32753 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
32754 checking.
32755 (grub_video_vbe_blit_glyph): Likewise.
32756 (grub_video_vbe_blit_bitmap): Likewise.
32757 (grub_video_vbe_blit_render_target): Likewise.
32758
32759 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
32760
32761 * configure.ac (--with-platform): Properly quote the square
32762 brackets.
32763
32764 2006-05-08 Marco Gerards <marco@gnu.org>
32765
32766 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
32767 this...
32768 (kernel_elf_HEADERS): ...to this. Updated all users.
32769 (grubof_symlist.c): Renamed from this...
32770 (kernel_elf_symlist.c): ...to this. Updated all users.
32771 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32772 (grubof_SOURCES): Renamed from this...
32773 (kernel_elf_SOURCES): ...to this.
32774 (grubof_HEADERS): Renamed from this...
32775 (kernel_elf_HEADERS): ...to this.
32776 (grubof_CFLAGS): Renamed from this...
32777 (kernel_elf_CFLAGS): ...to this.
32778 (grubof_ASFLAGS): Renamed from this...
32779 (kernel_elf_ASFLAGS): ...to this.
32780 (grubof_LDFLAGS): Renamed from this...
32781 (kernel_elf_LDFLAGS): ...to this.
32782
32783 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
32784 this...
32785 (kernel_elf_HEADERS): ...to this. Updated all users.
32786 (grubof_symlist.c): Renamed from this...
32787 (kernel_elf_symlist.c): ...to this. Updated all users.
32788 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32789 (grubof_SOURCES): Renamed from this...
32790 (kernel_elf_SOURCES): ...to this.
32791 (grubof_HEADERS): Renamed from this...
32792 (kernel_elf_HEADERS): ...to this.
32793 (grubof_CFLAGS): Renamed from this...
32794 (kernel_elf_CFLAGS): ...to this.
32795 (grubof_ASFLAGS): Renamed from this...
32796 (kernel_elf_ASFLAGS): ...to this.
32797 (grubof_LDFLAGS): Renamed from this...
32798 (kernel_elf_LDFLAGS): ...to this.
32799
32800 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
32801 `kernel.elf' instead of `grubof'.
32802
32803 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
32804
32805 Add --with-platform to configure. Use pkglibdir instead of
32806 pkgdatadir. This is reported by Roger Leigh.
32807
32808 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
32809 (host_vendor): Likewise.
32810 (host_os): Likewise.
32811 (pkgdatadir): Likewise.
32812 (platform): New variable.
32813 (pkglibdir): Likewise.
32814 Use PKGLIBDIR instead of PKGDATADIR.
32815
32816 * util/i386/pc/grub-install.in (datadir): Removed.
32817 (host_vendor): Likewise.
32818 (host_os): Likewise.
32819 (pkgdatadir): Likewise.
32820 (platform): New variable.
32821 (pkglibdir): Likewise.
32822 Use PKGLIBDIR instead of PKGDATADIR.
32823
32824 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
32825 instead of GRUB_DATADIR.
32826 (main): Likewise.
32827 * util/i386/pc/grub-mkimage.c (usage): Likewise.
32828 (main): Likewise.
32829 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32830 (main): Likewise.
32831
32832 * configure.ac (--with-platform): New option.
32833 Use PLATFORM instead of HOST_VENDOR to specify a platform.
32834
32835 * Makefile.in: Include a makefile based on PLATFORM instead of
32836 HOST_VENDOR.
32837 (pkgdatadir): Not appended by the machine type.
32838 (pkglibdir): Appended by the machine type.
32839 (host_vendor): Removed.
32840 (platform): New variable.
32841 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
32842 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
32843 (uninstall): Likewise.
32844
32845 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
32846
32847 Use the environment context in the menu. Remove the commands
32848 "default" and "timeout", and use variables instead.
32849
32850 * normal/menu.c: Include grub/env.h.
32851 (print_entry): Cast TITLE to silence gcc.
32852 (get_timeout): New function.
32853 (set_timeout): Likewise.
32854 (get_entry_number): Likewise.
32855 (run_menu): Use a default entry, a fallback entry and a timeout
32856 in the environment variables "default", "fallback" and
32857 "timeout". Also, tweak the default entry if it is not within the
32858 current menu entries.
32859 (grub_menu_run): Use a fallback entry in the environment variable
32860 "fallback".
32861
32862 * normal/main.c (read_config_file): Do not initialize
32863 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
32864 NEWMENU->TIMEOUT.
32865 (grub_normal_execute): Use a data slot to store the menu.
32866
32867 * include/grub/normal.h (struct grub_menu): Removed default_entry,
32868 fallback_entry and timeout.
32869 (struct grub_menu_list): Removed.
32870 (grub_menu_list_t): Likewise.
32871 (struct grub_context): Likewise.
32872 (grub_context_t): Likewise.
32873 (grub_context_get): Likewise.
32874 (grub_context_get_current_menu): Likewise.
32875 (grub_context_push_menu): Likewise.
32876 (grub_context_pop_menu): Likewise.
32877 (grub_default_init): Likewise.
32878 (grub_default_fini): Likewise.
32879 (grub_timeout_init): Likewise.
32880 (grub_timeout_fini): Likewise.
32881
32882 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
32883 and timeout.mod.
32884 (normal_mod_SOURCES): Removed normal/context.c.
32885
32886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
32887 commands/default.c, commands/timeout.c and normal/context.c.
32888 (normal_mod_SOURCES): Removed normal/context.c.
32889
32890 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
32891 commands/timeout.c and normal/context.c.
32892 (normal_mod_SOURCES): Removed normal/context.c.
32893
32894 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
32895 commands/default.c, commands/timeout.c and normal/context.c.
32896 (normal_mod_SOURCES): Removed normal/context.c.
32897
32898 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
32899 timeout.mod.
32900 (default_mod_SOURCES): Removed.
32901 (default_mod_CFLAGS): Likewise.
32902 (default_mod_LDFLAGS): Likewise.
32903 (timeout_mod_SOURCES): Removed.
32904 (timeout_mod_CFLAGS): Likewise.
32905 (timeout_mod_LDFLAGS): Likewise.
32906
32907 * DISTLIST: Removed commands/default.c, commands/timeout.c and
32908 normal/context.c.
32909
32910 * commands/default.c: Removed.
32911 * commands/timeout.c: Likewise.
32912 * normal/context.c: Likewise.
32913
32914 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
32915
32916 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
32917
32918 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
32919
32920 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
32921 "next" to "prev" for readability.
32922 (struct grub_env_sorted_var): New struct.
32923 (grub_env_context): Renamed to ...
32924 (initial_context): ... this.
32925 (grub_env_var_context): Renamed to ...
32926 (current_context): ... this.
32927 (grub_env_find): Look only at CURRENT_CONTEXT.
32928 (grub_env_context_open): Rewritten to copy exported variables from
32929 previous context.
32930 (grub_env_context_close): Rewritten according to the new
32931 scheme. Also, add an assertion to prevent the initial context from
32932 removed.
32933 (grub_env_insert): Removed the code for the sorted list.
32934 (grub_env_remove): Likewise.
32935 (grub_env_export): Simply mark the variable with
32936 GRUB_ENV_VAR_GLOBAL.
32937 (grub_env_set): A cosmetic change for naming consistency.
32938 (grub_env_get): Likewise.
32939 (grub_env_unset): Likewise.
32940 (grub_env_iterate): Rewritten to sort variables within this
32941 function.
32942 (grub_register_variable_hook): Fixed for naming consistency. Call
32943 grub_env_find again, only if NAME is not found at the first time.
32944 (mangle_data_slot_name): New function.
32945 (grub_env_set_data_slot): Likewise.
32946 (grub_env_get_data_slot): Likewise.
32947 (grub_env_unset_data_slot): Likewise.
32948
32949 * include/grub/env.h (grub_env_var_type): New enum.
32950 (GRUB_ENV_VAR_LOCAL): New constant.
32951 (GRUB_ENV_VAR_GLOBAL): Likewise.
32952 (GRUB_ENV_VAR_DATA): Likewise.
32953 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
32954 "type".
32955 (grub_env_set): Replace VAR with NAME for consistency.
32956 (grub_register_variable_hook): Likewise.
32957 (grub_env_export): Specify the name of the argument.
32958 (grub_env_set_data_slot): New prototype.
32959 (grub_env_get_data_slot): Likewise.
32960 (grub_env_unset_data_slot): Likewise.
32961
32962 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
32963
32964 Extend the loader so that GRUB can accept a loader which comes
32965 back to GRUB when a loaded image exits. Also, this change adds
32966 support for a chainloader on EFI.
32967
32968 * term/efi/console.c: Include grub/misc.h.
32969 (grub_console_checkkey): Display a scan code on the top for
32970 debugging. This will be removed once the EFI port gets stable.
32971 Correct the scan code mapping.
32972
32973 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
32974 allocate memory from larger regions, in order to reduce the number
32975 of allocated regions. Otherwise, the MacOSX loader panics.
32976 (filter_memory_map): Avoid less than 1MB for compatibility with
32977 other loaders.
32978 (add_memory_regions): Allocate from the tail of a region, if
32979 possible, to avoid allocating a region near to 1MB, for the MacOSX
32980 loader.
32981
32982 * kern/efi/init.c (grub_efi_set_prefix): Specify
32983 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
32984
32985 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
32986 argument IMAGE_HANDLE and specify it to get a loaded image.
32987 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
32988 grub_efi_get_loaded_image.
32989 (grub_efi_get_filename): Divide the length by the size of
32990 grub_efi_char16_t.
32991 (grub_efi_get_device_path): New function.
32992 (grub_efi_print_device_path): Print End Device Path nodes. Divide
32993 the length by the size of grub_efi_char16_t for a file path device
32994 path node.
32995
32996 * kern/loader.c (grub_loader_noreturn): New variable.
32997 (grub_loader_set): Accept a new argument NORETURN. Set
32998 GRUB_LOADER_NORETURN to NORETURN.
32999 All callers changed.
33000 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
33001 grub_machine_fini.
33002
33003 * include/grub/efi/efi.h (grub_efi_get_device_path): New
33004 prototype.
33005 (grub_efi_get_loaded_image): Take an argument to specify an image
33006 handle.
33007
33008 * include/grub/loader.h (grub_loader_set): Added one more argument
33009 NORETURN.
33010
33011 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
33012 instead of grub_efi_open_protocol.
33013 (grub_efidisk_get_device_name): Likewise.
33014 (grub_efidisk_close): Print a newline.
33015 (grub_efidisk_get_device_handle): Fixed to use
33016 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
33017 GRUB_EFI_DEVICE_PATH_TYPE.
33018
33019 * disk/efi/efidisk.c (device_path_guid): Moved to ...
33020 * kern/efi/efi.c (device_path_guid): ... here.
33021
33022 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
33023 chain.mod.
33024 (kernel_mod_HEADERS): Added efi/disk.h.
33025 (_chain_mod_SOURCES): New variable.
33026 (_chain_mod_CFLAGS): Likewise.
33027 (_chain_mod_LDFLAGS): Likewise.
33028 (chain_mod_SOURCES): Likewise.
33029 (chain_mod_CFLAGS): Likewise.
33030 (chain_mod_LDFLAGS): Likewise.
33031
33032 * DISTLIST: Added include/grub/efi/chainloader.h,
33033 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
33034
33035 * include/grub/efi/chainloader.h: New file.
33036 * loader/efi/chainloader.c: Likewise.
33037 * loader/efi/chainloader_normal.c: Likewise.
33038
33039 2006-04-30 Marco Gerards <marco@gnu.org>
33040
33041 * commands/configfile.c (grub_cmd_source): New function.
33042 (GRUB_MOD_INIT): Register the commands `source' and `.'.
33043 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
33044
33045 2006-04-30 Marco Gerards <marco@gnu.org>
33046
33047 * normal/execute.c (grub_script_execute_cmd): Change the return
33048 type to `grub_err_t'. Correctly return the error.
33049 (grub_script_execute_cmdline): In case a command line is not a
33050 command or a function, try to interpret it as an assignment.
33051
33052 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33053
33054 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
33055 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
33056 skip a node whose name is obviously invalid as UTF-16,
33057 i.e. contains a NUL character. Stop the iteration when the last
33058 directory entry is found. Instead of using the return value of
33059 grub_hfsplus_btree_iterate_node, store the value in RET and use
33060 it, because the iterator can be stopped by the last directory
33061 entry.
33062
33063 2006-04-30 Marco Gerards <marco@gnu.org>
33064
33065 * include/grub/env.h (grub_env_export): New prototype. Reported
33066 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
33067
33068 2006-04-30 Marco Gerards <marco@gnu.org>
33069
33070 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
33071 size of the extents in a catalog file record.
33072
33073 2006-04-29 Marco Gerards <marco@gnu.org>
33074
33075 * commands/configfile.c (grub_cmd_configfile): Execute the
33076 configfile within its own context.
33077
33078 * include/grub/env.h (grub_env_context_open): New prototype.
33079 (grub_env_context_close): Likewise.
33080
33081 * kern/env.c (grub_env): Removed.
33082 (grub_env_sorted): Likewise.
33083 (grub_env_context): New variable.
33084 (grub_env_var_context): Likewise.
33085 (grub_env_find): Search both the active context and the global
33086 context.
33087 (grub_env_context_open): New function.
33088 (grub_env_context_close): Likewise.
33089 (grub_env_insert): Likewise.
33090 (grub_env_remove): Likewise.
33091 (grub_env_export): Likewise.
33092 (grub_env_set): Changed to use helper functions to avoid code
33093 duplication.
33094 (grub_env_iterate): Rewritten so both the current context and the
33095 global context are being used.
33096
33097 * normal/command.c (export_command): New function.
33098 (grub_command_init): Register the `export' function.
33099
33100 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
33101
33102 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
33103 explicitly to suppress gcc's warnings.
33104 * fs/fat.c (grub_fat_find_dir): Likewise.
33105 (grub_fat_label): Likewise.
33106 * fs/xfs.c (grub_xfs_read_inode): Likewise.
33107 (grub_xfs_mount): Likewise.
33108 (grub_xfs_label): Likewise.
33109 * fs/affs.c (grub_affs_mount): Likewise.
33110 (grub_affs_label): Likewise.
33111 (grub_affs_iterate_dir): Likewise.
33112 * fs/sfs.c (grub_sfs_mount): Likewise.
33113 (grub_sfs_iterate_dir): Likewise.
33114 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
33115 * fs/hfs.c (grub_hfs_mount): Likewise.
33116 (grub_hfs_cmp_catkeys): Likewise.
33117 (grub_hfs_find_dir): Likewise.
33118 (grub_hfs_dir): Likewise.
33119 (grub_hfs_label): Likewise.
33120 * fs/jfs.c (grub_jfs_mount): Likewise.
33121 (grub_jfs_opendir): Likewise.
33122 (grub_jfs_getent): Likewise.
33123 (grub_jfs_lookup_symlink): Likewise.
33124 (grub_jfs_label): Likewise.
33125 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
33126 (grub_hfsplus_iterate_dir): Likewise.
33127 (grub_hfsplus_btree_iterate_node): Made static.
33128
33129 * util/grub-emu.c (prefix): New variable.
33130 (grub_machine_set_prefix): New function.
33131 (main): Do not set the environment variable "prefix" here. Only
33132 set PREFIX, which is used later by grub_machine_set_prefix.
33133
33134 * include/grub/video.h: Do not include grub/symbol.h.
33135 (grub_video_register): Not exported. This symbol is not defined in
33136 the kernel.
33137 (grub_video_unregister): Likewise.
33138 (grub_video_iterate): Likewise.
33139 (grub_video_setup): Likewise.
33140 (grub_video_restore): Likewise.
33141 (grub_video_get_info): Likewise.
33142 (grub_video_get_blit_format): Likewise.
33143 (grub_video_set_palette): Likewise.
33144 (grub_video_get_palette): Likewise.
33145 (grub_video_set_viewport): Likewise.
33146 (grub_video_get_viewport): Likewise.
33147 (grub_video_map_color): Likewise.
33148 (grub_video_map_rgb): Likewise.
33149 (grub_video_map_rgba): Likewise.
33150 (grub_video_fill_rect): Likewise.
33151 (grub_video_blit_glyph): Likewise.
33152 (grub_video_blit_bitmap): Likewise.
33153 (grub_video_blit_render_target): Likewise.
33154 (grub_video_scroll): Likewise.
33155 (grub_video_swap_buffers): Likewise.
33156 (grub_video_create_render_target): Likewise.
33157 (grub_video_delete_render_target): Likewise.
33158 (grub_video_set_active_render_target): Likewise.
33159
33160 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
33161 Undefined.
33162 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
33163
33164 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
33165 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33166 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33167 instead of $(srcdir)/genkernsyms.sh.
33168
33169 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
33170 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33171 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33172 instead of $(srcdir)/genkernsyms.sh.
33173
33174 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
33175 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33176 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33177 instead of $(srcdir)/genkernsyms.sh.
33178
33179 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
33180 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33181 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33182 instead of $(srcdir)/genkernsyms.sh.
33183
33184 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
33185 genkernsyms.sh.
33186
33187 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
33188 genkernsyms.sh.
33189 (gensymlist.sh): New target.
33190 (genkernsyms.sh): Likewise.
33191
33192 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
33193 genkernsyms.sh.in and gensymlist.sh.in.
33194
33195 * genkernsyms.sh: Removed.
33196 * gensymlist.sh: Likewise.
33197
33198 * genkernsyms.sh.in: New file.
33199 * gensymlist.sh.in: Likewise.
33200
33201 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33202
33203 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
33204 clobber "prefix", since we may have already set it manually.
33205
33206 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33207
33208 * kern/misc.c (abort): New alias for grub_abort.
33209
33210 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
33211
33212 A new machine-specific function "grub_machine_set_prefix" is
33213 defined. This is called after loading modules, so that a prefix
33214 initialization can use modules. Also, this change adds an
33215 intensive debugging feature for the memory manager via the
33216 configure option "--enable-mm-debug".
33217
33218 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
33219 PART.LEN.
33220
33221 * kern/sparc64/ieee1275/init.c (abort): Removed.
33222 (grub_stop): Likewise.
33223 (grub_exit): New function.
33224 (grub_set_prefix): Renamed to ...
33225 (grub_machine_set_prefix): ... this.
33226 (grub_machine_init): Do not call grub_set_prefix.
33227
33228 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
33229 (grub_machine_set_prefix): ... this.
33230 (grub_machine_init): Do not call grub_set_prefix.
33231
33232 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
33233 (grub_machine_init): Do not set the prefix here.
33234
33235 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
33236
33237 * kern/efi/init.c: Include grub/mm.h.
33238 (grub_efi_set_prefix): New function.
33239
33240 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
33241 (grub_efi_get_filename): New function.
33242 (grub_print_device_path): Renamed to ...
33243 (grub_efi_print_device_path): ... this.
33244
33245 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
33246 [MM_DEBUG] (grub_realloc): Likewise.
33247 [MM_DEBUG] (grub_free): Likewise.
33248 [MM_DEBUG] (grub_memalign): Likewise.
33249 [MM_DEBUG] (grub_mm_debug): New variable.
33250 [MM_DEBUG] (grub_debug_malloc): New function.
33251 [MM_DEBUG] (grub_debug_free): New function.
33252 [MM_DEBUG] (grub_debug_realloc): New function.
33253 [MM_DEBUG] (grub_debug_memalign): New function.
33254
33255 * kern/misc.c (grub_abort): Print a newline to distinguish
33256 the message.
33257
33258 * kern/main.c (grub_main): Call grub_machine_set_prefix and
33259 grub_set_root_dev after loading modules. This is necessary when
33260 setting a prefix depends on modules.
33261
33262 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
33263 (grub_efi_print_device_path): ... this.
33264 (grub_efi_get_filename): New prototype.
33265 (grub_efi_set_prefix): Likewise.
33266
33267 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
33268 and grub/disk.h.
33269 (grub_efidisk_get_device_handle): New prototype.
33270 (grub_efidisk_get_device_name): Likewise.
33271
33272 * include/grub/mm.h: Include config.h.
33273 (MM_DEBUG): Removed.
33274 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
33275 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
33276 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
33277 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
33278 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
33279 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
33280 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
33281 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
33282 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
33283
33284 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
33285
33286 * disk/efi/efidisk.c: Include grub/partition.h.
33287 (iterate_child_devices): New function.
33288 (add_device): First, compare only last device path nodes, so that
33289 devices are sorted by the types.
33290 (grub_efidisk_get_device_handle): New function.
33291 (grub_efidisk_get_device_name): Likewise.
33292
33293 * configure.ac (--enable-mm-debug): New option to enable the
33294 memory manager debugging feature. This makes the binary much
33295 bigger, so is disabled by default.
33296
33297 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
33298
33299 Use grub_abort instead of grub_stop, and grub_exit must be
33300 define in each architecture now. Also, this change adds support
33301 for EFI disks.
33302
33303 * util/i386/pc/grub-probefs.c: Include grub/term.h.
33304 (grub_getkey): New function.
33305 (grub_term_get_current): Likewise.
33306
33307 * util/i386/pc/grub-setup.c: Include grub/term.h.
33308 (grub_getkey): New function.
33309 (grub_term_get_current): Likewise.
33310
33311 * util/misc.c (grub_stop): Renamed to ...
33312 (grub_exit): ... this.
33313
33314 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
33315 (grub_exit): ... this.
33316 (grub_machine_init): Use grub_abort instead of abort.
33317 (grub_stop): Removed.
33318
33319 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
33320 abort.
33321
33322 * kern/i386/pc/startup.S (grub_exit): New function.
33323 (cold_reboot): New label.
33324
33325 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
33326 (grub_efi_init): Call grub_efidisk_init.
33327 (grub_efi_fini): Call grub_efidisk_fini.
33328
33329 * kern/efi/efi.c: Include grub/mm.h.
33330 (grub_efi_console_control_guid): Renamed to ...
33331 (console_control_guid): ... this.
33332 (grub_efi_loaded_image_guid): Renamed to ...
33333 (loaded_image_guid): ... this.
33334 (grub_efi_locate_handle): New function.
33335 (grub_efi_open_protocol): Likewise.
33336 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
33337 GRUB_EFI_CONSOLE_CONTROL_GUID.
33338 (grub_efi_exit): Removed.
33339 (grub_stop): Likewise.
33340 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
33341 (grub_exit): New function.
33342 (grub_print_device_path): Likewise.
33343
33344 * kern/rescue.c (grub_rescue_cmd_exit): New function.
33345 (grub_enter_rescue_mode): Register "exit".
33346
33347 * kern/misc.c (grub_real_dprintf): A cosmetic change.
33348 (grub_abort): New function.
33349
33350 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
33351
33352 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
33353
33354 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
33355
33356 * include/grub/efi/efi.h (grub_efi_exit): Removed.
33357 (grub_print_device_path): New prototype.
33358 (grub_efi_locate_handle): Likewise.
33359 (grub_efi_open_protocol): Likewise.
33360
33361 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
33362 * disk/efi/efidisk.c: Likewise.
33363
33364 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
33365
33366 * include/grub/efi/console_control.h
33367 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
33368
33369 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
33370 last 8 bytes as an array.
33371 (GRUB_EFI_DISK_IO_GUID): New macro.
33372 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
33373 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
33374 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
33375 grub_uint8_t.
33376 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
33377 (struct grub_efi_device_path): Rename the member "sub_type" to
33378 "subtype".
33379 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
33380 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
33381 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
33382 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
33383 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
33384 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
33385 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
33386 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
33387 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
33388 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
33389 (struct grub_efi_pci_device_path): New structure.
33390 (grub_efi_pci_device_path_t): New type.
33391 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
33392 (struct grub_efi_pccard_device_path): New structure.
33393 (grub_efi_pccard_device_path_t): New type.
33394 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
33395 (struct grub_efi_memory_mapped_device_path): New structure.
33396 (grub_efi_memory_mapped_device_path_t): New type.
33397 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
33398 (struct grub_efi_vendor_device_path): New structure.
33399 (grub_efi_vendor_device_path_t): New type.
33400 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
33401 (struct grub_efi_controller_device_path): New structure.
33402 (grub_efi_controller_device_path_t): New type.
33403 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
33404 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
33405 (struct grub_efi_acpi_device_path): New structure.
33406 (grub_efi_acpi_device_path_t): New type.
33407 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
33408 (struct grub_efi_expanded_acpi_device_path): New structure.
33409 (grub_efi_expanded_acpi_device_path_t): New type.
33410 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
33411 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
33412 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
33413 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
33414 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
33415 (struct grub_efi_atapi_device_path): New structure.
33416 (grub_efi_atapi_device_path_t): New type.
33417 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
33418 (struct grub_efi_fibre_channel_device_path): New structure.
33419 (grub_efi_fibre_channel_device_path_t): New type.
33420 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
33421 (struct grub_efi_1394_device_path): New structure.
33422 (grub_efi_1394_device_path_t): New type.
33423 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
33424 (struct grub_efi_usb_device_path): New structure.
33425 (grub_efi_usb_device_path_t): New type.
33426 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
33427 (struct grub_efi_usb_class_device_path): New structure.
33428 (grub_efi_usb_class_device_path_t): New type.
33429 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
33430 (struct grub_efi_i2o_device_path): New structure.
33431 (grub_efi_i2o_device_path_t): New type.
33432 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
33433 (struct grub_efi_mac_address_device_path): New structure.
33434 (grub_efi_mac_address_device_path_t): New type.
33435 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
33436 (struct grub_efi_ipv4_device_path): New structure.
33437 (grub_efi_ipv4_device_path_t): New type.
33438 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
33439 (struct grub_efi_ipv6_device_path): New structure.
33440 (grub_efi_ipv6_device_path_t): New type.
33441 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
33442 (struct grub_efi_infiniband_device_path): New structure.
33443 (grub_efi_infiniband_device_path_t): New type.
33444 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
33445 (struct grub_efi_uart_device_path): New structure.
33446 (grub_efi_uart_device_path_t): New type.
33447 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
33448 (struct grub_efi_vendor_messaging_device_path): New structure.
33449 (grub_efi_vendor_messaging_device_path_t): New type.
33450 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
33451 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
33452 (struct grub_efi_hard_drive_device_path): New structure.
33453 (grub_efi_hard_drive_device_path_t): New type.
33454 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
33455 (struct grub_efi_cdrom_device_path): New structure.
33456 (grub_efi_cdrom_device_path_t): New type.
33457 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
33458 (struct grub_efi_vendor_media_device_path): New structure.
33459 (grub_efi_vendor_media_device_path_t): New type.
33460 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
33461 (struct grub_efi_file_path_device_path): New structure.
33462 (grub_efi_file_path_device_path_t): New type.
33463 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
33464 (struct grub_efi_protocol_device_path): New structure.
33465 (grub_efi_protocol_device_path_t): New type.
33466 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
33467 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
33468 (struct grub_efi_bios_device_path): New structure.
33469 (grub_efi_bios_device_path_t): New type.
33470 (struct grub_efi_disk_io): New structure.
33471 (grub_efi_disk_io_t): New type.
33472 (struct grub_efi_block_io_media): New structure.
33473 (grub_efi_block_io_media_t): New type.
33474 (struct grub_efi_block_io): New structure.
33475 (grub_efi_block_io_t): New type.
33476
33477 * include/grub/misc.h (grub_stop): Removed.
33478 (grub_exit): New prototype.
33479 (grub_abort): Likewise.
33480
33481 * include/grub/disk.h (enum grub_disk_dev_id): Added
33482 GRUB_DISK_DEVICE_EFIDISK_ID.
33483
33484 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
33485 disk/efi/efidisk.c.
33486 (kernel_syms.lst): Remove the target if an error occurs.
33487
33488 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
33489
33490 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
33491 as it was simply too buggy.
33492
33493 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
33494
33495 * kern/misc.c (grub_lltoa): New function.
33496 (grub_vsprintf): Added support for the long long suffix,
33497 i.e. "ll".
33498
33499 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
33500
33501 * Makefile.in (LDFLAGS): Add variable.
33502 (LD): Remove variable.
33503 * configure.ac: Add -m32 to LDFLAGS.
33504 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
33505 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
33506 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
33507 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
33508 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
33509 variables.
33510 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
33511 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
33512 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
33513
33514 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
33515
33516 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
33517 length for unknown glyph.
33518
33519 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33520
33521 Add support for pre-loaded modules into the EFI port.
33522
33523 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
33524 completely. Accept one more argument DIR. The caller has changed.
33525
33526 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
33527
33528 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
33529 (grub_efi_loaded_image_guid): New variable.
33530 (grub_efi_get_loaded_image): New function.
33531 (grub_arch_modules_addr): Likewise.
33532
33533 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
33534 prototype.
33535
33536 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
33537 (struct grub_efi_loaded_image): New structure.
33538 (grub_efi_loaded_image_t): New type.
33539
33540 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33541
33542 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
33543 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
33544 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
33545
33546 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
33547
33548 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
33549
33550 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
33551
33552 * DISTLIST: Added include/grub/efi/console.h,
33553 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
33554 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
33555
33556 * include/grub/efi/console.h: New file.
33557 * include/grub/efi/time.h: Likewise.
33558 * include/grub/i386/efi/kernel.h: Likewise.
33559 * kern/efi/init.c: Likewise.
33560 * kern/efi/mm.c: Likewise.
33561 * term/efi/console.c: Likewise.
33562
33563 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
33564 (grub_stop): Removed.
33565 (grub_get_rtc): Likewise.
33566 (grub_machine_init): Simply call grub_efi_init.
33567 (grub_machine_fini): Call grub_efi_fini.
33568
33569 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
33570 (grub_efi_output_string): Removed.
33571 (grub_efi_stall): New function.
33572 (grub_stop): Likewise.
33573 (grub_get_rtc): Likewise.
33574
33575 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
33576 (grub_efi_stall): New prototype.
33577 (grub_efi_allocate_pages): Likewise.
33578 (grub_efi_free_pages): Likewise.
33579 (grub_efi_get_memory_map): Likewise.
33580 (grub_efi_mm_init): Likewise.
33581 (grub_efi_mm_fini): Likewise.
33582 (grub_efi_init): Likewise.
33583 (grub_efi_fini): Likewise.
33584
33585 * include/grub/i386/efi/time.h: Do not include
33586 grub/symbol.h. Include grub/efi/time.h.
33587 (GRUB_TICKS_PER_SECOND): Removed.
33588 (grub_get_rtc): Likewise.
33589
33590 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
33591 Added padding. The EFI spec is buggy.
33592 (GRUB_EFI_BLACK): New macro.
33593 (GRUB_EFI_BLUE): Likewise.
33594 (GRUB_EFI_GREEN): Likewise.
33595 (GRUB_EFI_CYAN): Likewise.
33596 (GRUB_EFI_RED): Likewise.
33597 (GRUB_EFI_MAGENTA): Likewise.
33598 (GRUB_EFI_BROWN): Likewise.
33599 (GRUB_EFI_LIGHTGRAY): Likewise.
33600 (GRUB_EFI_BRIGHT): Likewise.
33601 (GRUB_EFI_DARKGRAY): Likewise.
33602 (GRUB_EFI_LIGHTBLUE): Likewise.
33603 (GRUB_EFI_LIGHTGREEN): Likewise.
33604 (GRUB_EFI_LIGHTCYAN): Likewise.
33605 (GRUB_EFI_LIGHTRED): Likewise.
33606 (GRUB_EFI_LIGHTMAGENTA): Likewise.
33607 (GRUB_EFI_YELLOW): Likewise.
33608 (GRUB_EFI_WHITE): Likewise.
33609 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
33610 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
33611 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
33612 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
33613 (GRUB_EFI_BACKGROUND_RED): Likewise.
33614 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
33615 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
33616 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
33617 (GRUB_EFI_TEXT_ATTR): Likewise.
33618
33619 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
33620 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
33621 (kernel_mod_HEADERS): Added efi/time.h.
33622
33623 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
33624
33625 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
33626 include/grub/efi/api.h, include/grub/efi/console_control.h,
33627 include/grub/efi/efi.h, include/grub/efi/pe32.h,
33628 include/grub/i386/efi/time.h, kern/efi/efi.c,
33629 kern/i386/efi/init.c, kern/i386/efi/startup.S,
33630 and util/i386/efi/grub-mkimage.c.
33631
33632 * Makefile.in (RMKFILES): Added i386-efi.rmk.
33633
33634 * genmk.rb (PModule#rule): Do not export symbols if
33635 #{prefix}_EXPORTS is set to "no".
33636
33637 * conf/i386-efi.mk: New file.
33638 * conf/i386-efi.rmk: Likewise.
33639 * include/grub/efi/api.h: Likewise.
33640 * include/grub/efi/console_control.h: Likewise.
33641 * include/grub/efi/efi.h: Likewise.
33642 * include/grub/efi/pe32.h: Likewise.
33643 * include/grub/i386/efi/time.h: Likewise.
33644 * kern/efi/efi.c: Likewise.
33645 * kern/i386/efi/init.c: Likewise.
33646 * kern/i386/efi/startup.S: Likewise.
33647 * util/i386/efi/grub-mkimage.c: Likewise.
33648
33649 2006-04-17 Marco Gerards <marco@gnu.org>
33650
33651 * include/grub/script.h: Include <grub/parser.h> and
33652 "grub_script.tab.h".
33653 (struct grub_lexer_param): New struct.
33654 (struct grub_parser_param): Likewise.
33655 (grub_script_create_arglist): Pass the state in an argument.
33656 (grub_script_add_arglist): Likewise.
33657 (grub_script_create_cmdline): Likewise.
33658 (grub_script_create_cmdblock): Likewise.
33659 (grub_script_create_cmdif): Likewise.
33660 (grub_script_create_cmdmenu): Likewise.
33661 (grub_script_add_cmd): Likewise.
33662 (grub_script_arg_add): Likewise.
33663 (grub_script_lexer_ref): Likewise.
33664 (grub_script_lexer_deref): Likewise.
33665 (grub_script_lexer_record_start): Likewise.
33666 (grub_script_lexer_record_stop): Likewise.
33667 (grub_script_mem_record): Likewise.
33668 (grub_script_mem_record_stop): Likewise.
33669 (grub_script_malloc): Likewise.
33670 (grub_script_yylex): Likewise.
33671 (grub_script_yyparse): Likewise.
33672 (grub_script_yyerror): Likewise.
33673 (grub_script_yylex): Likewise.
33674 (grub_script_lexer_init): Return the state.
33675
33676 * normal/lexer.c (grub_script_lexer_state): Removed variable.
33677 (grub_script_lexer_done): Likewise.
33678 (grub_script_lexer_getline): Likewise.
33679 (grub_script_lexer_refs): Likewise.
33680 (script): Likewise.
33681 (newscript): Likewise.
33682 (record): Likewise.
33683 (recording): Likewise.
33684 (recordpos): Likewise.
33685 (recordlen): Likewise.
33686 (grub_script_lexer_init): Return the state instead of setting
33687 global variables.
33688 (grub_script_lexer_ref): Use the newly added argument for state
33689 instead of globals.
33690 (grub_script_lexer_deref): Likewise.
33691 (grub_script_lexer_record_start): Likewise.
33692 (grub_script_lexer_record_stop): Likewise.
33693 (recordchar): Likewise.
33694 (nextchar): Likewise.
33695 (grub_script_yylex2): Likewise.
33696 (grub_script_yylex): Likewise.
33697 (grub_script_yyerror): Likewise.
33698
33699 * normal/parser.y (func_mem): Removed variable.
33700 (menu_entry): Likewise.
33701 (err): Likewise.
33702 (%lex-param): New parser option.
33703 (%parse-param): Likewise.
33704 (script): Always return the AST.
33705 (argument): Pass the state around.
33706 (arguments): Likewise.
33707 (grubcmd): Likewise.
33708 (commands): Likewise.
33709 (function): Likewise.
33710 (menuentry): Likewise.
33711 (if_statement): Likewise.
33712 (if): Likewise.
33713
33714 * normal/script.c (grub_script_memused): Removed variable.
33715 (grub_script_parsed): Likewise.
33716 (grub_script_malloc): Added a state argument. Use that instead of
33717 global variables.
33718 (grub_script_mem_record): Likewise.
33719 (grub_script_mem_record_stop): Likewise.
33720 (grub_script_arg_add): Likewise.
33721 (grub_script_add_arglist): Likewise.
33722 (grub_script_create_cmdline): Likewise.
33723 (grub_script_create_cmdif): Likewise.
33724 (grub_script_create_cmdmenu): Likewise.
33725 (grub_script_add_cmd): Likewise.
33726 (grub_script_parse): Setup the state before calling the parser.
33727
33728 2006-04-16 Marco Gerards <marco@gnu.org>
33729
33730 * normal/command.c (grub_command_init): Remove the title command.
33731
33732 * normal/lexer.c (grub_script_yylex): Renamed from this...
33733 (grub_script_yylex2): ... to this.
33734 (grub_script_yylex): New function. Temporary
33735 introduced to filter some tokens.
33736 (grub_script_yyerror): Print a newline.
33737
33738 * normal/main.c (read_config_file): Output information about the
33739 lines that contain errors. Wait for a key after all lines have
33740 been processed. Don't return an empty menu.
33741
33742 * normal/parser.y (func_mem): Don't initialize.
33743 (menu_entry): Likewise.
33744 (err): New variable.
33745 (script): Don't return anything when an error was encountered.
33746 (ws, returns): Removed rules.
33747 (argument): Disabled concatenated variable support.
33748 (arguments): Remove explicit separators.
33749 (grubcmd): Likewise.
33750 (function): Likewise.
33751 (menuentry): Likewise.
33752 (if): Likewise.
33753 (commands): Likewise. Add error handling.
33754
33755 * normal/script.c (grub_script_create_cmdline): If
33756 `grub_script_parsed' is 0, assume the parser encountered an error.
33757
33758 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
33759
33760 * configure.ac: Add support for EFI. Fix the typo
33761 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
33762
33763 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33764
33765 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
33766 foreign multibyte characters should be shown correctly.
33767
33768 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33769
33770 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
33771 calculation.
33772 (read_config_file): Made it to close file before returning.
33773
33774 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
33775
33776 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
33777 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
33778 video/i386/pc/vbefill.c.
33779
33780 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
33781 video/i386/pc/vbefill.c.
33782
33783 * include/grub/video.h (grub_video_blit_format): New enum.
33784 (grub_video_mode_info): Added new member blit_format.
33785 (grub_video_get_blit_format): New function prototype.
33786
33787 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
33788 function prototype.
33789 (grub_video_vbe_map_rgb): Likewise.
33790 (grub_video_vbe_unmap_color): Likewise.
33791
33792 * include/grub/i386/pc/vbeblit.h: New file.
33793
33794 * include/grub/i386/pc/vbefill.h: New file.
33795
33796 * video/video.c (grub_video_get_blit_format): New function.
33797 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
33798 (grub_video_vbe_map_rgb): Likewise.
33799 (grub_video_vbe_unmap_color): Likewise.
33800
33801 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
33802 optimized fills.
33803 (grub_video_vbe_blit_render_target): Changed to use more optimized
33804 blits.
33805 (grub_video_vbe_setup): Added detection for optimized settings.
33806 (grub_video_vbe_create_render_target): Likewise.
33807
33808 * video/i386/pc/vbeblit.c: New file.
33809
33810 * video/i386/pc/vbefill.c: New file.
33811
33812 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
33813
33814 * font/manager.c (grub_font_get_glyph): Removed font fixup from
33815 here...
33816
33817 * util/unifont2pff.rb: ... and moved it to here. Improved argument
33818 parsing to support both hex and dec ranges. If filename was missing
33819 show usage information.
33820
33821 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
33822
33823 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
33824 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
33825
33826 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
33827 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
33828 (video_mod_SOURCES): Added.
33829 (video_mod_CFLAGS): Likewise.
33830 (video_mod_LDFLAGS): Likewise.
33831 (gfxterm_mod_SOURCES): Likewise.
33832 (gfxterm_mod_CFLAGS): Likewise.
33833 (gfxterm_mod_LDFLAGS): Likewise.
33834 (videotest_mod_SOURCES): Likewise.
33835 (videotest_mod_CFLAGS): Likewise.
33836 (videotest_mod_LDFLAGS): Likewise.
33837 (vesafb_mod_SOURCES): Removed.
33838 (vesafb_mod_CFLAGS): Likewise.
33839 (vesafb_mod_LDFLAGS): Likewise.
33840 (vga_mod_SOURCES): Likewise.
33841 (vga_mod_CFLAGS): Likewise.
33842 (vga_mod_LDFLAGS): Likewise.
33843
33844 * commands/videotest.c: New file.
33845
33846 * font/manager.c (fill_with_default_glyph): Modified to use
33847 grub_font_glyph.
33848 (grub_font_get_glyph): Likewise.
33849 (fontmanager): Renamed from this...
33850 (font_manager): ... to this.
33851
33852 * include/grub/font.h (grub_font_glyph): Added new structure.
33853 (grub_font_get_glyph): Modified to use grub_font_glyph.
33854
33855 * include/grub/misc.h (grub_abs): Added as inline function.
33856
33857 * include/grub/video.h: New file.
33858
33859 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
33860 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
33861 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
33862 (grub_vbe_get_controller_info): Renamed from this...
33863 (grub_vbe_bios_get_controller_info): ... to this.
33864 (grub_vbe_get_mode_info): Renamed from this...
33865 (grub_vbe_bios_get_mode_info): ... to this.
33866 (grub_vbe_set_mode): Renamed from this...
33867 (grub_vbe_bios_set_mode): ... to this.
33868 (grub_vbe_get_mode): Renamed from this...
33869 (grub_vbe_bios_get_mode): ... to this.
33870 (grub_vbe_set_memory_window): Renamed from this...
33871 (grub_vbe_bios_set_memory_window): ... to this.
33872 (grub_vbe_get_memory_window): Renamed from this...
33873 (grub_vbe_bios_get_memory_window): ... to this.
33874 (grub_vbe_set_scanline_length): Renamed from this...
33875 (grub_vbe_set_scanline_length): ... to this.
33876 (grub_vbe_get_scanline_length): Renamed from this...
33877 (grub_vbe_bios_get_scanline_length): ... to this.
33878 (grub_vbe_set_display_start): Renamed from this...
33879 (grub_vbe_bios_set_display_start): ... to this.
33880 (grub_vbe_get_display_start): Renamed from this...
33881 (grub_vbe_bios_get_display_start): ... to this.
33882 (grub_vbe_set_palette_data): Renamed from this...
33883 (grub_vbe_bios_set_palette_data): ... to this.
33884 (grub_vbe_set_pixel_rgb): Removed.
33885 (grub_vbe_set_pixel_index): Likewise.
33886
33887 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
33888 from this...
33889 (grub_vbe_bios_get_controller_info): ... to this.
33890 (grub_vbe_get_mode_info): Renamed from this...
33891 (grub_vbe_bios_get_mode_info): ... to this.
33892 (grub_vbe_set_mode): Renamed from this...
33893 (grub_vbe_bios_set_mode): ... to this.
33894 (grub_vbe_get_mode): Renamed from this...
33895 (grub_vbe_bios_get_mode): ... to this.
33896 (grub_vbe_set_memory_window): Renamed from this...
33897 (grub_vbe_bios_set_memory_window): ... to this.
33898 (grub_vbe_get_memory_window): Renamed from this...
33899 (grub_vbe_bios_get_memory_window): ... to this.
33900 (grub_vbe_set_scanline_length): Renamed from this...
33901 (grub_vbe_set_scanline_length): ... to this.
33902 (grub_vbe_get_scanline_length): Renamed from this...
33903 (grub_vbe_bios_get_scanline_length): ... to this.
33904 (grub_vbe_set_display_start): Renamed from this...
33905 (grub_vbe_bios_set_display_start): ... to this.
33906 (grub_vbe_get_display_start): Renamed from this...
33907 (grub_vbe_bios_get_display_start): ... to this.
33908 (grub_vbe_set_palette_data): Renamed from this...
33909 (grub_vbe_bios_set_palette_data): ... to this.
33910 (grub_vbe_bios_get_controller_info): Fixed problem with registers
33911 getting corrupted after calling it. Added more pushes and pops.
33912 (grub_vbe_bios_set_mode): Likewise.
33913 (grub_vbe_bios_get_mode): Likewise.
33914 (grub_vbe_bios_get_memory_window): Likewise.
33915 (grub_vbe_bios_set_scanline_length): Likewise.
33916 (grub_vbe_bios_get_scanline_length): Likewise.
33917 (grub_vbe_bios_get_display_start): Likewise.
33918 (grub_vbe_bios_set_palette_data): Likewise.
33919
33920 * normal/cmdline.c (cl_set_pos): Refresh the screen.
33921 (cl_insert): Likewise.
33922 (cl_delete): Likewise.
33923
33924 * term/gfxterm.c: New file.
33925
33926 * term/i386/pc/vesafb.c: Removed file.
33927
33928 * video/video.c: New file.
33929
33930 * video/i386/pc/vbe.c (real2pm): Added new function.
33931 (grub_video_vbe_draw_pixel): Likewise.
33932 (grub_video_vbe_get_video_ptr): Likewise.
33933 (grub_video_vbe_get_pixel): Likewise
33934 (grub_video_vbe_init): Likewise.
33935 (grub_video_vbe_fini): Likewise.
33936 (grub_video_vbe_setup): Likewise.
33937 (grub_video_vbe_get_info): Likewise.
33938 (grub_video_vbe_set_palette): Likewise.
33939 (grub_video_vbe_get_palette): Likewise.
33940 (grub_video_vbe_set_viewport): Likewise.
33941 (grub_video_vbe_get_viewport): Likewise.
33942 (grub_video_vbe_map_color): Likewise.
33943 (grub_video_vbe_map_rgb): Likewise.
33944 (grub_video_vbe_map_rgba): Likewise.
33945 (grub_video_vbe_unmap_color): Likewise.
33946 (grub_video_vbe_fill_rect): Likewise.
33947 (grub_video_vbe_blit_glyph): Likewise.
33948 (grub_video_vbe_blit_bitmap): Likewise.
33949 (grub_video_vbe_blit_render_target): Likewise.
33950 (grub_video_vbe_scroll): Likewise.
33951 (grub_video_vbe_swap_buffers): Likewise.
33952 (grub_video_vbe_create_render_target): Likewise.
33953 (grub_video_vbe_delete_render_target): Likewise.
33954 (grub_video_vbe_set_active_render_target): Likewise.
33955 (grub_vbe_set_pixel_rgb): Remove function.
33956 (grub_vbe_set_pixel_index): Likewise.
33957 (index_color_mode): Remove static variable.
33958 (active_mode): Likewise.
33959 (framebuffer): Likewise.
33960 (bytes_per_scan_line): Likewise.
33961 (grub_video_vbe_adapter): Added new static variable.
33962 (framebuffer): Likewise.
33963 (render_target): Likewise.
33964 (initial_mode): Likewise.
33965 (mode_in_use): Likewise.
33966 (mode_list): Likewise.
33967
33968 2006-03-10 Marco Gerards <marco@gnu.org>
33969
33970 * configure.ac (AC_INIT): Bumped to 1.93.
33971
33972 * DISTLIST: Added `include/grub/hfs.h'.
33973
33974 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
33975
33976 * boot/i386/pc/boot.S (general_error): Before looping, try INT
33977 18H, which might help the BIOS falling back to next boot media.
33978
33979 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
33980
33981 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
33982 Poe Chen <poe.poechen@gmail.com>.
33983
33984 2006-01-17 Marco Gerards <marco@gnu.org>
33985
33986 * include/grub/normal.h: Include <grub/script.h>.
33987 (grub_command_list): Removed struct.
33988 (grub_command_list_t): Removed type.
33989 (grub_menu_entry): Remove members `num' and `command_list'. Add
33990 members `commands' and `sourcecode'.
33991 * include/grub/script.h: Add inclusion guards.
33992 (grub_script_cmd_menuentry): New struct.
33993 (grub_script_execute_menuentry): New prototype.
33994 (grub_script_lexer_record_start): Likewise.
33995 (grub_script_lexer_record_stop): Likewise.
33996 * normal/execute.c (grub_script_execute_menuentry): New function.
33997 * normal/lexer.c (record, recording, recordpos, recordlen): New
33998 variables.
33999 (grub_script_lexer_record_start): New function.
34000 (grub_script_lexer_record_stop): Likewise.
34001 (recordchar): Likewise.
34002 (nextchar): Likewise.
34003 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
34004 2048 as the buffer size. Add the tokens `menuentry' and `@'.
34005 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
34006 (current_menu): New variable.
34007 (free_menu): Mainly rewritten.
34008 (grub_normal_menu_addentry): New function.
34009 (read_config_file): Rewritten.
34010 * normal/menu.c (run_menu_entry): Mainly rewritten.
34011 * normal/menu_entry.c (make_screen): Rewritten the code to insert
34012 the menu entry.
34013 (run): Mainly rewritten.
34014 * normal/parser.y (menu_entry): New variable.
34015 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
34016 (menuentry): New rule.
34017 (command): Add `menuentry'.
34018 (if_statement): Allow additional returns before `fi'.
34019 * normal/script.c (grub_script_create_cmdmenu): New function.
34020
34021 2006-01-03 Marco Gerards <marco@gnu.org>
34022
34023 * INSTALL: GNU Bison is required.
34024 * configure.ac: Rewritten the test to detect Bison.
34025 * Makefile.in (YACC): New variable. Reported by Xun Sun
34026 <xun.sun.cn@gmail.com>.
34027
34028 2006-01-03 Marco Gerards <marco@gnu.org>
34029
34030 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
34031 the HFS+ filesystem to filesystem blocks.
34032 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
34033 GCC warning is silenced.
34034
34035 2006-01-03 Marco Gerards <marco@gnu.org>
34036
34037 * partmap/apple.c (apple_partition_map_iterate): Convert the data
34038 read from disk from big endian to host byte order.
34039
34040 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
34041
34042 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
34043 documentation.
34044 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
34045 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
34046 embedded HFS+ filesystem.
34047 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
34048 (grub_hfs_sblock): Move from here...
34049 * include/grub/hfs.h: To here... New file.
34050 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
34051 documentation.
34052 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
34053 New macros.
34054 (grub_hfsplus_volheader): Change type of member `magic' to
34055 `grub_uint16_t'.
34056 (grub_hfsplus_data): Add new member `embedded_offset'.
34057 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
34058 returned block.
34059 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
34060 Calculate the offset.
34061
34062 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34063
34064 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
34065 Removed.
34066 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
34067
34068 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34069
34070 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
34071 ENV->NAME is NULL after allocating ENV->VALUE.
34072
34073 2005-12-25 Marco Gerards <marco@gnu.org>
34074
34075 * kern/env.c (grub_env_set): Rewritten the error handling code.
34076
34077 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34078
34079 * geninit.sh: Made more robust, and more portable.
34080
34081 2005-12-25 Marco Gerards <marco@gnu.org>
34082
34083 Add support for Apple HFS+ filesystems.
34084
34085 * fs/hfsplus.c: New file.
34086
34087 * DISTLIST: Added `fs/hfsplus.c'.
34088
34089 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
34090 (hfsplus_mod_SOURCES): New variable.
34091 (hfsplus_mod_CFLAGS): Likewise.
34092 (hfsplus_mod_LDFLAGS): Likewise.
34093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
34094 (grub_setup_SOURCES): Likewise.
34095 (grub_mkdevicemap_SOURCES): Likewise.
34096 (grub_emu_SOURCES): Likewise.
34097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34098
34099 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
34100
34101 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
34102
34103 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34104
34105 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
34106 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
34107 include/grub/parser.h, include/grub/script.h, kern/parser.c,
34108 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
34109 normal/lexer.c, normal/parser.y, normal/script.c, and
34110 partmap/gpt.c.
34111 Removed kern/sparc64/cache.c.
34112
34113 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
34114 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
34115 grub_emu_init.c.
34116
34117 * configure.ac (AC_INIT): Bumped to 1.92.
34118
34119 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
34120
34121 * kern/err.c (grub_error_push): Added new function to support error
34122 stacks.
34123 (grub_error_pop): Likewise.
34124 (grub_error_stack_items): New local variable to support error stacks.
34125 (grub_error_stack_pos): Likewise.
34126 (grub_error_stack_assert): Likewise.
34127 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
34128 stack depth.
34129 (grub_print_error): Added support to print errors from error stack.
34130
34131 * include/grub/err.h (grub_error_push): Added function prototype.
34132 (grub_error_pop): Likewise.
34133
34134 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
34135
34136 * configure.ac: Accept `powerpc64' as host_cpu.
34137 (amd64): Rename to `biarch32'.
34138
34139 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
34140 non-cacheline-aligned addresses.
34141
34142 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
34143 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
34144 if `size' is non-zero.
34145
34146 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
34147
34148 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
34149 and `cd' to make sure the filename is not prefixed with a
34150 directory name.
34151 (pkgdata_MODULES): Add `gpt.mod'.
34152 (gpt_mod_SOURCES): New variable.
34153 (gpt_mod_CFLAGS): Likewise.
34154 (gpt_mod_LDFLAGS): Likewise.
34155
34156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
34157
34158 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
34159 New macro.
34160
34161 * partmap/gpt.c: New file.
34162
34163 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
34164 GPT partition map is detected.
34165
34166 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
34167
34168 * commands/i386/pc/play.c: New file.
34169 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
34170 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
34171 macros.
34172
34173 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
34174
34175 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
34176 ((unused))' to silence gcc warning.
34177
34178 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
34179
34180 * configure.ac: Correct `AC_PROG_YACC' test.
34181
34182 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34183
34184 * util/powerpc/ieee1275/grub-install.in: Run the mount point
34185 check before installing files.
34186
34187 2005-11-22 Mike Small <smallm@panix.com>
34188
34189 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
34190 number regex so multidigit numbers are recognized correctly.
34191
34192 2005-11-22 Mike Small <smallm@panix.com>
34193
34194 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
34195 debugging message before attempting to claim memory.
34196 (grub_rescue_cmd_initrd): Add a claim debugging message and try
34197 multiple addresses in case of failure.
34198
34199 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34200
34201 * term/tparm.c (get_space): Remove empty `if' statement.
34202
34203 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
34204
34205 * kern/parser.c (check_varstate): Rename `state' to 's'.
34206
34207 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34208
34209 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
34210 variable definitions to the beginning of each function. Sort stack
34211 variables by size.
34212 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
34213 `buf' argument to `char *'.
34214
34215 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34216
34217 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
34218 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34219 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34220 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34221 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34222 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34223 configfile.mod, search.mod, gzio.mod and test.mod.
34224 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34225 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34226 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34227 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34228 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34229 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34230 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34231 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34232 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34233 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34234 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34235 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34236 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34237 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34238 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34239 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34240 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34241 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34242 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34243 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34244 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34245 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34246 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
34247
34248 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
34249 `grep --include'.
34250 (pkgdata_MODULES): Add test.mod.
34251
34252 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34253
34254 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
34255 appending to variables with "+=".
34256 (PModule): Use full pathname to generate *.lst filenames.
34257
34258 * Makefile.in: Fixed list rules moved from genmk.rb.
34259 (.DELETE_ON_ERROR): New special target.
34260 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
34261
34262 * conf/i386-pc.rmk: Include conf/common.mk.
34263 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34264 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34265 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34266 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34267 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34268 configfile.mod, search.mod, gzio.mod and test.mod.
34269 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34270 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34271 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34272 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34273 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34274 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34275 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34276 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34277 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34278 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34279 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34280 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34281 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34282 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34283 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34284 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34285 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34286 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34287 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34288 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34289 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34290 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34291 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
34292 here...
34293 * conf/common.rmk: ... to here. New file.
34294
34295 * conf/common.mk: New file.
34296
34297 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
34298
34299 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
34300 (grub_script.tab.c): ... here.
34301
34302 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
34303 (grub_script.tab.c): ... here.
34304
34305 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
34306 (grub_script.tab.c): ... here.
34307
34308 * normal/command.c (grub_command_find): Fixed a memory leak of
34309 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
34310
34311 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34312
34313 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
34314 "@" which marks the start of a comment on ARM.
34315 (VARIABLE): Likewise.
34316
34317 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34318
34319 Add support for Linux/ADFS partition tables.
34320
34321 * partmap/acorn.c: New file.
34322
34323 * include/grub/acorn_filecore.h: Likewise.
34324
34325 * DISTLIST: Added `partmap/acorn.c' and
34326 `include/grub/acorn_filecore.h'.
34327
34328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34329 `partmap/acorn.c'.
34330 (pkgdata_MODULES): Add `acorn.mod'.
34331 (acorn_mod_SOURCES): New variable.
34332 (acorn_mod_CFLAGS): Likewise.
34333
34334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34335 `partmap/acorn.c'.
34336 (pkgdata_MODULES): Add `acorn.mod'.
34337 (acorn_mod_SOURCES): New variable.
34338 (acorn_mod_CFLAGS): Likewise.
34339
34340 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
34341 (pkgdata_MODULES): Add `acorn.mod'.
34342 (acorn_mod_SOURCES): New variable.
34343 (acorn_mod_CFLAGS): Likewise.
34344 (acorn_mod_LDFLAGS): Likewise.
34345
34346 * include/types.h (grub_disk_addr_t): New typedef.
34347
34348 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
34349
34350 * geninit.sh: New file.
34351
34352 * geninitheader.sh: Likewise.
34353
34354 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
34355 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
34356 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
34357 * commands/configfile.c (grub_configfile_init)
34358 (grub_configfile_fini): Likewise.
34359 * commands/default.c (grub_default_init, grub_default_fini):
34360 Likewise.
34361 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
34362 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
34363 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
34364 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
34365 Likewise.
34366 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
34367 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
34368 Likewise.
34369 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
34370 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
34371 Likewise.
34372 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
34373 Likewise.
34374 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
34375 Likewise.
34376 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
34377 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
34378 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
34379 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
34380 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
34381 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
34382 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
34383 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
34384 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
34385 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
34386 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
34387 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
34388 * partmap/amiga.c (grub_amiga_partition_map_init)
34389 (grub_amiga_partition_map_fini): Likewise.
34390 * partmap/apple.c (grub_apple_partition_map_init)
34391 (grub_apple_partition_map_fini): Likewise.
34392 * partmap/pc.c (grub_pc_partition_map_init)
34393 (grub_pc_partition_map_fini): Likewise.
34394 * partmap/sun.c (grub_sun_partition_map_init,
34395 grub_sun_partition_map_fini): Likewise.
34396 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
34397 Likewise.
34398
34399 * util/grub-emu.c: Include <grub_modules_init.h>.
34400 (main): Don't initialize and de-initialize any modules directly,
34401 use `grub_init_all' and `grub_fini_all' instead.
34402
34403 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
34404 `grub_vesafb_mod_init'.
34405 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
34406 all users.
34407 * term/i386/pc/vga.c (grub_vga_init): Renamed to
34408 `grub_vga_mod_init'. Updated all users.
34409 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
34410
34411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
34412 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
34413 rules.
34414
34415 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
34416 Generate a function to initialize the module in utilities.
34417 Updated all callers.
34418 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
34419 initialize the module in utilities. Updated all callers.
34420
34421 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34422
34423 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
34424 escape sequence and a literal ^L to clear the screen.
34425
34426 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
34427 when returning from Open Firmware.
34428
34429 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34430
34431 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
34432 (grub_ofconsole_height): Likewise.
34433 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
34434 manually insert a '\n'.
34435 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
34436 `grub_ofconsole_height'. Return early if these are already set.
34437
34438 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
34439
34440 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34441 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
34442 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
34443 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
34444 and `normal/script.c'.
34445 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34446 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34447 (test_mod_SOURCES): New variable.
34448 (test_mod_CFLAGS): Likewise.
34449 (test_mod_LDFLAGS): Likewise.
34450 (pkgdata_MODULES): Add `test.mod'.
34451 (grub_script.tab.c): New rule.
34452 (grub_script.tab.h): Likewise.
34453
34454 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
34455
34456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34457 `commands/test.c', `normal/execute.c', `normal/lexer.c',
34458 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34459 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34460 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34461 (test_mod_SOURCES): New variable.
34462 (test_mod_CFLAGS): Likewise.
34463 (pkgdata_MODULES): Add `test.mod'.
34464 (grub_script.tab.c): New rule.
34465 (grub_script.tab.h): Likewise.
34466
34467 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
34468
34469 Add initial scripting support.
34470
34471 * commands/test.c: New file.
34472 * include/grub/script.h: Likewise.
34473 * normal/execute.c: Likewise.
34474 * normal/function.c: Likewise.
34475 * normal/lexer.c: Likewise.
34476 * normal/parser.y: Likewise.
34477 * normal/script.c: Likewise.
34478
34479 * configure.ac: Add `AC_PROG_YACC' test.
34480
34481 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
34482 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
34483 `normal/function.c' and `normal/script.c'.
34484 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34485 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34486 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
34487 variables.
34488 (pkgdata_MODULES): Add `test.mod'.
34489 (grub_script.tab.c): New rule.
34490 (grub_script.tab.h): Likewise.
34491
34492 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
34493
34494 * include/grub/normal.h (grub_test_init): New prototype.
34495 (grub_test_fini): Likewise.
34496
34497 * normal/command.c: Include <grub/script.h>.
34498 (grub_command_execute): Rewritten.
34499
34500 * util/grub-emu.c (main): Call `grub_test_init' and
34501 `grub_test_fini'.
34502
34503 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34504
34505 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
34506 to 0.
34507 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
34508 there are no pending characters.
34509
34510 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34511
34512 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
34513 `grub_strndup' to drop device arguments. Replace unnecessary
34514 `grub_strndup' with `grub_strdup'.
34515
34516 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34517
34518 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
34519 `debug' environment variable has been set.
34520
34521 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
34522
34523 * Makefile.in (install-local): Use $(DATA).
34524 (uninstall): Likewise.
34525 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
34526 (sbin_UTILITIES): ... to here.
34527 (sbin_SCRIPTS): New variable.
34528 (grub_install_SOURCES): New variable.
34529 * util/powerpc/ieee1275/grub-install.in: New file.
34530 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
34531 variable.
34532 (add_segments): Call `grub_util_get_path'.
34533
34534 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34535
34536 From Timothy Baldwin:
34537 * commands/ls.c (grub_ls_list_files): Close FILE with
34538 grub_file_close.
34539 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
34540
34541 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
34542
34543 * include/grub/parser.h: New file.
34544
34545 * kern/parser.c: Likewise.
34546
34547 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
34548 (grub_setup_SOURCES): Likewise.
34549 (grub_probefs_SOURCES): Likewise.
34550 (grub_emu_SOURCES): Likewise.
34551 (kernel_img_HEADERS): Add `parser.h'.
34552
34553 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34554 (grub_emu_SOURCES): Add `kern/parser.c'.
34555 (grubof_SOURCES): Likewise.
34556
34557 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34558 (grubof_SOURCES): Add `kern/parser.c'.
34559
34560 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
34561
34562 * kern/misc.c (grub_split_cmdline): Removed function.
34563
34564 * kern/rescue.c: Include <grub/parser.h>.
34565 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
34566 of `grub_split_cmdline'.
34567
34568 * normal/command.c: Include <grub/parser.h>.
34569 (grub_command_execute): Use `grub_parser_split_cmdline' instead
34570 of `grub_split_cmdline'.
34571
34572 * normal/completion.c: Include <grub/parser.h>.
34573 (cmdline_state): New variable.
34574 (iterate_dir): End the filename with a quote depending on the
34575 command line state.
34576 (get_state): new function.
34577 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
34578 split the arguments and determine the current argument. When the
34579 argument string is not quoted, escape all spaces.
34580
34581 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34582
34583 * normal/sparc64/setjmp.S: New file.
34584
34585 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34586
34587 * include/grub/sparc64/libgcc.h: New file.
34588 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
34589 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
34590 normal/sparc64/setjmp.c.
34591
34592 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
34593
34594 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
34595 * kern/sparc64/cache.S: New file.
34596 * kern/sparc64/cache.c: Removed.
34597 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
34598 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
34599 -mtune=ultrasparc.
34600 (COMMON_LDFLAGS): Add -melf64_sparc.
34601 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
34602 (grubof_SOURCES): Use cache.S instead of cache.c.
34603 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
34604 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
34605 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
34606 commented though.
34607 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
34608 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
34609 (linux_mod_CFLAGS): Commented out.
34610 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
34611 out because module isn't built.
34612 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
34613 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
34614 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
34615 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
34616 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
34617 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
34618 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
34619 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
34620 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
34621 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
34622 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34623 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34624 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
34625 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
34626
34627 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
34628
34629 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
34630 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
34631 longer, because HFS should not be used on PC.
34632
34633 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34634
34635 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
34636 consistently within the loop.
34637
34638 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
34639
34640 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
34641 directory can not be read.
34642
34643 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34644
34645 * configure.ac (AC_INIT): Increase the version number to 1.91.
34646
34647 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
34648 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
34649 term/i386/pc/serial.c.
34650
34651 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34652
34653 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
34654 file size must be permitted.
34655
34656 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
34657 between %ah and %al.
34658
34659 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34660
34661 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
34662 grub_uint64_t.
34663 Call the hook with a NUL-terminated filename.
34664 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
34665 grub_cpu_to_be32.
34666
34667 * kern/term.c (cursor_state): New variable.
34668 (grub_term_set_current): Reset the cursor state on a new
34669 terminal.
34670 (grub_setcursor): Rewritten to use CURSOR_STATE.
34671 (grub_getcursor): New function.
34672
34673 * include/grub/term.h (grub_getcursor): New prototype.
34674
34675 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
34676 integers on ARM. Reported by Timothy Baldwin
34677 <T.E.Baldwin99@members.leeds.ac.uk>.
34678
34679 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
34680
34681 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
34682 allocated.
34683 (grub_sfs_dir): Likewise.
34684
34685 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
34686
34687 Add support for the SFS filesystem.
34688
34689 * fs/sfs.c: New file.
34690
34691 * DISTLIST: Added `fs/sfs.c'.
34692
34693 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
34694 (grub_probefs_SOURCES): Likewise.
34695 (grub_emu_SOURCES): Likewise.
34696 (pkgdata_MODULES): Add `sfs.mod'.
34697 (sfs_mod_SOURCES): New variable.
34698 (sfs_mod_CFLAGS): Likewise.
34699 (sfs_mod_LDFLAGS): Likewise.
34700
34701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
34702 (pkgdata_MODULES): Add `sfs.mod'.
34703 (sfs_mod_SOURCES): New variable.
34704 (sfs_mod_CFLAGS): Likewise.
34705
34706 * util/grub-emu.c (main): Call `grub_sfs_init' and
34707 `grub_sfs_fini'.
34708
34709 * include/grub/fs.h (grub_sfs_init): New prototype.
34710 (grub_sfs_fini): Likewise.
34711
34712 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
34713
34714 Add support for the AFFS filesystem.
34715
34716 * fs/affs.c: New file.
34717
34718 * DISTLIST: Added `fs/affs.c'.
34719
34720 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
34721 (grub_probefs_SOURCES): Likewise.
34722 (grub_emu_SOURCES): Likewise.
34723 (pkgdata_MODULES): Add `affs.mod'.
34724 (affs_mod_SOURCES): New variable.
34725 (affs_mod_CFLAGS): Likewise.
34726 (affs_mod_LDFLAGS): Likewise.
34727
34728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
34729 (pkgdata_MODULES): Add `affs.mod'.
34730 (affs_mod_SOURCES): New variable.
34731 (affs_mod_CFLAGS): Likewise.
34732
34733 * util/grub-emu.c (main): Call `grub_affs_init' and
34734 `grub_affs_fini'.
34735
34736 * include/grub/fs.h (grub_affs_init): New prototype.
34737 (grub_affs_fini): Likewise.
34738
34739 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
34740
34741 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
34742
34743 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
34744
34745 * configure.ac: Accept `x86_64' as host_cpu. In that case add
34746 `-m32' to CFLAGS.
34747
34748 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
34749 linking.
34750
34751 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
34752 (COMMON_LDFLAGS): New variable.
34753 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
34754 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
34755 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
34756 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
34757 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
34758 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
34759 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
34760 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
34761 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
34762 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
34763 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
34764 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
34765 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
34766 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
34767 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
34768 variables.
34769 (normal_mod_ASFLAGS): Add `-m32'.
34770
34771 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
34772 (grub_host_size_t, grub_host_ssize_t): New types.
34773 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
34774 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
34775 `GRUB_HOST_SIZEOF_VOID_P'.
34776
34777 * include/grub/kernel.h (struct grub_module_header): Type of
34778 member offset changed to `grub_host_off_t'. Type of member size
34779 changed to `grub_host_size_t'.
34780 (struct grub_module_info): Type of member offset changed to
34781 `grub_host_off_t'. Type of member size changed to
34782 `grub_host_size_t'.
34783
34784 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
34785
34786 Make GRUB's kernel compliant to Multiboot Specification.
34787
34788 * kern/i386/pc/startup.S (multiboot_header): New label.
34789 (multiboot_entry): Likewise.
34790 (multiboot_trampoline): Likewise.
34791
34792 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
34793 Increased to 0x4A0.
34794
34795 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
34796 put parentheses after a question mark.
34797 [!GRUB_UTIL] (my_mod): New variable.
34798
34799 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
34800
34801 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
34802
34803 Adds support for the XFS filesystem. Btrees are not supported
34804 yet.
34805
34806 * fs/xfs.c: New file.
34807
34808 * DISTLIST: Added `fs/xfs.c'.
34809
34810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
34811 (grub_probefs_SOURCES): Likewise.
34812 (grub_emu_SOURCES): Likewise.
34813 (pkgdata_MODULES): Add `xfs.mod'.
34814 (xfs_mod_SOURCES): New variable.
34815 (xfs_mod_CFLAGS): Likewise.
34816
34817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
34818 (pkgdata_MODULES): Add `xfs.mod'.
34819 (xfs_mod_SOURCES): New variable.
34820 (xfs_mod_CFLAGS): Likewise.
34821
34822 * util/grub-emu.c (main): Call `grub_xfs_init' and
34823 `grub_xfs_fini'.
34824
34825 * include/grub/fs.h (grub_xfs_init): New prototype.
34826 (grub_xfs_fini): Likewise.
34827
34828
34829 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
34830
34831 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
34832 color modes, allow greater than 16 colors to be configured as
34833 a default palette.
34834
34835 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34836
34837 * normal/completion.c (complete_arguments): Add the qualifier
34838 const into OPTIONS.
34839
34840 From Omniflux <omniflux+lists@omniflux.com>:
34841 * include/grub/terminfo.h: New file.
34842 * include/grub/tparm.h: Likewise.
34843 * include/grub/i386/pc/serial.h: Likewise.
34844 * term/terminfo.c: Likewise.
34845 * term/tparm.c: Likewise.
34846 * term/i386/pc/serial.c: Likewise.
34847 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
34848 serial.mod.
34849 (terminfo_mod_SOURCES): New variable.
34850 (terminfo_mod_CFLAGS): Likewise.
34851 (serial_mod_SOURCES): Likewise.
34852 (serial_mod_CFLAGS): Likewise.
34853
34854 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
34855
34856 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
34857 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
34858 and kern/powerpc/ieee1275/cmain.c, respectively.
34859
34860 * boot/powerpc/ieee1275/crt0.S: Moved to ...
34861 * kern/powerpc/ieee1275/crt0.S: ... here.
34862
34863 * boot/powerpc/ieee1275/cmain.c: Moved to ...
34864 * kern/powerpc/ieee1275/cmain.c: ... here.
34865
34866 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
34867 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
34868 instead of boot/powerpc/ieee1275/crt0.S and
34869 boot/powerpc/ieee1275/cmain.c, respectively.
34870
34871 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
34872 sectors. It was not used anyway.
34873
34874 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34875
34876 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
34877 `unused parameter' warning.
34878
34879 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34880
34881 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
34882 function.
34883 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
34884 getcharwidth.
34885
34886 2005-08-28 Marco Gerards <metgerards@student.han.nl>
34887
34888 * include/grub/normal.h (enum grub_completion_type): Added
34889 `GRUB_COMPLETION_TYPE_ARGUMENT'.
34890
34891 * normal/cmdline.c (print_completion): Handle
34892 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
34893 * normal/menu_entry.c (store_completion): Likewise.
34894
34895 * normal/completion.c (complete_arguments): New function.
34896 (grub_normal_do_completion): Call `complete_arguments' when the
34897 current words start with a dash.
34898
34899 2005-08-27 Marco Gerards <metgerards@student.han.nl>
34900
34901 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
34902 `gzio.mod' instead of `io.mod').
34903
34904 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
34905
34906 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
34907 (DISTDIRS): Added io and video.
34908 Rewrite the search routine to make an output consistently.
34909
34910 * DISTLIST: Added conf/sparc64-ieee1275.mk,
34911 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
34912 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
34913 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
34914 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
34915 util/powerpc/ieee1275/misc.c.
34916
34917 * include/grub/gzio.h: New file.
34918 * io/gzio.c: Likewise.
34919
34920 * kern/file.c (grub_file_close): Call grub_device_close only if
34921 FILE->DEVICE is not NULL.
34922
34923 * include/grub/mm.h [!NULL] (NULL): New macro.
34924
34925 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
34926
34927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
34928 (pkgdata_MODULES): Added gzio.mod.
34929 (gzio_mod_SOURCES): New variable.
34930 (gzio_mod_CFLAGS): Likewise.
34931
34932 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
34933 (pkgdata_MODULES): Added gzio.mod.
34934 (gzio_mod_SOURCES): New variable.
34935 (gzio_mod_CFLAGS): Likewise.
34936
34937 * commands/cat.c: Include grub/gzio.h.
34938 (grub_cmd_cat): Use grub_gzfile_open instead of
34939 grub_file_open.
34940
34941 * commands/cmp.c: Include grub/gzio.h.
34942 (grub_cmd_cmp): Use grub_gzfile_open instead of
34943 grub_file_open.
34944
34945 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
34946 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
34947 grub_file_open.
34948 (grub_rescue_cmd_module): Likewise.
34949
34950 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34951
34952 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
34953 kern/sparc64/ieee1275/init.c because it contains _start.
34954 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
34955
34956 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34957
34958 * configure.ac: Add support for sparc64 host with ieee1275
34959 firmware.
34960 * configure: Generated from configure.ac.
34961 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
34962 instead of int.
34963 (grub_ofdisk_read): Likewise.
34964 (grub_ofdisk_open): Use %p to print pointer values, and cast the
34965 pointers as (void *) to remove a warning.
34966 (grub_ofdisk_close): Likewise.
34967 (grub_ofdisk_read): Likewise.
34968 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
34969 returns, so make it return void to remove a warning.
34970 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
34971 Corresponding prototype change.
34972 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
34973 values, and cast the pointers as (void *) to remove a warning.
34974 (grub_mm_dump): Likewise.
34975 * conf/sparc64-ieee1275.mk: New file.
34976 * conf/sparc64-ieee1275.rmk: Likewise.
34977 * include/grub/sparc64/setjmp.h: Likewise.
34978 * include/grub/sparc64/types.h: Likewise.
34979 * include/grub/sparc64/ieee1275/console.h: Likewise.
34980 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
34981 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34982 * include/grub/sparc64/ieee1275/time.h: Likewise.
34983 * kern/sparc64/cache.c: Likewise.
34984 * kern/sparc64/dl.c: Likewise.
34985 * kern/sparc64/ieee1275/init.c: Likewise.
34986 * kern/sparc64/ieee1275/openfw.c: Likewise.
34987
34988 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
34989
34990 * util/console.c (grub_ncurses_putchar): If C is greater than
34991 0x7f, set C to a question mark.
34992 (grub_ncurses_getcharwidth): New function.
34993 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
34994 getcharwidth.
34995
34996 * normal/menu.c (print_entry): Made aware of Unicode. First,
34997 convert TITLE to UCS-4, and predict the cursor position by
34998 grub_getcharwidth.
34999
35000 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
35001 const to SRC.
35002 * kern/misc.c (grub_utf16_to_utf8): Likewise.
35003
35004 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35005
35006 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
35007 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35008 grub_strcat.
35009
35010 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
35011 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35012 grub_strcpy and grub_strlen. Take it into account that a space
35013 character is inserted as a delimiter.
35014
35015 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35016
35017 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
35018 invalid magic in the error.
35019
35020 * commands/search.c: New file.
35021
35022 * util/grub-emu.c (main): Call grub_search_init and
35023 grub_search_fini.
35024
35025 * kern/rescue.c (grub_rescue_print_disks): Removed.
35026 (grub_rescue_print_devices): New function.
35027 (grub_rescue_cmd_ls): Use grub_device_iterate with
35028 grub_rescue_print_devices instead of grub_disk_dev_iterate with
35029 grub_rescue_print_disks.
35030
35031 * kern/partition.c (grub_partition_iterate): Return the result of
35032 PARTMAP->ITERATE instead of GRUB_ERRNO.
35033
35034 * kern/device.c: Include grub/partition.h.
35035 (grub_device_iterate): New function.
35036
35037 * include/grub/partition.h (grub_partition_iterate): Return int
35038 instead of grub_err_t.
35039
35040 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
35041 prototype.
35042 [GRUB_UTIL] (grub_search_fini): Likewise.
35043
35044 * include/grub/device.h (grub_device_iterate): New prototype.
35045
35046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35047 commands/search.c.
35048 (pkgdata_MODULES): Added search.mod.
35049 (search_mod_SOURCES): New variable.
35050 (search_mod_CFLAGS): Likewise.
35051
35052 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
35053 (pkgdata_MODULES): Added search.mod.
35054 (search_mod_SOURCES): New variable.
35055 (search_mod_CFLAGS): Likewise.
35056
35057 * commands/ls.c (grub_ls_list_disks): Renamed to ...
35058 (grub_ls_list_devices): ... this, and use grub_device_iterate.
35059 All callers changed.
35060
35061 * DISTLIST: Added commands/search.c.
35062
35063 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35064
35065 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
35066 conversion.
35067 (grub_getcharwidth): New function.
35068
35069 * kern/misc.c (grub_utf8_to_ucs4): New function.
35070
35071 * include/grub/term.h (struct grub_term): Added a new member
35072 "getcharwidth".
35073 (grub_getcharwidth): New prototype.
35074
35075 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
35076
35077 * term/i386/pc/console.c (map_char): New function. Segregated from
35078 grub_console_putchar.
35079 (grub_console_putchar): Use map_char.
35080 (grub_console_getcharwidth): New function.
35081 (grub_console_term): Specified grub_console_getcharwidth as
35082 getcharwidth.
35083
35084 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
35085 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
35086
35087 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
35088 GRUB_ERRNO.
35089 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
35090 on grub_strtoul completely.
35091 (write_char): Declare local variables in the beginning of the
35092 function.
35093 (grub_vesafb_getcharwidth): New function.
35094 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
35095 getcharwidth.
35096
35097 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
35098
35099 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
35100 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
35101 commands/i386/pc/vbetest.c.
35102
35103 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
35104 call grub_vbe_get_controller_info again, because the returned
35105 information is volatile.
35106 (grub_vbe_set_video_mode): Mostly rewritten.
35107 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
35108 grub_vbe_status_t correctly.
35109 (grub_vbe_get_video_mode_info): Likewise.
35110 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
35111 several if statements.
35112
35113 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
35114 * commands/i386/pc/vbeinfo.c: ... this.
35115
35116 * commands/i386/pc/vbe_test.c: Renamed to ...
35117 * commands/i386/pc/vbetest.c: ... this.
35118
35119 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
35120 ...
35121 (grub_cmd_vbeinfo): ... this. Save video modes before
35122 iterating. Skip a video mode, if it is not available, not enough
35123 information is given or it is monochrome. Show the memory
35124 model. Leave the interpretation of MODEVAR to grub_strtoul
35125 completely.
35126 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
35127 (GRUB_MOD_FINI): Likewise.
35128
35129 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
35130 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
35131 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
35132 duplicated grub_env_get. Leave the interpretation of MODEVAR to
35133 grub_strtoul completely.
35134 (real2pm): Removed.
35135 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
35136 (GRUB_MOD_FINI): Likewise.
35137
35138 * normal/misc.c: Include grub/mm.h.
35139
35140 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
35141 vbe_list_modes with vbetest.mod and vbeinfo.mod.
35142 (vbe_list_modes_mod_SOURCES): Removed.
35143 (vbe_list_modes_mod_CFLAGS): Likewise.
35144 (vbe_test_mod_SOURCES): Likewise.
35145 (vbe_test_mod_CFLAGS): Likewise.
35146 (vbeinfo_mod_SOURCES): New variable.
35147 (vbeinfo_mod_CFLAGS): Likewise.
35148 (vbetest_mod_SOURCES): Likewise.
35149 (vbetest_mod_CFLAGS): Likewise.
35150
35151 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
35152
35153 * normal/misc.c: New file.
35154
35155 * DISTLIST: Added normal/misc.c.
35156
35157 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
35158 DISK to HOOK. Call HOOK with DISK.
35159 * partmap/apple.c (apple_partition_map_iterate): Likewise.
35160 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35161 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35162
35163 * normal/menu_entry.c (struct screen): Added a new member
35164 "completion_shown".
35165 (completion_buffer): New global variable.
35166 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
35167 (store_completion): New function.
35168 (complete): Likewise.
35169 (clear_completions): Likewise.
35170 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
35171 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
35172 a tab, call complete.
35173
35174 * normal/completion.c (disk_dev): Removed.
35175 (print_simple_completion): Likewise.
35176 (print_partition_completion): Likewise.
35177 (print_func): New global variable.
35178 (add_completion): Do not take the arguments WHAT or PRINT any
35179 longer. Added a new argument TYPE. Instead of printing directly,
35180 call PRINT_FUNC if not NULL.
35181 All callers changed.
35182 (complete_device): Use a local variable DEV instead of
35183 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
35184 (grub_normal_do_completion): Take a new argument HOOK. Do not
35185 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
35186 empty string, return NULL instead.
35187 All callers changed.
35188
35189 * normal/cmdline.c (print_completion): New function.
35190
35191 * kern/partition.c (grub_partition_iterate): Add an argument DISK
35192 to HOOK.
35193 All callers changed.
35194
35195 * kern/disk.c (grub_print_partinfo): Removed.
35196
35197 * include/grub/partition.h (struct grub_partition_map): Add a new
35198 argument DISK into HOOK of ITERATE.
35199 (grub_partition_iterate): Add a new argument DISK to HOOK.
35200
35201 * include/grub/normal.h (enum grub_completion_type): New enum.
35202 (grub_completion_type_t): New type.
35203 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
35204 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
35205 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
35206 (GRUB_COMPLETION_TYPE_FILE): Likewise.
35207 (grub_normal_do_completion): Added a new argument HOOK.
35208 (grub_normal_print_device_info): New prototype.
35209
35210 * include/grub/disk.h (grub_print_partinfo): Removed.
35211
35212 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
35213 (normal_mod_SOURCES): Likewise.
35214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35215 (normal_mod_SOURCES): Likewise.
35216
35217 * commands/ls.c (grub_ls_list_disks): Use
35218 grub_normal_print_device_info instead of grub_print_partinfo. Free
35219 PNAME.
35220 (grub_ls_list_files): Use grub_normal_print_device_info instead of
35221 duplicating the code.
35222
35223 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35224
35225 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
35226 follow GCS more precisely.
35227 * commands/i386/pc/vbe_test.c: Likewise.
35228 * include/grub/i386/pc/vbe.h: Likewise.
35229 * term/i386/pc/vesafb.c: Likewise.
35230 * video/i386/pc/vbe.c: Likewise.
35231
35232 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35233
35234 * DISTLIST: Added term/i386/pc/vesafb.c
35235 DISTLIST: Added video/i386/pc/vbe.c
35236 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
35237 DISTLIST: Added commands/i386/pc/vbe_test.c.
35238 * commands/i386/pc/vbe_list_modes.c: New file.
35239 * commands/i386/pc/vbe_test.c: Likewise.
35240 * term/i386/pc/vesafb.c: Likewise.
35241 * video/i386/pc/vbe.c: Likewise.
35242 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
35243 (grub_vbe_probe) Added prototype.
35244 (grub_vbe_set_video_mode) Likewise.
35245 (grub_vbe_get_video_mode) Likewise.
35246 (grub_vbe_get_video_mode_info) Likewise.
35247 (grub_vbe_set_pixel_rgb) Likewise.
35248 (grub_vbe_set_pixel_index) Likewise.
35249 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
35250 (pkgdata_MODULES): Added vesafb.mod.
35251 (pkgdata_MODULES): Added vbe_list_modes.mod.
35252 (pkgdata_MODULES): Added vbe_test.mod.
35253 (vbe_mod_SOURCES): Added.
35254 (vbe_mod_CFLAGS): Likewise.
35255 (vesafb_mod_SOURCES): Likewise.
35256 (vesafb_mod_CFLAGS): Likewise.
35257 (vbe_list_modes_mod_SOURCES): Likewise.
35258 (vbe_list_modes_mod_CFLAGS): Likewise.
35259 (vbe_test_mod_SOURCES): Likewise.
35260 (vbe_test_mod_CFLAGS): Likewise.
35261
35262 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
35263
35264 * normal/command.c (grub_command_execute): If INTERACTIVE is
35265 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
35266 CMDLINE. Disable the pager if INTERACTIVE is true.
35267 All callers are changed.
35268
35269 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
35270 before reading a config file.
35271 * normal/main.c (read_config_file): Even if a command is not
35272 found, register it if it is within an entry.
35273
35274 * util/grub-emu.c: Include sys/types.h and unistd.h.
35275 (options): Added --hold.
35276 (struct arguments): Added a new member "hold".
35277 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
35278 missing.
35279 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
35280 cleared by a debugger, if it is not zero.
35281
35282 * include/grub/normal.h (grub_command_execute): Add an argument
35283 INTERACTIVE.
35284
35285 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
35286
35287 * DISTLIST: Added include/grub/i386/pc/vbe.h.
35288
35289 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
35290
35291 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
35292 program with another one, because the old one didn't detect a bug
35293 in gcc-3.4. Always use regparm 2, because the new test is still
35294 not enough for gcc-4.0. Someone must investigate a simple test
35295 case which detects a bug in gcc-4.0.
35296
35297 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
35298
35299 * DISTLIST: Added normal/completion.c.
35300
35301 * normal/completion.c: New file.
35302
35303 * term/i386/pc/console.c (grub_console_getwh): New function.
35304 (grub_console_term): Assign grub_console_getwh to getwh.
35305
35306 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
35307 function is defined in normal/completion.c as
35308 grub_normal_do_completion.
35309 (grub_cmdline_get): Use grub_normal_do_completion instead of
35310 grub_tab_complete.
35311
35312 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
35313 returns non-zero, otherwise return 0.
35314 (grub_partition_iterate): First, probe the partition map. Then,
35315 call ITERATE only for this partition map.
35316
35317 * kern/misc.c (grub_strncmp): Rewritten.
35318
35319 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
35320 returns non-zero. Otherwise return 0.
35321
35322 * include/grub/partition.h (grub_partition_map_iterate): Return
35323 int instead of void.
35324
35325 * include/grub/normal.h (grub_normal_do_completion): New prototype.
35326
35327 * include/grub/misc.h (grub_strncmp): Change the type of N to
35328 grub_size_t.
35329
35330 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
35331 of void.
35332
35333 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
35334 unsigned explicitly before comparing it with I.
35335
35336 * kern/main.c (grub_env_write_root): Add the attribute unused into
35337 VAR.
35338
35339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35340 normal/completion.c.
35341 (normal_mod_SOURCES): Likewise.
35342 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35343 (normal_mod_SOURCES): Likewise.
35344
35345 * normal/command.c (grub_iterate_commands): If ITERATE returns
35346 non-zero, return one immediately.
35347
35348 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
35349
35350 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
35351 * kern/i386/pc/startup.S: Updated Global Descriptor table's
35352 descriptions.
35353 (grub_vbe_get_controller_info): New function.
35354 (grub_vbe_get_mode_info): Likewise.
35355 (grub_vbe_set_mode): Likewise.
35356 (grub_vbe_get_mode): Likewise.
35357 (grub_vbe_set_memory_window): Likewise.
35358 (grub_vbe_get_memory_window): Likewise.
35359 (grub_vbe_set_scanline_length): Likewise.
35360 (grub_vbe_get_scanline_length): Likewise.
35361 (grub_vbe_set_display_start): Likewise.
35362 (grub_vbe_get_display_start): Likewise.
35363 (grub_vbe_set_palette_data): Likewise.
35364 * include/grub/i386/pc/vbe.h: New file.
35365
35366 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35367
35368 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35369 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
35370 * DISTLIST: Likewise.
35371 * kern/ieee1275/of.c: Moved to ...
35372 * kern/ieee1275/ieee1275.c: ... here.
35373
35374 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35375
35376 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
35377 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
35378 Pass 0 as `end' parameter to grub_strtoul().
35379
35380 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35381
35382 * include/grub/powerpc/ieee1275/console.h: Do not include
35383 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
35384 ifdef.
35385 (grub_console_cur_color): Remove i386-specific prototype.
35386 (grub_console_real_putchar): Likewise.
35387 (grub_console_checkkey): Likewise.
35388 (grub_console_getkey): Likewise.
35389 (grub_console_getxy): Likewise.
35390 (grub_console_gotoxy): Likewise.
35391 (grub_console_cls): Likewise.
35392 (grub_console_setcursor): Likewise.
35393 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
35394 Include <grub/machine/console.h>.
35395 * term/ieee1275/ofconsole.c: Likewise.
35396
35397 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
35398
35399 * Makefile.in (LIBLZO): New variable.
35400
35401 * configure.ac: Check for LZO version 2.
35402
35403 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
35404 lzo/lzo1x.h instead of lzo1x.h.
35405
35406 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
35407 of -llzo.
35408
35409 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
35410 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
35411
35412 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
35413 copying the data from PARTITION to P.
35414
35415 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35416
35417 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
35418 negative, unload the module.
35419
35420 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
35421 map is "pc_partition_map" but not "pc".
35422 (usage): Fix the description. The options are --boot-image and
35423 --core-image but not --boot-file or --core-file.
35424 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
35425 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
35426 DEFAULT_DIRECTORY.
35427
35428 * util/i386/pc/grub-install.in: Do not specify --boot-file or
35429 --core-file. Specify INSTALL_DEVICE as an argument.
35430
35431 * util/console.c: Include config.h.
35432 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
35433 [HAVE_NCURSES_H]: Include ncurses.h.
35434 [HAVE_CURSES_H]: Include curses.h.
35435 [!A_NORMAL] (A_NORMAL): Defined as zero.
35436 [!A_STANDOUT] (A_STANDOUT): Likewise.
35437
35438 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
35439 -lncurses.
35440 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
35441
35442 * configure.ac: Check for curses libraries and headers.
35443
35444 * Makefile.in (LIBCURSES): New variable.
35445
35446 * genmk.rb (Script::rule): Set the executable bits.
35447
35448 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
35449 name of the PC partition map is "pc_partition_map" but not "pc".
35450
35451 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35452
35453 * util/i386/pc/grub-install.in (grub_probefs): New variable.
35454 (modules): Likewise.
35455 (usage): Added descriptions for --modules and --grub-probefs.
35456 Handle --modules and --grub-probefs. Save the arguments in MODULES
35457 and GRUB_PROBEFS, respectively.
35458 Auto-detect a filesystem module against GRUBDIR. If the result is
35459 empty and modules are not specified explicitly, abort the
35460 installation. Add the result to MODULES.
35461
35462 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
35463 disk/powerpc/ieee1275/ofdisk.c,
35464 include/grub/powerpc/ieee1275/init.h and
35465 term/powerpc/ieee1275/ofconsole.c.
35466 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
35467 term/ieee1275/ofconsole.c.
35468
35469 * include/grub/powerpc/ieee1275/console.h: Resurrected.
35470
35471 * COPYING: Upgraded to the latest version. Only the address of the
35472 FSF office has changed.
35473
35474 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35475
35476 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35477 kern/ieee1275.c with kern/ieee1275/of.c.
35478
35479 * kern/ieee1275.c: Moved to ...
35480 * kern/ieee1275/of.c: ... here.
35481
35482 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
35483
35484 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
35485 readability.
35486
35487 * config.guess: Updated to the latest version from gnulib.
35488 * config.sub: Likewise.
35489 * install.sh: Likewise.
35490 * mkinstalldirs: Likewise.
35491
35492 * include/grub/console.h: Removed. This file is arch-specific. Do
35493 not put this in include/grub.
35494
35495 * include/grub/i386/pc/console.h: Resurrected.
35496
35497 * util/console.c: Include grub/machine/console.h instead of
35498 grub/console.h.
35499 * util/grub-emu.c: Likewise.
35500
35501 2005-08-04 Marco Gerards <metgerards@student.han.nl>
35502
35503 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
35504 hardcoded value.
35505
35506 From Vincent Pelletier <subdino2004@yahoo.fr>
35507 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
35508 Redefined to use grub_getwh.
35509 (grub_term): New member named getwh.
35510 (grub_getwh): New prototype.
35511 * kern/term.c (grub_getwh): New function.
35512 * term/i386/pc/console.c (grub_console_getwh): New function.
35513 (grub_console_term): New member `getwh'.
35514 * term/i386/pc/vga.c (grub_vga_getwh): New function.
35515 (grub_vga_term): New member `getwh'.
35516 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
35517 grub_ssize_t.
35518 (grub_ofconsole_getw): New function.
35519 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
35520 (grub_ofconsole_term): New field named getwh and new initial
35521 value.
35522
35523 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
35524
35525 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
35526 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
35527 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
35528 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
35529 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
35530 of <grub/machine/ieee1275.h>.
35531 * commands/ieee1275/reboot.c: Likewise.
35532 * boot/powerpc/ieee1275/ieee1275.c: Move ...
35533 * kern/ieee1275.c: ... to here. All users updated. Change all
35534 parameter structs to use new type `grub_ieee1275_cell_t'.
35535 * term/powerpc/ieee1275/ofconsole.c: Move ...
35536 * term/ieee1275/ofconsole.c: ... to here. All users updated.
35537 * disk/powerpc/ieee1275/ofdisk.c: Move ...
35538 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
35539 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
35540 to return int.
35541 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
35542 Remove unused prototypes. All users updated.
35543 * include/grub/powerpc/ieee1275/console.h: Removed.
35544 * include/grub/powerpc/ieee1275/ieee1275.h: Define
35545 `grub_ieee1275_cell_t'.
35546 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
35547 Cast comparisons with -1 to the correct type.
35548 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
35549 type to match `grub_ieee1275_entry_fn'.
35550
35551 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
35552
35553 * DISTLIST: Added util/i386/pc/grub-probefs.c.
35554
35555 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
35556 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
35557 partmap/sun.c.
35558 (grub_probefs_SOURCES): New variable.
35559
35560 * util/i386/pc/grub-probefs.c: New file.
35561
35562 * util/i386/pc/grub-setup.c (main): Call
35563 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
35564 grub_hfs_init and grub_jfs_init to initialize the system. Call
35565 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
35566 grub_pc_partition_map_fini to finish the system.
35567
35568 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
35569
35570 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
35571 function.
35572 (grub_multiboot_load_elf32): Likewise.
35573 (grub_multiboot_is_elf64): Likewise.
35574 (grub_multiboot_load_elf64): Likewise.
35575 (grub_multiboot_load_elf): Likewise.
35576 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
35577 an ELF32 or ELF64 file.
35578 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
35579
35580 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
35581 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
35582 NULL before calling FS->LABEL.
35583 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
35584 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
35585 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
35586 before calling FS->LABEL.
35587
35588 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
35589
35590 * util/i386/pc/grub-install.in (datadir): New variable.
35591 (libdir): Removed.
35592 (pkgdatadir): New variable.
35593 (pkglibdir): Removed.
35594
35595 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
35596
35597 * DISTLIST: Added util/i386/pc/grub-install.in.
35598
35599 * util/i386/pc/grub-install.in: New file.
35600
35601 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
35602 (grub_install_SOURCES): Likewise.
35603
35604 * genmk.rb: Added support for scripts.
35605 (Script): New class.
35606 (scripts): New variable.
35607
35608 * Makefile.in (install-local): Install sbin_SCRIPTS by
35609 INSTALL_SCRIPT.
35610 (uninstall): Remove sbin_SCRIPTS.
35611
35612 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
35613 device, try to get a GRUB device by
35614 grub_util_biosdisk_get_grub_dev.
35615 Free DEST_DEV.
35616
35617 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
35618 description for --device-map.
35619
35620 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
35621
35622 Change the semantics of variable hooks. They now return strings
35623 instead of error values.
35624
35625 * util/i386/pc/grub-setup.c: Include grub/env.h.
35626 (setup): Use grub_device_set_root instead of grub_env_set.
35627
35628 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
35629 grub_env_get instead of grub_device_set_root and
35630 grub_device_get_root, respectively.
35631
35632 * kern/main.c (grub_env_write_root): New function.
35633 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
35634 grub_env_set instead of grub_device_set_root.
35635
35636 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
35637 many variables.
35638 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
35639 rather than calling ENV->WRITE_HOOK afterwards.
35640 (grub_env_get): Return the result of ENV->READ_HOOK rather than
35641 passing a pointer of a pointer.
35642 (grub_register_variable_hook): Change the types of "read_hook" and
35643 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
35644 respectively.
35645 Allocate the default empty string on the heap, because this string
35646 may be freed later.
35647
35648 * kern/device.c: Include grub/env.h.
35649 (grub_device_set_root): Removed.
35650 (grub_device_get_root): Likewise.
35651 (grub_device_open): Use grub_env_get instead of
35652 grub_device_get_root.
35653
35654 * include/grub/env.h (grub_env_read_hook_t): New type.
35655 (grub_env_write_hook_t): Likewise.
35656 (grub_env_var): Change the types of "read_hook" and "write_hook"
35657 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
35658 (grub_register_variable_hook): Likewise.
35659
35660 * include/grub/device.h (grub_device_set_root): Removed.
35661 (grub_device_set_root): Likewise.
35662
35663 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
35664 make sure that DIRNAME terminates with '/', so that
35665 grub_fat_find_dir will fail if PATH is not a directory.
35666
35667 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
35668 from DIRNAME.
35669 Use the qualifier auto for print_files and print_files_long.
35670 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
35671 as a regular file.
35672 Put a newline only if there is no error.
35673 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
35674 used.
35675
35676 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
35677
35678 * kern/partition.c (grub_partition_probe): Initialize PART to
35679 NULL. Otherwise, when no partition map is registered, this returns
35680 a garbage.
35681
35682 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
35683
35684 * partmap/apple.c (apple_partition_map_iterate): Check if POS
35685 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
35686 valid.
35687
35688 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
35689
35690 * commands/ls.c (grub_ls_list_disks): Print the filesystem
35691 information on each device, if it does not have partitions. Print
35692 "Device" instead of "Disk", because this function is not specific
35693 to disk devices.
35694
35695 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
35696 static to ensure that it is put on the memory rather than a
35697 register.
35698
35699 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35700
35701 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
35702 (grub_cat_init): Likewise.
35703 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
35704 (options): Likewise.
35705 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
35706 (grub_configfile_init): Likewise.
35707 * font/manager.c (GRUB_MOD_INIT): Likewise.
35708 * commands/help.c (GRUB_MOD_INIT): Likewise.
35709 (grub_help_init): Likewise.
35710 * normal/command.c (grub_command_init): Likewise.
35711 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
35712 * disk/loopback.c (grub_loop_init): Likewise.
35713 (GRUB_MOD_INIT): Likewise.
35714 * commands/ls.c (grub_ls_init): Likewise.
35715 (GRUB_MOD_INIT): Likewise.
35716 (options): Likewise.
35717 * commands/boot.c (grub_boot_init): Likewise.
35718 (GRUB_MOD_INIT): Likewise.
35719 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
35720 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
35721 (GRUB_MOD_INIT): Likewise.
35722 * commands/cmp.c (grub_cmp_init): Likewise.
35723 (GRUB_MOD_INIT): Likewise.
35724
35725 * normal/arg.c: Use <> instead of "" to include header files.
35726 (SHORT_ARG_HELP): New macro.
35727 (SHORT_ARG_USAGE): Likewise.
35728 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
35729 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
35730 descriptions.
35731 (find_short): Check if C is 'h' or 'u' explicitly.
35732 (grub_arg_show_help): Use space characters instead of tabs. Treat
35733 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
35734 are shown with --help and --usage only if they are not used for
35735 the command itself.
35736 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
35737 'h' and 'u'.
35738
35739 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
35740 const into "longarg". Change the type of "shortarg" to int.
35741
35742 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35743
35744 * boot/i386/pc/boot.S (boot_drive_check): New label.
35745
35746 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
35747 macro.
35748
35749 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
35750 which do not pass a boot drive correctly. Copied from GRUB Legacy.
35751
35752 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35753
35754 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
35755 When turning off Gate A20, skip the check and return immediately,
35756 because this is not fatal usually.
35757
35758 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
35759
35760 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
35761 be 0x7C00 instead of 0x8000.
35762
35763 * boot/i386/pc/pxeboot.S: Rewritten.
35764
35765 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
35766 EXT_C.
35767 (gate_a20_check_state): Read a byte from 0x108000. Invert the
35768 result.
35769
35770 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
35771
35772 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
35773 robustness. This routine now supports a BIOS call and System
35774 Control Port A to modify the gate A20.
35775
35776 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35777 Increased to 0x440.
35778
35779 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
35780
35781 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
35782 device path and resulting ihandle.
35783 (grub_ofdisk_close): dprintf the ihandle being closed.
35784 (grub_ofdisk_read): dprintf function parameters.
35785 * kern/mm.c (grub_mm_init_region): Likewise.
35786 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
35787 (grub_linux_boot): dprintf the Linux entry point, initrd address and
35788 size, and boot arguments.
35789 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
35790 before loading into memory.
35791 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
35792 before loading into memory.
35793
35794 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
35795
35796 * kern/mm.c: Added much documentation.
35797 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
35798 8, set to 5 instead of 8.
35799
35800 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
35801
35802 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
35803
35804 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
35805 (grub_mkdevicemap_SOURCES): New variable.
35806
35807 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
35808 lib/device.c of GRUB Legacy.
35809
35810 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
35811
35812 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
35813 instead of PATH is NULL.
35814
35815 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
35816
35817 * commands/cmp.c (BUFFER_SIZE): New macro.
35818 (grub_cmd_cmp): Close the right file at the right time. Compare
35819 only data just read. Don't report files of different size as
35820 identical. Dynamically allocate buffers. Move variable
35821 declarations at the beginning of function.
35822
35823 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
35824
35825 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
35826 reverse.
35827
35828 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
35829
35830 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
35831 when backspace is pressed at beginning of line.
35832
35833 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
35834
35835 * DISTLIST: Added genfslist.sh.
35836
35837 * normal/main.c (fs_module_list): New variable.
35838 (autoload_fs_module): New function.
35839 (read_fs_list): Likewise.
35840 (grub_normal_execute): Call read_fs_list.
35841
35842 * kern/fs.c (grub_fs_autoload_hook): New variable.
35843 (grub_fs_probe): Added support for auto-loading.
35844
35845 * include/grub/normal.h (struct grub_fs_module_list): New struct.
35846 (grub_fs_module_list_t): New type.
35847
35848 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
35849 (grub_fs_autoload_hook): New prototype.
35850
35851 * genfslist.sh: New file.
35852
35853 * genmk.rb: Added a rule to generate a filesystem list.
35854
35855 2005-06-30 Marco Gerards <metgerards@student.han.nl>
35856
35857 * configure.ac: Fix the test for cross-compiling.
35858
35859 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
35860 define GRUB_UTIL anymore.
35861
35862 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
35863 so this function works on other systems than just big endian.
35864 (load_modules): Likewise.
35865 (add_segments): Likewise.
35866
35867 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
35868
35869 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
35870 contains `l' modifier, get a long from va_arg().
35871
35872 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
35873
35874 * kern/mm.c (grub_free): If the next free block which is being
35875 merged is the first free block, set the first block to the block
35876 being freed.
35877 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
35878
35879 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35880
35881 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
35882 `grub_ieee1275_chosen'.
35883
35884 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35885
35886 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
35887 (grub_ieee1275_chosen): New variable.
35888 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
35889 `chosen'.
35890 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
35891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35892 Rename first argument to `phandle' for consistency.
35893 (grub_ieee1275_get_property_length): Likewise.
35894 (grub_ieee1275_next_property): Likewise. Change type of first argument
35895 to grub_ieee1275_phandle_t.
35896 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
35897 Move export next to declaration.
35898 (grub_ieee1275_chosen): New variable.
35899 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
35900 Correct cosmetic typo.
35901 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
35902 `grub_ieee1275_chosen'.
35903 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
35904 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
35905 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
35906 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
35907 `grub_ieee1275_chosen'.
35908
35909 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
35910
35911 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
35912 /chosen/bootargs.
35913 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
35914 /chosen/bootargs as "variable=value" pairs.
35915
35916 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
35917
35918 * include/grub/misc.h (grub_dprintf): New macro.
35919 (grub_real_dprintf): New prototype.
35920 (grub_strword): Likewise.
35921 (grub_iswordseparator): Likewise.
35922 * kern/misc.c (grub_real_dprintf): New function.
35923 (grub_strword): Likewise.
35924 (grub_iswordseparator): Likewise.
35925
35926 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
35927
35928 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
35929 (roundup): Remove macro.
35930 (grub_ieee1275_flags): Make static.
35931 (grub_ieee1275_realmode): Remove.
35932 (grub_ieee1275_test_flag): New function.
35933 (grub_ieee1275_set_flag): Likewise.
35934 (find_options): Rename to `grub_ieee1275_find_options'; update
35935 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
35936 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
35937 (cmain): New prototype.
35938 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
35939 `grub_ieee1275_flags' directly.
35940 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
35941 machine/biosdisk.h.
35942 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
35943 Don't include grub/machine/init.h.
35944 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
35945 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
35946 Remove prototype.
35947 (grub_ieee1275_realmode): Likewise.
35948 (grub_ieee1275_flag): New enum.
35949 (grub_ieee1275_test_flag): New prototype.
35950 (grub_ieee1275_set_flag): New prototype.
35951 * include/grub/powerpc/ieee1275/init.h: Remove file.
35952 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
35953 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
35954 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
35955 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
35956 comment.
35957 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
35958 `grub_ieee1275_test_flag'.
35959 (grub_ieee1275_encode_devname): Likewise.
35960
35961 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
35962
35963 * include/grub/powerpc/ieee1275/ieee1275.h
35964 (grub_ieee1275_encode_devname): New prototype.
35965 (grub_ieee1275_get_filename): Likewise.
35966 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
35967 function.
35968 (grub_set_prefix): Likewise.
35969 (grub_machine_init): Call grub_set_prefix.
35970 * kern/powerpc/ieee1275/openfw.c: Fix typos.
35971 (grub_parse_type): New enum.
35972 (grub_ieee1275_get_devargs): New function.
35973 (grub_ieee1275_get_devname): Likewise.
35974 (grub_ieee1275_parse_args): Likewise.
35975 (grub_ieee1275_get_filename): Likewise.
35976 (grub_ieee1275_encode_devname): Likewise.
35977
35978 2005-03-30 Marco Gerards <metgerards@student.han.nl>
35979
35980 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
35981 `grub_loader_unset'.
35982
35983 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
35984
35985 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
35986 instead of grub_ieee1275_interpret.
35987 (grub_halt_init): New function.
35988 (grub_halt_fini): Likewise.
35989 (GRUB_MOD_INIT): Correct message grammar.
35990 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
35991 instead of grub_ieee1275_interpret.
35992 (grub_reboot_init): New function.
35993 (grub_reboot_fini): Likewise.
35994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
35995 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
35996 util/i386/pc/misc.c with commands/ieee1275/halt.c,
35997 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
35998 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
35999 function.
36000 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
36001 Add prototype.
36002 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
36003 prototype.
36004 (grub_halt): Likewise.
36005 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
36006 (cmain): Remove __attribute__((unused)).
36007 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
36008 (grub_heap_len): Likewise.
36009 (grub_machine_fini): New function.
36010 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
36011 (grub_halt): Likewise.
36012 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
36013 function.
36014 * util/powerpc/ieee1275/misc.c: New file.
36015
36016 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36017
36018 * DISTLIST: New file.
36019 * gendistlist.sh: Likewise.
36020
36021 * Makefile.in (COMMON_DISTFILES): Removed.
36022 (BOOT_DISTFILES): Likewise.
36023 (CONF_DISTFILES): Likewise.
36024 (DISK_DISTFILES): Likewise.
36025 (FS_DISTFILES): Likewise.
36026 (INCLUDE_DISTFILES): Likewise.
36027 (KERN_DISTFILES): Likewise.
36028 (LOADER_DISTFILES): Likewise.
36029 (TERM_DISTFILES): Likewise.
36030 (UTIL_DISTFILES): Likewise.
36031 (DISTFILES): Likewise.
36032 (uninstall): Uninstall files in $(pkgdata_DATA).
36033 (DISTLIST): New target.
36034 (distdir): Use the contents of the file DISTLIST to get a list of
36035 distributed files.
36036
36037 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36038
36039 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
36040 descriptor. This is ported from GRUB Legacy.
36041
36042 * gencmdlist.sh: Added an extra semicolon to make it work with
36043 old sed versions. Reported by Robert Bihlmeyer
36044 <robbe@orcus.priv.at>.
36045
36046 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
36047
36048 Automatic loading of commands is supported.
36049
36050 * normal/main.c (read_command_list): New function.
36051 (grub_normal_execute): Call read_command_list.
36052
36053 * normal/command.c (grub_register_command): Return zero or CMD.
36054 Allocate CMD->NAME from the heap.
36055 Initialize CMD->MODULE_NAME to zero.
36056 Find the same name as well. If the same command is found and it is
36057 a dummy command, overwrite members. If it is not a dummy command,
36058 return zero.
36059 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
36060 (grub_command_find): If a dummy command is found, load a module
36061 and retry to find a command only once.
36062
36063 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
36064 make sure that each command is loaded.
36065
36066 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
36067 macro.
36068 (struct grub_command): Remove const from the member `name'.
36069 Add a new member `module_name'.
36070 (grub_register_command): Return grub_command_t.
36071
36072 * commands/help.c (grub_cmd_help): Call grub_command_find to make
36073 sure that each command is loaded.
36074
36075 * genmk.rb (PModule::rule): Specify a module name without the
36076 suffix ".mod" to gencmdlist.sh.
36077
36078 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36079
36080 * gencmdlist.sh: New file.
36081
36082 * genmk.rb (PModule::rule): Generate a rule for a command list.
36083 Clean command.lst.
36084 Generate command.lst from $(COMMANDFILES).
36085
36086 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
36087 (DATA): Added $(pkgdata_DATA).
36088 (install-local): Install files in $(pkgdata_DATA).
36089
36090 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36091
36092 * term/i386/pc/vga.c (debug_command): Removed.
36093 (GRUB_MOD_INIT): Do not register the command "debug".
36094
36095 From Hollis Blanchard:
36096 * commands/configfile.c: New file.
36097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36098 commands/configfile.c.
36099 (pkgdata_MODULES): Added configfile.mod.
36100 (configfile_mod_SOURCES): New variable.
36101 (configfile_mod_CFLAGS): Likewise.
36102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36103 commands/configfile.c.
36104 (pkgdata_MODULES): Added configfile.mod.
36105 (configfile_mod_SOURCES): New variable.
36106 (configfile_mod_CFLAGS): Likewise.
36107 * util/grub-emu.c (main): Call grub_configfile_init and
36108 grub_configfile_fini.
36109 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
36110 prototype.
36111 [GRUB_UTIL] (grub_configfile_fini): Likewise.
36112
36113 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36114
36115 * normal/arg.c (grub_arg_show_help): Do not show the bug report
36116 address.
36117
36118 * commands/help.c (grub_cmd_help): Do not print newlines after
36119 the last command in print_command_help.
36120
36121 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36122
36123 * commands/default.h: New file.
36124 * commands/timeout.h: Likewise.
36125 * normal/context.c: Likewise.
36126
36127 * util/misc.c: Do not include sys/times.h.
36128 Include sys/time.h and grub/machine/time.h.
36129 (grub_get_rtc): Rewritten with gettimeofday.
36130
36131 * util/grub-emu.c (main): Call grub_default_init and
36132 grub_timeout_init before grub_normal_init, and call
36133 grub_timeout_fini and grub_default_fini after grub_main.
36134
36135 * util/console.c (grub_ncurses_checkkey): Return the read
36136 character or -1.
36137
36138 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
36139 timeouts.
36140
36141 * normal/main.c (read_config_file): Push MENU. If this fails,
36142 print an error and wait for a user input.
36143 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
36144 If a menu is empty or an error occurs, pop MENU.
36145 (grub_normal_execute): Pop and free MENU after grub_menu_run
36146 returns.
36147
36148 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
36149
36150 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
36151 include time.h.
36152 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36153 without GRUB_UTIL.
36154 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
36155 time.h.
36156 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36157 without GRUB_UTIL.
36158
36159 * include/grub/normal.h (struct grub_menu_list): New struct.
36160 (grub_menu_list_t): New type.
36161 (struct grub_context): New struct.
36162 (grub_context_t): New type.
36163 (grub_register_command): Got rid of EXPORT_FUNC.
36164 (grub_unregister_command): Likewise.
36165 (grub_context_get): New prototype.
36166 (grub_context_get_current_menu): Likewise.
36167 (grub_context_push_menu): Likewise.
36168 (grub_context_pop_menu): Likewise.
36169 [GRUB_UTIL] (grub_default_init): Likewise.
36170 [GRUB_UTIL] (grub_default_fini): Likewise.
36171 [GRUB_UTIL] (grub_timeout_init): Likewise.
36172 [GRUB_UTIL] (grub_timeout_fini): Likewise.
36173
36174 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
36175 commands/timeout.c and normal/context.c.
36176 (pkgdata_MODULES): Added default.mod and timeout.mod.
36177 (normal_mod_SOURCES): Added normal/context.c.
36178 (default_mod_SOURCES): New variable.
36179 (default_mod_CFLAGS): Likewise.
36180 (timeout_mod_SOURCES): Likewise.
36181 (timeout_mod_CFLAGS): Likewise.
36182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
36183 conf/i386-pc.rmk.
36184 (pkgdata_MODULES): Added default.mod and timeout.mod.
36185 (normal_mod_SOURCES): Added normal/context.c.
36186 (default_mod_SOURCES): New variable.
36187 (default_mod_CFLAGS): Likewise.
36188 (timeout_mod_SOURCES): Likewise.
36189 (timeout_mod_CFLAGS): Likewise.
36190
36191 * Makefile.in (all-local): Added $(MKFILES).
36192
36193 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
36194
36195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
36196 (grub_emu_SOURCES): Likewise.
36197 (pkgdata_MODULES): Add `sun.mod'.
36198 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36200 `partmap/sun.c'.
36201 (pkgdata_MODULES): Add `sun.mod'.
36202 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36203 * include/grub/partition.h (grub_sun_partition_map_init): New
36204 prototype.
36205 (grub_sun_partition_map_fini): Likewise.
36206 * partmap/sun.c: New file.
36207 * util/grub-emu.c (main): Initialize and de-initialize the sun
36208 partitionmap support.
36209
36210 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
36211
36212 This implements an Emacs-like menu entry editor.
36213
36214 * normal/menu_entry.c: New file.
36215
36216 * util/console.c (grub_ncurses_putchar): Translate some Unicode
36217 characters to ASCII.
36218 (saved_char): New variable.
36219 (grub_ncurses_checkkey): Rewritten completely.
36220 (grub_ncurses_getkey): Likewise.
36221 (grub_ncurses_init): Call raw instead of cbreak.
36222
36223 * normal/menu.c (print_entry): Do not put a space.
36224 (init_page): Renamed to ...
36225 (grub_menu_init_page): ... this. All callers changed.
36226 (edit_menu_entry): Removed.
36227 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
36228
36229 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
36230
36231 * kern/misc.c (grub_vprintf): Call grub_refresh.
36232
36233 * normal/menu.c (DISP_LEFT): Renamed to ...
36234 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
36235 * normal/menu.c (DISP_UP): Renamed to ...
36236 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
36237 * normal/menu.c (DISP_RIGHT): Renamed to ...
36238 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
36239 * normal/menu.c (DISP_DOWN): Renamed to ...
36240 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
36241 * normal/menu.c (DISP_HLINE): Renamed to ...
36242 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
36243 * normal/menu.c (DISP_VLINE): Renamed to ...
36244 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
36245 * normal/menu.c (DISP_UL): Renamed to ...
36246 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
36247 * normal/menu.c (DISP_UR): Renamed to ...
36248 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
36249 * normal/menu.c (DISP_LL): Renamed to ...
36250 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
36251 * normal/menu.c (DISP_LR): Renamed to ...
36252 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
36253 * normal/menu.c (TERM_WIDTH): Renamed to ...
36254 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
36255 * normal/menu.c (TERM_HEIGHT): Renamed to ...
36256 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
36257 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
36258 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
36259 * normal/menu.c (TERM_MARGIN): Renamed to ...
36260 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
36261 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
36262 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
36263 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
36264 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
36265 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
36266 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
36267 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
36268 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
36269 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
36270 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
36271 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
36272 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
36273 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
36274 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
36275 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
36276 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
36277 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
36278 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
36279 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
36280 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
36281 All callers changed.
36282
36283 * include/grub/normal.h: New prototype.
36284
36285 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36286 normal/menu_entry.c.
36287 (normal_mod_SOURCES): Likewise.
36288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36289 (normal_mod_SOURCES): Likewise.
36290
36291 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
36292
36293 * include/grub/normal.h (grub_halt_init): New prototype.
36294 (grub_halt_fini): Likewise.
36295 (grub_reboot_init): Likewise.
36296 (grub_reboot_fini): Likewise.
36297
36298 * util/grub-emu.c: Include signal.h.
36299 (main_env): New global variable.
36300 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
36301 catch C-c.
36302 (grub_machine_fini): New function.
36303 (main): Call grub_halt_init and grub_reboot_init before
36304 grub_main, and grub_reboot_fini and grub_halt_fini after it.
36305 Call setjmp with MAIN_ENV to go back afterwards.
36306 Call grub_machine_fini right before return.
36307
36308 * include/grub/util/misc.h: Include setjmp.h.
36309 (main_env): New prototype.
36310
36311 * include/grub/kernel.h (grub_machine_fini): New prototype.
36312 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
36313 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
36314
36315 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
36316 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
36317 * term/i386/pc/console.c (grub_console_fini): Likewise.
36318
36319 * util/i386/pc/misc.c: New file.
36320
36321 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36322 util/i386/pc/misc.c, commands/i386/pc/halt.c and
36323 commands/i386/pc/reboot.c.
36324
36325 2005-02-14 Guillem Jover <guillem@hadrons.org>
36326
36327 * include/grub/dl.h (grub_dl_check_header): New prototype.
36328 (grub_arch_dl_check_header): Change return type to grub_err_t,
36329 remove size parameter and export function. Update all callers.
36330 * kern/dl.c (grub_dl_check_header): New function.
36331 (grub_dl_load_core): Use `grub_dl_check_header' instead of
36332 `grub_arch_dl_check_header'. Check ELF type. Check if sections
36333 are inside the core.
36334 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
36335 independent ELF header checks.
36336 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36337 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
36338 `grub_dl_check_header' instead of explicit checks. Check for the
36339 ELF type.
36340 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
36341 `grub_dl_check_header' instead of explicit checks. Remove arch
36342 specific ELF header checks.
36343
36344 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
36345 argument SIZE.
36346
36347 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
36348
36349 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
36350 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
36351
36352 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
36353
36354 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
36355 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
36356 (part_map_iterate): Clear `grub_errno' and return 0 if
36357 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
36358 * partmap/amiga.c (amiga_partition_map_iterate): Return
36359 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
36360 * partmap/apple.c (apple_partition_map_iterate): Likewise.
36361
36362 2005-02-01 Guillem Jover <guillem@hadrons.org>
36363
36364 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
36365 help info.
36366
36367 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36368
36369 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
36370 Removed prototype.
36371 (grub_rescue_cmd_linux): New prototype.
36372 (grub_rescue_cmd_initrd): Likewise.
36373 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
36374 `bi_rec'.
36375 (grub_linux_release_mem): Release the memory for the initrd.
36376 (grub_load_linux): Renamed from this...
36377 (grub_rescue_cmd_linux): ...To this. Changed all callers.
36378 Changed `entry' not to be static. Loop over memory regions to
36379 find another one when the default fails.
36380 (grub_rescue_cmd_initrd): New function.
36381 (grub_linux_init): Remove function.
36382 (grub_linux_fini): Likewise.
36383 (GRUB_MOD_INIT): Register `initrd'.
36384 (GRUB_MOD_FINI): Unregister `initrd'.
36385 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
36386 Function removed.
36387 (grub_linux_normal_fini): Likewise.
36388 (GRUB_MOD_INIT): Register `initrd'.
36389 (GRUB_MOD_FINI): Unregister `initrd'.
36390
36391 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36392
36393 * commands/help.c: New file.
36394 * normal/arg.c (show_help): Renamed to...
36395 (grub_arg_show_help): ... this.
36396 * commands/i386/pc/halt.c: New file.
36397 * commands/i386/pc/reboot.c: Likewise.
36398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
36399 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
36400 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
36401 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
36402 variables.
36403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36404 `commands/help.c'.
36405 (pkgdata_MODULES): Add `help.mod'.
36406 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
36407 * grub/i386/pc/init.h (grub_reboot): New prototype.
36408 (grub_halt): Likewise.
36409 * include/grub/normal.h (grub_arg_show_help): New prototype.
36410 (grub_help_init): Likewise.
36411 (grub_help_fini): Likewise.
36412 * util/grub-emu.c (main): Initialize and deinitialize the help
36413 command.
36414
36415 * normal/cmdline.c (grub_cmdline_get): Doc fix.
36416
36417 * normal/command.c (grub_command_init): Fixed the description of
36418 the `set' and `unset' commands.
36419
36420 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36421
36422 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
36423 function.
36424 * commands/ieee1275/halt.c: New file.
36425 * commands/ieee1275/reboot.c: Likewise.
36426 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
36427 `__attribute__ ((unused))'. Some GCS related fixed.
36428 (grub_suspend_init) [GRUB_UTIL]: Function removed.
36429 (grub_suspend_fini): Likewise.
36430 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
36431 and `halt.mod'.
36432 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
36433 (halt_mod_CFLAGS): New variables.
36434 * include/grub/powerpc/ieee1275/ieee1275.h
36435 (grub_ieee1275_interpret): New prototype.
36436
36437 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
36438
36439 * include/grub/misc.h (memmove): New prototype.
36440 (memcpy): Likewise.
36441
36442 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
36443
36444 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
36445 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
36446
36447 2005-01-22 Marco Gerards <metgerards@student.han.nl>
36448
36449 * kern/misc.c (grub_strndup): Function rewritten.
36450
36451 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
36452
36453 * normal/menu.c (TERM_WIDTH): Macro redefined.
36454 (TERM_TOP_BORDER_Y): Likewise.
36455 (draw_border): Replaced while-loop by a for-loop. Make the number
36456 of lines consistent with the number of lines displayed in
36457 print_entries. Added a margin below the rectangle.
36458 (print_entry): Make the entry fit in the rectangle.
36459 (print_entries): Display the scroll arrows next to the right
36460 border.
36461
36462 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36463
36464 * fs/minix.c (grub_minix_find_file): Reserve more space for
36465 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
36466 `grub_strncpy' to copy `path' into it.
36467
36468 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36469
36470 Add the loopback device, a device via which files can be accessed
36471 as devices.
36472
36473 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
36474 (pkgdata_MODULES): Add loopback.mod.
36475 (loopback_mod_SOURCES): New variable.
36476 (loopback_mod_CFLAGS): Likewise.
36477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36478 `disk/loopback.c'.
36479 (pkgdata_MODULES): Add loopback.mod.
36480 (loopback_mod_SOURCES): New variable.
36481 (loopback_mod_CFLAGS): Likewise.
36482 * disk/loopback.c: new file.
36483 * include/grub/normal.h (grub_loop_init): New prototype.
36484 (grub_loop_fini): New prototype.
36485 * util/grub-emu.c (main): Initialize and de-initialize loopback
36486 support.
36487 * include/grub/disk.h (grub_disk_dev_id): Add
36488 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
36489
36490 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
36491
36492 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
36493 function.
36494 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
36495 (suspend_mod_SOURCES): New variable.
36496 (suspend_mod_CFLAGS): Likewise.
36497 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
36498 New prototype.
36499 * commands/ieee1275/suspend.c: New file.
36500
36501 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36502
36503 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
36504 ((unused))' to `__attribute__ ((used))'.
36505 (GRUB_MOD_FINI): Likewise.
36506 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
36507 * genmk.rb (PModule): Assign space to common symbols when linking
36508 modules.
36509
36510 2005-01-20 Marco Gerards <metgerards@student.han.nl>
36511
36512 * include/grub/mm.h (grub_mm_init_region): Change the type of the
36513 `unsigned' arguments to `grub_size_t'.
36514 (grub_malloc): Likewise.
36515 (grub_realloc): Likewise.
36516 (grub_memalign): Likewise.
36517 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
36518 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36519 * util/misc.c (grub_malloc): Likewise.
36520 (grub_realloc): Likewise.
36521 * kern/mm.c (get_header_from_pointer): Change the casts to
36522 `unsigned' into a cast to `grub_size_t'.
36523
36524 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
36525 point to `currnode' when `currnode' is changed.
36526
36527 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
36528 Schottelius <nico-linux@schottelius.org>.
36529
36530 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
36531
36532 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
36533 (note_path): Remove variable.
36534 (GRUB_IEEE1275_NOTE_NAME): New macro.
36535 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
36536 (grub_ieee1275_note_hdr): New structure.
36537 (grub_ieee1275_note_desc): Likewise.
36538 (grub_ieee1275_note): Likewise.
36539 (load_note): Remove `dir' argument. All callers updated. Remove
36540 `note_img' and `path'. Do not load a file from `note_path'.
36541 Initialize a struct grub_ieee1275_note and write that to `out'.
36542 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
36543
36544 2005-01-05 Marco Gerards <metgerards@student.han.nl>
36545
36546 * util/misc.c (grub_util_read_image): Revert last change. It
36547 called `grub_util_read_at', which seeks from the beginning of the
36548 file.
36549
36550 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
36551
36552 * TODO: Add note about endianness in grub-mkimage.
36553 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
36554 section.
36555 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
36556 (grub_mkimage_SOURCES): New target.
36557 * include/grub/kernel.h (grub_start_addr): Remove variable.
36558 (grub_end_addr): Likewise.
36559 (grub_total_module_size): Likewise.
36560 (grub_kernel_image_size): Likewise.
36561 (GRUB_MODULE_MAGIC): New constant.
36562 (grub_module_info): New structure.
36563 (grub_arch_modules_addr): New prototype.
36564 (grub_get_end_addr): Remove prototype.
36565 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
36566 * include/grub/powerpc/ieee1275/kernel.h: New file.
36567 * include/grub/util/misc.h (grub_util_get_fp_size): New
36568 prototype.
36569 (grub_util_read_at): Likewise.
36570 (grub_util_write_image_at): Likewise.
36571 * kern/main.c (grub_get_end_addr): Remove function.
36572 (grub_load_modules): Call grub_arch_modules_addr instead of using
36573 grub_end_addr. Look for a grub_module_info struct in memory. Use
36574 the grub_module_info fields instead of calling grub_get_end_addr
36575 as loop conditions. Move grub_add_unused_region code here.
36576 (grub_add_unused_region): Remove function.
36577 * kern/i386/pc/init.c: Include grub/cache.h.
36578 (grub_machine_init): Remove call to grub_get_end_addr. Remove
36579 one call to add_mem_region.
36580 (grub_arch_modules_addr): New function.
36581 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
36582 (grub_total_module_size): Likewise.
36583 Include grub/machine/kernel.h.
36584 (grub_arch_modules_addr): New function.
36585 * util/grub-emu.c (grub_end_addr): Remove variable.
36586 (grub_total_module_size): Likewise.
36587 (grub_arch_modules_addr): New function.
36588 * util/misc.c: Include unistd.h.
36589 (grub_util_get_fp_size): New function.
36590 (grub_util_read_at): Likewise.
36591 (grub_util_write_image_at): Likewise.
36592 (grub_util_read_image): Call grub_util_read_at.
36593 (grub_util_write_image): Call grub_util_write_image_at.
36594 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
36595 additional memory in kernel_img for a struct grub_module_info.
36596 Fill in that grub_module_info.
36597 * util/powerpc/ieee1275/grub-mkimage.c: New file.
36598
36599 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
36600
36601 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
36602 New function.
36603 * include/grub/powerpc/ieee1275/ieee1275.h
36604 (grub_ieee1275_milliseconds): New prototype.
36605 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
36606 Change to 1000.
36607 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
36608 grub_ieee1275_milliseconds.
36609
36610 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
36611
36612 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
36613 variable.
36614 (find_options): New function.
36615 (cmain): Call find_options.
36616 * include/grub/powerpc/ieee1275/ieee1275.h
36617 (grub_ieee1275_realmode): New extern variable.
36618 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
36619 grub_map if grub_ieee1275_realmode is false.
36620
36621 2004-12-29 Marco Gerards <metgerards@student.han.nl>
36622
36623 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
36624 lines are inserted and make it work like readline. Reported by
36625 Vincent Pelletier <subdino2004@yahoo.fr>.
36626
36627 2004-12-28 Marco Gerards <metgerards@student.han.nl>
36628
36629 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
36630
36631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
36632 `kern/powerpc/cache.S'.
36633
36634 2004-12-27 Marco Gerards <metgerards@student.han.nl>
36635
36636 * genmk.rb: Handle the `Program' class in the main loop. Written
36637 by Johan Rydberg <jrydberg@gnu.org>.
36638 (Program): New class.
36639 (programs): New variable.
36640 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
36641 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
36642 instead of "grub/kernel.h". Include <grub/machine/init.h>.
36643 (help_arch): Function removed.
36644 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
36645 `powerpc/libgcc.h' and `loader.h'.
36646 (pkgdata_PROGRAMS): New variable.
36647 (sbin_UTILITIES): Variable removed.
36648 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
36649 (grubof_SOURCES): Variable re-defined so it only includes the
36650 core functionality.
36651 (grubof_CFLAGS): Remove `-DGRUBOF'.
36652 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
36653 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
36654 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
36655 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
36656 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
36657 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
36658 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
36659 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
36660 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
36661 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
36662 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36663 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
36664 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
36665 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
36666 (pc_mod_CFLAGS): New variables.
36667 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
36668 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
36669 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
36670 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
36671 Moved from here...
36672 * include/grub/i386/pc/init.h (grub_os_area_addr)
36673 (rub_os_area_size): ... to here.
36674 * include/grub/powerpc/ieee1275/ieee1275.h
36675 (grub_ieee1275_entry_fn): Export symbol.
36676 * include/grub/powerpc/ieee1275/init.h: New file.
36677 * include/grub/powerpc/libgcc.h: Likewise.
36678 * include/grub/cache.h: Likewise.
36679 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
36680 <hollis@penguinppc.org>.
36681 * kern/dl.c: Include <grub/cache.h>.
36682 (grub_dl_flush_cache): New function.
36683 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
36684 for this module.
36685 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
36686 (grub_console_init): Removed prototypes.
36687 (grub_machine_init): Don't initialize the modules anymore.
36688 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
36689 static.
36690 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
36691 Macro undef removed.
36692 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
36693 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
36694 relocation `R_PPC_REL32'. Return an error when the relocation is
36695 unknown.
36696 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
36697 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
36698 * util/misc.c (grub_arch_sync_caches): Likewise.
36699
36700 2004-12-19 Marco Gerards <metgerards@student.han.nl>
36701
36702 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
36703 `symlist.c', add `grubof_symlist.c'.
36704 (symlist.c): Variable removed.
36705 (grubof_HEADERS): Variable added.
36706 (grubof_symlist.c): New target.
36707 (kernel_syms.lst): Use `grubof_HEADERS' instead of
36708 `kernel_img_HEADERS'.
36709 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
36710 * kern/powerpc/dl.c: New file.
36711 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
36712 Function removed.
36713 (grub_arch_dl_relocate_symbols): Likewise.
36714 (grub_register_exported_symbols): Likewise.
36715
36716 2004-12-13 Marco Gerards <metgerards@student.han.nl>
36717
36718 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
36719 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
36720 to fail instead. Reported by Vincent Pelletier
36721 <subdino2004@yahoo.fr>.
36722
36723 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
36724 it is not allocated. Reported by Vincent Pelletier
36725 <subdino2004@yahoo.fr>.
36726
36727 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
36728 output so the output looks better.
36729
36730 2004-12-04 Marco Gerards <metgerards@student.han.nl>
36731
36732 Modulize the partition map support and add support for the amiga
36733 partition map.
36734
36735 * commands/ls.c: Include <grub/partition.h> instead of
36736 <grub/machine/partition.h>.
36737 * kern/disk.c: Likewise.
36738 * kern/rescue.c: Likewise.
36739 * loader/i386/pc/chainloader.c: Likewise.
36740 * normal/cmdline.c: Likewise.
36741 * kern/powerpc/ieee1275/init.c: Likewise.
36742 (grub_machine_init): Call `grub_pc_partition_map_init',
36743 `grub_amiga_partition_map_init' and
36744 `grub_apple_partition_map_init'.
36745 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
36746 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
36747 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
36748 `partition.h' and `pc_partition.h'.
36749 (grub_setup_SOURCES): Remove
36750 `disk/i386/pc/partition.c'. Add `kern/partition.c',
36751 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36752 (grub_emu_SOURCES): Likewise.
36753 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
36754 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
36755 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
36756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36757 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
36758 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36759 (grubof_SOURCES): Likewise.
36760 * disk/i386/pc/partition.c: File removed.
36761 * disk/powerpc/ieee1275/partition.c: Likewise.
36762 * include/grub/powerpc/ieee1275/partition.h: Likewise.
36763 * include/grub/i386/pc/partition.h: Likewise.
36764 * kern/partition.c: New file.
36765 * partmap/amiga.c: Likewise.
36766 * partmap/apple.c: Likewise.
36767 * partmap/pc.c: Likewise.
36768 * include/grub/partition.h: Likewise..
36769 * include/grub/pc_partition.h: Likewise.
36770 * util/grub-emu.c: Include <grub/partition.h> instead of
36771 <grub/machine/partition.h>.
36772 (main): Call `grub_pc_partition_map_init',
36773 `grub_amiga_partition_map_init' and
36774 `grub_apple_partition_map_init' and deinitialize afterwards.
36775 * util/i386/pc/biosdisk.c: Include `#include
36776 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36777 `<grub/machine/partition.h>'.
36778 * util/i386/pc/grub-setup.c: Likewise.
36779 * util/i386/pc/biosdisk.c: Likewise.
36780 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
36781 partition information in case of a PC partition.
36782 * util/i386/pc/grub-setup.c: Include `#include
36783 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36784 `<grub/machine/partition.h>'.
36785 (setup): Only access the PC specific partition information in case
36786 of a PC partition.
36787
36788 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
36789
36790 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
36791 (grub_longjmp): Likewise.
36792 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
36793 20.
36794 * normal/powerpc/setjmp.S: New file.
36795 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
36796 `normal/powerpc/setjmp.S'.
36797 (grubof_CFLAGS): Add `-DGRUBOF'.
36798 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
36799 [GRUB_UTIL && !GRUBOF].
36800
36801 2004-11-16 Marco Gerards <metgerards@student.han.nl>
36802
36803 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
36804 property named `name'. Correctly handle the error returned by
36805 `grub_ieee1275_finddevice' if a device can not be opened.
36806
36807 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
36808
36809 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
36810 `actual' for negativity.
36811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36812 kern/fshelp.c.
36813
36814 2004-11-01 Marco Gerards <metgerards@student.han.nl>
36815
36816 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
36817 (PAGE_OFFSET): New macro.
36818 (CRTC_ADDR_PORT): Likewise.
36819 (CRTC_DATA_PORT): Likewise.
36820 (START_ADDR_HIGH_REGISTER): Likewise.
36821 (START_ADDR_LOW_REGISTER): Likewise.
36822 (GRAPHICS_ADDR_PORT): Likewise.
36823 (GRAPHICS_DATA_PORT): Likewise.
36824 (READ_MAP_REGISTER): Likewise.
36825 (INPUT_STATUS1_REGISTER): Likewise.
36826 (INPUT_STATUS1_VERTR_BIT): Likewise.
36827 (page): New variable.
36828 (wait_vretrace): New function.
36829 (set_read_map): Likewise.
36830 (set_start_address): Likewise.
36831 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
36832 the right page.
36833 (check_vga_mem): Take the page into account.
36834 (write_char): Likewise.
36835 (write_cursor): Likewise.
36836 (scroll_up): Likewise. Copy the page to the page that is not
36837 shown and switch between both pages.
36838 (grub_vga_putchar): Fix off by one error.
36839 (grub_vga_cls): Wait for the vertical retrace. Take the page into
36840 account.
36841
36842 2004-11-01 Marco Gerards <metgerards@student.han.nl>
36843
36844 Add support for iso9660 (including rockridge).
36845
36846 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36847 (iso9660_mod_SOURCES): New variable.
36848 (iso9660_mod_CFLAGS): Likewise.
36849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36850 * include/grub/fs.h (grub_iso9660_init): New prototype.
36851 * util/grub-emu.c (main): Call `grub_iso9660_init'.
36852 * fs/iso9660.c: New file.
36853
36854 * include/grub/misc.h (grub_strncat): New prototype.
36855 * kern/misc.c (grub_strncat): New function.
36856
36857 * fs/hfs.c (grub_hfs_mount): Translate the error
36858 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
36859 * fs/jfs.c (grub_jfs_mount): Likewise.
36860 * fs/ufs.c (grub_ufs_mount): Likewise.
36861
36862 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
36863
36864 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
36865 which initialized BAT registers.
36866 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
36867 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36868 Move from here...
36869 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
36870 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36871 ... to here.
36872 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
36873 (grub_mapclaim): Likewise.
36874 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
36875 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
36876 hand.
36877
36878 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
36879
36880 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
36881 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
36882 -ffreestanding and -msoft-float.
36883
36884 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
36885
36886 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
36887 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
36888 set in grub_ieee1275_flags.
36889
36890 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
36891
36892 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
36893 prototype.
36894 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
36895 grub_console_init first.
36896 Change the memory range used for grub_ieee1275_claim and
36897 grub_mm_init_region.
36898 Print an error message if the claim fails.
36899 Include <grub/misc.h>.
36900
36901 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
36902
36903 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
36904 Call grub_children_iterate for device nodes of type `scsi',
36905 `ide', or `ata'.
36906 (grub_ofdisk_open): Remove manual device alias resolution.
36907 Fix memory leak when device cannot be opened.
36908 * include/grub/powerpc/ieee1275/ieee1275.h
36909 (grub_children_iterate): New prototype.
36910 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
36911 New function.
36912 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
36913 Return -1 if args.size was -1.
36914
36915 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36916
36917 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
36918 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
36919 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
36920 Open Firmware's memory for it; claim memory from _start to _end.
36921 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
36922 (_end): New extern.
36923 (_start): Zero BSS from __bss_start to _end.
36924 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
36925 New extern.
36926 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
36927
36928 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36929
36930 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
36931 -1 if args.base was -1.
36932
36933 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
36934
36935 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
36936 escape sequence instead of a literal ^L. Also call
36937 grub_ofconsole_gotoxy.
36938
36939 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
36940
36941 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
36942 void * arguments to grub_addr_t. All callers updated. Also make
36943 the `result' argument optional.
36944 (grub_ieee1275_release): change void * arguments to grub_addr_t.
36945 All callers updated.
36946
36947 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
36948
36949 * commands/ls.c (grub_ls_list_files): Use the string following the
36950 initial ')', if present, as the filesystem path.
36951 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
36952
36953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
36954
36955 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
36956
36957 Make the source code of the menu interface more readable.
36958
36959 * normal/menu.c: Include grub/mm.h.
36960 (TERM_WIDTH): New macro.
36961 (TERM_HEIGHT): Likewise.
36962 (TERM_INFO_HEIGHT): Likewise.
36963 (TERM_MARGIN): Likewise.
36964 (TERM_SCROLL_WIDTH): Likewise.
36965 (TERM_TOP_BORDER_Y): Likewise.
36966 (TERM_LEFT_BORDER_X): Likewise.
36967 (TERM_BORDER_WIDTH): Likewise.
36968 (TERM_MESSAGE_HEIGHT): Likewise.
36969 (TERM_BORDER_HEIGHT): Likewise.
36970 (TERM_NUM_ENTRIES): Likewise.
36971 (TERM_FIRST_ENTRY_Y): Likewise.
36972 (TERM_ENTRY_WIDTH): Likewise.
36973 (TERM_CURSOR_X): Likewise.
36974 (draw_border): Use macros instead of magic numbers.
36975 (print_entry): Likewise.
36976 (print_entries): Likewise.
36977 (run_menu): Likewise. Also, handle the key 'e'.
36978 (run_menu_entry): Ignore empty command lines.
36979 (print_message): Added a new argument EDIT. If EDIT is true,
36980 print a different message.
36981 (init_page): Likewise.
36982 (edit_menu_entry): New function. Not implemented yet.
36983
36984 2004-09-17 Marco Gerards <metgerards@student.han.nl>
36985
36986 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
36987 can be loaded from normal mode.
36988
36989 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
36990 `multiboot.mod'.
36991 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
36992 (multiboot_mod_CFLAGS): New variables.
36993 * loader/i386/pc/linux_normal.c: New file.
36994 * loader/i386/pc/multiboot_normal.c: Likewise.
36995
36996 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
36997 attribute `unused'.
36998
36999 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
37000 `fdiro' to read the mode information from instead of `diro'.
37001
37002 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
37003 looking up a symlink.
37004
37005 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
37006 macro.
37007 * normal/command.c (grub_command_execute): Don't parse the
37008 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
37009 flags of the command.
37010
37011 * normal/menu.c (grub_menu_run): Fix typo.
37012
37013 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
37014
37015 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
37016
37017 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
37018 `y + 1' instead of `y - 1'.
37019
37020 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
37021
37022 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
37023
37024 From Hollis Blanchard <hollis@penguinppc.org>:
37025 * kern/misc.c (memmove): New alias for grub_memmove.
37026 (memcmp): New alias for grub_memcmp.
37027 (memset): New alias for grub_memset.
37028 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37029 Change "int handle" to "grub_ieee1275_phandle_t handle".
37030 * include/grub/powerpc/ieee1275/ieee1275.h
37031 (grub_ieee1275_get_property): Likewise.
37032
37033 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
37034
37035 Added normal mode command `chainloader' as module chain.mod, which
37036 depends on normal.mod and _chain.mod.
37037
37038 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
37039 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
37040 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
37041 Deleted prototype.
37042 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
37043 but arguments parsing moved to ...
37044 (grub_chainloader_cmd): ... here. New function.
37045 * include/grub/i386/pc/chainloader.h: New file.
37046 * loader/i386/pc/chainloader_normal.c: Likewise.
37047
37048 2004-09-11 Marco Gerards <metgerards@student.han.nl>
37049
37050 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
37051 (grub_mkimage_LDFLAGS): Likewise.
37052 (grub_emu_SOURCES): Likewise.
37053 (kernel_img_HEADERS): Added fshelp.h.
37054 * fs/ext2.c: Include <grub/fshelp.h>.
37055 (FILETYPE_REG): New macro.
37056 (FILETYPE_INO_REG): Likewise.
37057 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
37058 Changed all users.
37059 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
37060 all users.
37061 (grub_fshelp_node): New struct.
37062 (grub_ext2_data): Added member `diropen'. Changed member `inode'
37063 to a pointer.
37064 (grub_ext2_get_file_block): Removed function.
37065 (grub_ext2_read_block): New function.
37066 (grub_ext2_read_file): Replaced parameter `data' by `node'.
37067 This function was written.
37068 (grub_ext2_mount): Read the root inode. Create a diropen struct.
37069 (grub_ext2_find_file): Removed function.
37070 (grub_ext2_read_symlink): New function.
37071 (grub_ext2_iterate_dir): Likewise.
37072 (grub_ext2_open): Rewritten.
37073 (grub_ext2_dir): Rewritten.
37074 * include/grub/fshelp.h: New file.
37075 * fs/fshelp.c: Likewise.
37076
37077 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
37078
37079 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
37080 (print_message): Add a missing newline.
37081 (run_menu): Added timeout support.
37082 (run_menu_entry): New local function.
37083 (grub_menu_run): Added support for booting.
37084
37085 * kern/loader.c (grub_loader_is_loaded): New function.
37086
37087 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
37088 (grub_get_rtc): Exported.
37089
37090 * include/grub/i386/pc/time.h: Include grub/symbol.h.
37091 (grub_get_rtc): Exported.
37092
37093 * include/grub/normal.h (struct grub_command_list): Remove
37094 constant from the member `command'.
37095
37096 * include/grub/loader.h (grub_loader_is_loaded): Declared.
37097
37098 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
37099
37100 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
37101
37102 2004-08-28 Marco Gerards <metgerards@student.han.nl>
37103
37104 Add support for the JFS filesystem.
37105
37106 * fs/jfs.c: New file.
37107 * include/grub/fs.h (grub_jfs_init): New prototype.
37108 (grub_jfs_fini): New prototype.
37109 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
37110 (grub_emu_SOURCES): Likewise.
37111 (pkgdata_MODULES): Add jfs.mod.
37112 (jfs_mod_SOURCES): New variable.
37113 (jfs_mod_CFLAGS): Likewise.
37114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
37115 (grubof_SOURCES): Likewise.
37116 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
37117
37118 * fs/fat.c (grub_fat_find_dir): Convert the filename little
37119 endian to the host endian.
37120 (grub_fat_utf16_to_utf8): Move function from there...
37121 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
37122 the endianness of the source string anymore.
37123 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
37124
37125 2004-08-24 Marco Gerards <metgerards@student.han.nl>
37126
37127 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
37128 (grub_boot_fini) [GRUB_UTIL]: Likewise.
37129 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
37130 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
37131
37132 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
37133 (grub_hfs_iterate_dir): Make the function static. Add prototypes
37134 for `node_found' and `it_dir'.
37135 (grub_hfs_dir): Add prototype for `dir_hook'.
37136
37137 * fs/minix.c (grub_minix_get_file_block): Add prototype for
37138 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
37139 and `indir32' to silence a gcc warning.
37140
37141 * include/grub/fs.h (grub_hfs_init): New prototype.
37142 (grub_hfs_fini): Likewise.
37143
37144
37145 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37146
37147 Each disk device has its own id now. This is useful to make use
37148 of multiple disk devices.
37149
37150 * include/grub/disk.h (grub_disk_dev_id): New enum.
37151 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
37152 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
37153
37154 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
37155 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37156
37157 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
37158 GRUB_DISK_DEVICE_OFDISK_ID as an id.
37159
37160 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
37161 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37162
37163 * include/grub/disk.h (struct grub_disk_dev): Added a new member
37164 "id" which is used by the cache manager.
37165
37166 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
37167 of just "GRUB".
37168
37169 2004-08-18 Marco Gerards <metgerards@student.han.nl>
37170
37171 * fs/hfs.c: New file.
37172 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
37173 (grub_emu_SOURCES): Likewise.
37174 (pkgdata_MODULES): Add hfs.mod.
37175 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
37176 (grubof_SOURCES): Likewise.
37177 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
37178
37179 * include/grub/misc.h (grub_strncasecmp): Add prototype.
37180 * kern/misc.c (grub_strncasecmp): Add function.
37181
37182 2004-08-14 Marco Gerards <metgerards@student.han.nl>
37183
37184 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
37185 with parentheses.
37186
37187 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
37188 (grub_ext2_dir): In case the directory entry type is unknown, read
37189 it from the inode.
37190
37191 2004-08-02 Peter Bruin <pjbruin@dds.nl>
37192
37193 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
37194 grub_load_linux instead of grub_rescue_cmd_linux as second
37195 argument of grub_rescue_register_command.
37196
37197 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
37198
37199 2004-07-27 Marco Gerards <metgerards@student.han.nl>
37200
37201 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
37202 function.
37203 * commands/boot.c: Remove the check for `GRUB_UTIL'.
37204 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37205 `loader/powerpc/ieee1275/linux.c',
37206 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
37207 * include/grub/powerpc/ieee1275/ieee1275.h
37208 (grub_ieee1275_release): New prototype.
37209 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
37210 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
37211 normal, boot, linux and linux_normal.
37212 * loader/powerpc/ieee1275/linux.c: New file.
37213 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37214
37215 2004-07-12 Marco Gerards <metgerards@student.han.nl>
37216
37217 * normal/arg.c (grub_arg_parse): Correct error handling after
37218 reallocating the argumentlist (check if `argl' is not null instead
37219 of checking if `args' is not null).
37220 * kern/mm.c (grub_realloc): Return the same pointer when using the
37221 same region, instead of returning the header address.
37222
37223 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37224
37225 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
37226 one block instead of two when looking for the initial partition.
37227 (grub_partition_probe): Initialize the local variable `p' with 0.
37228 Use base 10 for the grub_strtoul call.
37229 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
37230 need for one local variable.
37231 (grub_strtoul): Don't add the new value to `num', instead of that
37232 just assign it.
37233
37234 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37235
37236 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
37237 (pxeboot_img_SOURCES): New variable.
37238 (pxeboot_img_ASFLAGS): Likewise.
37239 (pxeboot_img_LDFLAGS): Likewise.
37240 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
37241 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
37242 <lode_leroy@hotmail.com>.
37243
37244 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37245
37246 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
37247 there was no input.
37248
37249 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37250
37251 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
37252 the history buffer logic.
37253
37254 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37255
37256 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
37257 (FILETYPE_INO_SYMLINK): New macros.
37258 (grub_ext2_find_file): Check if the node is a directory using the
37259 inode stat information instead of using the filetype in the
37260 dirent. Exclude the first character of an absolute symlink.
37261 (grub_ext2_dir): Mask out the filetype part of the mode member of
37262 the inode.
37263
37264 2004-05-24 Marco Gerards <metgerards@student.han.nl>
37265
37266 Add support for UFS version 1 and 2. Add support for the minix
37267 filesystem version 1 and 2, both the variants with 14 and 30 long
37268 filenames.
37269
37270 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
37271 fs/minix.c.
37272 (grub_emu_SOURCES): Likewise.
37273 (pkgdata_MODULES): Add ufs.mod and minix.mod.
37274 (ufs_mod_SOURCES): New variable.
37275 (ufs_mod_CFLAGS): Likewise.
37276 (minix_mod_SOURCES): Likewise.
37277 (minix_mod_CFLAGS): Likewise.
37278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
37279 fs/minix.c.
37280 (grubof_SOURCES): Likewise.
37281 * fs/ufs.c: New file.
37282 * fs/minix.c: New file.
37283 * include/grub/fs.h (grub_ufs_init): New prototype.
37284 (grub_ufs_fini): Likewise.
37285 (grub_minix_init): Likewise.
37286 (grub_minix_fini): Likewise.
37287 * util/grub-emu.c (main): Initialize and deinitialize UFS and
37288 minix fs.
37289
37290 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
37291
37292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
37293 commands/ls.c, commands/terminal.c, commands/boot.c,
37294 commands/cmp.c and commands/cat.c.
37295 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
37296
37297 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
37298 "env.h"
37299
37300 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37301
37302 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
37303 and grub_, respectively. Because the conversion is trivial and
37304 mechanical, I omit the details here. Please refer to the CVS
37305 if you need more information.
37306
37307 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37308
37309 * include/pupa: Renamed to ...
37310 * include/grub: ... this.
37311 * util/i386/pc/pupa-mkimage.c: Renamed to ...
37312 * util/i386/pc/grub-mkimage.c: ... this.
37313 * util/i386/pc/pupa-setup.c: Renamed to ...
37314 * util/i386/pc/grub-setup.c: ... this.
37315 * util/pupa-emu.c: Renamed to ...
37316 * util/grub-emu.c: ... this.
37317
37318 2004-03-29 Marco Gerards <metgerards@student.han.nl>
37319
37320 Add support for the newworld apple macintosh (PPC). This has been
37321 tested on the powerbook 2000 only. It only adds support for
37322 generic ieee1275 functions, console and disk support. This should
37323 be easy to port to other architectures with support for Open
37324 Firmware.
37325
37326 * configure.ac: Accept the powerpc as host_cpu. In the case of
37327 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
37328 specific tests are only executed while building for the i386.
37329 Inverse test for crosscompile.
37330 * genmk.rb (Utility): Allow assembler files.
37331 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
37332 * conf/powerpc-ieee1275.rmk: New file.
37333 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
37334 * disk/powerpc/ieee1275/partition.c: Likewise.
37335 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
37336 * include/pupa/powerpc/ieee1275/console.h: Likewise.
37337 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
37338 * include/pupa/powerpc/ieee1275/time.h: Likewise.
37339 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
37340 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
37341 * include/pupa/powerpc/ieee1275/loader.h
37342 * include/pupa/powerpc/setjmp.h: Likewise.
37343 * include/pupa/powerpc/types.h: Likewise.
37344 * kern/powerpc/ieee1275/init.c: Likewise.
37345 * kern/powerpc/ieee1275/openfw.c: Likewise.
37346 * term/powerpc/ieee1275/ofconsole.c: Likewise.
37347
37348 These files were written by Johan Rydberg
37349 (jrydberg@night.trouble.net) and I only modified them slightly.
37350
37351 * boot/powerpc/ieee1275/cmain.c: New file.
37352 * boot/powerpc/ieee1275/crt0.S: Likewise.
37353 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
37354 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
37355
37356 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
37357
37358 * Makefile.in: Update copyright.
37359 * genmodsrc.sh: Likewise.
37360 * gensymlist.sh: Likewise.
37361 * term/i386/pc/vga.c: Indent correctly.
37362
37363 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
37364 bugreporting address.
37365 * util/i386/pc/pupa-setup.c (usage): Likewise,
37366 (main): Call pupa_ext2_init and pupa_ext2_fini.
37367
37368 * fs/fat.c (log2): Renamed to ...
37369 (fat_log2): ... this.
37370 All callers changed.
37371 * kern/misc.c (memcpy): Alias to pupa_memmove.
37372 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
37373 lvalue cast.
37374 * util/console.c (pupa_ncurses_fini): Return 0.
37375
37376 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
37377 Move fail label here.
37378 [__GNU__]: Don't warn when using stat.
37379 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
37380 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
37381 long int. Use strtol instead of strtoul.
37382
37383 2004-03-14 Marco Gerards <metgerards@student.han.nl>
37384
37385 * commands/boot.c: New file.
37386 * commands/cat.c: Likewise.
37387 * commands/cmp.c: Likewise.
37388 * commands/ls.c: Likewise.
37389 * commands/terminal.c: Likewise.
37390 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
37391 (pupa_register_command): Changed interface to match the new
37392 argument parser.
37393 (pupa_command_execute): Changed (almost rewritten) so it uses
37394 pupa_split_command. Added support for setting variables using the
37395 syntax `foo=bar'.
37396 (rescue_command): Changed to work with the new argument parser.
37397 (terminal_command): Moved from here to commands/terminal.c.
37398 (set_command): New function.
37399 (unset_command): New function.
37400 (insmod_command): New function.
37401 (rmmod_command): New function.
37402 (lsmod_command): New function.
37403 (pupa_command_init): Don't initialize the command terminal
37404 anymore. Initialize the commands set, unset, insmod, rmmod and
37405 lsmod.
37406 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
37407 (kernel_img_HEADERS): Add arg.h and env.h.
37408 (pupa_mkimage_LDFLAGS): Add kern/env.c.
37409 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
37410 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
37411 normal/arg.c.
37412 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
37413 terminal.mod.
37414 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
37415 (boot_mod_SOURCES): New variable.
37416 (terminal_mod_SOURCES): Likewise.
37417 (ls_mod_SOURCES): Likewise.
37418 (cmp_mod_SOURCES): Likewise.
37419 (cat_mod_SOURCES): Likewise.
37420
37421 * normal/arg.c: New file.
37422 * kern/env.c: Likewise.
37423 * include/pupa/arg.h: Likewise.
37424 * include/pupa/env.h: Likewise.
37425 * font/manager.c (font_command): Changed to match argument parsing
37426 interface changes.
37427 (PUPA_MOD_INIT): Likewise.
37428 * hello/hello.c (pupa_cmd_hello): Likewise.
37429 (PUPA_MOD_INIT): Likewise.
37430 * include/pupa/disk.h: Include <pupa/device.h>.
37431 (pupa_print_partinfo): New prototype.
37432 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
37433 (pupa_dl_get_prefix): Likewise.
37434 * include/pupa/misc.h: Include <pupa/err.h>.
37435 (pupa_isgraph): New prototype.
37436 (pupa_isdigit): Likewise.
37437 (pupa_split_cmdline): Likewise.
37438 * include/pupa/normal.h: Include <pupa/arg.h>.
37439 (pupa_command): Changed the prototype of the member `func' to
37440 match the argument parsing interface. Added member `options'.
37441 (pupa_register_command): Updated to match function.
37442 (pupa_arg_parse): New prototype.
37443 (pupa_hello_init) [PUPA_UTIL]: New prototype.
37444 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
37445 (pupa_ls_init) [PUPA_UTIL]: Likewise.
37446 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
37447 (pupa_cat_init) [PUPA_UTIL]: Likewise.
37448 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
37449 (pupa_boot_init) [PUPA_UTIL]: Likewise.
37450 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
37451 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
37452 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
37453 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
37454 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
37455 * kern/disk.c: Include <pupa/file.h>.
37456 (pupa_print_partinfo): New function.
37457 * kern/dl.c: Include <pupa/env.h>.
37458 (pupa_dl_dir): Variable removed.
37459 (pupa_dl_load): Use the environment variable `prefix' instead of
37460 the variable pupa_dl_dir.
37461 (pupa_dl_set_prefix): Function removed.
37462 (pupa_dl_get_prefix): Likewise.
37463 * kern/i386/pc/init.c: Include <pupa/env.h>.
37464 (pupa_machine_init): Use the environment variable `prefix' instead of
37465 using pupa_dl_set_prefix to set the prefix.
37466 * kern/main.c: Include <pupa/env.h>.
37467 (pupa_set_root_dev): Use the environment variable `prefix' instead of
37468 using pupa_dl_get_prefix to get the prefix.
37469 * kern/misc.c: Include <pupa/env.h>.
37470 (pupa_isdigit): New function.
37471 (pupa_isgraph): Likewise.
37472 (pupa_ftoa): Likewise.
37473 (pupa_vsprintf): Added support for printing values of the type
37474 `double'. Make it possible to format variable output when using
37475 formatting like `%1.2%f'.
37476 (pupa_split_cmdline): New function.
37477 * kern/rescue.c: Include <pupa/env.h>.
37478 (next_word): Removed function.
37479 (pupa_rescue_cmd_prefix): Likewise.
37480 (pupa_rescue_cmd_set): New function.
37481 (pupa_rescue_cmd_unset): New function.
37482 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
37483 split the command line instead of splitting it here. Added
37484 support for setting variables using the syntax `foo=bar'. Don't
37485 initialize the prefix command anymore. Initialized the set and
37486 unset commands.
37487 * normal/cmdline.c: Include <pupa/env.h>.
37488 (pupa_tab_complete): Added prototypes for print_simple_completion,
37489 print_partition_completion, add_completion, iterate_commands,
37490 iterate_dev, iterate_part and iterate_dir. Moved code to print
37491 partition information from here to kern/disk.c.
37492 (pupa_cmdline_run): Don't check if the function exists anymore.
37493 * normal/main.c: Include <pupa/env.h>.
37494 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
37495 instead of using pupa_dl_get_prefix to get the prefix.
37496 * term/i386/pc/vga.c: Include <pupa/arg.h>.
37497 (check_vga_mem): Cast pointers to `void *' to silence a gcc
37498 warning.
37499 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
37500 (pupa_vga_setcolor): Declare unused variables with `__attribute__
37501 ((unused))' to silence a gcc warning.
37502 (pupa_vga_setcolor): Likewise.
37503 (debug_command): Changed to match argument parsing
37504 interface changes.
37505 * util/pupa-emu.c: Include <pupa/env.h>.
37506 (options): Added 0's for unused fields to silence a gcc warning.
37507 (argp): Likewise.
37508 (main): Use the environment variable `prefix' instead of using
37509 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
37510 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
37511 and terminal.
37512
37513 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
37514 * util/misc.c: Include <malloc.h>.
37515 (pupa_malloc): Rewritten so errors are correctly reported.
37516 (pupa_realloc): Likewise.
37517 (pupa_memalign): Likewise.
37518 (pupa_mm_init_region): Declare unused variables with
37519 `__attribute__ ((unused))' to silence a gcc warning.
37520 * normal/i386/setjmp.S: Remove tab at the end of the file to
37521 silence a gcc warning.
37522 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
37523 variables with `__attribute__ ((unused))' to silence a gcc
37524 warning.
37525 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
37526 local variable i unsigned to silence a gcc warning.
37527
37528 * kern/term.c: Include <pupa/misc.h>.
37529 (pupa_more_lines): New variable.
37530 (pupa_more): Likewise.
37531 (pupa_putcode): When the pager is active pause at the end of every
37532 screen.
37533 (pupa_set_more): New function.
37534 * include/pupa/term.h (pupa_set_more): New prototype.
37535
37536
37537 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
37538
37539 Now this project is GRUB 2 rather than PUPA. The location of
37540 the CVS repository was moved to GRUB's.
37541
37542 * configure.ac: Use bug-grub as the reporting address.
37543 Use GRUB instead of PUPA.
37544 Change the version number to 1.90.
37545
37546 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
37547
37548 * genkernsyms.sh: Updated copyright information.
37549 * genmk.rb: Likewise.
37550 * genmodsrc.sh: Likewise.
37551 * gensymlist.sh: Likewise.
37552 * boot/i386/pc/boot.S: Likewise.
37553 * boot/i386/pc/diskboot.S: Likewise.
37554 * disk/i386/pc/biosdisk.c: Likewise.
37555 * disk/i386/pc/partition.c: Likewise.
37556 * font/manager.c: Likewise.
37557 * fs/ext2.c: Likewise.
37558 * fs/fat.c: Likewise.
37559 * include/pupa/boot.h: Likewise.
37560 * include/pupa/device.h: Likewise.
37561 * include/pupa/disk.h: Likewise.
37562 * include/pupa/dl.h: Likewise.
37563 * include/pupa/elf.h: Likewise.
37564 * include/pupa/err.h: Likewise.
37565 * include/pupa/file.h: Likewise.
37566 * include/pupa/font.h: Likewise.
37567 * include/pupa/fs.h: Likewise.
37568 * include/pupa/kernel.h: Likewise.
37569 * include/pupa/loader.h: Likewise.
37570 * include/pupa/misc.h: Likewise.
37571 * include/pupa/mm.h: Likewise.
37572 * include/pupa/net.h: Likewise.
37573 * include/pupa/normal.h: Likewise.
37574 * include/pupa/rescue.h: Likewise.
37575 * include/pupa/setjmp.h: Likewise.
37576 * include/pupa/symbol.h: Likewise.
37577 * include/pupa/term.h: Likewise.
37578 * include/pupa/types.h: Likewise.
37579 * include/pupa/i386/setjmp.h: Likewise.
37580 * include/pupa/i386/types.h: Likewise.
37581 * include/pupa/i386/pc/biosdisk.h: Likewise.
37582 * include/pupa/i386/pc/boot.h: Likewise.
37583 * include/pupa/i386/pc/console.h: Likewise.
37584 * include/pupa/i386/pc/init.h: Likewise.
37585 * include/pupa/i386/pc/kernel.h: Likewise.
37586 * include/pupa/i386/pc/linux.h: Likewise.
37587 * include/pupa/i386/pc/loader.h: Likewise.
37588 * include/pupa/i386/pc/memory.h: Likewise.
37589 * include/pupa/i386/pc/multiboot.h: Likewise.
37590 * include/pupa/i386/pc/partition.h: Likewise.
37591 * include/pupa/i386/pc/time.h: Likewise.
37592 * include/pupa/i386/pc/vga.h: Likewise.
37593 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
37594 * include/pupa/util/getroot.h: Likewise.
37595 * include/pupa/util/misc.h: Likewise.
37596 * include/pupa/util/resolve.h: Likewise.
37597 * kern/device.c: Likewise.
37598 * kern/disk.c: Likewise.
37599 * kern/dl.c: Likewise.
37600 * kern/err.c: Likewise.
37601 * kern/file.c: Likewise.
37602 * kern/fs.c: Likewise.
37603 * kern/loader.c: Likewise.
37604 * kern/main.c: Likewise.
37605 * kern/misc.c: Likewise.
37606 * kern/mm.c: Likewise.
37607 * kern/rescue.c: Likewise.
37608 * kern/term.c: Likewise.
37609 * kern/i386/dl.c: Likewise.
37610 * kern/i386/pc/init.c: Likewise.
37611 * kern/i386/pc/lzo1x.S: Likewise.
37612 * kern/i386/pc/startup.S: Likewise.
37613 * loader/i386/pc/chainloader.c: Likewise.
37614 * loader/i386/pc/linux.c: Likewise.
37615 * loader/i386/pc/multiboot.c: Likewise.
37616 * normal/cmdline.c: Likewise.
37617 * normal/command.c: Likewise.
37618 * normal/main.c: Likewise.
37619 * normal/menu.c: Likewise.
37620 * normal/i386/setjmp.S: Likewise.
37621 * term/i386/pc/console.c: Likewise.
37622 * term/i386/pc/vga.c: Likewise.
37623 * util/console.c: Likewise.
37624 * util/genmoddep.c: Likewise.
37625 * util/misc.c: Likewise.
37626 * util/pupa-emu.c: Likewise.
37627 * util/resolve.c: Likewise.
37628 * util/unifont2pff.rb: Likewise.
37629 * util/i386/pc/biosdisk.c: Likewise.
37630 * util/i386/pc/getroot.c: Likewise.
37631 * util/i386/pc/pupa-mkimage.c: Likewise.
37632 * util/i386/pc/pupa-setup.c: Likewise.
37633
37634 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
37635
37636 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
37637 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
37638 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
37639 reading and reset it after reading.
37640 (pupa_ext2_close): Return PUPA_ERR_NONE.
37641
37642 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
37643 Correct value.
37644 (struct linux_kernel_header): Add kernel_version and
37645 initrd_addr_max.
37646 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
37647 pupa_file_read succeeds.
37648 (pupa_rescue_cmd_initrd): Implement.
37649
37650 2003-12-03 Marco Gerards <metgerards@student.han.nl>
37651
37652 * fs/ext2.c (pupa_ext2_label): New function.
37653 (pupa_ext2_fs): Added label.
37654 * fs/fat.c (pupa_fat_label): New function.
37655 (pupa_fat_fs): Added label.
37656 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
37657
37658 * kern/misc.c (pupa_strndup): New function.
37659 * include/pupa/misc.h (pupa_strndup): New prototype.
37660
37661 * include/pupa/normal.h: Include <pupa/err.h>.
37662 (pupa_set_history): New prototype.
37663 (pupa_iterate_commands): New prototype.
37664 * normal/cmdline.c: Include <pupa/machine/partition.h>,
37665 <pupa/disk.h>, <pupa/file.h>.
37666 (hist_size): New variable.
37667 (hist_lines): Likewise.
37668 (hist_end): Likewise.
37669 (hist_used): Likewise.
37670 (pupa_set_history): New function.
37671 (pupa_history_get): Likewise.
37672 (pupa_history_add): Likewise.
37673 (pupa_history_replace): Likewise.
37674 (pupa_tab_complete): Likewise.
37675 (pupa_cmdline_run): Added tab completion and history buffer. Tab
37676 completion shows partitionnames while completing partitions, this
37677 feature was suggested by Jeff Bailey.
37678 * normal/command.c (pupa_iterate_commands): New function.
37679 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
37680 (pupa_normal_init): Initialize history buffer.
37681 (PUPA_MOD_INIT): Likewise.
37682 (pupa_normal_fini): Free the history buffer.
37683 (PUPA_MOD_FINI): Likewise.
37684
37685 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
37686 key.
37687
37688 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
37689 * configure.ac [i386]: Check for regparam bug.
37690 (NESTED_FUNC_ATTR) [! i386]: Defined.
37691
37692 2003-11-17 Marco Gerards <metgerards@student.han.nl>
37693
37694 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
37695 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
37696 (pupa_emu_SOURCES): New variable.
37697 (pupa_emu_LDFLAGS): Likewise.
37698 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
37699 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
37700 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
37701 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
37702 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
37703 (pupa_jmp_buf): New typedef.
37704 (pupa_setjmp) [PUPA_UTIL]: New macro.
37705 (pupa_longjmp) [PUPA_UTIL]: Likewise.
37706 * include/pupa/term.h (struct pupa_term): New member `refresh'.
37707 (pupa_refresh): New prototype.
37708 * include/pupa/util/getroot.h: New file.
37709 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
37710 it.
37711 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
37712 (pupa_rescue_cmd_cat): Likewise.
37713 (pupa_rescue_cmd_ls): Likewise.
37714 (pupa_rescue_cmd_testload): Likewise.
37715 (pupa_rescue_cmd_lsmod): Likewise.
37716 * normal/cmdline.c (pupa_cmdline_get): Likewise.
37717 * normal/menu.c (run_menu): Likewise.
37718 * kern/term.c (pupa_cls): Likewise.
37719 (pupa_refresh): New function.
37720 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
37721 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
37722 * util/console.c: New file.
37723
37724 * util/i386/pc/getroot.c: New file.
37725 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
37726 (pupa_putchar): New function.
37727 (pupa_refresh): Likewise.
37728 (xgetcwd): Function moved to ...
37729 (strip_extra_slashes): Likewise.
37730 (get_prefix): Likewise.
37731 * util/i386/pc/getroot.c: ... here.
37732 (find_root_device): Function moved and renamed to...
37733 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
37734 Changed all callers.
37735 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
37736 and renamed to...
37737 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
37738 Changed all callers.
37739 * util/misc.c (pupa_memalign): New function.
37740 (pupa_mm_init_region): Likewise.
37741 (pupa_register_exported_symbols): Likewise.
37742 (pupa_putchar): Function removed.
37743 * util/pupa-emu.c: New file.
37744
37745 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
37746
37747 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
37748 (_multiboot_mod_SOURCES): New variable.
37749 (_multiboot_mod_CFLAGS): Likewise.
37750 * loader/i386/pc/multiboot.c: New file.
37751 * include/pupa/i386/pc/multiboot.h: Likewise.
37752 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
37753 (pupa_multiboot_real_boot): New function.
37754 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
37755 (pupa_multiboot_real_boot): New prototype.
37756 (pupa_rescue_cmd_multiboot): Likewise
37757 (pupa_rescue_cmd_module): Likewise.
37758
37759 * kern/loader.c (pupa_loader_set): Continue when
37760 pupa_loader_unload_func() fails.
37761 (pupa_loader_unset): New function.
37762 * include/pupa/loader.h (pupa_loader_unset): New prototype.
37763
37764 * kern/misc.c (pupa_stpcpy): New function.
37765 * include/pupa/misc.h (pupa_stpcpy): New prototype.
37766
37767 2003-11-12 Marco Gerards <metgerards@student.han.nl>
37768
37769 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
37770 for available extensions.
37771
37772 * include/pupa/i386/pc/time.h: New file.
37773 * kern/disk.c: Include <pupa/machine/time.h>.
37774 (PUPA_CACHE_TIMEOUT): New macro.
37775 (pupa_last_time): New variable.
37776 (pupa_disk_open): Flush the cache when there was a timeout.
37777 (pupa_disk_close): Reset the timer.
37778 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
37779 pupa_currticks.
37780 * util/misc.c: Include <sys/times.h>
37781 (pupa_get_rtc): New function.
37782
37783 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
37784
37785 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
37786 as blocks.
37787 (pupa_ext2_get_file_block): Use blocks member.
37788
37789 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
37790 first block. Return -1 instead of pupa_errno on error.
37791
37792 2003-10-27 Marco Gerards <metgerards@student.han.nl>
37793
37794 * README: In the pupa-mkimage example use _chain instead of chain
37795 and ext2 instead of fat.
37796 * TODO: Replace ext2fs with jfs as an example. Add an item for
37797 adding journal playback for ext2fs.
37798 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
37799 (pkgdata_MODULES): Added ext2.mod.
37800 (ext2_mod_SOURCES): New variable.
37801 (ext2_mod_CFLAGS): Likewise.
37802 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
37803 * include/pupa/misc.h (pupa_strncpy): New prototype.
37804 (pupa_strcat): Likewise.
37805 (pupa_strncmp): Likewise.
37806 * kern/misc.c (pupa_strcat): Enable function.
37807 (pupa_strncpy): New function.
37808 (pupa_strncmp): Likewise.
37809 * fs/ext2.c: New file.
37810
37811 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
37812 when the read failed before retrying.
37813 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
37814 (_FILE_OFFSET_BITS): Likewise.
37815 * configure.ac: Added AC_SYS_LARGEFILE.
37816
37817 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37818
37819 * genmk.rb (PModule#rule): Make sure to get only symbol names
37820 from the output of nm.
37821 Reported by Robert Millan <rmh.grub@aybabtu.com>.
37822
37823 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37824
37825 I forgot to check in these changes for a long time. This adds
37826 incomplete support for VGA console, and this is still very
37827 buggy. Also, a lot of consideration is required for I18N,
37828 UNICODE, and VGA font issues. Therefore, assume that this is
37829 such that "better than nothing".
37830
37831 * font/manager.c: New file.
37832 * include/pupa/font.h: Likewise.
37833 * include/pupa/i386/pc/vga.h: Likewise.
37834 * term/i386/pc/vga.c: Likewise.
37835 * util/unifont2pff.rb: Likewise.
37836
37837 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
37838 (pkgdata_MODULES): Added vga.mod and font.mod.
37839 (vga_mod_SOURCES): New variables.
37840 (vga_mod_CFLAGS): Likewise.
37841 (font_mod_SOURCES): Likewise.
37842 (font_mod_CFLAGS): Likewise.
37843
37844 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
37845
37846 * include/pupa/term.h: Include pupa/err.h.
37847 (struct pupa_term): Added init and fini.
37848 Changed the argument of putchar to pupa_uint32_t.
37849
37850 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
37851 (pupa_console_real_putchar): New prototype.
37852 (pupa_console_putchar): Removed.
37853 (pupa_console_checkkey): Exported.
37854 (pupa_console_getkey): Likewise.
37855
37856 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
37857 characters.
37858
37859 * kern/term.c (pupa_term_set_current): Rewritten.
37860 (pupa_putchar): Likewise.
37861 (pupa_putcode): New function.
37862
37863 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
37864 (pupa_console_real_putchar): ... this.
37865 (pupa_vga_set_mode): New function.
37866 (pupa_vga_get_font): Likewise.
37867
37868 * normal/command.c: Include pupa/term.h.
37869 (terminal_command): New function.
37870 (pupa_command_init): Register the command "terminal".
37871
37872 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
37873 (DISP_UP): Likewise.
37874 (DISP_RIGHT): Likewise.
37875 (DISP_DOWN): Likewise.
37876 (DISP_HLINE): Likewise.
37877 (DISP_VLINE): Likewise.
37878 (DISP_UL): Likewise.
37879 (DISP_UR): Likewise.
37880 (DISP_LL): Likewise.
37881 (DISP_LR): Likewise.
37882
37883 * term/i386/pc/console.c (pupa_console_putchar): New function.
37884
37885 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
37886
37887 * util/resolve.c (pupa_util_resolve_dependencies): BUG
37888 FIX. Reverse the path_list.
37889
37890 * include/pupa/normal.h: Export pupa_register_command and
37891 pupa_unregister_command.
37892
37893 * hello/hello.c (pupa_cmd_hello): New module.
37894 * conf/i386-pc.rmk: Added hello.mod.
37895
37896 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
37897
37898 * kern/i386/pc/lzo1x.S: New file.
37899
37900 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
37901 (compress_kernel): New variable.
37902 (generate_image): Heavily modified to support compressing a
37903 large part of the core image.
37904
37905 * util/misc.c (pupa_util_read_image): Fix a file descriptor
37906 leak.
37907 (pupa_util_load_image): New function.
37908
37909 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
37910 (pupa_compressed_size): New variable.
37911 (codestart): Enable Gate A20 here.
37912 Decompress the compressed part of the core image.
37913 Rearrange the code to put functions and variables which are
37914 required for initialization in the non-compressed part.
37915 Include lzo1x.S.
37916
37917 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
37918 here.
37919
37920 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
37921
37922 * include/pupa/i386/pc/kernel.h
37923 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
37924 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
37925 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
37926 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
37927 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
37928
37929 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
37930
37931 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
37932 (Utility#rule): Likewise.
37933
37934 * configure.ac: Check if LZO is available.
37935
37936 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
37937
37938 * include/pupa/normal.h: New file.
37939 * include/pupa/setjmp.h: Likewise.
37940 * include/pupa/i386/setjmp.h: Likewise.
37941 * normal/cmdline.c: Likewise.
37942 * normal/command.c: Likewise.
37943 * normal/main.c: Likewise.
37944 * normal/menu.c: Likewise.
37945 * normal/i386/setjmp.S: Likewise.
37946
37947 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
37948 (pupa_rescue_cmd_initrd): Likewise.
37949
37950 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
37951 Likewise.
37952
37953 * kern/i386/pc/startup.S (translation_table): New variable.
37954 (translate_keycode): New function.
37955 (pupa_console_getkey): Call translate_keycode.
37956
37957 * kern/rescue.c (attempt_normal_mode): New function.
37958 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
37959 it failed, print a message.
37960
37961 * kern/mm.c (pupa_real_malloc): Print more information when a
37962 free magic is broken.
37963 (pupa_free): If the first free header is not free actually, set
37964 it to P.
37965
37966 * kern/main.c (pupa_load_normal_mode): Just load the module
37967 "normal".
37968 (pupa_main): Don't print the message
37969 "Entering into rescue mode..." here.
37970
37971 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
37972 Declared.
37973 (pupa_rescue_cmd_initrd): Likewise.
37974 (pupa_rescue_cmd_initrd): Likewise.
37975
37976 * include/pupa/symbol.h (FUNCTION): Specify the type.
37977 (VARIABLE): Likewise.
37978
37979 * include/pupa/err.h (pupa_err_t): Added
37980 PUPA_ERR_UNKNOWN_COMMAND.
37981
37982 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
37983 (pupa_dl_get_prefix): Likewise.
37984
37985 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
37986 Added _chain.mod and _linux.mod instead of chain.mod and
37987 linux.mod.
37988 (chain_mod_SOURCES): Renamed to ...
37989 (_chain_mod_SOURCES): ... this.
37990 (chain_mod_CFLAGS): Renamed to ...
37991 (_chain_mod_CFLAGS): ... this.
37992 (linux_mod_SOURCES): Renamed to ...
37993 (_linux_mod_SOURCES): ... this.
37994 (linux_mod_CFLAGS): Renamed to ...
37995 (_linux_mod_CFLAGS): ... this.
37996 (normal_mod_SOURCES): New variable.
37997 (normal_mod_CFLAGS): Likewise.
37998 (normal_mod_ASFLAGS): Likewise.
37999
38000 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
38001
38002 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
38003 possible.
38004
38005 * kern/dl.c (pupa_dl_ref): Refer depending modules
38006 recursively.
38007 (pupa_dl_unref): Unrefer depending modules recursively.
38008 Don't call pupa_dl_unload implicitly, because PUPA can crash if
38009 a module is unloaded before one depending on that module is
38010 unloaded.
38011 (pupa_dl_unload): Unload depending modules explicitly,
38012 if possible.
38013
38014 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
38015
38016 * include/pupa/i386/pc/linux.h: New file.
38017 * loader/i386/pc/linux.c: Likewise.
38018
38019 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
38020 Removed.
38021 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
38022 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
38023 of PUPA_CHAINLOADER_BOOT_SECTOR.
38024
38025 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
38026 (pupa_linux_prot_size): New variable.
38027 (pupa_linux_tmp_addr): Likewise.
38028 (pupa_linux_real_addr): Likewise.
38029 (pupa_linux_boot_zimage): New function.
38030 (pupa_linux_boot_bzimage): Likewise.
38031
38032 * kern/i386/pc/init.c (struct mem_region): New structure.
38033 (MAX_REGIONS): New macro.
38034 (mem_regions): New variable.
38035 (num_regions): Likewise.
38036 (pupa_os_area_addr): Likewise.
38037 (pupa_os_area_size): Likewise.
38038 (pupa_lower_mem): Likewise.
38039 (pupa_upper_mem): Likewise.
38040 (add_mem_region): New function.
38041 (compact_mem_regions): Likewise.
38042 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
38043 the size of the conventional memory and that of so-called upper
38044 memory (before the first memory hole).
38045 Instead of adding each found region to free memory, use
38046 add_mem_region and add them after removing overlaps.
38047 Also, add only 1/4 of the upper memory to free memory. The rest
38048 is used for loading OS images. Maybe this is ad hoc, but this
38049 makes it much easier to relocate OS images when booting.
38050
38051 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
38052 (pupa_enter_rescue_mode): Don't register initrd and module.
38053
38054 * kern/mm.c: Include pupa/dl.h.
38055
38056 * kern/main.c: Include pupa/file.h and pupa/device.h.
38057
38058 * kern/loader.c (pupa_loader_load_module_func): Removed.
38059 (pupa_loader_load_module): Likewise.
38060
38061 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
38062 ``.o''.
38063
38064 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
38065 (pupa_linux_tmp_addr): Likewise.
38066 (pupa_linux_real_addr): Likewise.
38067 (pupa_linux_boot_zimage): Likewise.
38068 (pupa_linux_boot_bzimage): Likewise.
38069
38070 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
38071 (pupa_upper_mem): Likewise.
38072 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
38073 module is too dangerous.
38074
38075 * include/pupa/loader.h (pupa_os_area_addr): Declared.
38076 (pupa_os_area_size): Likewise.
38077 (pupa_loader_set): Remove the first argument. Loader doesn't
38078 manage modules or initrd any longer.
38079 (pupa_loader_load_module): Removed.
38080
38081 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
38082 (linux_mod_SOURCES): New variable.
38083 (linux_mod_CFLAGS): Likewise.
38084
38085 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
38086
38087 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
38088 the length of a blocklist correctly.
38089
38090 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
38091 Use ioctl only if the OS file is a block device.
38092 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
38093 not very useful for normal files.
38094
38095 * kern/main.c (pupa_set_root_dev): New function.
38096 (pupa_load_normal_mode): Likewise.
38097 (pupa_main): Call those above.
38098
38099 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
38100 pupa_uint16_t.
38101
38102 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
38103
38104 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38105
38106 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
38107 (setup): Configure the installed partition information and the
38108 dl prefix.
38109
38110 * loader/i386/pc/chainloader.c (my_mod): New variable.
38111 (pupa_chainloader_unload): New function.
38112 (pupa_rescue_cmd_chainloader): Refer itself.
38113 (PUPA_MOD_INIT): Save its own module in MY_MOD.
38114
38115 * kern/i386/pc/startup.S (install_partition): Removed.
38116 (version_string): Likewise.
38117 (config_file): Likewise.
38118 (pupa_install_dos_part): New variable.
38119 (pupa_install_bsd_part): Likewise.
38120 (pupa_prefix): Likewise.
38121 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
38122
38123 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
38124 and pupa/misc.h.
38125 (make_install_device): New function.
38126 (pupa_machine_init): Set the dl prefix.
38127
38128 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
38129 (buf): Renamed to ...
38130 (linebuf): ... this.
38131 (pupa_rescue_cmd_prefix): New function.
38132 (pupa_rescue_cmd_insmod): Likewise.
38133 (pupa_rescue_cmd_rmmod): Likewise.
38134 (pupa_rescue_cmd_lsmod): Likewise.
38135 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
38136 rmmod and lsmod.
38137
38138 * kern/mm.c (pupa_memalign): If failed even after invalidating
38139 disk caches, unload unneeded modules and retry.
38140
38141 * kern/misc.c (pupa_memmove): New function.
38142 (pupa_memcpy): Removed.
38143 (pupa_strcpy): New function.
38144 (pupa_itoa): Made static.
38145
38146 * kern/dl.c (pupa_dl_iterate): New function.
38147 (pupa_dl_ref): Likewise.
38148 (pupa_dl_unref): Likewise.
38149 (pupa_dl_unload): Return if succeeded or not.
38150 (pupa_dl_unload_unneeded): New function.
38151 (pupa_dl_unload_all): Likewise.
38152 (pupa_dl_init): Renamed to ...
38153 (pupa_dl_set_prefix): ... this.
38154 (pupa_dl_get_prefix): New function.
38155
38156 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
38157 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
38158 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38159 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38160 (pupa_install_dos_part): Declared.
38161 (pupa_install_bsd_part): Likewise.
38162 (pupa_prefix): Likewise.
38163 (pupa_boot_drive): Likewise.
38164
38165 * include/pupa/types.h: Fix a typo.
38166
38167 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
38168 pupa_memmove.
38169 (pupa_memmove): Declared.
38170 (pupa_strcpy): Likewise.
38171
38172 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
38173 pupa_mod_init takes one argument, its own module.
38174 (pupa_dl_unload_unneeded): Declared.
38175 (pupa_dl_unload_all): Likewise.
38176 (pupa_dl_ref): Likewise.
38177 (pupa_dl_unref): Likewise.
38178 (pupa_dl_iterate): Likewise.
38179 (pupa_dl_init): Renamed to ...
38180 (pupa_dl_set_prefix): ... this.
38181 (pupa_dl_get_prefix): Declared.
38182
38183 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
38184 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
38185 unloaded.
38186 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
38187 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
38188
38189 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
38190 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
38191
38192 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38193
38194 * util/i386/pc/pupa-setup.c (setup): Define the internal
38195 function find_first_partition_start at the top level, because GCC
38196 3.0.x cannot compile internal functions in deeper scopes
38197 correctly.
38198 (find_root_device): Use lstat instead of stat.
38199 Don't follow symbolic links.
38200 Fix the path-constructing code.
38201
38202 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
38203 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
38204 by a BLKGETSIZE ioctl first, because block devices don't fill
38205 the member st_mode of the structure stat on Linux.
38206 [__linux__] (linux_find_partition): Use a temporary buffer
38207 REAL_DEV for the working space. Copy it to DEV before returning.
38208 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
38209 buffer cache consistent.
38210 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
38211 strncmp. The previous value was merely wrong.
38212 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
38213
38214 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
38215 FAT size is 12. The previous value was merely wrong.
38216
38217 * kern/main.c (pupa_main): Don't split the starting message from
38218 newlines.
38219
38220 * kern/term.c (pupa_putchar): Put CR after LF instead of before
38221 LF, because BIOS goes crazy about character attributes in this
38222 case.
38223
38224 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38225
38226 * include/i386/pc/util/biosdisk.h: New file.
38227 * util/i386/pc/biosdisk.c: Likewise.
38228 * util/i386/pc/pupa-setup.c: Likewise.
38229
38230 * Makefile.in (INCLUDE_DISTFILES): Added
38231 include/pupa/i386/pc/util/biosdisk.h.
38232 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
38233 directory util/i386/pc.
38234 (install-local): Added a rule for sbin_UTILITIES.
38235 (uninstall): Likewise.
38236
38237 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
38238
38239 * util/misc.c (xrealloc): New function.
38240 (pupa_malloc): Likewise.
38241 (pupa_free): Likewise.
38242 (pupa_realloc): Likewise.
38243 (pupa_stop): Likewise.
38244 (pupa_putchar): Likewise.
38245
38246 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
38247
38248 * include/pupa/util/misc.h (xrealloc): Declared.
38249
38250 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
38251 macro.
38252 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
38253 (PUPA_BOOT_MACHINE_BPB_END): ... this.
38254
38255 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
38256 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38257
38258 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
38259 way should be implemented.
38260 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38261
38262 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
38263 the size of NAME for safety.
38264 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
38265 0x88.
38266
38267 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
38268 (pupa_setup_SOURCES): Likewise.
38269
38270 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
38271
38272 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38273
38274 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
38275 bunch of pushl's from pusha, because this destroys the return
38276 value.
38277
38278 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38279
38280 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
38281 This means that any missing prototypes could be fatal. Also, you
38282 must take care when writing assembly code. See the comments at
38283 the beginning of startup.S, for more details.
38284
38285 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
38286 compilation mechanism.
38287 (pupa_chainloader_real_boot): Likewise.
38288 (pupa_biosdisk_rw_int13_extensions): Likewise.
38289 (pupa_biosdisk_rw_standard): Likewise.
38290 (pupa_biosdisk_check_int13_extensions): Likewise.
38291 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
38292 (pupa_biosdisk_get_diskinfo_standard): Likewise.
38293 (pupa_get_memsize): Likewise.
38294 (pupa_get_mmap_entry): Likewise.
38295 (pupa_console_putchar): Likewise.
38296 (pupa_console_setcursor): Likewise.
38297 (pupa_getrtsecs): Use pushl instead of push.
38298
38299 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
38300 memory instead of the stack for a mmap entry, because some
38301 BIOSes may ignore the maximum size and overflow.
38302
38303 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
38304
38305 * genmk.rb (PModule#rule): Compile automatically generated
38306 sources with module-specific CFLAGS as well as other sources.
38307
38308 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38309
38310 * configure.ac: Check ld.
38311 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
38312 respectively, before checking endianness and sizes.
38313
38314 * Makefile.in (LD): New variable.
38315
38316 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38317
38318 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
38319
38320 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38321
38322 * Changelog: New file.
38323